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