arm64: dts: qcom: pm8953: add GPIOs
authorLuca Weiss <luca@z3ntu.xyz>
Fri, 21 Apr 2023 21:56:22 +0000 (23:56 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 25 May 2023 04:50:46 +0000 (21:50 -0700)
Add a node for the GPIOs found on the pm8953.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230421-pm8953-gpio-v1-3-3d33e2de47e3@z3ntu.xyz
arch/arm64/boot/dts/qcom/pm8953.dtsi

index a1d36f9..2268daf 100644 (file)
                        reg-names = "rtc", "alarm";
                        interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
                };
+
+               pm8953_gpios: gpio@c000 {
+                       compatible = "qcom,pm8953-gpio", "qcom,spmi-gpio";
+                       reg = <0xc000>;
+                       gpio-controller;
+                       gpio-ranges = <&pm8953_gpios 0 0 8>;
+                       #gpio-cells = <2>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+               };
        };
 
        pmic@1 {