Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: use GPIO flags for tlmm

Use respective GPIO_ACTIVE_LOW/HIGH flags for tlmm GPIOs. Include
gpio.h header if this is first usage of that flag.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220802153947.44457-5-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Bjorn Andersson
32d6fa92 7c7a0539

+10 -7
+2 -1
arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 + #include <dt-bindings/gpio/gpio.h> 2 3 #include "qcom-msm8974.dtsi" 3 4 #include "qcom-pm8841.dtsi" 4 5 #include "qcom-pm8941.dtsi" ··· 262 261 &sdhc_2 { 263 262 status = "okay"; 264 263 265 - cd-gpios = <&tlmm 62 0x1>; 264 + cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; 266 265 vmmc-supply = <&pm8941_l21>; 267 266 vqmmc-supply = <&pm8941_l13>; 268 267
+2 -1
arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
··· 14 14 * 15 15 */ 16 16 17 + #include <dt-bindings/gpio/gpio.h> 17 18 #include "qcom-ipq4019.dtsi" 18 19 19 20 / { ··· 73 72 pinctrl-0 = <&spi_0_pins>; 74 73 pinctrl-names = "default"; 75 74 status = "okay"; 76 - cs-gpios = <&tlmm 54 0>; 75 + cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>; 77 76 78 77 mx25l25635e@0 { 79 78 #address-cells = <1>;
+2 -2
arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
··· 87 87 pinctrl-0 = <&spi_0_pins>; 88 88 pinctrl-names = "default"; 89 89 status = "okay"; 90 - cs-gpios = <&tlmm 12 0>; 90 + cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; 91 91 92 92 flash@0 { 93 93 #address-cells = <1>; ··· 100 100 101 101 pci@40000000 { 102 102 status = "okay"; 103 - perst-gpios = <&tlmm 38 0x1>; 103 + perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 104 104 }; 105 105 106 106 qpic-nand@79b0000 {
+3 -2
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 // Copyright (c) 2018, The Linux Foundation. All rights reserved. 3 3 4 + #include <dt-bindings/gpio/gpio.h> 4 5 #include "qcom-ipq4019-ap.dk07.1.dtsi" 5 6 6 7 / { ··· 11 10 soc { 12 11 pci@40000000 { 13 12 status = "okay"; 14 - perst-gpios = <&tlmm 38 0x1>; 13 + perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 15 14 }; 16 15 17 16 spi@78b6000 { ··· 51 50 pinctrl-0 = <&spi_0_pins>; 52 51 pinctrl-names = "default"; 53 52 status = "okay"; 54 - cs-gpios = <&tlmm 12 0>; 53 + cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; 55 54 56 55 flash@0 { 57 56 #address-cells = <1>;
+1 -1
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
··· 175 175 ak8963@f { 176 176 compatible = "asahi-kasei,ak8963"; 177 177 reg = <0x0f>; 178 - gpios = <&tlmm 67 0>; 178 + gpios = <&tlmm 67 GPIO_ACTIVE_HIGH>; 179 179 vid-supply = <&pm8941_lvs1>; 180 180 vdd-supply = <&pm8941_l17>; 181 181 };