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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml

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 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml (Architecture sparc) and /Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml (Architecture ppc)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/net/mdio-mu      4 $id: http://devicetree.org/schemas/net/mdio-mux-gpio.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Properties for an MDIO bus multiplexer/      7 title: Properties for an MDIO bus multiplexer/switch controlled by GPIO pins.
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Andrew Lunn <andrew@lunn.ch>                    10   - Andrew Lunn <andrew@lunn.ch>
 11                                                    11 
 12 description:                                       12 description:
 13   This is a special case of a MDIO bus multipl     13   This is a special case of a MDIO bus multiplexer.  One or more GPIO
 14   lines are used to control which child bus is     14   lines are used to control which child bus is connected.
 15                                                    15 
 16 allOf:                                             16 allOf:
 17   - $ref: /schemas/net/mdio-mux.yaml#              17   - $ref: /schemas/net/mdio-mux.yaml#
 18                                                    18 
 19 properties:                                        19 properties:
 20   compatible:                                      20   compatible:
 21     const: mdio-mux-gpio                           21     const: mdio-mux-gpio
 22                                                    22 
 23   gpios:                                           23   gpios:
 24     description:                                   24     description:
 25       List of GPIOs used to control the multip     25       List of GPIOs used to control the multiplexer, least significant bit first.
 26     minItems: 1                                    26     minItems: 1
 27     maxItems: 32                                   27     maxItems: 32
 28                                                    28 
 29 required:                                          29 required:
 30   - compatible                                     30   - compatible
 31   - gpios                                          31   - gpios
 32                                                    32 
 33 unevaluatedProperties: false                       33 unevaluatedProperties: false
 34                                                    34 
 35 examples:                                          35 examples:
 36   - |                                              36   - |
 37     /*                                             37     /*
 38      An NXP sn74cbtlv3253 dual 1-of-4 switch c     38      An NXP sn74cbtlv3253 dual 1-of-4 switch controlled by a
 39      pair of GPIO lines.  Child busses 2 and 3     39      pair of GPIO lines.  Child busses 2 and 3 populated with 4
 40      PHYs each.                                    40      PHYs each.
 41      */                                            41      */
 42     mdio-mux {                                     42     mdio-mux {
 43         compatible = "mdio-mux-gpio";              43         compatible = "mdio-mux-gpio";
 44         gpios = <&gpio1 3 0>, <&gpio1 4 0>;        44         gpios = <&gpio1 3 0>, <&gpio1 4 0>;
 45         mdio-parent-bus = <&smi1>;                 45         mdio-parent-bus = <&smi1>;
 46         #address-cells = <1>;                      46         #address-cells = <1>;
 47         #size-cells = <0>;                         47         #size-cells = <0>;
 48                                                    48 
 49         mdio@2 {                                   49         mdio@2 {
 50             reg = <2>;                             50             reg = <2>;
 51             #address-cells = <1>;                  51             #address-cells = <1>;
 52             #size-cells = <0>;                     52             #size-cells = <0>;
 53                                                    53 
 54             ethernet-phy@1 {                       54             ethernet-phy@1 {
 55                 reg = <1>;                         55                 reg = <1>;
 56                 marvell,reg-init = <3 0x10 0 0     56                 marvell,reg-init = <3 0x10 0 0x5777>,
 57                   <3 0x11 0 0x00aa>,               57                   <3 0x11 0 0x00aa>,
 58                   <3 0x12 0 0x4105>,               58                   <3 0x12 0 0x4105>,
 59                   <3 0x13 0 0x0a60>;               59                   <3 0x13 0 0x0a60>;
 60                 interrupt-parent = <&gpio>;        60                 interrupt-parent = <&gpio>;
 61                 interrupts = <10 8>; /* Pin 10     61                 interrupts = <10 8>; /* Pin 10, active low */
 62             };                                     62             };
 63             ethernet-phy@2 {                       63             ethernet-phy@2 {
 64                 reg = <2>;                         64                 reg = <2>;
 65                 marvell,reg-init = <3 0x10 0 0     65                 marvell,reg-init = <3 0x10 0 0x5777>,
 66                   <3 0x11 0 0x00aa>,               66                   <3 0x11 0 0x00aa>,
 67                   <3 0x12 0 0x4105>,               67                   <3 0x12 0 0x4105>,
 68                   <3 0x13 0 0x0a60>;               68                   <3 0x13 0 0x0a60>;
 69                 interrupt-parent = <&gpio>;        69                 interrupt-parent = <&gpio>;
 70                 interrupts = <10 8>; /* Pin 10     70                 interrupts = <10 8>; /* Pin 10, active low */
 71             };                                     71             };
 72             ethernet-phy@3 {                       72             ethernet-phy@3 {
 73                 reg = <3>;                         73                 reg = <3>;
 74                 marvell,reg-init = <3 0x10 0 0     74                 marvell,reg-init = <3 0x10 0 0x5777>,
 75                   <3 0x11 0 0x00aa>,               75                   <3 0x11 0 0x00aa>,
 76                   <3 0x12 0 0x4105>,               76                   <3 0x12 0 0x4105>,
 77                   <3 0x13 0 0x0a60>;               77                   <3 0x13 0 0x0a60>;
 78                 interrupt-parent = <&gpio>;        78                 interrupt-parent = <&gpio>;
 79                 interrupts = <10 8>; /* Pin 10     79                 interrupts = <10 8>; /* Pin 10, active low */
 80             };                                     80             };
 81             ethernet-phy@4 {                       81             ethernet-phy@4 {
 82                 reg = <4>;                         82                 reg = <4>;
 83                 marvell,reg-init = <3 0x10 0 0     83                 marvell,reg-init = <3 0x10 0 0x5777>,
 84                   <3 0x11 0 0x00aa>,               84                   <3 0x11 0 0x00aa>,
 85                   <3 0x12 0 0x4105>,               85                   <3 0x12 0 0x4105>,
 86                   <3 0x13 0 0x0a60>;               86                   <3 0x13 0 0x0a60>;
 87                 interrupt-parent = <&gpio>;        87                 interrupt-parent = <&gpio>;
 88                 interrupts = <10 8>; /* Pin 10     88                 interrupts = <10 8>; /* Pin 10, active low */
 89             };                                     89             };
 90         };                                         90         };
 91                                                    91 
 92         mdio@3 {                                   92         mdio@3 {
 93             reg = <3>;                             93             reg = <3>;
 94             #address-cells = <1>;                  94             #address-cells = <1>;
 95             #size-cells = <0>;                     95             #size-cells = <0>;
 96                                                    96 
 97             ethernet-phy@1 {                       97             ethernet-phy@1 {
 98                 reg = <1>;                         98                 reg = <1>;
 99                 marvell,reg-init = <3 0x10 0 0     99                 marvell,reg-init = <3 0x10 0 0x5777>,
100                   <3 0x11 0 0x00aa>,              100                   <3 0x11 0 0x00aa>,
101                   <3 0x12 0 0x4105>,              101                   <3 0x12 0 0x4105>,
102                   <3 0x13 0 0x0a60>;              102                   <3 0x13 0 0x0a60>;
103                 interrupt-parent = <&gpio>;       103                 interrupt-parent = <&gpio>;
104                 interrupts = <12 8>; /* Pin 12    104                 interrupts = <12 8>; /* Pin 12, active low */
105             };                                    105             };
106             ethernet-phy@2 {                      106             ethernet-phy@2 {
107                 reg = <2>;                        107                 reg = <2>;
108                 marvell,reg-init = <3 0x10 0 0    108                 marvell,reg-init = <3 0x10 0 0x5777>,
109                   <3 0x11 0 0x00aa>,              109                   <3 0x11 0 0x00aa>,
110                   <3 0x12 0 0x4105>,              110                   <3 0x12 0 0x4105>,
111                   <3 0x13 0 0x0a60>;              111                   <3 0x13 0 0x0a60>;
112                 interrupt-parent = <&gpio>;       112                 interrupt-parent = <&gpio>;
113                 interrupts = <12 8>; /* Pin 12    113                 interrupts = <12 8>; /* Pin 12, active low */
114             };                                    114             };
115             ethernet-phy@3 {                      115             ethernet-phy@3 {
116                 reg = <3>;                        116                 reg = <3>;
117                 marvell,reg-init = <3 0x10 0 0    117                 marvell,reg-init = <3 0x10 0 0x5777>,
118                   <3 0x11 0 0x00aa>,              118                   <3 0x11 0 0x00aa>,
119                   <3 0x12 0 0x4105>,              119                   <3 0x12 0 0x4105>,
120                   <3 0x13 0 0x0a60>;              120                   <3 0x13 0 0x0a60>;
121                 interrupt-parent = <&gpio>;       121                 interrupt-parent = <&gpio>;
122                 interrupts = <12 8>; /* Pin 12    122                 interrupts = <12 8>; /* Pin 12, active low */
123             };                                    123             };
124             ethernet-phy@4 {                      124             ethernet-phy@4 {
125                 reg = <4>;                        125                 reg = <4>;
126                 marvell,reg-init = <3 0x10 0 0    126                 marvell,reg-init = <3 0x10 0 0x5777>,
127                   <3 0x11 0 0x00aa>,              127                   <3 0x11 0 0x00aa>,
128                   <3 0x12 0 0x4105>,              128                   <3 0x12 0 0x4105>,
129                   <3 0x13 0 0x0a60>;              129                   <3 0x13 0 0x0a60>;
130                 interrupt-parent = <&gpio>;       130                 interrupt-parent = <&gpio>;
131                 interrupts = <12 8>; /* Pin 12    131                 interrupts = <12 8>; /* Pin 12, active low */
132             };                                    132             };
133         };                                        133         };
134     };                                            134     };
135 ...                                               135 ...
                                                      

~ [ 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