Commit 9f6cbe37 authored by Dang Huynh's avatar Dang Huynh Committed by Bjorn Andersson

arm64: dts: qcom: sdm630-pm660: Move RESIN to pm660 dtsi

It's not worth duplicating the same node over and over again,
so let's keep the common bits in the pm660 DTSI, making only
changing the status and keycode necessary.

Also, disable RESIN/PWR by default just in case if there are
devices that doesn't use them.
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: default avatarDang Huynh <danct12@riseup.net>
Reviewed-by: default avatarCaleb Connolly <caleb@connolly.tech>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211120214227.779742-3-danct12@riseup.net
parent b1394251
...@@ -54,14 +54,24 @@ pon: pon@800 { ...@@ -54,14 +54,24 @@ pon: pon@800 {
mode-bootloader = <0x2>; mode-bootloader = <0x2>;
mode-recovery = <0x1>; mode-recovery = <0x1>;
pwrkey { pon_pwrkey: pwrkey {
compatible = "qcom,pm8941-pwrkey"; compatible = "qcom,pm8941-pwrkey";
interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>; debounce = <15625>;
bias-pull-up; bias-pull-up;
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
status = "disabled";
}; };
pon_resin: resin {
compatible = "qcom,pm8941-resin";
interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>;
bias-pull-up;
status = "disabled";
};
}; };
pm660_temp: temp-alarm@2400 { pm660_temp: temp-alarm@2400 {
......
...@@ -215,14 +215,14 @@ &blsp2_uart1 { ...@@ -215,14 +215,14 @@ &blsp2_uart1 {
/* HCI Bluetooth */ /* HCI Bluetooth */
}; };
&pon { &pon_pwrkey {
volup { status = "okay";
compatible = "qcom,pm8941-resin"; };
interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>; &pon_resin {
bias-pull-up; status = "okay";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
};
}; };
&qusb2phy { &qusb2phy {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment