Files
eternalwrt-mt798x/target/linux/ramips/dts/mt7628an_tplink_16m.dtsi
T
Rosen PenevandJonas Jelonek 9fedddbc1e treewide: remove factory:
For the most part, factory: remains as a hold over from nvmem-layout
conversion and no longer serves any purpose.

In the case of &factory sections, reduce identation slightly by
referencing the nvmem-layout node instead.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24008
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-07-02 10:03:37 +02:00

77 lines
1.3 KiB
Devicetree

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7628an.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
/ {
chosen {
bootargs = "console=ttyS0,115200";
};
aliases {
label-mac-device = &ethernet;
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot";
reg = <0x0 0x20000>;
read-only;
};
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x20000 0xfa0000>;
};
partition@fc0000 {
label = "config";
reg = <0xfc0000 0x10000>;
read-only;
};
partition@fd0000 {
label = "factory";
reg = <0xfd0000 0x30000>;
read-only;
nvmem: nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_f100: macaddr@f100 {
compatible = "mac-base";
reg = <0xf100 0x6>;
#nvmem-cell-cells = <1>;
};
eeprom_factory_20000: eeprom@20000 {
reg = <0x20000 0x400>;
};
eeprom_factory_28000: eeprom@28000 {
reg = <0x28000 0x200>;
};
};
};
};
};
};