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