dts: qcom: adjust pmic gpio to use upstream bindings
authorCaleb Connolly <caleb.connolly@linaro.org>
Tue, 5 Dec 2023 13:46:51 +0000 (13:46 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 16 Jan 2024 12:26:53 +0000 (12:26 +0000)
Use the upstream gpio-ranges property instead of gpio-count, and drop
the bank-name property for Qualcomm boards.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
arch/arm/dts/dragonboard410c.dts
arch/arm/dts/dragonboard820c.dts
arch/arm/dts/qcs404-evb.dts
arch/arm/dts/sdm845.dtsi

index c41fee9..6a4e3cc 100644 (file)
                                        compatible = "qcom,pm8916-gpio";
                                        reg = <0xc000 0x400>;
                                        gpio-controller;
-                                       gpio-count = <4>;
+                                       gpio-ranges = <&pm8916_gpios 0 0 4>;
                                        #gpio-cells = <2>;
-                                       gpio-bank-name="pmic";
                                };
                        };
 
index 0d9c9f7..146a0af 100644 (file)
                                        compatible = "qcom,pm8994-gpio";
                                        reg = <0xc000 0x400>;
                                        gpio-controller;
-                                       gpio-count = <24>;
+                                       gpio-ranges = <&pm8994_gpios 0 0 22>;
                                        #gpio-cells = <2>;
-                                       gpio-bank-name="pm8994.";
                                };
                        };
 
index 84224a8..bd2e303 100644 (file)
                                        compatible = "qcom,pms405-gpio";
                                        reg = <0xc000 0x400>;
                                        gpio-controller;
-                                       gpio-count = <12>;
+                                       gpio-ranges = <&pms405_gpios 0 0 12>;
                                        #gpio-cells = <2>;
-                                       gpio-bank-name="pmic";
                                };
                        };
                };
index cd5d890..a26e9f4 100644 (file)
                                        compatible = "qcom,pm8998-gpio";
                                        reg = <0xc000 0x1a00>;
                                        gpio-controller;
-                                       gpio-count = <21>;
+                                       gpio-ranges = <&pm8998_gpios 0 0 26>;
                                        #gpio-cells = <2>;
-                                       gpio-bank-name = "pm8998.";
                                };
                        };