kernel: bump 4.19 to 4.19.91
[openwrt/staging/wigyori.git] / target / linux / ipq806x / patches-4.19 / 080-ARM-dts-qcom-add-gpio-ranges-property.patch
1 From patchwork Mon May 21 20:57:38 2018
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 Subject: [v5,3/4] ARM: dts: qcom: add gpio-ranges property
6 X-Patchwork-Submitter: Christian Lamparter <chunkeey@gmail.com>
7 X-Patchwork-Id: 917856
8 Message-Id: <0ae3376606a89bcdf3fe753a5c967f7103699e09.1526935804.git.chunkeey@gmail.com>
9 To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
10 linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
11 Cc: 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>
17 Date: Mon, 21 May 2018 22:57:38 +0200
18 From: Christian Lamparter <chunkeey@gmail.com>
19 List-Id: <linux-gpio.vger.kernel.org>
20
21 This patch adds the gpio-ranges property to almost all of
22 the Qualcomm ARM platforms that utilize the pinctrl-msm
23 framework.
24
25 The gpio-ranges property is part of the gpiolib subsystem.
26 As a result, the binding text is available in section
27 "2.1 gpio- and pin-controller interaction" of
28 Documentation/devicetree/bindings/gpio/gpio.txt
29
30 For more information please see the patch titled:
31 "pinctrl: msm: fix gpio-hog related boot issues" from
32 this series.
33
34 Reported-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
35 Tested-by: Sven Eckelmann <sven.eckelmann@openmesh.com> [ipq4019]
36 Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
37 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
38 Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
39 ---
40 To help with git bisect, the DT update patch has been intentionally
41 placed after the "pinctrl: msm: fix gpio-hog related boot issues".
42 Otherwise - if the order was reveresed - and bisect decides to split
43 between these two patches, the gpiochip_add_pin_ranges() function
44 will 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 @@ -625,6 +625,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>;