summaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/NIXCORE.dtsi
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/NIXCORE.dtsi
parentb70a96285c0f489be68bfea7a84a7950a58ddc79 (diff)
downloadmtk-20170518-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.zip
mtk-20170518-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.tar.gz
mtk-20170518-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.tar.bz2
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/NIXCORE.dtsi')
-rw-r--r--target/linux/ramips/dts/NIXCORE.dtsi30
1 files changed, 16 insertions, 14 deletions
diff --git a/target/linux/ramips/dts/NIXCORE.dtsi b/target/linux/ramips/dts/NIXCORE.dtsi
index a827b31..4d2a82d 100644
--- a/target/linux/ramips/dts/NIXCORE.dtsi
+++ b/target/linux/ramips/dts/NIXCORE.dtsi
@@ -1,7 +1,9 @@
#include "rt5350.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
/ {
- compatible = "Nixcore", "ralink,rt5350-soc";
+ compatible = "nixcore,x1", "ralink,rt5350-soc";
chosen {
bootargs = "console=ttyS1,57600";
@@ -14,13 +16,13 @@
gpio0 {
gpio-export,name = "gpio0";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio0 0 0>;
+ gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
};
gpio1 {
gpio-export,name = "gpio1";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio1 0 0>;
+ gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
};
/* GPIOs 1-6 are I2C,SPI */
@@ -32,35 +34,35 @@
/* JTAG_TDO */
gpio-export,name = "gpio17";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio0 17 0>;
+ gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
};
gpio18 {
/* JTAG_TDI */
gpio-export,name = "gpio18";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio0 18 0>;
+ gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
};
gpio19 {
/* JTAG_TMS */
gpio-export,name = "gpio19";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio0 19 0>;
+ gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
};
gpio20 {
/* JTAG_TCLK */
gpio-export,name = "gpio20";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio0 20 0>;
+ gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
};
gpio21 {
/* JTAG_TRST_N */
gpio-export,name = "gpio21";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio0 21 0>;
+ gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
};
/* ETH LEDs */
@@ -68,25 +70,25 @@
gpio22 {
gpio-export,name = "gpio22";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio1 0 0>;
+ gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
};
gpio23 {
gpio-export,name = "gpio23";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio1 1 0>;
+ gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
};
gpio24 {
gpio-export,name = "gpio24";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio1 2 0>;
+ gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
};
gpio25 {
gpio-export,name = "gpio25";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio1 3 0>;
+ gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
};
*/
@@ -94,14 +96,14 @@
/* ETH4_LED */
gpio-export,name = "gpio26";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio1 4 0>;
+ gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
};
gpio27 {
/* spi_cs1 */
gpio-export,name = "gpio27";
gpio-export,direction_may_change = <1>;
- gpios = <&gpio1 5 0>;
+ gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
};
};
};