b3c62eb488377714ae2804c916e3d575b9776249
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7628an_tplink_8m.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
5
6 / {
7 chosen {
8 bootargs = "console=ttyS0,115200";
9 };
10
11 aliases {
12 label-mac-device = &ethernet;
13 };
14 };
15
16 &spi0 {
17 status = "okay";
18
19 flash@0 {
20 compatible = "jedec,spi-nor";
21 reg = <0>;
22 spi-max-frequency = <10000000>;
23
24 partitions {
25 compatible = "fixed-partitions";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 partition@0 {
30 label = "boot";
31 reg = <0x0 0x20000>;
32 read-only;
33 };
34
35 partition@20000 {
36 compatible = "tplink,firmware";
37 label = "firmware";
38 reg = <0x20000 0x7a0000>;
39 };
40
41 partition@7c0000 {
42 label = "config";
43 reg = <0x7c0000 0x10000>;
44 read-only;
45 };
46
47 factory: partition@7d0000 {
48 compatible = "nvmem-cells";
49 label = "factory";
50 reg = <0x7d0000 0x30000>;
51 #address-cells = <1>;
52 #size-cells = <1>;
53 read-only;
54
55 macaddr_factory_f100: macaddr@f100 {
56 reg = <0xf100 0x6>;
57 };
58
59 eeprom_factory_20000: eeprom@20000 {
60 reg = <0x20000 0x400>;
61 };
62
63 eeprom_factory_28000: eeprom@28000 {
64 reg = <0x28000 0x200>;
65 };
66 };
67 };
68 };
69 };
70
71 &wmac {
72 status = "okay";
73
74 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100>;
75 nvmem-cell-names = "eeprom", "mac-address";
76 };
77
78 &ethernet {
79 nvmem-cells = <&macaddr_factory_f100>;
80 nvmem-cell-names = "mac-address";
81 };