projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: fix dtc warnings
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
DIR-620-D1.dts
diff --git
a/target/linux/ramips/dts/DIR-620-D1.dts
b/target/linux/ramips/dts/DIR-620-D1.dts
index 53924672951f015d916a0f03396940de7bd549c6..116afd7a7e37240a5e2f12e660b423ba6710200a 100644
(file)
--- a/
target/linux/ramips/dts/DIR-620-D1.dts
+++ b/
target/linux/ramips/dts/DIR-620-D1.dts
@@
-2,34
+2,39
@@
#include "rt3352.dtsi"
#include "rt3352.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
/ {
- compatible = "
DIR-620-D
1", "ralink,rt3352-soc";
+ compatible = "
dlink,dir-620-d
1", "ralink,rt3352-soc";
model = "D-Link DIR-620 D1";
model = "D-Link DIR-620 D1";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpio-leds {
compatible = "gpio-leds";
- status {
+
led_status:
status {
label = "dir-620-d1:green:status";
label = "dir-620-d1:green:status";
- gpios = <&gpio0 9
1
>;
+ gpios = <&gpio0 9
GPIO_ACTIVE_LOW
>;
};
wifi {
label = "dir-620-d1:green:wifi";
};
wifi {
label = "dir-620-d1:green:wifi";
- gpios = <&gpio0 17
1
>;
+ gpios = <&gpio0 17
GPIO_ACTIVE_LOW
>;
};
};
gpio-keys-polled {
compatible = "gpio-keys-polled";
};
};
gpio-keys-polled {
compatible = "gpio-keys-polled";
- #address-cells = <1>;
- #size-cells = <0>;
poll-interval = <20>;
reset_wps {
label = "reset_wps";
poll-interval = <20>;
reset_wps {
label = "reset_wps";
- gpios = <&gpio0 7
1
>;
- linux,code = <
0x198
>;
+ gpios = <&gpio0 7
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_RESTART
>;
};
};
};
};
};
};
@@
-41,8
+46,7
@@
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
- reg = <0 0>;
- linux,modalias = "m25p80", "mx25l6405d";
+ reg = <0>;
spi-max-frequency = <10000000>;
partition@0 {
spi-max-frequency = <10000000>;
partition@0 {
@@
-76,21
+80,13
@@
ralink,group = "i2c", "jtag", "uartf";
ralink,function = "gpio";
};
ralink,group = "i2c", "jtag", "uartf";
ralink,function = "gpio";
};
-
- rgmii {
- ralink,group = "rgmii";
- ralink,function = "rgmii";
- };
-
- mdio {
- ralink,group = "mdio";
- ralink,function = "mdio";
- };
};
};
ðernet {
mtd-mac-address = <&factory 0x4>;
};
};
ðernet {
mtd-mac-address = <&factory 0x4>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&rgmii_pins &mdio_pins>;
};
&esw {
};
&esw {