aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/HC5861.dts
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 /target/linux/ramips/dts/HC5861.dts
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>
Diffstat (limited to 'target/linux/ramips/dts/HC5861.dts')
-rw-r--r--target/linux/ramips/dts/HC5861.dts4
1 files changed, 2 insertions, 2 deletions
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>;
};
};
};