ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.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
48 firmware: partition@50000 {
49 compatible = "denx,uimage";
50 label = "firmware";
51 /* reg property is set based on flash size in DTS files */
52 };
53 };
54 };
55 };
56
57 &state_default {
58 gpio {
59 groups = "wled_an", "refclk", "wdt";
60 function = "gpio";
61 };
62 };
63
64 &wmac {
65 status = "okay";
66
67 mediatek,mtd-eeprom = <&factory 0x0>;
68 };
69
70 &ethernet {
71 nvmem-cells = <&macaddr_factory_28>;
72 nvmem-cell-names = "mac-address";
73 };
74
75 &esw {
76 mediatek,portmap = <0x7>;
77 mediatek,portdisable = <0x3a>;
78 };
79
80 &i2s {
81 status = "okay";
82 };
83
84 &gdma {
85 status = "okay";
86 };
87
88 &pwm {
89 status = "okay";
90 };
91
92 &uart1 {
93 status = "okay";
94 };
95
96 &uart2 {
97 status = "okay";
98 };
99
100 &factory {
101 compatible = "nvmem-cells";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 macaddr_factory_28: macaddr@28 {
106 reg = <0x28 0x6>;
107 };
108 };