Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2083034pxj; Sun, 13 Jun 2021 08:06:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzNJdU/DSqQ/A164mk5qUI222rWSmne4QU1KEFLLDq9jSXiVKy0gc+63Qomv5rC8UrFwm8 X-Received: by 2002:a17:906:acf:: with SMTP id z15mr9401263ejf.140.1623596775500; Sun, 13 Jun 2021 08:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623596775; cv=none; d=google.com; s=arc-20160816; b=zkriSuiwPBB3zrGj1wTofYci1THyJp3rzXVPzxWhgFqe9nPT6+sjMN/d+JIBOdV86b S9RD7Oo+W2XA7+cm1Pc501PdUp8R+t0eqBKCG39ySr9D8VtefvXjULSIDBa5kxq9b+vS U1z5FVE0TlshXQmkrDeDbcjBq2CikUSumnE+ptZP5mIY2olAs6gd8mjOFIvWB/9HIe2z baA1npFZ7IFt6KKuJAKP7i8Fb5U8WoyRRqamZBx0S2q37SKOvf3iesd6f13VWpj3nUQt kTria79a841QSseMpByFSrmpT9ddidYIJyyLcpWpdXzswmKovmHaNoeDetNLxyIcbTdY c53Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Hn6jkLYJVA36o1AQoyoH7yb4jhB+11+vNThDg3klrNU=; b=cb7RXEGiTnPeS42vF19zV75gl8PmpehKhQ7LAAeOesxIKCjglraUFs1mZ+HjAPwS6a sMvS+TTE1URC6c1g79K+bZOO85tID14X418UQpYexQKdwprm+ky2dKKUbixkPA6I7v7m C3VtVEsLZtdmMVMZWjA2WAZr2T6eFWz4XlogLZHU7MdR8biE9qDscL8UGOKne5ZTgTBt A5Pq69QzLu2jEskkIzpj4626vK1sUabKCjXYlNmBcG5vrhoiFgQpN4czjWSo4ReZH4rs qCffoY6gx7wgE8xuDr1PTsWTI20qzHT4MA0YVuysIJ1u688IHam7mfJzd+z3r7997+yE 5fUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be14si9806930edb.452.2021.06.13.08.05.52; Sun, 13 Jun 2021 08:06:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231887AbhFMPBi (ORCPT + 99 others); Sun, 13 Jun 2021 11:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbhFMPBi (ORCPT ); Sun, 13 Jun 2021 11:01:38 -0400 Received: from mxout014.mail.hostpoint.ch (mxout014.mail.hostpoint.ch [IPv6:2a00:d70:0:e::314]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4852C061574; Sun, 13 Jun 2021 07:59:36 -0700 (PDT) Received: from [10.0.2.46] (helo=asmtp013.mail.hostpoint.ch) by mxout014.mail.hostpoint.ch with esmtp (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1lsRaG-000KbX-II; Sun, 13 Jun 2021 16:59:32 +0200 Received: from [2a02:168:6182:1:d747:8127:5b7a:4266] (helo=eleanor.home.reto-schneider.ch) by asmtp013.mail.hostpoint.ch with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1lsRaG-00020T-Fa; Sun, 13 Jun 2021 16:59:32 +0200 X-Authenticated-Sender-Id: reto-schneider@reto-schneider.ch From: Reto Schneider To: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org Cc: Stefan Roese , Reto Schneider , "David S. Miller" , Jakub Kicinski , Matthias Brugger , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: net: mediatek: Support custom ifname Date: Sun, 13 Jun 2021 16:58:59 +0200 Message-Id: <20210613145859.1774246-1-code@reto-schneider.ch> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210613115820.1525478-1-code@reto-schneider.ch> References: <20210613115820.1525478-1-code@reto-schneider.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Reto Schneider 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 --- (no changes since v1) 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