Commit 3a69e4e6 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'mvebu-fixes-5.9-1' of...

Merge tag 'mvebu-fixes-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into arm/fixes

mvebu fixes for 5.9 (part 1)

- Allow to use correct MAC address for particular DSA slaves /
  ethernet ports on Espressobin (Armada 3720)

- Remove incorrect check in ll_get_coherency_base() used for Armada
  370/XP SoCs.

* tag 'mvebu-fixes-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu:
  ARM: mvebu: drop pointless check for coherency_base
  arm64: dts: marvell: espressobin: Add ethernet switch aliases

Link: https://lore.kernel.org/r/87y2kkesj5.fsf@BL-laptopSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 666674cc 0b58725f
...@@ -35,13 +35,8 @@ ENTRY(ll_get_coherency_base) ...@@ -35,13 +35,8 @@ ENTRY(ll_get_coherency_base)
/* /*
* MMU is disabled, use the physical address of the coherency * MMU is disabled, use the physical address of the coherency
* base address. However, if the coherency fabric isn't mapped * base address, (or 0x0 if the coherency fabric is not mapped)
* (i.e its virtual address is zero), it means coherency is
* not enabled, so we return 0.
*/ */
ldr r1, =coherency_base
cmp r1, #0
beq 2f
adr r1, 3f adr r1, 3f
ldr r3, [r1] ldr r3, [r1]
ldr r1, [r1, r3] ldr r1, [r1, r3]
......
...@@ -20,17 +20,23 @@ / { ...@@ -20,17 +20,23 @@ / {
compatible = "globalscale,espressobin-v7-emmc", "globalscale,espressobin-v7", compatible = "globalscale,espressobin-v7-emmc", "globalscale,espressobin-v7",
"globalscale,espressobin", "marvell,armada3720", "globalscale,espressobin", "marvell,armada3720",
"marvell,armada3710"; "marvell,armada3710";
aliases {
/* ethernet1 is wan port */
ethernet1 = &switch0port3;
ethernet3 = &switch0port1;
};
}; };
&switch0 { &switch0 {
ports { ports {
port@1 { switch0port1: port@1 {
reg = <1>; reg = <1>;
label = "lan1"; label = "lan1";
phy-handle = <&switch0phy0>; phy-handle = <&switch0phy0>;
}; };
port@3 { switch0port3: port@3 {
reg = <3>; reg = <3>;
label = "wan"; label = "wan";
phy-handle = <&switch0phy2>; phy-handle = <&switch0phy2>;
......
...@@ -19,17 +19,23 @@ / { ...@@ -19,17 +19,23 @@ / {
model = "Globalscale Marvell ESPRESSOBin Board V7"; model = "Globalscale Marvell ESPRESSOBin Board V7";
compatible = "globalscale,espressobin-v7", "globalscale,espressobin", compatible = "globalscale,espressobin-v7", "globalscale,espressobin",
"marvell,armada3720", "marvell,armada3710"; "marvell,armada3720", "marvell,armada3710";
aliases {
/* ethernet1 is wan port */
ethernet1 = &switch0port3;
ethernet3 = &switch0port1;
};
}; };
&switch0 { &switch0 {
ports { ports {
port@1 { switch0port1: port@1 {
reg = <1>; reg = <1>;
label = "lan1"; label = "lan1";
phy-handle = <&switch0phy0>; phy-handle = <&switch0phy0>;
}; };
port@3 { switch0port3: port@3 {
reg = <3>; reg = <3>;
label = "wan"; label = "wan";
phy-handle = <&switch0phy2>; phy-handle = <&switch0phy2>;
......
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
/ { / {
aliases { aliases {
ethernet0 = &eth0; ethernet0 = &eth0;
/* for dsa slave device */
ethernet1 = &switch0port1;
ethernet2 = &switch0port2;
ethernet3 = &switch0port3;
serial0 = &uart0; serial0 = &uart0;
serial1 = &uart1; serial1 = &uart1;
}; };
...@@ -120,7 +124,7 @@ ports { ...@@ -120,7 +124,7 @@ ports {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
port@0 { switch0port0: port@0 {
reg = <0>; reg = <0>;
label = "cpu"; label = "cpu";
ethernet = <&eth0>; ethernet = <&eth0>;
...@@ -131,19 +135,19 @@ fixed-link { ...@@ -131,19 +135,19 @@ fixed-link {
}; };
}; };
port@1 { switch0port1: port@1 {
reg = <1>; reg = <1>;
label = "wan"; label = "wan";
phy-handle = <&switch0phy0>; phy-handle = <&switch0phy0>;
}; };
port@2 { switch0port2: port@2 {
reg = <2>; reg = <2>;
label = "lan0"; label = "lan0";
phy-handle = <&switch0phy1>; phy-handle = <&switch0phy1>;
}; };
port@3 { switch0port3: port@3 {
reg = <3>; reg = <3>;
label = "lan1"; label = "lan1";
phy-handle = <&switch0phy2>; phy-handle = <&switch0phy2>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment