ramips: dts: rt3050: reset FE and ESW cores together
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_vocore_vocore2.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4
5 / {
6 compatible = "vocore,vocore2", "mediatek,mt7628an-soc";
7
8 aliases {
9 label-mac-device = &wmac;
10 };
11
12 chosen {
13 bootargs = "console=ttyS2,115200";
14 };
15 };
16
17 &spi0 {
18 status = "okay";
19
20 flash@0 {
21 compatible = "jedec,spi-nor";
22 reg = <0>;
23 spi-max-frequency = <10000000>;
24
25 partitions {
26 compatible = "fixed-partitions";
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x30000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "u-boot-env";
38 reg = <0x30000 0x10000>;
39 read-only;
40 };
41
42 factory: partition@40000 {
43 label = "factory";
44 reg = <0x40000 0x10000>;
45 read-only;
46
47 nvmem-layout {
48 compatible = "fixed-layout";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 eeprom_factory_0: eeprom@0 {
53 reg = <0x0 0x400>;
54 };
55
56 macaddr_factory_28: macaddr@28 {
57 reg = <0x28 0x6>;
58 };
59 };
60 };
61
62 firmware: partition@50000 {
63 compatible = "denx,uimage";
64 label = "firmware";
65 /* reg property is set based on flash size in DTS files */
66 };
67 };
68 };
69 };
70
71 &state_default {
72 gpio {
73 groups = "wled_an", "refclk", "wdt";
74 function = "gpio";
75 };
76 };
77
78 &wmac {
79 status = "okay";
80
81 nvmem-cells = <&eeprom_factory_0>;
82 nvmem-cell-names = "eeprom";
83 };
84
85 &ethernet {
86 nvmem-cells = <&macaddr_factory_28>;
87 nvmem-cell-names = "mac-address";
88 };
89
90 &esw {
91 mediatek,portmap = <0x7>;
92 mediatek,portdisable = <0x3a>;
93 };
94
95 &i2s {
96 status = "okay";
97 };
98
99 &gdma {
100 status = "okay";
101 };
102
103 &pwm {
104 status = "okay";
105 };
106
107 &uart1 {
108 status = "okay";
109 };
110
111 &uart2 {
112 status = "okay";
113 };