From: Rob Herring <robh@kernel.org>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: devicetree@vger.kernel.org,
"David S. Miller" <davem@davemloft.net>,
"Jakub Kicinski" <kuba@kernel.org>,
"Rafał Miłecki" <rafal@milecki.pl>,
"maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER"
<bcm-kernel-feedback-list@broadcom.com>,
"Doug Berger" <opendmb@gmail.com>, "Ray Jui" <rjui@broadcom.com>,
"Scott Branden" <sbranden@broadcom.com>,
"Kishon Vijay Abraham I" <kishon@ti.com>,
"Vinod Koul" <vkoul@kernel.org>,
"open list:NETWORKING DRIVERS" <netdev@vger.kernel.org>,
"open list" <linux-kernel@vger.kernel.org>,
"moderated list:BROADCOM IPROC ARM ARCHITECTURE"
<linux-arm-kernel@lists.infradead.org>,
"open list:GENERIC PHY FRAMEWORK" <linux-phy@lists.infradead.org>
Subject: Re: [PATCH v3 6/8] dt-bindings: net: Convert SYSTEMPORT to YAML
Date: Wed, 8 Dec 2021 13:48:28 -0600 [thread overview]
Message-ID: <YbEMDIhKZEzpeKQR@robh.at.kernel.org> (raw)
In-Reply-To: <20211206180049.2086907-7-f.fainelli@gmail.com>
On Mon, Dec 06, 2021 at 10:00:47AM -0800, Florian Fainelli wrote:
> Convert the Broadcom SYSTEMPORT Ethernet controller Device Tree binding
> to YAML.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> .../bindings/net/brcm,systemport.txt | 38 ---------
> .../bindings/net/brcm,systemport.yaml | 82 +++++++++++++++++++
> MAINTAINERS | 1 +
> 3 files changed, 83 insertions(+), 38 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/net/brcm,systemport.txt
> create mode 100644 Documentation/devicetree/bindings/net/brcm,systemport.yaml
>
> diff --git a/Documentation/devicetree/bindings/net/brcm,systemport.txt b/Documentation/devicetree/bindings/net/brcm,systemport.txt
> deleted file mode 100644
> index 75736739bfdd..000000000000
> --- a/Documentation/devicetree/bindings/net/brcm,systemport.txt
> +++ /dev/null
> @@ -1,38 +0,0 @@
> -* Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT)
> -
> -Required properties:
> -- compatible: should be one of:
> - "brcm,systemport-v1.00"
> - "brcm,systemportlite-v1.00" or
> - "brcm,systemport"
> -- reg: address and length of the register set for the device.
> -- interrupts: interrupts for the device, first cell must be for the rx
> - interrupts, and the second cell should be for the transmit queues. An
> - optional third interrupt cell for Wake-on-LAN can be specified
> -- local-mac-address: Ethernet MAC address (48 bits) of this adapter
> -- phy-mode: Should be a string describing the PHY interface to the
> - Ethernet switch/PHY, see Documentation/devicetree/bindings/net/ethernet.txt
> -- fixed-link: see Documentation/devicetree/bindings/net/fixed-link.txt for
> - the property specific details
> -
> -Optional properties:
> -- systemport,num-tier2-arb: number of tier 2 arbiters, an integer
> -- systemport,num-tier1-arb: number of tier 1 arbiters, an integer
> -- systemport,num-txq: number of HW transmit queues, an integer
> -- systemport,num-rxq: number of HW receive queues, an integer
> -- clocks: When provided, must be two phandles to the functional clocks nodes of
> - the SYSTEMPORT block. The first phandle is the main SYSTEMPORT clock used
> - during normal operation, while the second phandle is the Wake-on-LAN clock.
> -- clock-names: When provided, names of the functional clock phandles, first
> - name should be "sw_sysport" and second should be "sw_sysportwol".
> -
> -Example:
> -ethernet@f04a0000 {
> - compatible = "brcm,systemport-v1.00";
> - reg = <0xf04a0000 0x4650>;
> - local-mac-address = [ 00 11 22 33 44 55 ];
> - fixed-link = <0 1 1000 0 0>;
> - phy-mode = "gmii";
> - interrupts = <0x0 0x16 0x0>,
> - <0x0 0x17 0x0>;
> -};
> diff --git a/Documentation/devicetree/bindings/net/brcm,systemport.yaml b/Documentation/devicetree/bindings/net/brcm,systemport.yaml
> new file mode 100644
> index 000000000000..44781027ed37
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/brcm,systemport.yaml
> @@ -0,0 +1,82 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/net/brcm,systemport.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT)
> +
> +maintainers:
> + - Florian Fainelli <f.fainelli@gmail.com>
> +
> +properties:
> + compatible:
> + enum:
> + - brcm,systemport-v1.00
> + - brcm,systemportlite-v1.00
> + - brcm,systemport
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + minItems: 2
> + items:
> + - description: interrupt line for RX queues
> + - description: interrupt line for TX queues
> + - description: interrupt line for Wake-on-LAN
> +
> + clocks:
> + items:
> + - description: main clock
> + - description: Wake-on-LAN clock
> +
> + clock-names:
> + items:
> + - const: sw_sysport
> + - const: sw_sysportwol
> +
> + "systemport,num-tier2-arb":
Don't need quotes.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Number of tier 2 arbiters
> +
> + "systemport,num-tier1-arb":
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Number of tier 2 arbiters
> +
> + "systemport,num-txq":
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Number of HW transmit queues
> +
> + "systemport,num-rxq":
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Number of HW receive queues
No constraints for any of these?
> +
> +required:
> + - reg
> + - interrupts
> + - phy-mode
> +
> +allOf:
> + - $ref: "ethernet-controller.yaml#"
> +
> +additionalProperties: true
unevaluatedProperties: false
> +
> +examples:
> + - |
> + ethernet@f04a0000 {
> + compatible = "brcm,systemport-v1.00";
> + reg = <0xf04a0000 0x4650>;
> + local-mac-address = [ 00 11 22 33 44 55 ];
> + phy-mode = "gmii";
> + interrupts = <0x0 0x16 0x0>,
> + <0x0 0x17 0x0>;
> + fixed-link {
> + speed = <1000>;
> + full-duplex;
> + };
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 404e76d625f1..ed8de605fe4b 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -3972,6 +3972,7 @@ L: netdev@vger.kernel.org
> S: Supported
> F: drivers/net/ethernet/broadcom/bcmsysport.*
> F: drivers/net/ethernet/broadcom/unimac.h
> +F: Documentation/devicetree/bindings/net/brcm,systemport.yaml
>
> BROADCOM TG3 GIGABIT ETHERNET DRIVER
> M: Siva Reddy Kallam <siva.kallam@broadcom.com>
> --
> 2.25.1
>
>
next prev parent reply other threads:[~2021-12-08 19:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-06 18:00 [PATCH v3 0/8] Broadcom DT bindings conversion to YAML Florian Fainelli
2021-12-06 18:00 ` [PATCH v3 1/8] dt-bindings: net: brcm,unimac-mdio: reg-names is optional Florian Fainelli
2021-12-08 19:28 ` Rob Herring
2021-12-06 18:00 ` [PATCH v3 2/8] dt-bindings: net: brcm,unimac-mdio: Update maintainers for binding Florian Fainelli
2021-12-08 19:29 ` Rob Herring
2021-12-06 18:00 ` [PATCH v3 3/8] dt-bindings: net: Document moca PHY interface Florian Fainelli
2021-12-08 19:29 ` Rob Herring
2021-12-06 18:00 ` [PATCH v3 4/8] dt-bindings: net: Convert GENET binding to YAML Florian Fainelli
2021-12-08 19:32 ` Rob Herring
2021-12-08 19:33 ` Rob Herring
2021-12-06 18:00 ` [PATCH v3 5/8] dt-bindings: net: Convert AMAC " Florian Fainelli
2021-12-08 19:46 ` Rob Herring
2021-12-06 18:00 ` [PATCH v3 6/8] dt-bindings: net: Convert SYSTEMPORT " Florian Fainelli
2021-12-08 19:48 ` Rob Herring [this message]
2021-12-06 18:00 ` [PATCH v3 7/8] dt-bindings: phy: Convert Northstar 2 PCIe PHY " Florian Fainelli
2021-12-08 19:48 ` Rob Herring
2021-12-06 18:00 ` [PATCH v3 8/8] dt-bindings: net: Convert iProc MDIO mux " Florian Fainelli
2021-12-08 19:49 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YbEMDIhKZEzpeKQR@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=kishon@ti.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=netdev@vger.kernel.org \
--cc=opendmb@gmail.com \
--cc=rafal@milecki.pl \
--cc=rjui@broadcom.com \
--cc=sbranden@broadcom.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).