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 GB-PC1 cpuclock again
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
WCR150GN.dts
diff --git
a/target/linux/ramips/dts/WCR150GN.dts
b/target/linux/ramips/dts/WCR150GN.dts
index ed80b6f5bf870a9aa9d3c588082184223ecb96a9..9a4c4fc7d1205805f2b718c01c446e98c46a3562 100644
(file)
--- a/
target/linux/ramips/dts/WCR150GN.dts
+++ b/
target/linux/ramips/dts/WCR150GN.dts
@@
-1,20
+1,14
@@
/dts-v1/;
/dts-v1/;
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
/ {
- compatible = "
WCR150GN
", "ralink,rt3050-soc";
+ compatible = "
sparklan,wcr150gn
", "ralink,rt3050-soc";
model = "Sparklan WCR-150GN";
model = "Sparklan WCR-150GN";
- pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
- ralink,function = "gpio";
- };
- };
- };
-
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
@@
-52,12
+46,12
@@
user {
label = "wcr-150gn:amber:user";
user {
label = "wcr-150gn:amber:user";
- gpios = <&gpio0 12
1
>;
+ gpios = <&gpio0 12
GPIO_ACTIVE_LOW
>;
};
power {
label = "wcr-150gn:amber:power";
};
power {
label = "wcr-150gn:amber:power";
- gpios = <&gpio0 8
1
>;
+ gpios = <&gpio0 8
GPIO_ACTIVE_LOW
>;
};
};
};
};
@@
-69,30
+63,39
@@
wps {
label = "wps";
wps {
label = "wps";
- gpios = <&gpio0 10
1
>;
- linux,code = <
0x211
>;
+ gpios = <&gpio0 10
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_WPS_BUTTON
>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio0 0
1
>;
- linux,code = <
0x198
>;
+ gpios = <&gpio0 0
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_RESTART
>;
};
};
};
};
+};
- ethernet@10100000 {
- mtd-mac-address = <&factory 0x4>;
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+ ralink,function = "gpio";
+ };
};
};
+};
-
esw@10110000
{
-
mediatek,portmap = <0x2f
>;
-
};
+
ðernet
{
+
mtd-mac-address = <&factory 0x4
>;
+};
-
wmac@10180000
{
-
ralink,mtd-eeprom = <&factory 0
>;
-
};
+
&esw
{
+
mediatek,portmap = <0x2f
>;
+};
- otg@101c0000 {
- status = "okay";
- };
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+ status = "okay";
};
};