ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / ZL5900V2.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 = "zorlik,zl5900v2", "ralink,rt5350-soc";
10 model = "Zorlik ZL5900V2";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 lan {
20 label = "zl5900v2:green:lan";
21 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
22 };
23
24 led_power: power {
25 label = "zl5900v2:blue:power";
26 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
27 };
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40 };
41
42 &spi0 {
43 status = "okay";
44
45 m25p80@0 {
46 #address-cells = <1>;
47 #size-cells = <1>;
48 compatible = "jedec,spi-nor";
49 reg = <0>;
50 spi-max-frequency = <10000000>;
51
52 partition@0 {
53 label = "u-boot";
54 reg = <0x0 0x30000>;
55 read-only;
56 };
57
58 partition@30000 {
59 label = "u-boot-env";
60 reg = <0x30000 0x10000>;
61 read-only;
62 };
63
64 factory: partition@40000 {
65 label = "factory";
66 reg = <0x40000 0x10000>;
67 read-only;
68 };
69
70 partition@50000 {
71 label = "firmware";
72 reg = <0x50000 0x7b0000>;
73 };
74 };
75 };
76
77 &pinctrl {
78 state_default: pinctrl0 {
79 gpio {
80 ralink,group = "jtag", "uartf";
81 ralink,function = "gpio";
82 };
83 };
84 };
85
86 &ethernet {
87 mtd-mac-address = <&factory 0x4>;
88 };
89
90 &esw {
91 mediatek,portmap = <0>;
92 mediatek,portdisable = <0x2f>;
93 };
94
95 &wmac {
96 ralink,mtd-eeprom = <&factory 0>;
97 };