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,cpm-mdio.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Freescale CPM MDIO Device 8 9maintainers: 10 - Frank Li <Frank.Li@nxp.com> 11 12properties: 13 compatible: 14 oneOf: 15 - enum: 16 - fsl,pq1-fec-mdio 17 - fsl,cpm2-mdio-bitbang 18 - items: 19 - const: fsl,mpc8272ads-mdio-bitbang 20 - const: fsl,mpc8272-mdio-bitbang 21 - const: fsl,cpm2-mdio-bitbang 22 23 reg: 24 maxItems: 1 25 26 fsl,mdio-pin: 27 $ref: /schemas/types.yaml#/definitions/uint32 28 description: pin of port C controlling mdio data 29 30 fsl,mdc-pin: 31 $ref: /schemas/types.yaml#/definitions/uint32 32 description: pin of port C controlling mdio clock 33 34required: 35 - compatible 36 - reg 37 38allOf: 39 - $ref: mdio.yaml# 40 41unevaluatedProperties: false 42 43examples: 44 - | 45 mdio@10d40 { 46 compatible = "fsl,mpc8272ads-mdio-bitbang", 47 "fsl,mpc8272-mdio-bitbang", 48 "fsl,cpm2-mdio-bitbang"; 49 reg = <0x10d40 0x14>; 50 #address-cells = <1>; 51 #size-cells = <0>; 52 fsl,mdio-pin = <12>; 53 fsl,mdc-pin = <13>; 54 }; 55 56