ramips: add support for TP-Link RE200 v1
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620n_wrtnode_wrtnode.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6
7 / {
8         compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
9         model = "WRTNODE";
10
11         aliases {
12                 led-boot = &led_indicator;
13                 led-failsafe = &led_indicator;
14                 led-running = &led_indicator;
15                 led-upgrade = &led_indicator;
16         };
17
18         leds {
19                 compatible = "gpio-leds";
20
21                 led_indicator: indicator {
22                         label = "wrtnode:blue:indicator";
23                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
24                 };
25         };
26 };
27
28 &gpio1 {
29         status = "okay";
30 };
31
32 &gpio2 {
33         status = "okay";
34 };
35
36 &gpio3 {
37         status = "okay";
38 };
39
40 &spi0 {
41         status = "okay";
42
43         m25p80@0 {
44                 compatible = "jedec,spi-nor";
45                 reg = <0>;
46                 spi-max-frequency = <10000000>;
47
48                 partitions {
49                         compatible = "fixed-partitions";
50                         #address-cells = <1>;
51                         #size-cells = <1>;
52
53                         partition@0 {
54                                 label = "u-boot";
55                                 reg = <0x0 0x30000>;
56                                 read-only;
57                         };
58
59                         partition@30000 {
60                                 label = "u-boot-env";
61                                 reg = <0x30000 0x10000>;
62                                 read-only;
63                         };
64
65                         factory: partition@40000 {
66                                 label = "factory";
67                                 reg = <0x40000 0x10000>;
68                                 read-only;
69                         };
70
71                         partition@50000 {
72                                 compatible = "denx,uimage";
73                                 label = "firmware";
74                                 reg = <0x50000 0xfb0000>;
75                         };
76                 };
77         };
78 };
79
80 &ehci {
81         status = "okay";
82 };
83
84 &ohci {
85         status = "okay";
86 };
87
88 &ethernet {
89         mtd-mac-address = <&factory 0x4>;
90         mediatek,portmap = "wllll";
91 };
92
93 &wmac {
94         ralink,mtd-eeprom = <&factory 0>;
95 };
96
97 &state_default {
98         default {
99                 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
100                 ralink,function = "gpio";
101         };
102 };