ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / ATP-52B.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 = "argus,atp-52b", "ralink,rt3052-soc";
10 model = "Argus ATP-52B";
11
12 aliases {
13 led-status = &led_run;
14 };
15
16 cfi@1f000000 {
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
19 bank-width = <2>;
20 device-width = <2>;
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 partition@0 {
25 label = "bootloader";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29
30 partition@30000 {
31 label = "config";
32 reg = <0x30000 0x10000>;
33 };
34
35 factory: partition@40000 {
36 label = "factory";
37 reg = <0x40000 0x10000>;
38 };
39
40 partition@50000 {
41 label = "firmware";
42 reg = <0x50000 0x7a0000>;
43 };
44 };
45
46 gpio-leds {
47 compatible = "gpio-leds";
48
49 led_run: run {
50 label = "atp-52b:green:run";
51 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
52 };
53
54 net {
55 label = "atp-52b:amber:net";
56 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
57 };
58 };
59
60 gpio-keys-polled {
61 compatible = "gpio-keys-polled";
62 poll-interval = <20>;
63
64 wps {
65 label = "wps";
66 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_WPS_BUTTON>;
68 };
69
70 reset {
71 label = "reset";
72 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
74 };
75 };
76 };
77
78 &pinctrl {
79 state_default: pinctrl0 {
80 gpio {
81 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
82 ralink,function = "gpio";
83 };
84 };
85 };
86
87
88 &ethernet {
89 mtd-mac-address = <&factory 0x4>;
90 };
91
92 &esw {
93 mediatek,portmap = <0x3e>;
94 };
95
96 &wmac {
97 ralink,mtd-eeprom = <&factory 0>;
98 };
99
100 &otg {
101 status = "okay";
102 };