netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Cc: Woojung.Huh@microchip.com, UNGLinuxDriver@microchip.com,
	andrew@lunn.ch, vivien.didelot@savoirfairelinux.com,
	f.fainelli@gmail.com, driverdev-devel@linuxdriverproject.org,
	davem@davemloft.net, netdev@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/2] dt-bindings: net: dsa: ksz9477: add sample of switch bindings managed in i2c mode
Date: Tue, 18 Dec 2018 09:10:44 -0600	[thread overview]
Message-ID: <20181218151044.GA26992@bogus> (raw)
In-Reply-To: <20181217204423.14271-1-sergio.paracuellos@gmail.com>

On Mon, Dec 17, 2018 at 09:44:23PM +0100, Sergio Paracuellos wrote:
> Add device-tree binding example of the ksz9477 switch managed in i2c mode.
> 
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
> ---
> Changes v3:
>     - No changes. Just resent patches together.
> 
> Changes v2:
>     - Use generic name for label of the switch and make sure reg and @X
>       have the same value.
> 
>  .../devicetree/bindings/net/dsa/ksz.txt       | 50 +++++++++++++++++++
>  1 file changed, 50 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/dsa/ksz.txt b/Documentation/devicetree/bindings/net/dsa/ksz.txt
> index 0f407fb371ce..d3c4b9d4f416 100644
> --- a/Documentation/devicetree/bindings/net/dsa/ksz.txt
> +++ b/Documentation/devicetree/bindings/net/dsa/ksz.txt
> @@ -74,3 +74,53 @@ Ethernet switch connected via SPI to the host, CPU port wired to eth0:
>                                                               };
>                                               };
>                               };
> +
> +Ethernet switch connected via I2C to the host, CPU port wired to eth0:
> +
> +                             eth0: ethernet@10001000 {

Why do we have all this indentation? Please remove. And use tab chars, 
not spaces.

> +                                             fixed-link {
> +                                                             speed = <1000>;
> +                                                             full-duplex;
> +                                             };
> +                             };
> +
> +                             i2c0: i2c@f8008000 {
> +                                             switch: ksz9897@5f {
> +                                                             compatible = "microchip,ksz9897";
> +                                                             reg = <5f>;
> +
> +                                                             ports {
> +                                                                             #address-cells = <1>;
> +                                                                             #size-cells = <0>;
> +                                                                             port@0 {
> +                                                                                             reg = <0>;
> +                                                                                             label = "lan1";
> +                                                                             };
> +                                                                             port@1 {
> +                                                                                             reg = <1>;
> +                                                                                             label = "lan2";
> +                                                                             };
> +                                                                             port@2 {
> +                                                                                             reg = <2>;
> +                                                                                             label = "lan3";
> +                                                                             };
> +                                                                             port@3 {
> +                                                                                             reg = <3>;
> +                                                                                             label = "lan4";
> +                                                                             };
> +                                                                             port@4 {
> +                                                                                             reg = <4>;
> +                                                                                             label = "lan5";
> +                                                                             };
> +                                                                             port@6 {
> +                                                                                             reg = <6>;
> +                                                                                             label = "cpu";
> +                                                                                             ethernet = <&eth0>;
> +                                                                                             fixed-link {
> +                                                                                                             speed = <1000>;
> +                                                                                                             full-duplex;
> +                                                                                             };
> +                                                                             };
> +                                                             };
> +                                             };
> +                             };
> -- 
> 2.19.1
> 

  parent reply	other threads:[~2018-12-18 15:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 20:44 [PATCH v3 2/2] dt-bindings: net: dsa: ksz9477: add sample of switch bindings managed in i2c mode Sergio Paracuellos
2018-12-17 22:22 ` Florian Fainelli
2018-12-18  6:32   ` Sergio Paracuellos
2018-12-18 15:10 ` Rob Herring [this message]
2018-12-19  6:23   ` Sergio Paracuellos
2018-12-19 18:26     ` Florian Fainelli
2018-12-19 19:49       ` Sergio Paracuellos

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=20181218151044.GA26992@bogus \
    --to=robh@kernel.org \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=Woojung.Huh@microchip.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=driverdev-devel@linuxdriverproject.org \
    --cc=f.fainelli@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=sergio.paracuellos@gmail.com \
    --cc=vivien.didelot@savoirfairelinux.com \
    /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).