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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/fsl,fman-mdio.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 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/net/fsl,fman-mdio.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Freescale Frame Manager MDIO Device
  8 
  9 maintainers:
 10   - Frank Li <Frank.Li@nxp.com>
 11 
 12 description: FMan MDIO Node.
 13   The MDIO is a bus to which the PHY devices are connected.
 14 
 15 properties:
 16   compatible:
 17     enum:
 18       - fsl,fman-mdio
 19       - fsl,fman-xmdio
 20       - fsl,fman-memac-mdio
 21     description:
 22       Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2.
 23       Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2.
 24       Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from
 25       FMan v3.
 26 
 27   reg:
 28     maxItems: 1
 29 
 30   clocks:
 31     items:
 32       - description: A reference to the input clock of the controller
 33           from which the MDC frequency is derived.
 34 
 35   interrupts:
 36     maxItems: 1
 37 
 38   fsl,fman-internal-mdio:
 39     $ref: /schemas/types.yaml#/definitions/flag
 40     description:
 41       Fman has internal MDIO for internal PCS(Physical
 42       Coding Sublayer) PHYs and external MDIO for external PHYs.
 43       The settings and programming routines for internal/external
 44       MDIO are different. Must be included for internal MDIO.
 45 
 46   fsl,erratum-a009885:
 47     $ref: /schemas/types.yaml#/definitions/flag
 48     description: Indicates the presence of the A009885
 49       erratum describing that the contents of MDIO_DATA may
 50       become corrupt unless it is read within 16 MDC cycles
 51       of MDIO_CFG[BSY] being cleared, when performing an
 52       MDIO read operation.
 53 
 54   fsl,erratum-a011043:
 55     $ref: /schemas/types.yaml#/definitions/flag
 56     description:
 57       Indicates the presence of the A011043 erratum
 58       describing that the MDIO_CFG[MDIO_RD_ER] bit may be falsely
 59       set when reading internal PCS registers. MDIO reads to
 60       internal PCS registers may result in having the
 61       MDIO_CFG[MDIO_RD_ER] bit set, even when there is no error and
 62       read data (MDIO_DATA[MDIO_DATA]) is correct.
 63       Software may get false read error when reading internal
 64       PCS registers through MDIO. As a workaround, all internal
 65       MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit.
 66 
 67       For internal PHY device on internal mdio bus, a PHY node should be created.
 68       See the definition of the PHY node in booting-without-of.txt for an
 69       example of how to define a PHY (Internal PHY has no interrupt line).
 70       - For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY.
 71       - For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY.
 72         The PCS PHY address should correspond to the value of the appropriate
 73         MDEV_PORT.
 74 
 75   little-endian:
 76     $ref: /schemas/types.yaml#/definitions/flag
 77     description:
 78       IP block is little-endian mode. The default endian mode is big-endian.
 79 
 80 required:
 81   - compatible
 82   - reg
 83 
 84 allOf:
 85   - $ref: mdio.yaml#
 86 
 87 unevaluatedProperties: false
 88 
 89 examples:
 90   - |
 91     mdio@f1000 {
 92         compatible = "fsl,fman-xmdio";
 93         reg = <0xf1000 0x1000>;
 94         interrupts = <101 2 0 0>;
 95     };
 96 
 97   - |
 98     mdio@e3120 {
 99         compatible = "fsl,fman-mdio";
100         reg = <0xe3120 0xee0>;
101         fsl,fman-internal-mdio;
102         #address-cells = <1>;
103         #size-cells = <0>;
104 
105         tbi-phy@8 {
106             reg = <0x8>;
107             device_type = "tbi-phy";
108         };
109     };
110 
111   - |
112     mdio@f1000 {
113         compatible = "fsl,fman-memac-mdio";
114         reg = <0xf1000 0x1000>;
115         fsl,fman-internal-mdio;
116         #address-cells = <1>;
117         #size-cells = <0>;
118 
119         pcsphy6: ethernet-phy@0 {
120             reg = <0x0>;
121         };
122     };
123 

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