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