~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/dsa/lan9303.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 SMSC/MicroChip LAN9303 three port ethernet switch
  2 -------------------------------------------------
  3 
  4 Required properties:
  5 
  6 - compatible: should be
  7   - "smsc,lan9303-i2c" for I2C managed mode
  8     or
  9   - "smsc,lan9303-mdio" for mdio managed mode
 10 
 11 Optional properties:
 12 
 13 - reset-gpios: GPIO to be used to reset the whole device
 14 - reset-duration: reset duration in milliseconds, defaults to 200 ms
 15 
 16 Subnodes:
 17 
 18 The integrated switch subnode should be specified according to the binding
 19 described in dsa/dsa.txt. The CPU port of this switch is always port 0.
 20 
 21 Note: always use 'reg = <0/1/2>;' for the three DSA ports, even if the device is
 22 configured to use 1/2/3 instead. This hardware configuration will be
 23 auto-detected and mapped accordingly.
 24 
 25 Example:
 26 
 27 I2C managed mode:
 28 
 29         master: masterdevice@X {
 30 
 31                 fixed-link { /* RMII fixed link to LAN9303 */
 32                         speed = <100>;
 33                         full-duplex;
 34                 };
 35         };
 36 
 37         switch: switch@a {
 38                 compatible = "smsc,lan9303-i2c";
 39                 reg = <0xa>;
 40                 reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
 41                 reset-duration = <200>;
 42 
 43                 ports {
 44                         #address-cells = <1>;
 45                         #size-cells = <0>;
 46 
 47                         port@0 { /* RMII fixed link to master */
 48                                 reg = <0>;
 49                                 ethernet = <&master>;
 50                         };
 51 
 52                         port@1 { /* external port 1 */
 53                                 reg = <1>;
 54                                 label = "lan1";
 55                         };
 56 
 57                         port@2 { /* external port 2 */
 58                                 reg = <2>;
 59                                 label = "lan2";
 60                         };
 61                 };
 62         };
 63 
 64 MDIO managed mode:
 65 
 66         master: masterdevice@X {
 67                 phy-handle = <&switch>;
 68 
 69                 mdio {
 70                         #address-cells = <1>;
 71                         #size-cells = <0>;
 72 
 73                         switch: switch-phy@0 {
 74                                 compatible = "smsc,lan9303-mdio";
 75                                 reg = <0>;
 76                                 reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
 77                                 reset-duration = <100>;
 78 
 79                                 ports {
 80                                         #address-cells = <1>;
 81                                         #size-cells = <0>;
 82 
 83                                         port@0 {
 84                                                 reg = <0>;
 85                                                 ethernet = <&master>;
 86                                         };
 87 
 88                                         port@1 { /* external port 1 */
 89                                                 reg = <1>;
 90                                                 label = "lan1";
 91                                         };
 92 
 93                                         port@2 { /* external port 2 */
 94                                                 reg = <2>;
 95                                                 label = "lan2";
 96                                         };
 97                                 };
 98                         };
 99                 };
100         };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php