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