openwrt-6.x/target/linux/econet/dts/en751221_smartfiber_xp8421-b.dts
Caleb James DeLisle dac466452b econet: standardize partitions in DTS files
In preparation for the introduction of ethernet, this patch normalizes the
partitions in the devices in DT so that the partition to upgrade will
always be called tclinux, no matter what it is called from the factory.
Also fix a math error in Nokia G240G-E partition table and remove leading
zeros from paritition offsets.

Finally, add NVMEM mac-address entries where they are left by the
factory. In preparation for the introduction of Ethernet and Wifi
support.

Signed-off-by: Caleb James DeLisle <cjd@cjdns.fr>
Link: https://github.com/openwrt/openwrt/pull/20685
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-12-04 22:58:00 +01:00

107 lines
1.8 KiB
Plaintext

// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/dts-v1/;
#include "en751221.dtsi"
/ {
model = "SmartFiber XP8421-B";
compatible = "smartfiber,xp8421-b", "econet,en751221";
memory@0 {
device_type = "memory";
reg = <0x00000000 0x1c000000>;
};
chosen {
stdout-path = "/serial@1fbf0000:115200";
linux,usable-memory-range = <0x00020000 0x1bfe0000>;
};
};
&nand {
status = "okay";
econet,bmt;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x0 0x40000>;
read-only;
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
macaddr_bootloader_ff48: macaddr@ff48 {
compatible = "mac-base";
reg = <0xff48 0x6>;
#nvmem-cell-cells = <1>;
};
};
};
partition@40000 {
label = "romfile";
reg = <0x40000 0x40000>;
};
partition@80000 {
label = "tclinux";
reg = <0x80000 0x1400000>;
econet,enable-remap;
};
partition@480000 {
label = "rootfs";
reg = <0x480000 0xf80000>;
linux,rootfs;
};
partition@1480000 {
label = "tclinux_alt";
reg = <0x1480000 0x1400000>;
};
partition@2880000 {
label = "openjdk";
reg = <0x2880000 0x2000000>;
};
partition@4880000 {
label = "ubifs";
reg = <0x4880000 0x9100000>;
};
partition@d980000 {
label = "unknown";
reg = <0xd980000 0x4c0000>;
};
partition@de40000 {
label = "reservearea";
reg = <0xde40000 0x1c0000>;
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
eeprom_reserve_140000: eeprom@140000 {
/* MT7592 */
reg = <0x140000 0x200>;
};
eeprom_reserve_180040: eeprom@180040 {
/* MT7612E */
reg = <0x180040 0x600>;
};
};
};
};
};