Thread (5 messages) flat view 5 messages, 2 authors, 2021-07-30

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

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-07-30 23:04:43

On Fri, Jul 30, 2021 at 02:15:57PM +0200, Linus Walleij wrote:
On Thu, Jul 29, 2021 at 5:33 PM Andrew Lunn [off-list ref] wrote:
quoted
quoted
+     /* 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@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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help