]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sc8180x-pmics: Add second PMC8180 GPIO
authorBjorn Andersson <quic_bjorande@quicinc.com>
Wed, 31 Jul 2024 03:24:40 +0000 (20:24 -0700)
committerBjorn Andersson <andersson@kernel.org>
Thu, 1 Aug 2024 02:52:30 +0000 (21:52 -0500)
The SC8180X comes with two PMC8180 PMICs, with the GPIO block being used
to control VBUS supply of the second USB multiport port.

Rename the GPIO controller in the first PMC8180 to match the schematics
and define this second controller.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20240730-sc8180x-usb-mp-v2-3-a7dc4265b553@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi

index 1c6f12fafe1d402c068324ed4d5f9e29fc6f6f18..b6f8d1558c0d7427141f8d9c22e030c240911065 100644 (file)
                        interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
                };
 
-               pmc8180_gpios: gpio@c000 {
+               pmc8180_1_gpios: gpio@c000 {
                        compatible = "qcom,pmc8180-gpio", "qcom,spmi-gpio";
                        reg = <0xc000>;
                        gpio-controller;
-                       gpio-ranges = <&pmc8180_gpios 0 0 10>;
+                       gpio-ranges = <&pmc8180_1_gpios 0 0 10>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
                #size-cells = <0>;
        };
 
-       pmic@8 {
+       pmc8180_2: pmic@8 {
                compatible = "qcom,pm8150", "qcom,spmi-pmic";
                reg = <0x8 SPMI_USID>;
                #address-cells = <1>;
                #size-cells = <0>;
+
+               pmc8180_2_gpios: gpio@c000 {
+                       compatible = "qcom,pmc8180-gpio", "qcom,spmi-gpio";
+                       reg = <0xc000>;
+                       gpio-controller;
+                       gpio-ranges = <&pmc8180_2_gpios 0 0 10>;
+                       #gpio-cells = <2>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+               };
        };
 
        pmic@a {