ARM64: dts: qcom: add gpio-ranges property
authorChristian Lamparter <chunkeey@gmail.com>
Wed, 8 Jan 2020 12:54:57 +0000 (13:54 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 25 Feb 2020 04:54:54 +0000 (20:54 -0800)
This patch adds the gpio-ranges property to almost all of
the Qualcomm ARM platforms that utilize the pinctrl-msm
framework.

The gpio-ranges property is part of the gpiolib subsystem.
As a result, the binding text is available in section
"2.1 gpio- and pin-controller interaction" of
Documentation/devicetree/bindings/gpio/gpio.txt

For more information please see the patch titled:
"pinctrl: msm: fix gpio-hog related boot issues" from
this series.

Reported-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
Tested-by: Sven Eckelmann <sven.eckelmann@openmesh.com> [ipq4019]
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Tested-by: Robert Marko <robert.marko@sartura.hr> [ipq4019]
Cc: Luka Perkov <luka.perkov@sartura.hr>
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Link: https://lore.kernel.org/r/20200108125455.308969-2-robert.marko@sartura.hr
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/ipq8074.dtsi
arch/arm64/boot/dts/qcom/msm8916.dtsi
arch/arm64/boot/dts/qcom/msm8992.dtsi
arch/arm64/boot/dts/qcom/msm8994.dtsi
arch/arm64/boot/dts/qcom/msm8996.dtsi

index 67ee5f560104619984fb099d370ea6d8bef990ad..2b31823d3ccdb7068d2c89cafa20857dbd3aa899 100644 (file)
@@ -21,6 +21,7 @@
                        reg = <0x1000000 0x300000>;
                        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
                        gpio-controller;
+                       gpio-ranges = <&tlmm 0 0 70>;
                        #gpio-cells = <0x2>;
                        interrupt-controller;
                        #interrupt-cells = <0x2>;
index cabfa3547d283d141f63b86db4839e6a8ea1eeac..7c2ada02e276e90fffd8a64e5e196e671db8a9c6 100644 (file)
                        reg = <0x1000000 0x300000>;
                        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
                        gpio-controller;
+                       gpio-ranges = <&msmgpio 0 0 122>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
index 8be60c08a9ab4c0b634a4067845d9d4355f8b62d..2021795c99add1ffee84b0da59b7e172fae70f39 100644 (file)
                        reg = <0xfd510000 0x4000>;
                        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
                        gpio-controller;
+                       gpio-ranges = <&msmgpio 0 0 146>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
index 3932757f78b7462fdcb4641b837f290b76e54a0c..b1c2d7d6a0f2f4dd5d0ed49ad9e8c06388b920c2 100644 (file)
                        reg = <0xfd510000 0x4000>;
                        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
                        gpio-controller;
+                       gpio-ranges = <&msmgpio 0 0 146>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
index 7ae082ea14ea815b2a9f5b632a536af5dfb92760..eaae356a493c217423b9cc4cf4ce6eb66e4374dd 100644 (file)
                        reg = <0x01010000 0x300000>;
                        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
                        gpio-controller;
+                       gpio-ranges = <&msmgpio 0 0 150>;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        #interrupt-cells = <2>;