Skip to content

Commit

Permalink
Merge branch 'spi_ks8995'
Browse files Browse the repository at this point in the history
Helmut Buchsbaum says:

====================
Add support for MICREL KSZ8795CLX 5-port switch

This patch series refactors the spi-ks8995 driver to finally add support
for the MICREL KSZ8795CLX. Additionally support for controlling a GPIO
line for resetting the switch is added.

Helmut

Changes since v2:
 - use GPIO_ACTIVE_LOW according to Andrew's remark.
 - use ePAPR compliant node name in example, thanks to Sergei for
   pointing out
Changes since v1:
 - removed initializing registers from Device Tree following Florian's
   advice
 - fixed GPIO handling for reset according to Andrew's remark.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Feb 11, 2016
2 parents 7463053 + 7e406d1 commit 6dca8d4
Show file tree
Hide file tree
Showing 2 changed files with 265 additions and 59 deletions.
20 changes: 20 additions & 0 deletions Documentation/devicetree/bindings/net/micrel-ks8995.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Micrel KS8995 SPI controlled Ethernet Switch families

Required properties (according to spi-bus.txt):
- compatible: either "micrel,ks8995", "micrel,ksz8864" or "micrel,ksz8795"

Optional properties:
- reset-gpios : phandle of gpio that will be used to reset chip during probe

Example:

spi-master {
...
switch@0 {
compatible = "micrel,ksz8795";

reg = <0>;
spi-max-frequency = <50000000>;
reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>;
};
};
Loading

0 comments on commit 6dca8d4

Please sign in to comment.