bbd66e113cc1e4e99efea787c7d6ef826b860a34
[openwrt/staging/mkresin.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 &wmac {
76 status = "okay";
77 nvmem-cells = <&macaddr_rom_f100>;
78 nvmem-cell-names = "mac-address";
79 mediatek,mtd-eeprom = <&radio 0x0>;
80 };
81
82 &ethernet {
83 nvmem-cells = <&macaddr_rom_f100>;
84 nvmem-cell-names = "mac-address";
85 };
86
87 &esw {
88 mediatek,portmap = <0x3e>;
89 };
90
91 &rom {
92 compatible = "nvmem-cells";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 macaddr_rom_f100: macaddr@f100 {
97 reg = <0xf100 0x6>;
98 };
99 };