All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/2] dt-bindings: net: mediatek: Support custom ifname
@ 2021-06-13 11:58 ` Reto Schneider
  0 siblings, 0 replies; 21+ messages in thread
From: Reto Schneider @ 2021-06-13 11:58 UTC (permalink / raw)
  To: devicetree, linux-mediatek, netdev
  Cc: Stefan Roese, Reto Schneider, David S. Miller, Jakub Kicinski,
	Matthias Brugger, Rob Herring, linux-arm-kernel, linux-kernel

From: Reto Schneider <reto.schneider@husqvarnagroup.com>

The (optional) label property allows to specify customized interfaces
names.

The motivation behind this change is to allow embedded devices to keep
their first switch port be named "eth0", even when switching to the DSA
architecture. In order to do so, it must be possible to name the MAC
interface differently from eth0.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
---

 Documentation/devicetree/bindings/net/mediatek-net.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/mediatek-net.txt b/Documentation/devicetree/bindings/net/mediatek-net.txt
index 72d03e07cf7c..93e35f239a0a 100644
--- a/Documentation/devicetree/bindings/net/mediatek-net.txt
+++ b/Documentation/devicetree/bindings/net/mediatek-net.txt
@@ -51,6 +51,9 @@ Required properties:
 	is equal to 0 and the MAC uses fixed-link to connect
 	with internal switch such as MT7530.
 
+Optional properties:
+- label: Name of interface, defaults to ethX if missing
+
 Example:
 
 eth: ethernet@1b100000 {
@@ -76,6 +79,7 @@ eth: ethernet@1b100000 {
 		compatible = "mediatek,eth-mac";
 		reg = <0>;
 		phy-handle = <&phy0>;
+		label = "mac1";
 	};
 
 	gmac2: mac@1 {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-06-14 19:50 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 11:58 [PATCH v1 1/2] dt-bindings: net: mediatek: Support custom ifname Reto Schneider
2021-06-13 11:58 ` Reto Schneider
2021-06-13 11:58 ` Reto Schneider
2021-06-13 11:58 ` [PATCH v1 2/2] net: ethernet: mtk_eth_soc: " Reto Schneider
2021-06-13 11:58   ` Reto Schneider
2021-06-13 11:58   ` Reto Schneider
2021-06-13 12:20   ` Russell King (Oracle)
2021-06-13 12:20     ` Russell King (Oracle)
2021-06-13 12:20     ` Russell King (Oracle)
2021-06-13 13:53     ` Reto Schneider
2021-06-13 13:53       ` Reto Schneider
2021-06-13 13:53       ` Reto Schneider
2021-06-14 19:48   ` David Miller
2021-06-14 19:48     ` David Miller
2021-06-14 19:48     ` David Miller
2021-06-13 14:58 ` [PATCH v2 1/2] dt-bindings: net: mediatek: " Reto Schneider
2021-06-13 14:58   ` Reto Schneider
2021-06-13 14:58   ` Reto Schneider
2021-06-13 14:59 ` [PATCH v2 2/2] net: ethernet: mtk_eth_soc: " Reto Schneider
2021-06-13 14:59   ` Reto Schneider
2021-06-13 14:59   ` Reto Schneider

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.