// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "qca956x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-#include "qca956x.dtsi"
-
/ {
model = "ROSINSON WR818";
compatible = "rosinson,wr818", "qca,qca9563";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &led_system;
led-failsafe = &led_system;
compatible = "gpio-leds";
led_system: system {
- label = "wr818:red:system";
+ label = "red:system";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
wifi_2g {
- label = "wr818:red:wifi2g";
+ label = "red:wifi2g";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
};
-&uart {
- status = "okay";
-};
-
-&gpio {
- status = "okay";
-};
-
&spi {
status = "okay";
- num-cs = <1>;
-
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
label = "factory";
reg = <0x050000 0x010000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+ };
};
partition@60000 {
&mdio0 {
status = "okay";
- phy-mask = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "sgmii";
ð0 {
status = "okay";
- mtd-mac-address = <&info 0x0>;
+ nvmem-cells = <&macaddr_info_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy0>;
};
};
&usb0 {
- #address-cells = <1>;
- #size-cells = <0>;
status = "okay";
-
- port@1 {
- reg = <1>;
- #trigger-source-cells = <0>;
- };
};
&usb_phy1 {
};
&usb1 {
- #address-cells = <1>;
- #size-cells = <0>;
status = "okay";
-
- port@2 {
- reg = <2>;
- #trigger-source-cells = <0>;
- };
};