aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-12-17 00:02:06 +0100
committerMathias Kresin <dev@kresin.me>2017-12-18 09:32:27 +0100
commit95fe3c51e5e1219fc29ce1776f94c23642e84474 (patch)
treeea3a021ce8d59d1308ce2be641be24a624528ea0
parent7c03f97e844ab85fc917aeb228de292c52d5785c (diff)
downloadupstream-95fe3c51e5e1219fc29ce1776f94c23642e84474.tar.gz
upstream-95fe3c51e5e1219fc29ce1776f94c23642e84474.tar.bz2
upstream-95fe3c51e5e1219fc29ce1776f94c23642e84474.zip
ramips: fix polarity in gpio-export node
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>
-rw-r--r--target/linux/ramips/dts/ArcherMR200.dts2
-rw-r--r--target/linux/ramips/dts/BR-6475ND.dts2
-rw-r--r--target/linux/ramips/dts/DWR-512-B.dts2
-rw-r--r--target/linux/ramips/dts/GL-MT300N-V2.dts2
-rw-r--r--target/linux/ramips/dts/HC5861.dts4
-rw-r--r--target/linux/ramips/dts/JHR-N926R.dts2
-rw-r--r--target/linux/ramips/dts/R6220.dts2
-rw-r--r--target/linux/ramips/dts/WIZFI630A.dts5
-rw-r--r--target/linux/ramips/dts/WNDR3700V5.dts2
-rw-r--r--target/linux/ramips/dts/WR6202.dts2
-rw-r--r--target/linux/ramips/dts/X5.dts2
11 files changed, 11 insertions, 16 deletions
diff --git a/target/linux/ramips/dts/ArcherMR200.dts b/target/linux/ramips/dts/ArcherMR200.dts
index 2736a05b35..ec28d39672 100644
--- a/target/linux/ramips/dts/ArcherMR200.dts
+++ b/target/linux/ramips/dts/ArcherMR200.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/BR-6475ND.dts b/target/linux/ramips/dts/BR-6475ND.dts
index 4e52da04b5..11611b083f 100644
--- a/target/linux/ramips/dts/BR-6475ND.dts
+++ b/target/linux/ramips/dts/BR-6475ND.dts
@@ -103,7 +103,7 @@
usb {
gpio-export,name="usb";
gpio-export,output=<0>;
- gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
};
*/
diff --git a/target/linux/ramips/dts/DWR-512-B.dts b/target/linux/ramips/dts/DWR-512-B.dts
index f531df80a1..afcac21c6c 100644
--- a/target/linux/ramips/dts/DWR-512-B.dts
+++ b/target/linux/ramips/dts/DWR-512-B.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts
index e7df340eec..8db3d4bc91 100644
--- a/target/linux/ramips/dts/GL-MT300N-V2.dts
+++ b/target/linux/ramips/dts/GL-MT300N-V2.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/HC5861.dts b/target/linux/ramips/dts/HC5861.dts
index d4f34b32d1..8773588e3e 100644
--- a/target/linux/ramips/dts/HC5861.dts
+++ b/target/linux/ramips/dts/HC5861.dts
@@ -42,13 +42,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/JHR-N926R.dts b/target/linux/ramips/dts/JHR-N926R.dts
index 93310e1287..d1d2627f26 100644
--- a/target/linux/ramips/dts/JHR-N926R.dts
+++ b/target/linux/ramips/dts/JHR-N926R.dts
@@ -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 {
diff --git a/target/linux/ramips/dts/R6220.dts b/target/linux/ramips/dts/R6220.dts
index 2bbb0db3b2..7d886725e1 100644
--- a/target/linux/ramips/dts/R6220.dts
+++ b/target/linux/ramips/dts/R6220.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/WIZFI630A.dts b/target/linux/ramips/dts/WIZFI630A.dts
index 86ed197300..d12753650e 100644
--- a/target/linux/ramips/dts/WIZFI630A.dts
+++ b/target/linux/ramips/dts/WIZFI630A.dts
@@ -13,11 +13,6 @@
bootargs = "console=ttyS1,115200";
};
- gpio-export {
- compatible = "gpio-export";
- #size-cells = <0>;
- };
-
gpio-leds {
compatible = "gpio-leds";
diff --git a/target/linux/ramips/dts/WNDR3700V5.dts b/target/linux/ramips/dts/WNDR3700V5.dts
index c7800115d4..ce96440369 100644
--- a/target/linux/ramips/dts/WNDR3700V5.dts
+++ b/target/linux/ramips/dts/WNDR3700V5.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/WR6202.dts b/target/linux/ramips/dts/WR6202.dts
index 3cc1b23efb..2f39818044 100644
--- a/target/linux/ramips/dts/WR6202.dts
+++ b/target/linux/ramips/dts/WR6202.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/X5.dts b/target/linux/ramips/dts/X5.dts
index 8911fa80e5..20c4237eb8 100644
--- a/target/linux/ramips/dts/X5.dts
+++ b/target/linux/ramips/dts/X5.dts
@@ -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>;
};
};
};