]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: pm8950: Add resin node
authorBarnabás Czémán <barnabas.czeman@mainlining.org>
Tue, 30 Jul 2024 21:24:59 +0000 (23:24 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 1 Aug 2024 03:00:33 +0000 (22:00 -0500)
Add pm8950 resin node as a feature of the PMIC it should be declared
in pm8950.dtsi, disabled by default. Like all other optional components
it can then by enabled and configured in the board-specific device tree
part.

Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
Link: https://lore.kernel.org/r/20240730-pm8950_resin-v1-1-26de4d933f95@mainlining.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/pm8950.dtsi

index f03095779de0578990d28c4b16a70cd218bdbf4b..ed72c61018130d775074e12b5509137aab6ba07d 100644 (file)
@@ -18,7 +18,7 @@
                #address-cells = <1>;
                #size-cells = <0>;
 
-               pon@800 {
+               pm8950_pon: pon@800 {
                        compatible = "qcom,pm8916-pon";
                        reg = <0x0800>;
                        mode-bootloader = <0x2>;
                                bias-pull-up;
                                linux,code = <KEY_POWER>;
                        };
+
+                       pm8950_resin: resin {
+                               compatible = "qcom,pm8941-resin";
+                               interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
+                               debounce = <15625>;
+                               bias-pull-up;
+                               status = "disabled";
+                       };
                };
 
                pm8950_temp: temp-alarm@2400 {