ramips: soc wmac eeprom cleanup
[openwrt.git] / target / linux / ramips / dts / OMNI-EMB-HPM.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6         compatible = "OMNI-EMB-HPM", "ralink,rt3883-soc";
7         model = "Omnima EMB HPM";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         palmbus@10000000 {
14                 spi@b00 {
15                         status = "okay";
16
17                         m25p80@0 {
18                                 compatible = "macronix,mx25l12805d";
19                                 spi-max-frequency = <25000000>;
20                                 reg = <0>;
21
22                                 #address-cells = <1>;
23                                 #size-cells = <1>;
24
25                                 partition@0 {
26                                         reg = <0x0 0x0030000>;
27                                         label = "u-boot";
28                                         read-only;
29                                 };
30
31                                 partition@30000 {
32                                         reg = <0x00030000 0x00010000>;
33                                         label = "config";
34                                         read-only;
35                                 };
36
37                                 factory: partition@40000 {
38                                         reg = <0x00040000 0x00010000>;
39                                         label = "factory";
40                                         read-only;
41                                 };
42
43                                 partition@50000 {
44                                         reg = <0x00050000 0x00fb0000>;
45                                         label = "firmware";
46                                 };
47                         };
48                 };
49         };
50
51         pinctrl {
52                 state_default: pinctrl0 {
53                         gpio {
54                                 ralink,group = "i2c", "jtag", "uartf";
55                                 ralink,function = "gpio";
56                         };
57                 };
58         };
59
60         ethernet@10100000 {
61                 phy-handle = <&phy0>;
62                 phy-mode = "rgmii";
63                 mtd-mac-address = <&factory 0x28>;
64
65                 mdio-bus {
66                         status = "okay";
67
68                         phy0: ethernet-phy@4 {
69                                 reg = <4>;
70                         };
71                 };
72         };
73
74         wmac@10180000 {
75                 ralink,mtd-eeprom = <&factory 0>;
76         };
77
78         ehci@101c0000 {
79                 status = "okay";
80         };
81
82         ohci@101c1000 {
83                 status = "okay";
84         };
85
86         gpio-keys-polled {
87                 compatible = "gpio-keys-polled";
88                 #address-cells = <1>;
89                 #size-cells = <0>;
90                 poll-interval = <100>;
91                 reset {
92                         label = "reset";
93                         gpios = <&gpio0 14 0>;
94                         linux,code = <0x198>;
95                 };
96         };
97
98         gpio-leds {
99                 compatible = "gpio-leds";
100
101                 power {
102                         label = "emb:orange:power";
103                         gpios = <&gpio0 7 1>;
104                 };
105                 status {
106                         label = "emb:green:status";
107                         gpios = <&gpio0 21 1>;
108                 };
109                 eth {
110                         label = "emb:green:eth";
111                         gpios = <&gpio0 20 1>;
112                 };
113                 eth2 {
114                         label = "emb:red:eth";
115                         gpios = <&gpio0 18 1>;
116                 };
117                 wifi {
118                         label = "emb:green:wifi";
119                         gpios = <&gpio0 17 1>;
120                 };
121                 wifi2 {
122                         label = "emb:red:wifi";
123                         gpios = <&gpio0 19 1>;
124                 };
125         };
126
127         gpio_export {
128                 compatible = "gpio-export";
129                 #size-cells = <0>;
130                 /* gpio 12 and 13 handle the OC input */
131                 usb0 {
132                         gpio-export,name = "usb0";
133                         gpio-export,output = <1>;
134                         gpios = <&gpio0 2 0>;
135                 };
136                 usb1 {
137                         gpio-export,name = "usb1";
138                         gpio-export,output = <1>;
139                         gpios = <&gpio0 1 0>;
140                 };
141         };
142 };