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