ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ArcherC20i.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "TP-Link Archer C20i";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 gpio-leds {
14 compatible = "gpio-leds";
15 };
16
17 gpio-keys-polled {
18 compatible = "gpio-keys-polled";
19 #address-cells = <1>;
20 #size-cells = <0>;
21 poll-interval = <20>;
22 };
23 };
24
25 &gpio2 {
26 status = "okay";
27 };
28
29 &spi0 {
30 status = "okay";
31
32 m25p80@0 {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 linux,modalias = "m25p80", "mx25l6405d";
38 spi-max-frequency = <10000000>;
39
40 partition@0 {
41 label = "u-boot";
42 reg = <0x0 0x20000>;
43 read-only;
44 };
45
46 partition@20000 {
47 label = "firmware";
48 reg = <0x20000 0x7a0000>;
49 };
50
51 partition@7c0000 {
52 label = "config";
53 reg = <0x7c0000 0x10000>;
54 };
55
56 rom: partition@7d0000 {
57 label = "rom";
58 reg = <0x7d0000 0x10000>;
59 };
60
61 partition@7e0000 {
62 label = "romfile";
63 reg = <0x7e0000 0x10000>;
64 };
65
66 radio: partition@7f0000 {
67 label = "radio";
68 reg = <0x7f0000 0x10000>;
69 };
70 };
71 };
72
73 &pinctrl {
74 state_default: pinctrl0 {
75 gpio {
76 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
77 ralink,function = "gpio";
78 };
79 };
80 };
81
82 &ethernet {
83 pinctrl-names = "default";
84 pinctrl-0 = <&ephy_pins>;
85 mtd-mac-address = <&rom 0xf100>;
86 mediatek,portmap = "wllll";
87 };
88
89 &ehci {
90 status = "okay";
91 };
92
93 &ohci {
94 status = "okay";
95 };
96
97 &gsw {
98 mediatek,port4 = "ephy";
99 };
100
101 &wmac {
102 ralink,mtd-eeprom = <&radio 0>;
103 };
104
105 &pcie {
106 status = "okay";
107
108 pcie-bridge {
109 mt76@0,0 {
110 reg = <0x0000 0 0 0 0>;
111 device_type = "pci";
112 mediatek,mtd-eeprom = <&radio 32768>;
113 mediatek,2ghz = <0>;
114 };
115 };
116 };