ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RT-N56U.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 / {
6 compatible = "RT-N56U", "ralink,rt3883-soc";
7 model = "Asus RT-N56U";
8
9 nor-flash@1c000000 {
10 compatible = "cfi-flash";
11 reg = <0x1c000000 0x800000>;
12 bank-width = <2>;
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 partition@0 {
17 reg = <0x0 0x0030000>;
18 label = "u-boot";
19 read-only;
20 };
21
22 partition@30000 {
23 reg = <0x00030000 0x00010000>;
24 label = "u-boot-env";
25 read-only;
26 };
27
28 factory: partition@40000 {
29 reg = <0x00040000 0x00010000>;
30 label = "factory";
31 read-only;
32 };
33
34 partition@50000 {
35 reg = <0x00050000 0x007b0000>;
36 label = "firmware";
37 };
38 };
39
40 rtl8367 {
41 compatible = "realtek,rtl8367";
42 gpio-sda = <&gpio0 1 0>;
43 gpio-sck = <&gpio0 2 0>;
44 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
45 };
46
47 gpio-keys-polled {
48 compatible = "gpio-keys-polled";
49 #address-cells = <1>;
50 #size-cells = <0>;
51 poll-interval = <100>;
52
53 reset {
54 label = "reset";
55 gpios = <&gpio0 13 1>;
56 linux,code = <0x198>;
57 };
58
59 wps {
60 label = "wps";
61 gpios = <&gpio1 2 1>;
62 linux,code = <0x211>;
63 };
64 };
65
66 gpio-leds {
67 compatible = "gpio-leds";
68
69 power {
70 label = "rt-n56u:blue:power";
71 gpios = <&gpio0 0 1>;
72 };
73
74 lan {
75 label = "rt-n56u:blue:lan";
76 gpios = <&gpio0 19 1>;
77 };
78
79 wan {
80 label = "rt-n56u:blue:wan";
81 gpios = <&gpio1 3 1>;
82 };
83
84 usb {
85 label = "rt-n56u:blue:usb";
86 gpios = <&gpio1 0 1>;
87 };
88 };
89 };
90
91 &gpio1 {
92 status = "okay";
93 };
94
95 &pinctrl {
96 state_default: pinctrl0 {
97 gpio {
98 ralink,group = "spi", "i2c", "jtag", "uartf";
99 ralink,function = "gpio";
100 };
101 };
102 };
103
104 &ethernet {
105 mtd-mac-address = <&factory 0x4>;
106
107 port@0 {
108 mediatek,fixed-link = <1000 1 1 1>;
109 };
110 };
111
112 &pci {
113 status = "okay";
114 pinctrl-names = "default";
115 pinctrl-0 = <&pci_pins>;
116
117 pci_pins: pci {
118 pci {
119 ralink,group = "pci";
120 ralink,function = "pci-fnc";
121 };
122 };
123
124 host-bridge {
125 pci-bridge@1 {
126 status = "okay";
127
128 wmac@0,0 {
129 compatible = "ralink,rt2880-pci", "pciclass060400", "pciclass0604";
130 reg = < 0x10000 0 0 0 0 >;
131 ralink,eeprom = "rt2x00pci_1_0.eeprom";
132 };
133 };
134 };
135 };
136
137 &wmac {
138 status = "okay";
139 ralink,2ghz = <0>;
140 ralink,mtd-eeprom = <&factory 0>;
141 };
142
143 &ehci {
144 status = "okay";
145 };
146
147 &ohci {
148 status = "okay";
149 };