Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2152579pxb; Sun, 18 Apr 2021 21:05:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw07hWRlj6HLohz8R1a/KoCaXJdCwp56qveQmehXd1qcNbWyDIc0gCbNZugJ0UPeMrmNxqp X-Received: by 2002:a63:3245:: with SMTP id y66mr10095226pgy.435.1618805101538; Sun, 18 Apr 2021 21:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618805101; cv=none; d=google.com; s=arc-20160816; b=LLo8ubQpQbgA0qjr4DGH8f/iyGaYQVzyaBiMoVVd3iMa4x+vXJ7wEgiw4cViilsi9v WpFcfBr12SSxwhtxksEpF+tcHkOarBVwXBrkzw+xc1zOtmyxbcqbghQR4kHk5PeeIs7+ zDz0oGRAXmdzM95+6iAwptAk78i8p744tOn3rNsUhI6cx05TtnCexzwXVQDPOx4dBRDt /LhdLb7HafSBxIFWOM5B4IqFbhF/qyNUB5zrxhrc1s+WwZX7tHzz91HgvGXyhpH7S97A MfDM6L05BtpeJG08xD2CTltTWSpqMCXrBbKHanJih0Y4aY2hrbJ/NXLOug92lQDN9ggY aHyw== 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 :dkim-signature; bh=d6IeN222L2AvMC3BWodguJL4uvfgEGERLTNiOfhrG14=; b=ARk6sxLuQ+HFcTHaF+DIywbKR00uYyuK5vTpZyWrZsI/opH2iAHZK+doZkDIGbbHck 6dcJltm1ikcdP5N23buLIqJxfQbBBu05DdaWWHjLFDTHSge/Kf1SoUbu6jeYWi3Iszh3 es6QCvkAlBT9GDn/UW47/Y8kAA/zPw+ux9f/FH3QsBqcS22SROkwqyuU11TvGtJyjBru yO1oVze6lU1oblUeDO31IwNw+0KMdtMpJC8Q1aDj9/VFJdeW88MWhNwEHyGc5+d+qkXv l2Vu8Bl/4LJlcpkJzKujtaG8uimaLkdD1P5ZzPbCOEcqikd6r4PuR1N3VtacK4QwdbB/ TxDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hp1kcgZx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t35si8030743pfg.222.2021.04.18.21.04.48; Sun, 18 Apr 2021 21:05:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hp1kcgZx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233500AbhDSEEj (ORCPT + 99 others); Mon, 19 Apr 2021 00:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233148AbhDSEEg (ORCPT ); Mon, 19 Apr 2021 00:04:36 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1A00C06174A; Sun, 18 Apr 2021 21:04:07 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id p12so23328338pgj.10; Sun, 18 Apr 2021 21:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d6IeN222L2AvMC3BWodguJL4uvfgEGERLTNiOfhrG14=; b=hp1kcgZxFWT8L4BFkOKZifS1WtozMEz2JHpzcAYKcXyohrFfbFPqyKBqsn6UVaaE92 ujAG3bWmhL7fMQVAsynqU56t4V8rqWcZM2VbZgtgwennO/CJhtf1sTkk6FGc3altf0Ke 1UwCM7LXFIO9ZJSvQcL2W0XjXxaG3YIjDYXnPO1G4BE4HKn4BKET0yY9EiWLcBlntNmS 1S6AyBdFKVYPoAwXDqWVaD5gSI8grL8VtmgZ3YMIEgEFDklO0tDT8J4YWoy+/VZ/ExRZ XtHqAm4SXDdMYLHfBTTo4Axxo02/L/eko/10X4PPiPJsffZ4902yw7hixvGgfRFgB1H5 i9XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d6IeN222L2AvMC3BWodguJL4uvfgEGERLTNiOfhrG14=; b=tC05CetO6PGGnBSj7P6lMdw+FUGfhFm5B003R3Tbq2aL+VcTXhAlJyHwO+89VHzQ1m cFvzLhUZzfTFQ3JnL0wuZaAeK9Ko6+QOj4DcphP5rWr+Lg5QUBqeUy1oeerI1tZrDYO0 SeOkbuo+nZf7Wa/flOTo3IeMwKXwIPleP0N63huWvTLIfrGT7jenQBQHyob4QgsuOgiv QCwVXskiBHqlUWcvGCLLjAcQoFeLF4IMLvP01AKeSI9vBev0VHcouJCjwZwTHkVyzgVV Ee6lfCI4+K32m9fknlQsB/d84LTT/80M6QzHqZtC863eG+vI+kNSb/NV6vq/iHdFOA9T 93gw== X-Gm-Message-State: AOAM532sieXMX5f9sxxBibH4p9hjkX1bZn1PtECo82NdO7KDAke7MR7/ cl68vbIwzWzD1Nt5gBQoaS0= X-Received: by 2002:a65:42c3:: with SMTP id l3mr8072387pgp.258.1618805047563; Sun, 18 Apr 2021 21:04:07 -0700 (PDT) Received: from z640-arch.lan ([2602:61:7344:f100::678]) by smtp.gmail.com with ESMTPSA id 25sm12169423pgx.72.2021.04.18.21.04.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 21:04:07 -0700 (PDT) From: Ilya Lipnitskiy To: "David S. Miller" , Jakub Kicinski , Rob Herring , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Matthias Brugger , Russell King , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Ilya Lipnitskiy Subject: [PATCH net-next 1/2] dt-bindings: net: mediatek: add optional GMAC labels Date: Sun, 18 Apr 2021 21:03:51 -0700 Message-Id: <20210419040352.2452-2-ilya.lipnitskiy@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210419040352.2452-1-ilya.lipnitskiy@gmail.com> References: <20210419040352.2452-1-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the mediatek ethernet driver change that adds support for custom labels and provide an example. Signed-off-by: Ilya Lipnitskiy --- Documentation/devicetree/bindings/net/mediatek-net.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/mediatek-net.txt b/Documentation/devicetree/bindings/net/mediatek-net.txt index 72d03e07cf7c..500bf9351010 100644 --- a/Documentation/devicetree/bindings/net/mediatek-net.txt +++ b/Documentation/devicetree/bindings/net/mediatek-net.txt @@ -51,6 +51,10 @@ Required properties: is equal to 0 and the MAC uses fixed-link to connect with internal switch such as MT7530. +Optional properties: +- label: overrides the default netdevice name. Useful when a custom name for the + DSA master interface is desired. + Example: eth: ethernet@1b100000 { @@ -74,12 +78,14 @@ eth: ethernet@1b100000 { gmac1: mac@0 { compatible = "mediatek,eth-mac"; + label = "gmac1"; reg = <0>; phy-handle = <&phy0>; }; gmac2: mac@1 { compatible = "mediatek,eth-mac"; + label = "gmac2"; reg = <1>; phy-handle = <&phy1>; }; -- 2.31.1