ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / AR725W.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 / {
6 compatible = "AR725W", "ralink,rt2880-soc";
7 model = "Airlink101 AR725W";
8
9 cfi@bdc00000 {
10 compatible = "cfi-flash";
11 reg = <0xbc400000 0x800000>;
12 bank-width = <2>;
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 u-boot@0 {
17 reg = <0x0 0x30000>;
18 label = "u-boot";
19 read-only;
20 };
21
22 u-boot-env@30000 {
23 reg = <0x30000 0x10000>;
24 label = "u-boot-env";
25 };
26
27 factory: factory@40000 {
28 reg = <0x40000 0x10000>;
29 label = "factory";
30 read-only;
31 };
32
33 firmware@50000 {
34 reg = <0x50000 0x3B0000>;
35 label = "firmware";
36 };
37 };
38
39 gpio-leds {
40 compatible = "gpio-leds";
41
42 status {
43 label = "ar725w:green:power";
44 gpios = <&gpio0 7 0>;
45 };
46
47 wpsred {
48 label = "ar725w:red:wps";
49 gpios = <&gpio0 8 1>;
50 };
51
52 wpsblue {
53 label = "ar725w:blue:wps";
54 gpios = <&gpio0 13 1>;
55 };
56 };
57
58 gpio-keys-polled {
59 compatible = "gpio-keys-polled";
60 #address-cells = <1>;
61 #size-cells = <0>;
62 poll-interval = <100>;
63
64 wps {
65 label = "wps";
66 gpios = <&gpio0 0 1>;
67 linux,code = <0x211>;
68 };
69
70 reset {
71 label = "reset";
72 gpios = <&gpio0 9 1>;
73 linux,code = <0x198>;
74 };
75 };
76 };
77
78 &gpio0 {
79 status = "okay";
80 };
81
82 &pinctrl {
83 state_default: pinctrl0 {
84 gpio {
85 ralink,group = "i2c", "spi", "uartlite";
86 ralink,function = "gpio";
87 };
88 };
89 };
90
91 &ethernet {
92 status = "okay";
93 mtd-mac-address = <&factory 0x4>;
94
95 port@0 {
96 phy-handle = <&phy0>;
97 phy-mode = "mii";
98 };
99
100 mdio-bus {
101 status = "okay";
102
103 phy0: ethernet-phy@0 {
104 phy-mode = "mii";
105 reg = <0>;
106 };
107 };
108 };
109
110 &wmac {
111 status = "okay";
112 ralink,mtd-eeprom = <&factory 0>;
113 };