ARM: dts: qcom: use GPIO flags for tlmm
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 2 Aug 2022 15:39:46 +0000 (17:39 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 29 Aug 2022 22:17:26 +0000 (17:17 -0500)
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
arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts

index 3051a86..9171629 100644 (file)
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <dt-bindings/gpio/gpio.h>
 #include "qcom-msm8974.dtsi"
 #include "qcom-pm8841.dtsi"
 #include "qcom-pm8941.dtsi"
 &sdhc_2 {
        status = "okay";
 
-       cd-gpios = <&tlmm 62 0x1>;
+       cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
        vmmc-supply = <&pm8941_l21>;
        vqmmc-supply = <&pm8941_l13>;
 
index 03bb9e1..0505270 100644 (file)
@@ -14,6 +14,7 @@
  *
  */
 
+#include <dt-bindings/gpio/gpio.h>
 #include "qcom-ipq4019.dtsi"
 
 / {
@@ -72,7 +73,7 @@
                        pinctrl-0 = <&spi_0_pins>;
                        pinctrl-names = "default";
                        status = "okay";
-                       cs-gpios = <&tlmm 54 0>;
+                       cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
 
                        mx25l25635e@0 {
                                #address-cells = <1>;
index bbcb5fe..a63b377 100644 (file)
@@ -87,7 +87,7 @@
                        pinctrl-0 = <&spi_0_pins>;
                        pinctrl-names = "default";
                        status = "okay";
-                       cs-gpios = <&tlmm 12 0>;
+                       cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
 
                        flash@0 {
                                #address-cells = <1>;
 
                pci@40000000 {
                        status = "okay";
-                       perst-gpios = <&tlmm 38 0x1>;
+                       perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
                };
 
                qpic-nand@79b0000 {
index b85b9f8..ea2987f 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 // Copyright (c) 2018, The Linux Foundation. All rights reserved.
 
+#include <dt-bindings/gpio/gpio.h>
 #include "qcom-ipq4019-ap.dk07.1.dtsi"
 
 / {
@@ -10,7 +11,7 @@
        soc {
                pci@40000000 {
                        status = "okay";
-                       perst-gpios = <&tlmm 38 0x1>;
+                       perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
                };
 
                spi@78b6000 {
@@ -50,7 +51,7 @@
                        pinctrl-0 = <&spi_0_pins>;
                        pinctrl-names = "default";
                        status = "okay";
-                       cs-gpios = <&tlmm 12 0>;
+                       cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
 
                        flash@0 {
                                #address-cells = <1>;
index ec5d340..6daceaa 100644 (file)
                        ak8963@f {
                                compatible = "asahi-kasei,ak8963";
                                reg = <0x0f>;
-                               gpios = <&tlmm 67 0>;
+                               gpios = <&tlmm 67 GPIO_ACTIVE_HIGH>;
                                vid-supply = <&pm8941_lvs1>;
                                vdd-supply = <&pm8941_l17>;
                        };