aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/Y1S.dts
diff options
context:
space:
mode:
authorL. D. Pinney <ldpinney@gmail.com>2017-07-29 10:14:07 +0800
committerMathias Kresin <dev@kresin.me>2017-08-03 19:37:40 +0200
commit70b192f57358f753842cbe1f8f82e26e8c6f9e1e (patch)
treecba041befbc7be0c927f73327f9a5fcf0a910725 /target/linux/ramips/dts/Y1S.dts
parentb70a96285c0f489be68bfea7a84a7950a58ddc79 (diff)
downloadupstream-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.tar.gz
upstream-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.tar.bz2
upstream-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.zip
ramips: update device tree source files
Use the GPIO dt-bindings macros and add compatible strings in the ramips device tree source files. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/dts/Y1S.dts')
-rw-r--r--target/linux/ramips/dts/Y1S.dts22
1 files changed, 11 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/Y1S.dts b/target/linux/ramips/dts/Y1S.dts
index cfa5e2123a..07719c25e5 100644
--- a/target/linux/ramips/dts/Y1S.dts
+++ b/target/linux/ramips/dts/Y1S.dts
@@ -3,7 +3,7 @@
#include "Y1.dtsi"
/ {
- compatible = "lenovo,Y1S", "ralink,mt7620a-soc";
+ compatible = "lenovo,y1s", "lenovo,y1", "ralink,mt7620a-soc";
model = "Lenovo Y1S";
gpio_export {
@@ -13,17 +13,17 @@
usb0 {
gpio-export,name = "usb0";
gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH
- gpios = <&gpio2 14 0>; // GPIO2:40+14=GPIO 54
+ gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; // GPIO2:40+14=GPIO 54
};
usb1 {
gpio-export,name = "usb1";
gpio-export,output = <1>;
- gpios = <&gpio2 15 0>;
+ gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>;
};
usb2 {
gpio-export,name = "usb2";
gpio-export,output = <1>;
- gpios = <&gpio2 16 0>;
+ gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
};
};
@@ -32,37 +32,37 @@
power1 {
label = "y1s:yellow:power";
- gpios = <&gpio0 14 1>;
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
power2 {
label = "y1s:blue:power";
- gpios = <&gpio0 9 1>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
wlan1 {
label = "y1s:yellow:wifi";
- gpios = <&gpio3 0 1>;
+ gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
wlan2 {
label = "y1s:blue:wifi";
- gpios = <&gpio2 10 1>;
+ gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
};
usb1 {
label = "y1s:yellow:usb";
- gpios = <&gpio2 13 1>;
+ gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
};
usb2 {
label = "y1s:blue:usb";
- gpios = <&gpio2 12 1>;
+ gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
};
internet {
label = "y1s:blue:internet";
- gpios = <&gpio2 11 1>;
+ gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
};
};
};