]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 c41fee977813ce30764b057375b28f9ce0ae4477..6a4e3ccf17b1025b60ff198cd85e8aed77a5112f 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 0d9c9f7a4922dbecc5e823f55bbb8b7c6b2acc49..146a0af8aafe024fd80c936018b032da0e240788 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 84224a8a3d39337e3fa8e5a128bdaf074c7113bc..bd2e303e10f4958e030b58133f4dca850822b471 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 cd5d890e9a459740c26cb33b2052ee0ab45fdbd6..a26e9f411ee0611d84b5fa7818ac1021450ea54f 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.";
                                };
                        };