ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MZK-750DHP.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "Planex MZK-750DHP";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 wps {
13 label = "mzk-750dhp:green:wps";
14 gpios = <&gpio2 15 1>;
15 };
16
17 power {
18 label = "mzk-750dhp:green:power";
19 gpios = <&gpio1 15 1>;
20 };
21
22 wlan5g {
23 label = "mzk-750dhp:green:wlan5g";
24 gpios = <&gpio1 14 1>;
25 };
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 #address-cells = <1>;
31 #size-cells = <0>;
32 poll-interval = <20>;
33
34 s1 {
35 label = "reset";
36 gpios = <&gpio0 1 1>;
37 linux,code = <0x198>;
38 };
39
40 s2 {
41 label = "wps";
42 gpios = <&gpio2 19 1>;
43 linux,code = <0x211>;
44 };
45 };
46 };
47
48 &gpio1 {
49 status = "okay";
50 };
51
52 &gpio2 {
53 status = "okay";
54 };
55
56 &spi0 {
57 status = "okay";
58
59 m25p80@0 {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 linux,modalias = "m25p80", "mx25l6405d";
65 spi-max-frequency = <10000000>;
66
67 partition@0 {
68 label = "u-boot";
69 reg = <0x0 0x30000>;
70 read-only;
71 };
72
73 partition@30000 {
74 label = "u-boot-env";
75 reg = <0x30000 0x10000>;
76 read-only;
77 };
78
79 factory: partition@40000 {
80 label = "factory";
81 reg = <0x40000 0x10000>;
82 read-only;
83 };
84
85 partition@50000 {
86 label = "firmware";
87 reg = <0x50000 0x7b0000>;
88 };
89 };
90 };
91
92 &pinctrl {
93 state_default: pinctrl0 {
94 gpio {
95 ralink,group = "i2c", "spi refclk", "rgmii1", "nd_sd";
96 ralink,function = "gpio";
97 };
98 };
99 };
100
101 &ethernet {
102 pinctrl-names = "default";
103 pinctrl-0 = <&ephy_pins>;
104 mtd-mac-address = <&factory 0x4>;
105 mediatek,portmap = "llllw";
106 };
107
108 &gsw {
109 mediatek,port4 = "ephy";
110 };
111
112 &wmac {
113 ralink,mtd-eeprom = <&factory 0>;
114 };
115
116 &pcie {
117 status = "okay";
118
119 pcie-bridge {
120 mt76@0,0 {
121 reg = <0x0000 0 0 0 0>;
122 device_type = "pci";
123 mediatek,mtd-eeprom = <&factory 0x8000>;
124 mediatek,2ghz = <0>;
125 };
126 };
127 };