aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2019-11-01 11:12:26 +0800
committerChuanhong Guo <gch981213@gmail.com>2019-11-04 20:51:19 +0800
commit58b0d3ecd66ef220101d1f4dfe550242d6004fce (patch)
tree71330adddbf09a1a580bbdecf6364c7c86869a8f /target/linux/mediatek
parent109e614d906995cc7d9ec1233a13eb8be1823ba3 (diff)
downloadupstream-58b0d3ecd66ef220101d1f4dfe550242d6004fce.tar.gz
upstream-58b0d3ecd66ef220101d1f4dfe550242d6004fce.tar.bz2
upstream-58b0d3ecd66ef220101d1f4dfe550242d6004fce.zip
mediatek: cosmetic fixes for mt7629-lynx-rfb
This patch did the following things: 1. rename device compatible string 2. add earlycon into cmdline 3. add mac address location according to mt7629 eeprom layout 4. rename mtd partitions 5. replace spaces for indentation with tabs Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/mediatek')
-rw-r--r--target/linux/mediatek/files-4.19/arch/arm/boot/dts/mt7629-lynx-rfb.dts69
1 files changed, 36 insertions, 33 deletions
diff --git a/target/linux/mediatek/files-4.19/arch/arm/boot/dts/mt7629-lynx-rfb.dts b/target/linux/mediatek/files-4.19/arch/arm/boot/dts/mt7629-lynx-rfb.dts
index f3fadd301a..b8ef3ed557 100644
--- a/target/linux/mediatek/files-4.19/arch/arm/boot/dts/mt7629-lynx-rfb.dts
+++ b/target/linux/mediatek/files-4.19/arch/arm/boot/dts/mt7629-lynx-rfb.dts
@@ -10,7 +10,7 @@
/ {
model = "MediaTek MT7629 reference board";
- compatible = "mediatek,mt7629-rfb", "mediatek,mt7629";
+ compatible = "mediatek,mt7629-lynx-rfb", "mediatek,mt7629";
aliases {
serial0 = &uart0;
@@ -18,6 +18,7 @@
chosen {
stdout-path = "serial0:115200n8";
+ bootargs = "earlycon=uart8250,mmio32,0x11002000";
};
gpio-keys {
@@ -68,36 +69,38 @@
};
&eth {
- pinctrl-names = "default";
- pinctrl-0 = <&ephy_leds_pins>;
- status = "okay";
-
- gmac0: mac@0 {
- compatible = "mediatek,eth-mac";
- reg = <0>;
- phy-mode = "sgmii";
- fixed-link {
- speed = <1000>;
- full-duplex;
- pause;
- };
- };
-
- gmac1: mac@1 {
- compatible = "mediatek,eth-mac";
- reg = <1>;
- phy-handle = <&phy0>;
- };
-
- mdio: mdio-bus {
- #address-cells = <1>;
- #size-cells = <0>;
-
- phy0: ethernet-phy@0 {
- reg = <0>;
- phy-mode = "gmii";
- };
- };
+ pinctrl-names = "default";
+ pinctrl-0 = <&ephy_leds_pins>;
+ status = "okay";
+
+ gmac0: mac@0 {
+ compatible = "mediatek,eth-mac";
+ reg = <0>;
+ mtd-mac-address = <&factory 0x2a>;
+ phy-mode = "sgmii";
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ pause;
+ };
+ };
+
+ gmac1: mac@1 {
+ compatible = "mediatek,eth-mac";
+ reg = <1>;
+ mtd-mac-address = <&factory 0x24>;
+ phy-handle = <&phy0>;
+ };
+
+ mdio: mdio-bus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ phy-mode = "gmii";
+ };
+ };
};
&gsw {
@@ -153,13 +156,13 @@
};
factory: partition@70000 {
- label = "Factory";
+ label = "factory";
reg = <0x70000 0x40000>;
read-only;
};
partition@b0000 {
- label = "Kernel";
+ label = "firmware";
reg = <0xb0000 0xb50000>;
};
};