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>
This commit is contained in:
L. D. Pinney
2017-07-29 10:14:07 +08:00
committed by Mathias Kresin
parent b70a96285c
commit 70b192f573
212 changed files with 1343 additions and 1103 deletions

View File

@@ -2,10 +2,11 @@
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "microwrt", "ralink,mt7620a-soc";
compatible = "microduino,microwrt", "ralink,mt7620a-soc";
model = "Microduino MicroWRT";
chosen {
@@ -20,13 +21,13 @@
reset {
label = "reset";
gpios = <&gpio0 1 1>;
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 1>;
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};