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