-/dts-v1/;
-
#include "mt7621.dtsi"
/ {
compatible = "mediatek,ap-mt7621a-v60", "mediatek,mt7621-soc";
model = "Mediatek AP-MT7621A-V60 EVB";
- chosen {
- bootargs = "console=ttyS0,57600";
- };
-
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "Audio-I2S";
&state_default {
gpio {
- groups = "uart2", "rgmii2";
+ groups = "uart2";
function = "gpio";
};
};
flash@0 {
compatible = "mx25l6405d","jedec,spi-nor";
- reg = <0 0>;
+ reg = <0>;
spi-max-frequency = <10000000>;
partitions {
read-only;
};
- factory: partition@40000 {
+ partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_5: macaddr@5 {
+ compatible = "mac-base";
+ reg = <0x5 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@50000 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x5>;
+ nvmem-cells = <&macaddr_factory_5 0>;
+ nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_5 1>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
};
&switch0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- mtd-mac-address = <&factory 0x5>;
- mtd-mac-address-increment = <1>;
- };
};
};