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