cd62132524ecd465fa982a73b2c0080fd7612c03
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / TINY-AC.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "TINY-AC", "ralink,mt7620a-soc";
7 model = "Dovado Tiny AC";
8
9 chosen {
10 bootargs = "console=ttyS0,57600";
11 };
12
13 gpio-leds {
14 compatible = "gpio-leds";
15
16 usb {
17 label = "tiny-ac:green:usb";
18 gpios = <&gpio0 11 1>;
19 };
20
21 wifi {
22 label = "tiny-ac:orange:wifi";
23 gpios = <&gpio3 0 1>;
24 };
25
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 #address-cells = <1>;
31 #size-cells = <0>;
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 13 1>;
37 linux,code = <0x198>;
38 };
39
40 };
41
42 gpio_export {
43 compatible = "gpio-export";
44 #size-cells = <0>;
45
46 usbpower {
47 gpio-export,name = "usbpower";
48 gpio-export,output = <1>;
49 gpios = <&gpio2 5 0>;
50 };
51 };
52 };
53
54 &gpio0 {
55 status = "okay";
56 };
57
58 &gpio2 {
59 status = "okay";
60 };
61
62 &gpio3 {
63 status = "okay";
64 };
65
66 &spi0 {
67 status = "okay";
68
69 m25p80@0 {
70 #address-cells = <1>;
71 #size-cells = <1>;
72 compatible = "jedec,spi-nor";
73 reg = <0 0>;
74 linux,modalias = "m25p80", "mx25l6405d";
75 spi-max-frequency = <10000000>;
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x0 0x30000>;
80 read-only;
81 };
82
83 partition@30000 {
84 label = "u-boot-env";
85 reg = <0x30000 0x10000>;
86 read-only;
87 };
88
89 factory: partition@40000 {
90 label = "factory";
91 reg = <0x40000 0x10000>;
92 read-only;
93 };
94
95 partition@50000 {
96 label = "firmware";
97 reg = <0x50000 0x7b0000>;
98 };
99 };
100 };
101
102 &ehci {
103 status = "okay";
104 };
105
106 &ohci {
107 status = "okay";
108 };
109
110 &ethernet {
111 status = "okay";
112 pinctrl-names = "default";
113 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
114 mediatek,portmap = "llllw";
115
116 port@4 {
117 status = "okay";
118 phy-mode = "rgmii";
119 phy-handle = <&phy4>;
120 };
121
122 port@5 {
123 status = "okay";
124 phy-mode = "rgmii";
125 phy-handle = <&phy5>;
126 };
127
128 mdio-bus {
129 status = "okay";
130
131 phy4: ethernet-phy@4 {
132 reg = <4>;
133 phy-mode = "rgmii";
134 };
135
136 phy5: ethernet-phy@5 {
137 reg = <5>;
138 phy-mode = "rgmii";
139 };
140 };
141 };
142
143 &gsw {
144 mediatek,port4 = "gmac";
145 mediatek,mt7530 = <1>;
146 };
147
148 &wmac {
149 ralink,eeprom = "rt2x00pci_1_0.eeprom";
150 };
151
152 &pcie {
153 status = "okay";
154 };
155
156 &pinctrl {
157 state_default: pinctrl0 {
158 gpio {
159 ralink,group = "uartf", "nd_sd", "wled";
160 ralink,function = "gpio";
161 };
162 };
163 };