ramips: move dts-v1 statement to top-level DTSI files
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_8m-split-uboot.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 aliases {
14 label-mac-device = &ethernet;
15 };
16 };
17
18 &spi0 {
19 status = "okay";
20
21 flash@0 {
22 compatible = "jedec,spi-nor";
23 reg = <0>;
24 spi-max-frequency = <10000000>;
25
26 partitions {
27 compatible = "fixed-partitions";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "factory-uboot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 partition@30000 {
38 label = "boot";
39 reg = <0x30000 0x20000>;
40 read-only;
41 };
42
43 partition@50000 {
44 compatible = "tplink,firmware";
45 label = "firmware";
46 reg = <0x50000 0x770000>;
47 };
48
49 partition@7c0000 {
50 label = "config";
51 reg = <0x7c0000 0x10000>;
52 read-only;
53 };
54
55 rom: partition@7d0000 {
56 label = "rom";
57 reg = <0x7d0000 0x10000>;
58 read-only;
59 };
60
61 partition@7e0000 {
62 label = "romfile";
63 reg = <0x7e0000 0x10000>;
64 };
65
66 radio: partition@7f0000 {
67 label = "radio";
68 reg = <0x7f0000 0x10000>;
69 read-only;
70 };
71 };
72 };
73 };
74
75 &ehci {
76 status = "disabled";
77 };
78
79 &ohci {
80 status = "disabled";
81 };
82
83 &wmac {
84 status = "okay";
85 mtd-mac-address = <&rom 0xf100>;
86 mediatek,mtd-eeprom = <&radio 0x0>;
87 };
88
89 &ethernet {
90 mtd-mac-address = <&rom 0xf100>;
91 };
92
93 &esw {
94 mediatek,portmap = <0x3e>;
95 };