ramips: mt76x8: add support for TP-Link RE365 v1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_microduino_microwrt.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "microduino,microwrt", "ralink,mt7620a-soc";
8 model = "Microduino MicroWRT";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29 };
30
31 &spi0 {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <10000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "u-boot";
46 reg = <0x0 0x20000>;
47 read-only;
48 };
49
50 partition@20000 {
51 label = "u-boot-env";
52 reg = <0x20000 0x10000>;
53 read-only;
54 };
55
56 factory: partition@30000 {
57 label = "factory";
58 reg = <0x30000 0x10000>;
59 read-only;
60
61 nvmem-layout {
62 compatible = "fixed-layout";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 eeprom_factory_0: eeprom@0 {
67 reg = <0x0 0x200>;
68 };
69
70 macaddr_factory_4: macaddr@4 {
71 reg = <0x4 0x6>;
72 };
73 };
74 };
75
76 partition@40000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x40000 0xfc0000>;
80 };
81 };
82 };
83 };
84
85 &ehci {
86 status = "okay";
87 };
88
89 &ohci {
90 status = "okay";
91 };
92
93 &ethernet {
94 pinctrl-names = "default";
95 pinctrl-0 = <&ephy_pins>;
96
97 nvmem-cells = <&macaddr_factory_4>;
98 nvmem-cell-names = "mac-address";
99
100 mediatek,portmap = "llllw";
101 };
102
103 &wmac {
104 nvmem-cells = <&eeprom_factory_0>;
105 nvmem-cell-names = "eeprom";
106 };
107
108 &state_default {
109 default {
110 groups = "wled", "i2c", "wdt", "uartf";
111 function = "gpio";
112 };
113 };