ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / X8.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 = "poray,x8", "ralink,rt5350-soc";
10 model = "Poray X8";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_power: power {
20 label = "x8:green:power";
21 gpios = <&gpio0 13 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 &spi0 {
38 status = "okay";
39
40 m25p80@0 {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <10000000>;
46
47 partition@0 {
48 label = "u-boot";
49 reg = <0x0 0x30000>;
50 read-only;
51 };
52
53 partition@30000 {
54 label = "u-boot-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 0x7b0000>;
68 };
69 };
70 };
71
72 &pinctrl {
73 state_default: pinctrl0 {
74 gpio {
75 ralink,group = "i2c", "jtag", "uartf";
76 ralink,function = "gpio";
77 };
78 };
79 };
80
81 &ethernet {
82 mtd-mac-address = <&factory 0x4>;
83 };
84
85 &esw {
86 mediatek,portmap = <0x2f>;
87 mediatek,led_polarity = <1>;
88 };
89
90 &wmac {
91 ralink,mtd-eeprom = <&factory 0>;
92 ralink,led-polarity = <1>;
93 };
94
95 &ehci {
96 status = "okay";
97 };
98
99 &ohci {
100 status = "okay";
101 };