/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
led-upgrade = &led_status_rgb;
};
- chosen {
+ chosen: chosen {
stdout-path = "serial0:115200n8";
};
};
};
+&crypto {
+ status = "okay";
+};
+
ð {
status = "okay";
reg = <0>;
phy-mode = "2500base-x";
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
fixed-link {
speed = <2500>;
};
&mdio {
- switch: switch@0 {
+ switch: switch@1f {
compatible = "mediatek,mt7531";
reg = <31>;
reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
reg = <0>;
spi-max-frequency = <20000000>;
- spi-tx-buswidth = <4>;
- spi-rx-buswidth = <4>;
+ spi-tx-bus-width = <4>;
+ spi-rx-bus-width = <4>;
partitions: partitions {
compatible = "fixed-partitions";
reg = <0x180000 0x200000>;
read-only;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
+ reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
};
};
led_status_rgb: led@0 {
reg = <0>;
- label = "rgb:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RGB>;
color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
};
led_network_rgb: led@1 {
reg = <1>;
- label = "rgb:network";
+
+ /* Hardcoding here for backward compatibility */
+ function = "network";
+
+ color = <LED_COLOR_ID_RGB>;
color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
};
};
port@6 {
reg = <6>;
- label = "cpu";
ethernet = <&gmac0>;
phy-mode = "2500base-x";
};
};
-&wmac {
+&trng {
+ status = "okay";
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&watchdog {
+ status = "okay";
+};
+
+&wifi {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&wf_2g_5g_pins>;