// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "ar9331.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-#include "ar9331.dtsi"
-
/ {
model = "Pisen TS-D084";
compatible = "pisen,ts-d084", "qca,ar9331";
aliases {
- serial0 = &uart;
led-boot = &led_system;
led-failsafe = &led_system;
led-running = &led_system;
led-upgrade = &led_system;
+ label-mac-device = &wmac;
};
keys {
compatible = "gpio-leds";
led_system: system {
- label = "ts-d084:blue:system";
+ label = "blue:system";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};
reg = <0x0 0x20000>;
label = "u-boot";
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+ };
};
firmware: partition@20000 {
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
compatible = "syscon", "simple-mfd";
};
-&gpio {
- status = "okay";
-};
-
-&uart {
- status = "okay";
-};
-
&usb {
dr_mode = "host";
status = "okay";
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};