ramips: TEW-692GR.dts fixes
[openwrt.git] / target / linux / ramips / dts / WHR-G300N.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "WHR-G300N", "ralink,rt3052-soc";
7         model = "Buffalo WHR-G300N";
8
9         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x4000000>;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,57600";
15         };
16
17         palmbus@10000000 {
18                 sysc@0 {
19                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20                         ralink,uartmux = "gpio";
21                         ralink,wdtmux = <1>;
22                 };
23
24                 gpio0: gpio@600 {
25                         status = "okay";
26                 };
27         };
28
29         cfi@1f000000 {
30                 compatible = "cfi-flash";
31                 reg = <0x1f000000 0x800000>;
32
33                 bank-width = <2>;
34                 device-width = <2>;
35                 #address-cells = <1>;
36                 #size-cells = <1>;
37         };
38
39         ethernet@10100000 {
40                 status = "okay";
41         };
42
43         esw@10110000 {
44                 status = "okay";
45                 ralink,portmap = <0x2f>;
46         };
47
48         gpio-leds {
49                 compatible = "gpio-leds";
50                 diag {
51                         label = "whr-g300n:red:diag";
52                         gpios = <&gpio0 7 1>;
53                 };
54                 router {
55                         label = "whr-g300n:green:router";
56                         gpios = <&gpio0 9 1>;
57                 };
58                 security {
59                         label = "whr-g300n:amber:security";
60                         gpios = <&gpio0 14 1>;
61                 };
62         };
63
64         gpio-keys-polled {
65                 compatible = "gpio-keys-polled";
66                 #address-cells = <1>;
67                 #size-cells = <0>;
68                 poll-interval = <20>;
69                 reset {
70                         label = "reset";
71                         gpios = <&gpio0 10 1>;
72                         linux,code = <0x198>;
73                 };
74                 aoss {
75                         label = "aoss";
76                         gpios = <&gpio0 0 1>;
77                         linux,code = <0x211>;
78                 };
79                 router-off {
80                         label = "router-off";
81                         gpios = <&gpio0 11 1>;
82                         linux,code = <0x102>;
83                 };
84                 router-on {
85                         label = "router-on";
86                         gpios = <&gpio0 8 1>;
87                         linux,code = <0x103>;
88                 };
89         };
90
91         wmac@10180000 {
92                 status = "okay";
93         };
94 };