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