Commit b135d097 authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: sm8[12]50-pm8150: Move RESIN to pm8150 dtsi

It's not worth duplicating the same node over and over and over and over again,
so let's keep the common bits in the pm8150 DTSI, making only changing the
status and keycode necessary.
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20210613124822.124039-1-konrad.dybcio@somainline.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 69cdb97e
...@@ -60,6 +60,15 @@ pon_pwrkey: pwrkey { ...@@ -60,6 +60,15 @@ pon_pwrkey: pwrkey {
status = "disabled"; status = "disabled";
}; };
pon_resin: resin {
compatible = "qcom,pm8941-resin";
interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>;
bias-pull-up;
status = "disabled";
};
}; };
pm8150_temp: temp-alarm@2400 { pm8150_temp: temp-alarm@2400 {
......
...@@ -362,18 +362,14 @@ &gpu { ...@@ -362,18 +362,14 @@ &gpu {
status = "okay"; status = "okay";
}; };
&pon { &pon_pwrkey {
pwrkey { status = "okay";
status = "okay"; };
};
resin { &pon_resin {
compatible = "qcom,pm8941-resin"; status = "okay";
interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>; linux,code = <KEY_VOLUMEDOWN>;
bias-pull-up;
linux,code = <KEY_VOLUMEDOWN>;
};
}; };
&qupv3_id_1 { &qupv3_id_1 {
......
...@@ -357,18 +357,14 @@ &gpu { ...@@ -357,18 +357,14 @@ &gpu {
status = "okay"; status = "okay";
}; };
&pon { &pon_pwrkey {
pwrkey { status = "okay";
status = "okay"; };
};
resin { &pon_resin {
compatible = "qcom,pm8941-resin"; status = "okay";
interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>; linux,code = <KEY_VOLUMEDOWN>;
bias-pull-up;
linux,code = <KEY_VOLUMEDOWN>;
};
}; };
&qupv3_id_1 { &qupv3_id_1 {
......
...@@ -372,22 +372,18 @@ &gpu { ...@@ -372,22 +372,18 @@ &gpu {
status = "okay"; status = "okay";
}; };
&qupv3_id_1 { &pon_pwrkey {
status = "okay"; status = "okay";
}; };
&pon { &pon_resin {
pwrkey { status = "okay";
status = "okay";
};
resin { linux,code = <KEY_VOLUMEDOWN>;
compatible = "qcom,pm8941-resin"; };
interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
debounce = <15625>; &qupv3_id_1 {
bias-pull-up; status = "okay";
linux,code = <KEY_VOLUMEDOWN>;
};
}; };
&tlmm { &tlmm {
......
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