ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WITI.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7 model = "MQmaker WiTi";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x10000000>;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 palmbus: palmbus@1E000000 {
19 i2c@900 {
20 compatible = "ralink,i2c-mt7621";
21 reg = <0x900 0x100>;
22 #address-cells = <1>;
23 #size-cells = <0>;
24 pinctrl-names = "default";
25 pinctrl-0 = <&i2c_pins>;
26 status = "okay";
27
28 pcf8563: rtc@51 {
29 status = "okay";
30 compatible = "nxp,pcf8563";
31 reg = <0x51>;
32 };
33 };
34 };
35
36 gpio-keys-polled {
37 compatible = "gpio-keys-polled";
38 #address-cells = <1>;
39 #size-cells = <0>;
40 poll-interval = <20>;
41
42 reset {
43 label = "reset";
44 gpios = <&gpio0 18 1>;
45 linux,code = <0x198>;
46 };
47 };
48 };
49
50
51 &sdhci {
52 status = "okay";
53 };
54
55 &xhci {
56 status = "okay";
57 };
58
59 &spi0 {
60 status = "okay";
61
62 m25p80@0 {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 linux,modalias = "m25p80";
68 spi-max-frequency = <10000000>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x0 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 };
86
87 partition@50000 {
88 label = "firmware";
89 reg = <0x50000 0xfb0000>;
90 };
91 };
92 };
93
94 &pcie {
95 status = "okay";
96
97 pcie0 {
98 mt76@0,0 {
99 reg = <0x0000 0 0 0 0>;
100 device_type = "pci";
101 mediatek,mtd-eeprom = <&factory 0x8000>;
102 mediatek,2ghz = <0>;
103 mtd-mac-address = <&factory 0xe000>;
104 };
105 };
106
107 pcie1 {
108 mt76@1,0 {
109 reg = <0x0000 0 0 0 0>;
110 device_type = "pci";
111 mediatek,mtd-eeprom = <&factory 0x0000>;
112 mediatek,5ghz = <0>;
113 mtd-mac-address = <&factory 0xe000>;
114 };
115 };
116 };
117
118 &ethernet {
119 mtd-mac-address = <&factory 0xe000>;
120 };
121
122 &pinctrl {
123 state_default: pinctrl0 {
124 gpio {
125 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
126 ralink,function = "gpio";
127 };
128 };
129 };