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