Message ID | 20230116091637.272923-2-jbrunet@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1098582wrn; Mon, 16 Jan 2023 01:30:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXsm49UdJArf1Wwi6we07zi9y1qlu5YFU1GX98LBFW2cHGltMdClRvV92OAh10J/Y0aaFowQ X-Received: by 2002:a17:902:e887:b0:193:e89:f5ff with SMTP id w7-20020a170902e88700b001930e89f5ffmr26793524plg.28.1673861457249; Mon, 16 Jan 2023 01:30:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673861457; cv=none; d=google.com; s=arc-20160816; b=N7x4caAulXxHk89Wf7O+mDNtFFHUB5VoRouE2VSy15ijBJMBxYNwkXtNYFChd6272N OxrDtE0yZzRQ633h2Z8TYqhPb97pZ3PovAwbV3DbD0c2RfKoiF/WCLRpYy2/Wtb3i7z1 Ex8/WA9CxmruaeJZ8XxEhiQScWIXRtTy6w+tkea/ew4mgI1ns8fZcP+BUK6p3c/c44vH 3Ggq+rvtVxyBfmKDRXrjb6T/0PdUBKjq4adzHTwq3HQpl+M8t0ORURb9kQ3uOij5RRJm 5hX+smxBK1ndM7MY0MSYdEEMRAEzDKE35vvtkfcBrsmpZ9Lbpz1ci9uWl8+ifgap/dLj ysEA== 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=uZcDGdNDu8uBNNlcnVM3dW50Ek5FZ0cyrrNZsgY+fPo=; b=oMSXKcvYPUUjzpamO2EMoxW6QNb71MMbG9N+kHZVZcjp9ZrXEVK+L9qbFZJTh0i+IP UNozLkTMsH8+Zd2UpekqQxG+zaHaXD3sbXd+UybR18Lew+aQJWFb3A5PlM0iH2flYT+0 3QBfepEaHFpjnMxMCekBClFKxPeulTo933wSwBEgiAq4FkSr7ZnfZPg/lVATeeJVu90H cHUneYqjfA6gYOD5lzqKAb1SQD6zuEfhYRVrY0ps2o3FaP8DifeE7FOYx/sZAEPSRGGA cXGLhfBFx6FtVhlAyRwuWJBdsrvJAVDq/nAQbYd3spwZSKdg7wU3tmlTAML8MnaFcdCu Fn9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=tiBdYNut; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p15-20020a170902a40f00b0019493364056si2580212plq.137.2023.01.16.01.30.44; Mon, 16 Jan 2023 01:30:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=tiBdYNut; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232464AbjAPJRR (ORCPT <rfc822;stefanalexe802@gmail.com> + 99 others); Mon, 16 Jan 2023 04:17:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232467AbjAPJQ6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 16 Jan 2023 04:16:58 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 782B972BD for <linux-kernel@vger.kernel.org>; Mon, 16 Jan 2023 01:16:56 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id j17so968591wms.0 for <linux-kernel@vger.kernel.org>; Mon, 16 Jan 2023 01:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uZcDGdNDu8uBNNlcnVM3dW50Ek5FZ0cyrrNZsgY+fPo=; b=tiBdYNutIDqslGItdc45uVHMVAntLS/gLDRiamJFHULUDBgNQE9nPaVohFLqvigUy9 7McONPL/1jEcUYDgNfe9l9Cm9vnaZeO+zYFtyIPp4uBBDy9kH+l9z6AYr8xgTFvfML4/ Na2znx1Msywlu3lN1SSt4fF4xsXvB7MIy3Yp7h+kne7UybXBJOT8SZOLOLdnyV2g7mxg 4epo6Qyvqg3a74U2PQYRj5cS+Ci4G5Eh8tkFxoS9epWjk4YrAGOgSyZPIyZ5MoJBy3XF 491akUDHbx0qMEl1cfXTLp6HLPLWEXQNFzDp+RTU39f0Em6p5aOWIUqs0DsofEiH26cA zqzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uZcDGdNDu8uBNNlcnVM3dW50Ek5FZ0cyrrNZsgY+fPo=; b=T9WlSwGmnBt2ixF9wIeydxgptyxnDrCmbmGIDpufeTYeodzCuW0WaDTrsdr6fB2yfu tv/Q2pjBrvjpf/oVZO3wMVG2BV/WekBn8tqWuI/mbuYqaay99bZNypShf33EfKJUgBjn OZIvwUTjYlEcYcQ/iAMkE09JnIrfYuzlY6ut8xrM2wfGN6wwgyVSEK5XIu+fITorwiqt u0qnydr1+XYmRRIArLqILwb7nrERZI2nHRfAlE+mk0RCzRtwwuGHgv+vTwrtbjzAJzH1 zvHKlTf+ODDwKL7s3f/xBJR2bv5GwybiE/sjHd6mqnP2jYSNa2INbQ6pcfasXZGFoKKw uetA== X-Gm-Message-State: AFqh2kpVto6QCgcm2fzZw5htdZMLNBK56SCI0empwlAoi+UiPxOAjSgr KMT/Vj+yUdHgezXKxBpeeojoPQ== X-Received: by 2002:a05:600c:358f:b0:3d1:cdf7:debf with SMTP id p15-20020a05600c358f00b003d1cdf7debfmr68091704wmq.26.1673860615046; Mon, 16 Jan 2023 01:16:55 -0800 (PST) Received: from localhost.localdomain (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.googlemail.com with ESMTPSA id h19-20020a05600c351300b003d9a86a13bfsm35923491wmq.28.2023.01.16.01.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 01:16:54 -0800 (PST) From: Jerome Brunet <jbrunet@baylibre.com> To: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net> Cc: Jerome Brunet <jbrunet@baylibre.com>, linux-amlogic@lists.infradead.org, Kevin Hilman <khilman@baylibre.com>, Neil Armstrong <neil.armstrong@linaro.org>, Da Xue <da@lessconfused.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/2] dt-bindings: net: add amlogic gxl mdio multiplexer Date: Mon, 16 Jan 2023 10:16:35 +0100 Message-Id: <20230116091637.272923-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230116091637.272923-1-jbrunet@baylibre.com> References: <20230116091637.272923-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755170951098057971?= X-GMAIL-MSGID: =?utf-8?q?1755170951098057971?= |
Series |
net: mdio: add amlogic gxl mdio mux support
|
|
Commit Message
Jerome Brunet
Jan. 16, 2023, 9:16 a.m. UTC
Add documentation for the MDIO bus multiplexer found on the Amlogic GXL
SoC family
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
.../bindings/net/amlogic,gxl-mdio-mux.yaml | 64 +++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml
Comments
On 16/01/2023 10:16, Jerome Brunet wrote: > Add documentation for the MDIO bus multiplexer found on the Amlogic GXL > SoC family Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > > Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> > --- > .../bindings/net/amlogic,gxl-mdio-mux.yaml | 64 +++++++++++++++++++ > 1 file changed, 64 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml > > diff --git a/Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml b/Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml > new file mode 100644 > index 000000000000..d21bce695fa9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml > @@ -0,0 +1,64 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/amlogic,gxl-mdio-mux.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Amlogic GXL MDIO bus multiplexer > + > +maintainers: > + - Jerome Brunet <jbrunet@baylibre.com> > + > +description: > + This is a special case of a MDIO bus multiplexer. It allows to choose between > + the internal mdio bus leading to the embedded 10/100 PHY or the external > + MDIO bus on the Amlogic GXL SoC family. > + > +allOf: > + - $ref: mdio-mux.yaml# > + > +properties: > + compatible: > + const: amlogic,gxl-mdio-mux > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + items: > + - const: ref > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + eth_phy_mux: mdio@558 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "amlogic,gxl-mdio-mux"; compatible, then reg then the rest. > + clocks = <&refclk>; > + clock-names = "ref"; > + reg = <0x558 0xc>; > + mdio-parent-bus = <&mdio0>; > + > + external_mdio: mdio@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x0>; reg is before other properties. > + }; > + > + internal_mdio: mdio@1 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x1>; Ditto. If you resend, keep my tag and finally use get_maintainers.pl Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Tue 17 Jan 2023 at 09:31, Krzysztof Kozlowski <krzk@kernel.org> wrote: > On 16/01/2023 10:16, Jerome Brunet wrote: >> Add documentation for the MDIO bus multiplexer found on the Amlogic GXL >> SoC family > > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC. It might happen, that command when run on an older > kernel, gives you outdated entries. Therefore please be sure you base > your patches on recent Linux kernel. > Hi Krzysztof, I do use get_maintainers.pl but I also filter based on past experience to avoid spamming to much. It seems I stayed on the pre-2015 requirement to send only to devicetree list (I was actually making an exception specifically for DT) ... and there was no complain so far ;) I've read documentation again and it is explicit. This will be fixed for v2. Thanks for pointing this out.
On 17/01/2023 10:05, Jerome Brunet wrote: > > On Tue 17 Jan 2023 at 09:31, Krzysztof Kozlowski <krzk@kernel.org> wrote: > >> On 16/01/2023 10:16, Jerome Brunet wrote: >>> Add documentation for the MDIO bus multiplexer found on the Amlogic GXL >>> SoC family >> >> Please use scripts/get_maintainers.pl to get a list of necessary people >> and lists to CC. It might happen, that command when run on an older >> kernel, gives you outdated entries. Therefore please be sure you base >> your patches on recent Linux kernel. >> > > Hi Krzysztof, > > I do use get_maintainers.pl but I also filter based on past experience > to avoid spamming to much. It seems I stayed on the pre-2015 > requirement to send only to devicetree list (I was actually making an > exception specifically for DT) ... and there was no complain so far ;) > > I've read documentation again and it is explicit. This will be fixed for > v2. > > Thanks for pointing this out. For regular patchsets not spanning over 10 different subsystems (so total number of CCs should be 5-10), please Cc all maintainers/reviewers/supporters/lists pointed by maintainers.pl. Skip git fallback. How your patch should appear in my mailbox if you skip me? Not everyone are using Patchwork. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml b/Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml new file mode 100644 index 000000000000..d21bce695fa9 --- /dev/null +++ b/Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/amlogic,gxl-mdio-mux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic GXL MDIO bus multiplexer + +maintainers: + - Jerome Brunet <jbrunet@baylibre.com> + +description: + This is a special case of a MDIO bus multiplexer. It allows to choose between + the internal mdio bus leading to the embedded 10/100 PHY or the external + MDIO bus on the Amlogic GXL SoC family. + +allOf: + - $ref: mdio-mux.yaml# + +properties: + compatible: + const: amlogic,gxl-mdio-mux + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: ref + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + eth_phy_mux: mdio@558 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "amlogic,gxl-mdio-mux"; + clocks = <&refclk>; + clock-names = "ref"; + reg = <0x558 0xc>; + mdio-parent-bus = <&mdio0>; + + external_mdio: mdio@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + }; + + internal_mdio: mdio@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1>; + }; + };