pinctrl-names = "default";
wlan {
- label = "cf-e313ac:green:wlan";
+ label = "green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
lan {
- label = "cf-e313ac:green:lan";
+ label = "green:lan";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
wan {
- label = "cf-e313ac:green:wan";
+ label = "green:wan";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
rssilow {
- label = "cf-e313ac:red:rssilow";
+ label = "red:rssilow";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
rssimediumlow {
- label = "cf-e313ac:red:rssimediumlow";
+ label = "red:rssimediumlow";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
rssimediumhigh {
- label = "cf-e313ac:green:rssimediumhigh";
+ label = "green:rssimediumhigh";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_rssihigh: rssihigh {
- label = "cf-e313ac:green:rssihigh";
+ label = "green:rssihigh";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};
&spi {
status = "okay";
- num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
};
};
-&uart {
- status = "okay";
-};
-
ð0 {
status = "okay";
phy-handle = <&swphy0>;
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&pcie0 {
reg = <0 0 0 0 0>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+};