2020-03-09 11:39:35 +00:00
|
|
|
--- a/arch/arm/boot/dts/mt7629-rfb.dts
|
|
|
|
+++ b/arch/arm/boot/dts/mt7629-rfb.dts
|
2020-02-10 08:33:15 +00:00
|
|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
+ bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8";
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys {
|
|
|
|
@@ -36,6 +37,13 @@
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
+ gsw: gsw@0 {
|
|
|
|
+ compatible = "mediatek,mt753x";
|
|
|
|
+ mediatek,ethsys = <ðsys>;
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <0>;
|
2020-11-16 12:35:51 +00:00
|
|
|
+ };
|
2020-02-10 08:33:15 +00:00
|
|
|
+
|
|
|
|
memory@40000000 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x40000000 0x10000000>;
|
2021-08-20 12:42:56 +00:00
|
|
|
@@ -70,6 +78,10 @@
|
2020-02-10 08:33:15 +00:00
|
|
|
compatible = "mediatek,eth-mac";
|
|
|
|
reg = <0>;
|
|
|
|
phy-mode = "2500base-x";
|
2021-08-20 12:42:56 +00:00
|
|
|
+
|
|
|
|
+ nvmem-cells = <&macaddr_factory_2a>;
|
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
|
+
|
2020-02-10 08:33:15 +00:00
|
|
|
fixed-link {
|
|
|
|
speed = <2500>;
|
2021-08-20 12:42:56 +00:00
|
|
|
full-duplex;
|
|
|
|
@@ -82,6 +94,9 @@
|
2020-02-10 08:33:15 +00:00
|
|
|
reg = <1>;
|
|
|
|
phy-mode = "gmii";
|
|
|
|
phy-handle = <&phy0>;
|
2021-08-20 12:42:56 +00:00
|
|
|
+
|
|
|
|
+ nvmem-cells = <&macaddr_factory_24>;
|
|
|
|
+ nvmem-cell-names = "mac-address";
|
2020-02-10 08:33:15 +00:00
|
|
|
};
|
2021-08-20 12:42:56 +00:00
|
|
|
|
|
|
|
mdio: mdio-bus {
|
|
|
|
@@ -94,6 +109,26 @@
|
2020-02-10 08:33:15 +00:00
|
|
|
};
|
|
|
|
};
|
2021-08-20 12:42:56 +00:00
|
|
|
|
2020-02-10 08:33:15 +00:00
|
|
|
+&gsw {
|
|
|
|
+ mediatek,mdio = <&mdio>;
|
|
|
|
+ mediatek,portmap = "llllw";
|
|
|
|
+ mediatek,mdio_master_pinmux = <0>;
|
|
|
|
+ reset-gpios = <&pio 28 0>;
|
|
|
|
+ interrupt-parent = <&pio>;
|
|
|
|
+ interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ port6: port@6 {
|
|
|
|
+ compatible = "mediatek,mt753x-port";
|
|
|
|
+ reg = <6>;
|
|
|
|
+ phy-mode = "sgmii";
|
|
|
|
+ fixed-link {
|
|
|
|
+ speed = <2500>;
|
|
|
|
+ full-duplex;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
2021-08-20 12:42:56 +00:00
|
|
|
+
|
2020-02-10 08:33:15 +00:00
|
|
|
&i2c {
|
|
|
|
pinctrl-names = "default";
|
2021-08-20 12:42:56 +00:00
|
|
|
pinctrl-0 = <&i2c_pins>;
|
|
|
|
@@ -272,3 +307,17 @@
|
|
|
|
pinctrl-0 = <&watchdog_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+&factory {
|
|
|
|
+ compatible = "nvmem-cells";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <1>;
|
|
|
|
+
|
|
|
|
+ macaddr_factory_24: macaddr@24 {
|
|
|
|
+ reg = <0x24 0x6>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ macaddr_factory_2a: macaddr@2a {
|
|
|
|
+ reg = <0x2a 0x6>;
|
|
|
|
+ };
|
|
|
|
+};
|