ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WZR-AGL300NH.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 / {
6 #address-cells = <1>;
7 #size-cells = <1>;
8 compatible = "WZR-AGL300NH", "ralink,rt2880-soc";
9 model = "Buffalo WZR-AGL300NH";
10
11 pci@440000 {
12 compatible = "ralink,rt288x-pci";
13 reg = <0x00440000 0x20000>;
14 #address-cells = <1>;
15 #size-cells = <1>;
16 status = "ok";
17 };
18
19 cfi@1f000000 {
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
22 bank-width = <2>;
23 device-width = <2>;
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 label = "uboot";
29 reg = <0x0 0x30000>;
30 read-only;
31 };
32
33 partition@30000 {
34 label = "uboot-env";
35 reg = <0x30000 0x10000>;
36 read-only;
37 };
38
39 factory: partition@40000 {
40 label = "factory";
41 reg = <0x40000 0x10000>;
42 read-only;
43 };
44
45 partition@50000 {
46 label = "firmware";
47 reg = <0x50000 0x3b0000>;
48 };
49 };
50
51 rtl8366s {
52 compatible = "realtek,rtl8366s";
53 gpio-sda = <&gpio0 1 0>;
54 gpio-sck = <&gpio0 2 0>;
55 };
56
57 gpio-keys-polled {
58 compatible = "gpio-keys-polled";
59 #address-cells = <1>;
60 #size-cells = <0>;
61 poll-interval = <100>;
62
63 wps {
64 label = "wps";
65 gpios = <&gpio0 0 1>;
66 linux,code = <0x211>;
67 };
68
69 router {
70 label = "router_switch";
71 gpios = <&gpio0 7 0>;
72 linux,code = <0x100>;
73 };
74
75 reset {
76 label = "reset";
77 gpios = <&gpio0 9 1>;
78 linux,code = <0x198>;
79 };
80 };
81
82 gpio-leds {
83 compatible = "gpio-leds";
84
85 router {
86 label = "wzr-agl300nh:green:router";
87 gpios = <&gpio0 8 1>;
88 };
89
90 diag {
91 label = "wzr-agl300nh:red:diag";
92 gpios = <&gpio0 12 1>;
93 };
94
95 security_g {
96 label = "wzr-agl300nh:orange:security_g";
97 gpios = <&gpio0 11 1>;
98 };
99
100 security_n {
101 label = "wzr-agl300nh:orange:security_n";
102 gpios = <&gpio0 13 1>;
103 };
104 };
105 };
106
107 &gpio0 {
108 status = "okay";
109 };
110
111 &pinctrl {
112 state_default: pinctrl0 {
113 gpio {
114 ralink,group = "i2c", "uartlite", "mdio";
115 ralink,function = "gpio";
116 };
117 };
118 };
119
120 &ethernet {
121 status = "okay";
122 mtd-mac-address = <&factory 0x4>;
123
124 port@0 {
125 mediatek,fixed-link = <1000 1 1 1>;
126 };
127
128 mdio-bus {
129 status = "okay";
130
131 phy0: ethernet-phy@0 {
132 phy-mode = "mii";
133 reg = <0>;
134 };
135 };
136 };
137
138 &wmac {
139 ralink,mtd-eeprom = <&factory 0>;
140 };