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