ramips: fix usb phy initialisation
[librecmc/librecmc.git] / target / linux / ramips / dts / ZBT-APE522II.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6         compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
7         model = "ZBT-APE522II";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         gpio-leds {
14                 compatible = "gpio-leds";
15
16                 sys1 {
17                         label = "zbt-ape522ii:green:sys1";
18                         gpios = <&gpio0 11 1>;
19                 };
20
21                 sys2 {
22                         label = "zbt-ape522ii:green:sys2";
23                         gpios = <&gpio0 12 1>;
24                 };
25
26                 sys3 {
27                         label = "zbt-ape522ii:green:sys3";
28                         gpios = <&gpio0 9 1>;
29                 };
30
31                 sys4 {
32                         label = "zbt-ape522ii:green:sys4";
33                         gpios = <&gpio0 14 1>;
34                 };
35
36                 wlan2g4 {
37                         label = "zbt-ape522ii:green:wlan2g4";
38                         gpios = <&gpio3 0 1>;
39                 };
40         };
41
42         gpio-keys-polled {
43                 compatible = "gpio-keys-polled";
44                 #address-cells = <1>;
45                 #size-cells = <0>;
46                 poll-interval = <20>;
47
48                 reset {
49                         label = "reset";
50                         gpios = <&gpio0 2 0>;
51                         linux,code = <0x198>;
52                 };
53         };
54 };
55
56 &gpio0 {
57         status = "okay";
58 };
59
60 &gpio1 {
61         status = "okay";
62 };
63
64 &gpio2 {
65         status = "okay";
66 };
67
68 &gpio3 {
69         status = "okay";
70 };
71
72 &spi0 {
73         status = "okay";
74
75         m25p80@0 {
76                 #address-cells = <1>;
77                 #size-cells = <1>;
78                 compatible = "jedec,spi-nor";
79                 reg = <0>;
80                 linux,modalias = "m25p80", "w25q64";
81                 spi-max-frequency = <10000000>;
82
83                 partition@0 {
84                         label = "u-boot";
85                         reg = <0x0 0x30000>;
86                 };
87
88                 partition@30000 {
89                         label = "u-boot-env";
90                         reg = <0x30000 0x10000>;
91                         read-only;
92                 };
93
94                 factory: partition@40000 {
95                         label = "factory";
96                         reg = <0x40000 0x10000>;
97                         read-only;
98                 };
99
100                 partition@50000 {
101                         label = "firmware";
102                         reg = <0x50000 0xf80000>;
103                 };
104         };
105 };
106
107 &ethernet {
108         pinctrl-names = "default";
109         pinctrl-0 = <&ephy_pins>;
110         mtd-mac-address = <&factory 0x4>;
111         mediatek,portmap = "wllll";
112 };
113
114 &wmac {
115         ralink,mtd-eeprom = <&factory 0>;
116 };
117
118 &pcie {
119         status = "okay";
120
121         pcie-bridge {
122                 mt76@0,0 {
123                         reg = <0x0000 0 0 0 0>;
124                         device_type = "pci";
125                         mediatek,mtd-eeprom = <&factory 0x8000>;
126                         mediatek,2ghz = <0>;
127                 };
128         };
129 };
130
131 &pinctrl {
132         state_default: pinctrl0 {
133                 gpio {
134                         ralink,group = "wled", "i2c", "uartf", "wdt";
135                         ralink,function = "gpio";
136                 };
137
138                 pa {
139                         ralink,group = "pa";
140                         ralink,function = "pa";
141                 };
142         };
143 };