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