blob: 0dc9debbfd6d91d9fe59d87b80924204e12029c9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From patchwork Mon May 21 20:57:38 2018
2Content-Type: text/plain; charset="utf-8"
3MIME-Version: 1.0
4Content-Transfer-Encoding: 7bit
5Subject: [v5,3/4] ARM: dts: qcom: add gpio-ranges property
6X-Patchwork-Submitter: Christian Lamparter <chunkeey@gmail.com>
7X-Patchwork-Id: 917856
8Message-Id: <0ae3376606a89bcdf3fe753a5c967f7103699e09.1526935804.git.chunkeey@gmail.com>
9To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
10 linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
11Cc: Bjorn Andersson <bjorn.andersson@linaro.org>,
12 Linus Walleij <linus.walleij@linaro.org>,
13 Stephen Boyd <sboyd@kernel.org>, David Brown <david.brown@linaro.org>,
14 Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>,
15 Andy Gross <andy.gross@linaro.org>,
16 Sven Eckelmann <sven.eckelmann@openmesh.com>
17Date: Mon, 21 May 2018 22:57:38 +0200
18From: Christian Lamparter <chunkeey@gmail.com>
19List-Id: <linux-gpio.vger.kernel.org>
20
21This patch adds the gpio-ranges property to almost all of
22the Qualcomm ARM platforms that utilize the pinctrl-msm
23framework.
24
25The gpio-ranges property is part of the gpiolib subsystem.
26As a result, the binding text is available in section
27"2.1 gpio- and pin-controller interaction" of
28Documentation/devicetree/bindings/gpio/gpio.txt
29
30For more information please see the patch titled:
31"pinctrl: msm: fix gpio-hog related boot issues" from
32this series.
33
34Reported-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
35Tested-by: Sven Eckelmann <sven.eckelmann@openmesh.com> [ipq4019]
36Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
37Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
38Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
39---
40To help with git bisect, the DT update patch has been intentionally
41placed after the "pinctrl: msm: fix gpio-hog related boot issues".
42Otherwise - if the order was reveresed - and bisect decides to split
43between these two patches, the gpiochip_add_pin_ranges() function
44will be executed twice with the same parameters for the same pinctrl.
45---
46 arch/arm/boot/dts/qcom-apq8064.dtsi | 1 +
47 arch/arm/boot/dts/qcom-apq8084.dtsi | 1 +
48 arch/arm/boot/dts/qcom-ipq4019.dtsi | 1 +
49 arch/arm/boot/dts/qcom-ipq8064.dtsi | 1 +
50 arch/arm/boot/dts/qcom-mdm9615.dtsi | 1 +
51 arch/arm/boot/dts/qcom-msm8660.dtsi | 1 +
52 arch/arm/boot/dts/qcom-msm8960.dtsi | 1 +
53 arch/arm/boot/dts/qcom-msm8974.dtsi | 1 +
54 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++-
55 arch/arm64/boot/dts/qcom/msm8916.dtsi | 1 +
56 arch/arm64/boot/dts/qcom/msm8992.dtsi | 1 +
57 arch/arm64/boot/dts/qcom/msm8994.dtsi | 1 +
58 arch/arm64/boot/dts/qcom/msm8996.dtsi | 1 +
59 13 files changed, 14 insertions(+), 1 deletion(-)
60
61--- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
62+++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
63@@ -119,6 +119,7 @@
64 reg = <0x800000 0x4000>;
65
66 gpio-controller;
67+ gpio-ranges = <&qcom_pinmux 0 0 69>;
68 #gpio-cells = <2>;
69 interrupt-controller;
70 #interrupt-cells = <2>;