// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "qca955x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-
-#include "qca9557.dtsi"
+#include <dt-bindings/leds/common.h>
/ {
compatible = "buffalo,bhr-4grv2", "qca,qca9557";
led-upgrade = &led_power;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds {
compatible = "gpio-leds";
led_power: power {
- label = "bhr-4grv2:green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "on";
};
diag {
- label = "bhr-4grv2:orange:diag";
+ label = "orange:diag";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
vpn_orange {
- label = "bhr-4grv2:orange:vpn";
+ label = "orange:vpn";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
vpn_green {
- label = "bhr-4grv2:green:vpn";
+ label = "green:vpn";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
};
&spi {
status = "okay";
- num-cs = <1>;
-
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
label = "art";
reg = <0xff0000 0x010000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_art_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+ };
};
};
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
pll-data = <0x56000000 0x00000101 0x00001616>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x03000101 0x00000101 0x00001616>;
fixed-link {
full-duplex;
};
};
-
-&uart {
- status = "okay";
-};