ramips: fix polarity in gpio-export node
authorMathias Kresin <dev@kresin.me>
Sat, 16 Dec 2017 23:02:06 +0000 (00:02 +0100)
committerMathias Kresin <dev@kresin.me>
Mon, 18 Dec 2017 08:32:27 +0000 (09:32 +0100)
If we need to set the initial output value to GPIOF_OUT_INIT_HIGH (1) to
enable something, the pin is ACTIVE_HIGH. The same applies to
GPIOF_OUT_INIT_LOW (0) and ACTIVE_LOW.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/dts/ArcherMR200.dts
target/linux/ramips/dts/BR-6475ND.dts
target/linux/ramips/dts/DWR-512-B.dts
target/linux/ramips/dts/GL-MT300N-V2.dts
target/linux/ramips/dts/HC5861.dts
target/linux/ramips/dts/JHR-N926R.dts
target/linux/ramips/dts/R6220.dts
target/linux/ramips/dts/WIZFI630A.dts
target/linux/ramips/dts/WNDR3700V5.dts
target/linux/ramips/dts/WR6202.dts
target/linux/ramips/dts/X5.dts

index 2736a05b35561a8fbde48d74c0bcafbba970b077..ec28d39672d0b6895e9b6bffa07f455e741d8e32 100644 (file)
@@ -92,7 +92,7 @@
                power_usb {
                        gpio-export,name = "power_usb1";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 
index 4e52da04b5764318e862e443cbac4142f59a1f2f..11611b083f86e706016ca07f96dcab0d942e216a 100644 (file)
                usb {
                        gpio-export,name="usb";
                        gpio-export,output=<0>;
-                       gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
        };
        */
index f531df80a189f1ec09625bb9a440fba0f90bcb71..afcac21c6c9a64657b17f8b6f7c2808340670822 100644 (file)
@@ -68,7 +68,7 @@
                modem3g_enable {
                        gpio-export,name = "modem3g_enable";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index e7df340eecaa948b1184b32ea16c3b2dc25b5eee..8db3d4bc9177a627cf067814273f4c3d34be11f7 100644 (file)
@@ -64,7 +64,7 @@
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 
index d4f34b32d1b269d692f2e5fbd7c0db45229873c1..8773588e3e7e42e5900bb667cda82b92ae3efe8e 100644 (file)
                usbpower {
                        gpio-export,name = "usbpower";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                sdpower {
                        gpio-export,name = "sdpower";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 93310e1287ee65589c90e12d5d02da6aed08f524..d1d2627f26c4a991ea62114a6183860a1eb34c6f 100644 (file)
@@ -72,7 +72,7 @@
                display_data {
                        gpio-export,name = "display_data";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                display_clock {
index 2bbb0db3b291b70f152beaba5cffbb8cefa6647e..7d886725e15cb6e6e237bd7f2109b488b5013187 100644 (file)
@@ -79,7 +79,7 @@
                usbpower {
                        gpio-export,name = "usbpower";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 86ed197300f953212249c498c043a156d6492534..d12753650e4b459d36d6beb9a06b16e52e8c081d 100644 (file)
                bootargs = "console=ttyS1,115200";
        };
 
-       gpio-export {
-               compatible = "gpio-export";
-               #size-cells = <0>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
 
index c7800115d48f9223832edeae73b2acbe50667031..ce964403697cfaced621df3d5a1a9df28137bda2 100644 (file)
@@ -64,7 +64,7 @@
                usbpower {
                        gpio-export,name = "usbpower";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 3cc1b23efbcd8db13484c21b85b0493d75b7b997..2f39818044f3f93256bd0c00145daed57b3c8086 100644 (file)
@@ -85,7 +85,7 @@
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 8911fa80e52bc1b05fa61eb63e4938dd04d23788..20c4237eb81bef5167b4e660682cc6a2921e7633 100644 (file)
@@ -66,7 +66,7 @@
                usb-mode {
                        gpio-export,name = "usb-mode";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                };
        };
 };