ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / TINY-AC.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 = "dovado,tiny-ac", "ralink,mt7620a-soc";
10 model = "Dovado Tiny AC";
11
12 chosen {
13 bootargs = "console=ttyS0,57600";
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 usb {
20 label = "tiny-ac:green:usb";
21 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
22 };
23
24 wifi {
25 label = "tiny-ac:orange:wifi";
26 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
27 };
28
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 poll-interval = <20>;
34
35 reset {
36 label = "reset";
37 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 };
40
41 };
42
43 gpio_export {
44 compatible = "gpio-export";
45 #size-cells = <0>;
46
47 usbpower {
48 gpio-export,name = "usbpower";
49 gpio-export,output = <1>;
50 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
51 };
52 };
53 };
54
55 &gpio0 {
56 status = "okay";
57 };
58
59 &gpio2 {
60 status = "okay";
61 };
62
63 &gpio3 {
64 status = "okay";
65 };
66
67 &spi0 {
68 status = "okay";
69
70 m25p80@0 {
71 #address-cells = <1>;
72 #size-cells = <1>;
73 compatible = "jedec,spi-nor";
74 reg = <0>;
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 &pcie {
149 status = "okay";
150 };
151
152 &pinctrl {
153 state_default: pinctrl0 {
154 gpio {
155 ralink,group = "uartf", "nd_sd", "wled";
156 ralink,function = "gpio";
157 };
158 };
159 };