ramips: Add support for Cudy WR1300 v3
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_asus_rt-n10-plus.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "asus,rt-n10-plus", "ralink,rt3050-soc";
8 model = "Asus RT-N10+";
9
10 aliases {
11 led-boot = &led_wps;
12 led-failsafe = &led_wps;
13 led-running = &led_wps;
14 led-upgrade = &led_wps;
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 = "u-boot";
30 reg = <0x0 0x30000>;
31 read-only;
32 };
33
34 partition@30000 {
35 label = "devdata";
36 reg = <0x30000 0x10000>;
37 read-only;
38 };
39
40 devconf: partition@40000 {
41 compatible = "nvmem-cells";
42 label = "devconf";
43 reg = <0x40000 0x10000>;
44 #address-cells = <1>;
45 #size-cells = <1>;
46 read-only;
47
48 eeprom_devconf_0: eeprom@0 {
49 reg = <0x0 0x200>;
50 };
51
52 macaddr_devconf_4: macaddr@4 {
53 reg = <0x4 0x6>;
54 };
55 };
56
57 partition@50000 {
58 compatible = "denx,uimage";
59 label = "firmware";
60 reg = <0x50000 0x3b0000>;
61 };
62 };
63 };
64
65 leds {
66 compatible = "gpio-leds";
67
68 led_wps: wps {
69 label = "green:wps";
70 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
71 };
72 };
73
74 keys {
75 compatible = "gpio-keys-polled";
76 poll-interval = <20>;
77
78 reset {
79 label = "reset";
80 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
82 };
83
84 wps {
85 label = "wps";
86 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_WPS_BUTTON>;
88 };
89 };
90 };
91
92 &ethernet {
93 nvmem-cells = <&macaddr_devconf_4>;
94 nvmem-cell-names = "mac-address";
95 };
96
97 &esw {
98 mediatek,portmap = <0x3e>;
99 };
100
101 &wmac {
102 nvmem-cells = <&eeprom_devconf_0>;
103 nvmem-cell-names = "eeprom";
104 };