From: Horatiu Vultur <horatiu.vultur@microchip.com>
To: Rob Herring <robh@kernel.org>
Cc: <davem@davemloft.net>, <kuba@kernel.org>,
<UNGLinuxDriver@microchip.com>, <p.zabel@pengutronix.de>,
<linux@armlinux.org.uk>, <andrew@lunn.ch>,
<netdev@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next v5 1/6] dt-bindings: net: lan966x: Add lan966x-switch bindings
Date: Wed, 1 Dec 2021 16:54:11 +0100 [thread overview]
Message-ID: <20211201155411.cwwftmnbku6slspp@soft-dev3-1.localhost> (raw)
In-Reply-To: <YaaIMizLkPG81gAO@robh.at.kernel.org>
The 11/30/2021 14:23, Rob Herring wrote:
Hi Rob,
>
> > + items:
> > + - const: switch
> > + - const: phy
> > +
> > + ethernet-ports:
> > + type: object
>
> additionalProperties: false
Yes, I will add then. But then I will need to add also:
properties:
'#address-cells':
const: 1
'#size-cells':
const: 0
>
> > + patternProperties:
> > + "^port@[0-9a-f]+$":
> > + type: object
> > +
> > + allOf:
>
> Don't need allOf here.
>
> > + - $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#"
>
> Drop 'http://devicetree.org'. (If you copied that from somewhere, please
> fix them too.)
>
> unevaluatedProperties: false
I will fix this and I would send also a patch for dsa.yaml.
>
> > +
> > + properties:
> > + '#address-cells':
> > + const: 1
> > + '#size-cells':
> > + const: 0
> > +
> > + reg:
> > + description:
> > + Switch port number
> > +
> > + phys:
> > + description:
> > + Phandle of a Ethernet SerDes PHY
> > +
> > + phy-mode:
> > + description:
> > + This specifies the interface used by the Ethernet SerDes towards
> > + the PHY or SFP.
> > + enum:
> > + - gmii
> > + - sgmii
> > + - qsgmii
> > + - 1000base-x
> > + - 2500base-x
> > +
> > + phy-handle:
> > + description:
> > + Phandle of a Ethernet PHY.
> > +
> > + sfp:
> > + description:
> > + Phandle of an SFP.
> > +
> > + managed: true
> > +
> > + required:
> > + - reg
> > + - phys
> > + - phy-mode
> > +
> > + oneOf:
> > + - required:
> > + - phy-handle
> > + - required:
> > + - sfp
> > + - managed
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - reg-names
> > + - interrupts
> > + - interrupt-names
> > + - resets
> > + - reset-names
> > + - ethernet-ports
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/interrupt-controller/arm-gic.h>
> > + switch: switch@e0000000 {
> > + compatible = "microchip,lan966x-switch";
> > + reg = <0xe0000000 0x0100000>,
> > + <0xe2000000 0x0800000>;
> > + reg-names = "cpu", "gcb";
> > + interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
> > + interrupt-names = "xtr";
> > + resets = <&switch_reset 0>, <&phy_reset 0>;
> > + reset-names = "switch", "phy";
> > + ethernet-ports {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + port0: port@0 {
> > + reg = <0>;
> > + phy-handle = <&phy0>;
> > + phys = <&serdes 0 0>;
> > + phy-mode = "gmii";
> > + };
> > +
> > + port1: port@1 {
> > + reg = <1>;
> > + sfp = <&sfp_eth1>;
> > + managed = "in-band-status";
> > + phys = <&serdes 2 4>;
> > + phy-mode = "sgmii";
> > + };
> > + };
> > + };
> > +
> > +...
> > --
> > 2.33.0
> >
> >
--
/Horatiu
next prev parent reply other threads:[~2021-12-01 15:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-29 12:43 [PATCH net-next v5 0/6] net: lan966x: Add lan966x switch driver Horatiu Vultur
2021-11-29 12:43 ` [PATCH net-next v5 1/6] dt-bindings: net: lan966x: Add lan966x-switch bindings Horatiu Vultur
2021-11-30 20:23 ` Rob Herring
2021-12-01 15:54 ` Horatiu Vultur [this message]
2021-11-29 12:43 ` [PATCH net-next v5 2/6] net: lan966x: add the basic lan966x driver Horatiu Vultur
2021-11-29 12:43 ` [PATCH net-next v5 3/6] net: lan966x: add port module support Horatiu Vultur
2021-11-29 12:43 ` [PATCH net-next v5 4/6] net: lan966x: add mactable support Horatiu Vultur
2021-11-29 12:43 ` [PATCH net-next v5 5/6] net: lan966x: add ethtool configuration and statistics Horatiu Vultur
2021-11-29 12:43 ` [PATCH net-next v5 6/6] net: lan966x: Update MAINTAINERS to include lan966x driver Horatiu Vultur
2021-11-29 13:10 ` [PATCH net-next v5 0/6] net: lan966x: Add lan966x switch driver patchwork-bot+netdevbpf
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=20211201155411.cwwftmnbku6slspp@soft-dev3-1.localhost \
--to=horatiu.vultur@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@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).