-/dts-v1/;
-
#include "rt3883.dtsi"
#include <dt-bindings/gpio/gpio.h>
compatible = "gpio-leds";
power {
- label = "hpm:orange:power";
+ label = "orange:power";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_status: status {
- label = "hpm:green:status";
+ label = "green:status";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
default-state = "on";
};
eth {
- label = "hpm:green:eth";
+ label = "green:eth";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
};
eth2 {
- label = "hpm:red:eth";
+ label = "red:eth";
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
};
wifi {
- label = "hpm:green:wifi";
+ label = "green:wifi";
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
};
wifi2 {
- label = "hpm:red:wifi";
+ label = "red:wifi";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
};
&spi0 {
status = "okay";
- m25p80@0 {
+ flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <25000000>;
reg = <0>;
ðernet {
phy-handle = <&phy0>;
phy-mode = "rgmii";
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mdio-bus {
status = "okay";
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};