mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

Convert binding doc newwork.txt to yaml format. HDLC part: - Convert to "fsl,ucc-hdlc.yaml". - Add missed reg and interrupt property. - Update example to pass build. ethernet part: - Convert to net/fsl,cpm-enet.yaml - Add 0x in example, which should be hex value - Add ref to ethernet-controller.yaml mdio part: - Convert to net/fsl,cpm-mdio.yaml - Add 0x in example, which should be hex value - Add ref to mdio.yaml Signed-off-by: Frank Li <Frank.Li@nxp.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/r/20240812165041.3815525-1-Frank.Li@nxp.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/net/fsl,cpm-mdio.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Freescale CPM MDIO Device
|
|
|
|
maintainers:
|
|
- Frank Li <Frank.Li@nxp.com>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- enum:
|
|
- fsl,pq1-fec-mdio
|
|
- fsl,cpm2-mdio-bitbang
|
|
- items:
|
|
- const: fsl,mpc8272ads-mdio-bitbang
|
|
- const: fsl,mpc8272-mdio-bitbang
|
|
- const: fsl,cpm2-mdio-bitbang
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
fsl,mdio-pin:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description: pin of port C controlling mdio data
|
|
|
|
fsl,mdc-pin:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description: pin of port C controlling mdio clock
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
allOf:
|
|
- $ref: mdio.yaml#
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
mdio@10d40 {
|
|
compatible = "fsl,mpc8272ads-mdio-bitbang",
|
|
"fsl,mpc8272-mdio-bitbang",
|
|
"fsl,cpm2-mdio-bitbang";
|
|
reg = <0x10d40 0x14>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
fsl,mdio-pin = <12>;
|
|
fsl,mdc-pin = <13>;
|
|
};
|
|
|