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