ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / NA930.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "sercomm,na930", "ralink,mt7620a-soc";
10 model = "Sercomm NA930";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 chosen {
17 bootargs = "console=ttyS1,57600";
18 };
19
20 nand {
21 #address-cells = <1>;
22 #size-cells = <1>;
23 compatible = "mtk,mt7620-nand";
24
25 partition@0 {
26 label = "u-boot";
27 reg = <0x0 0x20000>;
28 read-only;
29 };
30
31 partition@200000 {
32 label = "factory";
33 reg = <0x200000 0x40000>;
34 read-only;
35 };
36
37 partition@240000 {
38 label = "Config";
39 reg = <0x240000 0x400000>;
40 read-only;
41 };
42
43 partition@640000 {
44 label = "firmware";
45 reg = <0x640000 0x1400000>;
46 };
47 };
48
49 gpio-keys-polled {
50 compatible = "gpio-keys-polled";
51 poll-interval = <20>;
52
53 reset {
54 label = "reset";
55 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 };
58
59 zwave {
60 label = "zwave";
61 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
62 linux,code = <BTN_0>;
63 };
64
65 wps {
66 label = "wps";
67 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_WPS_BUTTON>;
69 };
70 };
71
72 gpio-leds {
73 compatible = "gpio-leds";
74
75 zwave {
76 label = "na930:blue:zwave";
77 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
78 };
79
80 status {
81 label = "na930:blue:status";
82 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
83 };
84
85 service {
86 label = "na930:blue:service";
87 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
88 };
89
90 led_power: power {
91 label = "na930:blue:power";
92 gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
93 };
94 };
95
96 gpio_export {
97 compatible = "gpio-export";
98 #size-cells = <0>;
99
100 telit {
101 gpio-export,name = "telit";
102 gpio-export,output = <1>;
103 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
104 };
105 };
106 };
107
108 &pinctrl {
109 state_default: pinctrl0 {
110 gpio {
111 ralink,group = "i2c", "rgmii2", "spi", "ephy";
112 ralink,function = "gpio";
113 };
114
115 uartf_gpio {
116 ralink,group = "uartf";
117 ralink,function = "gpio uartf";
118 };
119 };
120 };
121
122 &uart {
123 status = "okay";
124 };
125
126 &gpio1 {
127 status = "okay";
128 };
129
130 &gpio2 {
131 status = "okay";
132 };
133
134 &ethernet {
135 status = "okay";
136 pinctrl-names = "default";
137 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
138 mediatek,portmap = "llllw";
139
140 port@4 {
141 status = "okay";
142 phy-handle = <&phy4>;
143 phy-mode = "rgmii";
144 };
145
146 port@5 {
147 status = "okay";
148 phy-handle = <&phy5>;
149 phy-mode = "rgmii";
150 };
151
152 mdio-bus {
153 status = "okay";
154
155 phy4: ethernet-phy@4 {
156 reg = <4>;
157 phy-mode = "rgmii";
158 };
159
160 phy5: ethernet-phy@5 {
161 reg = <5>;
162 phy-mode = "rgmii";
163 };
164 };
165 };
166
167 &gsw {
168 mediatek,port4 = "gmac";
169 };
170
171 &ehci {
172 status = "okay";
173 };
174
175 &ohci {
176 status = "okay";
177 };