mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-06 04:41:28 +00:00
arm64: dts: qcom: sm6350-lena: Include pm6350 and configure buttons
Include pm6350 to inherit its GPIO and button configuration, and configure "resin" to serve as volume up, and gpio2 as volume down. Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20221030073232.22726-6-marijn.suijten@somainline.org
This commit is contained in:
parent
f6e2d6914c
commit
2b8bbe9856
@ -4,7 +4,9 @@
|
|||||||
*/
|
*/
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
||||||
#include "sm6350.dtsi"
|
#include "sm6350.dtsi"
|
||||||
|
#include "pm6350.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Sony Xperia 10 III";
|
model = "Sony Xperia 10 III";
|
||||||
@ -28,6 +30,35 @@ framebuffer: framebuffer@a0000000 {
|
|||||||
clocks = <&gcc GCC_DISP_AXI_CLK>;
|
clocks = <&gcc GCC_DISP_AXI_CLK>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpio-keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&gpio_keys_state>;
|
||||||
|
|
||||||
|
key-volume-down {
|
||||||
|
label = "volume_down";
|
||||||
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
|
gpios = <&pm6350_gpios 2 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pm6350_gpios {
|
||||||
|
gpio_keys_state: gpio-keys-state {
|
||||||
|
key-volume-down-pins {
|
||||||
|
pins = "gpio2";
|
||||||
|
function = PMIC_GPIO_FUNC_NORMAL;
|
||||||
|
power-source = <0>;
|
||||||
|
bias-disable;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pm6350_resin {
|
||||||
|
linux,code = <KEY_VOLUMEUP>;
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&sdc2_off_state {
|
&sdc2_off_state {
|
||||||
|
Loading…
Reference in New Issue
Block a user