ramips: fix pci/pcie related 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 #address-cells = <1>;
28 #size-cells = <0>;
29 poll-interval = <20>;
30
31 reset {
32 label = "reset";
33 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37 };
38
39 &spi0 {
40 status = "okay";
41
42 m25p80@0 {
43 #address-cells = <1>;
44 #size-cells = <1>;
45 compatible = "jedec,spi-nor";
46 reg = <0>;
47 spi-max-frequency = <10000000>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x0 0x30000>;
52 read-only;
53 };
54
55 partition@30000 {
56 label = "u-boot-env";
57 reg = <0x30000 0x10000>;
58 read-only;
59 };
60
61 factory: partition@40000 {
62 label = "factory";
63 reg = <0x40000 0x10000>;
64 read-only;
65 };
66
67 partition@50000 {
68 label = "firmware";
69 reg = <0x50000 0xfb0000>;
70 };
71 };
72 };
73
74 &pinctrl {
75 state_default: pinctrl0 {
76 gpio {
77 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
78 ralink,function = "gpio";
79 };
80 };
81 };
82
83 &ethernet {
84 mtd-mac-address = <&factory 0x28>;
85 };
86
87 &esw {
88 mediatek,portmap = <0x3e>;
89 };
90
91 &wmac {
92 ralink,mtd-eeprom = <&factory 0>;
93 };
94
95 &otg {
96 status = "okay";
97 };