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