ARM: dts: qcom: msm8974: add gpio-ranges
authorBrian Masney <masneyb@onstation.org>
Thu, 1 Nov 2018 00:11:48 +0000 (20:11 -0400)
committerAndy Gross <andy.gross@linaro.org>
Tue, 22 Jan 2019 21:04:49 +0000 (15:04 -0600)
This adds the gpio-ranges property to pm8941_gpios so that the GPIO
pins are initialized by the GPIO framework and not pinctrl. This fixes
a circular dependency so GPIO hogging can be used on this board.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-pm8941.dtsi

index 2515c5c217ac1ff8776863862aed73d2bcf4d65b..9a91b758f7aad3ea42a43037bbe401e41d546a66 100644 (file)
@@ -63,6 +63,7 @@
                        compatible = "qcom,pm8941-gpio", "qcom,spmi-gpio";
                        reg = <0xc000>;
                        gpio-controller;
+                       gpio-ranges = <&pm8941_gpios 0 0 36>;
                        #gpio-cells = <2>;
                        interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
                                     <0 0xc1 0 IRQ_TYPE_NONE>,