ramips: soc wmac eeprom cleanup
[openwrt.git] / target / linux / ramips / dts / DIR-320-B1.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "DIR-320-B1", "ralink,rt5350-soc";
7         model = "D-Link DIR-320 B1";
8
9         palmbus@10000000 {
10                 spi@b00 {
11                         status = "okay";
12                         m25p80@0 {
13                                 #address-cells = <1>;
14                                 #size-cells = <1>;
15                                 compatible = "s25fl064k";
16                                 reg = <0 0>;
17                                 linux,modalias = "m25p80", "s25fl064k";
18                                 spi-max-frequency = <10000000>;
19
20                                 partition@0 {
21                                         label = "u-boot";
22                                         reg = <0x0 0x30000>;
23                                         read-only;
24                                 };
25
26                                 partition@30000 {
27                                         label = "u-boot-env";
28                                         reg = <0x30000 0x10000>;
29                                         read-only;
30                                 };
31
32                                 factory: partition@40000 {
33                                         label = "factory";
34                                                 reg = <0x40000 0x10000>;
35                                         read-only;
36                                 };
37
38                                 partition@50000 {
39                                         label = "firmware";
40                                         reg = <0x50000 0x7b0000>;
41                                 };
42                         };
43                 };
44         };
45
46         pinctrl {
47                 state_default: pinctrl0 {
48                         gpio {
49                                 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
50                                 ralink,function = "gpio";
51                         };
52                 };
53         };
54
55         ethernet@10100000 {
56                 mtd-mac-address = <&factory 0x4>;
57         };
58
59         esw@10110000 {
60                 ralink,portmap = <0x2f>;
61                 ralink,led_polarity = <0x17>;
62         };
63
64         wmac@10180000 {
65                 ralink,mtd-eeprom = <&factory 0>;
66         };
67
68         gpio-leds {
69                 compatible = "gpio-leds";
70                 status {
71                         label = "d-link:green:status";
72                         gpios = <&gpio0 9 1>;
73                 };
74                 usb {
75                         label = "d-link:green:usb";
76                         gpios = <&gpio0 14 1>;
77                 };
78                 wps {
79                         label = "d-link:green:wps";
80                         gpios = <&gpio0 13 1>;
81                 };
82         };
83
84         gpio-keys-polled {
85                 gpio-keys-polled {
86                 compatible = "gpio-keys-polled";
87                 #address-cells = <1>;
88                 #size-cells = <0>;
89                 poll-interval = <20>;
90                         reset {
91                                 label = "reset";
92                                 gpios = <&gpio0 10 1>;
93                                 linux,code = <0x198>;
94                         };
95                         wps {
96                                 label = "wps";
97                                 gpios = <&gpio0 0 1>;
98                                 linux,code = <0x211>;
99                         };
100                 };
101         };
102
103         ehci@101c0000 {
104                 status = "okay";
105         };
106
107         ohci@101c0000 {
108                 status = "okay";
109         };
110
111         gpio_export {
112                 compatible = "gpio-export";
113                 #size-cells = <0>;
114
115                 usb {
116                         gpio-export,name = "usb";
117                         gpio-export,output = <1>;
118                         gpios = <&gpio0 7 0>;
119                 };
120
121                 root_hub {
122                         gpio-export,name = "root_hub";
123                         gpio-export,output = <1>;
124                         gpios = <&gpio0 12 0>;
125                 };
126         };
127 };