ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / RUT5XX.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "teltonika,rut5xx", "ralink,rt3050-soc";
10 model = "Teltonika RUT5XX";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_status: status {
20 label = "rut5xx:green:status";
21 gpios = <&gpio0 14 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 0xfb0000>;
68 };
69 };
70 };
71
72 &pinctrl {
73 state_default: pinctrl0 {
74 gpio {
75 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
76 ralink,function = "gpio";
77 };
78 };
79 };
80
81 &ethernet {
82 mtd-mac-address = <&factory 0x28>;
83 };
84
85 &esw {
86 mediatek,portmap = <0x3e>;
87 };
88
89 &wmac {
90 ralink,mtd-eeprom = <&factory 0>;
91 };
92
93 &otg {
94 status = "okay";
95 };