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