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