ARM: dts: qcom: pm8226: Add node for the GPIOs
authorMatti Lehtimäki <matti.lehtimaki@gmail.com>
Tue, 27 Sep 2022 21:49:37 +0000 (00:49 +0300)
committerBjorn Andersson <andersson@kernel.org>
Mon, 17 Oct 2022 22:35:24 +0000 (17:35 -0500)
The PM8226 provides 8 GPIOs. Add a node to support them.

Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220927214940.244480-2-matti.lehtimaki@gmail.com
arch/arm/boot/dts/qcom-pm8226.dtsi

index 9b7d9d0..0c10fa1 100644 (file)
                        interrupt-controller;
                        #interrupt-cells = <2>;
                };
+
+               pm8226_gpios: gpio@c000 {
+                       compatible = "qcom,pm8226-gpio", "qcom,spmi-gpio";
+                       reg = <0xc000>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       gpio-ranges = <&pm8226_gpios 0 0 8>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+               };
        };
 
        pm8226_1: pm8226@1 {