ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MZK-DP150N.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6 compatible = "MZK-DP150N", "ralink,rt5350-soc";
7 model = "Planex MZK-DP150N";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 power {
13 label = "mzk-dp150n:green:power";
14 gpios = <&gpio0 9 1>;
15 };
16 };
17
18 gpio-keys-polled {
19 compatible = "gpio-keys-polled";
20 #address-cells = <1>;
21 #size-cells = <0>;
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio0 10 1>;
27 linux,code = <0x198>;
28 };
29 };
30 };
31
32 &gpio1 {
33 status = "okay";
34 };
35
36 &spi0 {
37 status = "okay";
38
39 m25p80@0 {
40 #address-cells = <1>;
41 #size-cells = <1>;
42 compatible = "jedec,spi-nor";
43 reg = <0>;
44 linux,modalias = "m25p80", "s25fl064k";
45 spi-max-frequency = <10000000>;
46
47 partition@0 {
48 label = "uboot";
49 reg = <0x0 0x30000>;
50 read-only;
51 };
52
53 partition@30000 {
54 label = "uboot-env";
55 reg = <0x30000 0x10000>;
56 read-only;
57 };
58
59 factory: partition@40000 {
60 label = "factory";
61 reg = <0x40000 0x10000>;
62 read-only;
63 };
64
65 partition@50000 {
66 label = "firmware";
67 reg = <0x50000 0x3b0000>;
68 };
69 };
70
71 spidev@1 {
72 compatible = "linux,spidev";
73 spi-max-frequency = <10000000>;
74 reg = <1>;
75 };
76 };
77
78 &pinctrl {
79 state_default: pinctrl0 {
80 gpio {
81 ralink,group = "jtag", "uartf", "led";
82 ralink,function = "gpio";
83 };
84 };
85 };
86
87 &ethernet {
88 mtd-mac-address = <&factory 0x4>;
89 };
90
91 &esw {
92 mediatek,portmap = <0x17>;
93 };
94
95 &wmac {
96 ralink,mtd-eeprom = <&factory 0>;
97 ralink,led-polarity = <1>;
98 };