Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: Change DT bindings for Vitesse VSC73xx switches

This commit introduce how to use vsc73xx platform driver.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Pawel Dembicki and committed by
David S. Miller
86116f4d 30a4616c

+54 -4
+54 -4
Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.txt
··· 2 2 ======================== 3 3 4 4 This defines device tree bindings for the Vitesse VSC73xx switch chips. 5 - The Vitesse company has been acquired by Microsemi and Microsemi in turn 6 - acquired by Microchip but retains this vendor branding. 5 + The Vitesse company has been acquired by Microsemi and Microsemi has 6 + been acquired Microchip but retains this vendor branding. 7 7 8 8 The currently supported switch chips are: 9 9 Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch ··· 11 11 Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch 12 12 Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch 13 13 14 - The device tree node is an SPI device so it must reside inside a SPI bus 15 - device tree node, see spi/spi-bus.txt 14 + This switch could have two different management interface. 15 + 16 + If SPI interface is used, the device tree node is an SPI device so it must 17 + reside inside a SPI bus device tree node, see spi/spi-bus.txt 18 + 19 + When the chip is connected to a parallel memory bus and work in memory-mapped 20 + I/O mode, a platform device is used to represent the vsc73xx. In this case it 21 + must reside inside a platform bus device tree node. 16 22 17 23 Required properties: 18 24 ··· 44 38 45 39 Examples: 46 40 41 + SPI: 47 42 switch@0 { 48 43 compatible = "vitesse,vsc7395"; 49 44 reg = <0>; ··· 85 78 }; 86 79 }; 87 80 }; 81 + }; 82 + 83 + Platform: 84 + switch@2,0 { 85 + #address-cells = <1>; 86 + #size-cells = <1>; 87 + compatible = "vitesse,vsc7385"; 88 + reg = <0x2 0x0 0x20000>; 89 + reset-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 90 + 91 + ports { 92 + #address-cells = <1>; 93 + #size-cells = <0>; 94 + 95 + port@0 { 96 + reg = <0>; 97 + label = "lan1"; 98 + }; 99 + port@1 { 100 + reg = <1>; 101 + label = "lan2"; 102 + }; 103 + port@2 { 104 + reg = <2>; 105 + label = "lan3"; 106 + }; 107 + port@3 { 108 + reg = <3>; 109 + label = "lan4"; 110 + }; 111 + vsc: port@6 { 112 + reg = <6>; 113 + label = "cpu"; 114 + ethernet = <&enet0>; 115 + phy-mode = "rgmii"; 116 + fixed-link { 117 + speed = <1000>; 118 + full-duplex; 119 + pause; 120 + }; 121 + }; 122 + }; 123 + 88 124 };