Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1981525pxj; Sun, 13 Jun 2021 05:02:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZal+oAag4LekSvDW3aFPNjJItpqpm9TAaNF5w8evw7RrBlFxG2PoEFSCnRxo9O7COYNyh X-Received: by 2002:a17:906:f192:: with SMTP id gs18mr11494422ejb.114.1623585758419; Sun, 13 Jun 2021 05:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623585758; cv=none; d=google.com; s=arc-20160816; b=RRLb+l+rXmoX+a/bhx8nLCz+j1u5d1B9SqurCZM3MLHVJda7+44wztEHbOzOjsLEQp zDEvC1WdtXmKIoWLcI0H0gCiWxKNJGxNcdb1vPqCzNjtDJz7dBnztGshKwvaJPmY9zpK yVn9yV9A0zAfBKM6YSg/RO36Z3z/UWd1AcHM+iAlGop3SW8v7hi4hS/I8+upnSEnmGJJ JNsVx1Q2RN/siXIDxV0gcd5zb9yiz44muckx+xummrsqGeqsrZdT5FXuJCZ8gBKLm1mT mOvuiCgCXNEXjYVSJir+ND7tq4Ndv28SePJuFvySPlVeBeHJqjyzDj10QHWzWqrmLmZl U5dg== 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 :message-id:date:subject:cc:to:from; bh=5Tda6m3aRfMIESYfcpyt5C0JcTYLXW+izEQviBxGhuE=; b=tHS8icBLD/xHR8hgwOWjsFk2i8JF+SLBXQZ6U3OjG107GpCf2ocQL8dIiOkzQKFgkq sn7LmJXHbtfxCjjePiKtk1SITWH9gS3zleTlGVIelw0AE3+pfhu6SbMCV4UM8BrtZHVZ fZKBl4HmzMrszF8BTHNj+PJtqe2WLG1Uj/W/7FBzwHKAnts7Ecazo9s8IhkKpwXgpKLx zZiCp2BBNPe6uHJu+yL7jfJ6TO11PukjJtTuNcO7QOfFUrNcXMKf/4pWht441mSzQxRn oRROKJo/OStn0+qE1Jjl7lsxL0in10PZ2LK8f6lrOActQE4xCSfAXlBECs9cAkre6h0G eXyQ== 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 br18si9404727ejb.191.2021.06.13.05.02.15; Sun, 13 Jun 2021 05:02:38 -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 S231778AbhFMMAw (ORCPT + 99 others); Sun, 13 Jun 2021 08:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231691AbhFMMAs (ORCPT ); Sun, 13 Jun 2021 08:00:48 -0400 Received: from mxout012.mail.hostpoint.ch (mxout012.mail.hostpoint.ch [IPv6:2a00:d70:0:e::312]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E887C061574; Sun, 13 Jun 2021 04:58:46 -0700 (PDT) Received: from [10.0.2.44] (helo=asmtp014.mail.hostpoint.ch) by mxout012.mail.hostpoint.ch with esmtp (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1lsOlF-0001z5-Sq; Sun, 13 Jun 2021 13:58:41 +0200 Received: from [2a02:168:6182:1:d747:8127:5b7a:4266] (helo=eleanor.home.reto-schneider.ch) by asmtp014.mail.hostpoint.ch with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1lsOlF-0008UX-Qz; Sun, 13 Jun 2021 13:58:41 +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 v1 1/2] dt-bindings: net: mediatek: Support custom ifname Date: Sun, 13 Jun 2021 13:58:18 +0200 Message-Id: <20210613115820.1525478-1-code@reto-schneider.ch> X-Mailer: git-send-email 2.30.2 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 --- 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