200b310ee63e5aced4b3d9e81bc58e1e6be45ad8
[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         palmbus@10000000 {
14                 sysc@0 {
15                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
16                         ralink,uartmux = "gpio";
17                         ralink,wdtmux = <1>;
18                 };
19
20                 gpio0: gpio@600 {
21                         status = "okay";
22                 };
23         };
24
25         cfi@1f000000 {
26                 compatible = "cfi-flash";
27                 reg = <0x1f000000 0x800000>;
28
29                 bank-width = <2>;
30                 device-width = <2>;
31                 #address-cells = <1>;
32                 #size-cells = <1>;
33         };
34
35         ethernet@10100000 {
36                 status = "okay";
37         };
38
39         esw@10110000 {
40                 status = "okay";
41                 ralink,portmap = <0x2f>;
42         };
43
44         gpio-leds {
45                 compatible = "gpio-leds";
46                 diag {
47                         label = "whr-g300n:red:diag";
48                         gpios = <&gpio0 7 1>;
49                 };
50                 router {
51                         label = "whr-g300n:green:router";
52                         gpios = <&gpio0 9 1>;
53                 };
54                 security {
55                         label = "whr-g300n:amber:security";
56                         gpios = <&gpio0 14 1>;
57                 };
58         };
59
60         gpio-keys-polled {
61                 compatible = "gpio-keys-polled";
62                 #address-cells = <1>;
63                 #size-cells = <0>;
64                 poll-interval = <20>;
65                 reset {
66                         label = "reset";
67                         gpios = <&gpio0 10 1>;
68                         linux,code = <0x198>;
69                 };
70                 aoss {
71                         label = "aoss";
72                         gpios = <&gpio0 0 1>;
73                         linux,code = <0x211>;
74                 };
75                 router-off {
76                         label = "router-off";
77                         gpios = <&gpio0 11 1>;
78                         linux,code = <0x102>;
79                 };
80                 router-on {
81                         label = "router-on";
82                         gpios = <&gpio0 8 1>;
83                         linux,code = <0x103>;
84                 };
85         };
86
87         wmac@10180000 {
88                 status = "okay";
89         };
90 };