ramips: add support for TP-Link RE200 v1
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_wrtnode_wrtnode2.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7         compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         keys {
14                 compatible = "gpio-keys";
15
16                 reset {
17                         label = "reset";
18                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
19                         linux,code = <KEY_RESTART>;
20                 };
21         };
22 };
23
24 &spi0 {
25         status = "okay";
26
27         m25p80@0 {
28                 compatible = "jedec,spi-nor";
29                 reg = <0>;
30                 spi-max-frequency = <10000000>;
31
32                 partitions {
33                         compatible = "fixed-partitions";
34                         #address-cells = <1>;
35                         #size-cells = <1>;
36
37                         partition@0 {
38                                 label = "u-boot";
39                                 reg = <0x0 0x30000>;
40                                 read-only;
41                         };
42
43                         partition@30000 {
44                                 label = "u-boot-env";
45                                 reg = <0x30000 0x10000>;
46                                 read-only;
47                         };
48
49                         factory: partition@40000 {
50                                 label = "factory";
51                                 reg = <0x40000 0x10000>;
52                                 read-only;
53                         };
54
55                         partition@50000 {
56                                 compatible = "denx,uimage";
57                                 label = "firmware";
58                                 reg = <0x50000 0x1fb0000>;
59                         };
60                 };
61         };
62 };
63
64 &uart1 {
65         status = "okay";
66 };
67
68 &i2c {
69         status = "okay";
70 };
71
72 &ethernet {
73         mtd-mac-address = <&factory 0x4>;
74         mediatek,portmap = "llllw";
75 };
76
77 &sdhci {
78         status = "okay";
79 };
80
81 &pcie {
82         status = "okay";
83 };
84
85 &wmac {
86         status = "okay";
87 };