Re: [PATCH v3 2/2] dt-bindings: net: dsa: ksz9477: add sample of switch bindings managed in i2c mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rob,

On Tue, Dec 18, 2018 at 4:10 PM Rob Herring <robh@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxxx
> > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@xxxxxxxxx>
> > ---
> > 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.

The original file format is using all of this indentation. So I think
we would need a patch to change de format of the original file and
another with this new changes properly formatted.

>
> > +                                             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
> >
Best regards,
    Sergio Paracuellos
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux