Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2599914pxb; Mon, 19 Apr 2021 09:16:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc7v/WTyRdUDy0/TVmxRlkdorvYEXVFfciHFTJcrR+pQXe2uc29NoJwKjQNiUNvurZTo1k X-Received: by 2002:aa7:dc0b:: with SMTP id b11mr27050858edu.124.1618848968528; Mon, 19 Apr 2021 09:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618848968; cv=none; d=google.com; s=arc-20160816; b=ivVA6wsd/lwVrCkgPrHSCIB7U3EHeu0GrOTRQuUb6dLR/TTNADzhgxscdxBBLiAQRo GCQGthLifTkWSZK3ZBo5W31rDmhtMyOHznnsbvUF7LkMJDkUX9GyKpHMEUNKN0Pkkb1+ Acdg5y8YBgVNskPuoCBwmHTPocrFn8DrjJb0b2zbRAyKFskXzQqHwHptn+h8ZzodFILR 3bysMcl6mGgN2wfhKOq/teiz30NBSPzqvmu3dfsOI7dEWu4Mv0hWwYRqBbCGuDwUwrGe bhptY6FgWDyGtqBbyoH1zM+DoFhcDz4BGNMtlwyodA82cL4BnG9YCJ7M1jA435IaQE0a do6w== 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=g6hWEEz1DnFeiYVMb47NqWgNcEqoKyX49dlIEF71yvvu4wyr4ks2eE6CHgGYPRyY7O 4QOZu1XQ7xG99zlpPPKZT8xVnPrC0jGRpj3UJOBQK8fT6rYGATwywjbuxWpZirGw79Lp VUpLRXIGiw3nrA8FFZQUvqz5xQBRGnDBpBbW2fflcS3xsjAWL0OzeiZ4pJ8sd+HE2xu2 s8S0ECElQapB8romPVxpq1thtWtar8ZtrDZResFlvjoF8PZSlz/UgbY9pwbm/qQuB0wk e82/S11mixZY/bnBV+2MrljhRFNC3UrHmXGHcNSLVriBL6e1WUI1jMgQ4nzLmukVGmlo rMEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d+KMjGdw; 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 bo9si9065029ejb.184.2021.04.19.09.15.44; Mon, 19 Apr 2021 09:16:08 -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=d+KMjGdw; 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 S241667AbhDSPrm (ORCPT + 99 others); Mon, 19 Apr 2021 11:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241483AbhDSPri (ORCPT ); Mon, 19 Apr 2021 11:47:38 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 155DAC06174A; Mon, 19 Apr 2021 08:47:07 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id nk8so5025006pjb.3; Mon, 19 Apr 2021 08:47: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=d+KMjGdwLqY1RKsIEwvO2O/+nJyhETXl0eZQN9OgrfAQFOdo0cPkMwuPXUvA849dKX Z0OA/iV0oQNKVvgQASsytNZ+0D/qE25JJIWkIfJ7kVlTwQHmjbP3jXKCfm3fDShGUuzH BwMbic2WtsJxI/z4kZTSglL1GG9kr7BRGT1EajjilM5bSWuFXYYGMZmlUPP/vZlo/cQa LbiBcQ/44cAnK82wqwyA8jH54x8x4Sk2g/n3vIUevFzHqrJN7yWkX1bCPOfG+Nsn3fM2 HSEiRieW7yA7bsKjTbnXiMySGxv8aiWYuhmg6xuTDNhQ3QoIOEVkQfWoDug3V6YnIGzO YVvA== 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=LoararCX2bApbvYwocq6AL6m3TgHqpjxRb1Qve56YT3X2BsS1XDg/mJN/9h7pQkzj5 s3pWuqoefAKBKS1Mka/p/E5ZjFp9hyJZWd5KTpezXVOlkCSTJsdsI7QVtxL+8YWiilzA IP6CFtWm8CVcetxx6OF5zB4L3feql9K5fFG0VpcMsh8LGpfxtqeXpHU5j73i3FMKAGC/ fgEmYyCMN7ucuJfZyZAj/wPOcLZAYQ+z4OHnekQzOBt4aWhvF50JEZhqBO//LCBSXxe3 VUoeOhs+geuHcAJM/vD24di4vAfr1en5rxKmuAgf0hVAOdglYDzZA+X7UxQH4V1Z7wJ4 WBNw== X-Gm-Message-State: AOAM532RITgLd0MDkBqWr8BrXjanrGUCnzLTXaoPWSIP8nxk7HnJ0JiK I6ySvsa+iRzIVWl+lmnWabo= X-Received: by 2002:a17:90b:4504:: with SMTP id iu4mr25401047pjb.76.1618847226695; Mon, 19 Apr 2021 08:47:06 -0700 (PDT) Received: from z640-arch.lan ([2602:61:7344:f100::678]) by smtp.gmail.com with ESMTPSA id u1sm15314139pjj.19.2021.04.19.08.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 08:47:06 -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 v2 1/2] dt-bindings: net: mediatek: add optional GMAC labels Date: Mon, 19 Apr 2021 08:46:58 -0700 Message-Id: <20210419154659.44096-2-ilya.lipnitskiy@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210419154659.44096-1-ilya.lipnitskiy@gmail.com> References: <20210419154659.44096-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