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