[PATCH] ARM: dts: ixp4xx: Add devicetree for Linksys WRV54G

Andrew Lunn andrew at lunn.ch
Fri Jul 30 16:01:33 PDT 2021


On Fri, Jul 30, 2021 at 02:15:57PM +0200, Linus Walleij wrote:
> On Thu, Jul 29, 2021 at 5:33 PM Andrew Lunn <andrew at lunn.ch> wrote:
> 
> > > +     /* This set-up comes from an OpenWrt patch */
> > > +     spi {
> > > +             compatible = "spi-gpio";
> > > +             #address-cells = <1>;
> > > +             #size-cells = <0>;
> > > +
> > > +             sck-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
> > > +             miso-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
> > > +             mosi-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
> > > +             cs-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
> > > +             num-chipselects = <1>;
> > > +
> > > +             switch at 0 {
> > > +                     compatible = "micrel,ks8995";
> >
> > Hi Linus
> >
> > This does not exist in mainline. And when it does, i guess it will be
> > called microchip,ksz8995. See microchip,ksz.yaml.
> 
> As it happens it does exist, so this was what I was using:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/net/micrel-ks8995.txt

Ah, that driver! O.K. I will take a second look at this.

I suspect there is code in userspace actually driving the switch.

  Andrew



More information about the linux-arm-kernel mailing list