mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for net/can Reviewed-by: Roger Quadros <rogerq@kernel.org> # for ti,k3-am654-* Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> # net/brcm,* Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://patch.msgid.link/20250107125613.211478-1-krzysztof.kozlowski@linaro.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
81 lines
1.5 KiB
YAML
81 lines
1.5 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/net/ti,davinci-mdio.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: TI SoC Davinci/Keystone2 MDIO Controller
|
|
|
|
maintainers:
|
|
- Grygorii Strashko <grygorii.strashko@ti.com>
|
|
|
|
description:
|
|
TI SoC Davinci/Keystone2 MDIO Controller
|
|
|
|
allOf:
|
|
- $ref: mdio.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: ti,davinci_mdio
|
|
- items:
|
|
- const: ti,keystone_mdio
|
|
- const: ti,davinci_mdio
|
|
- items:
|
|
- const: ti,cpsw-mdio
|
|
- const: ti,davinci_mdio
|
|
- items:
|
|
- const: ti,am4372-mdio
|
|
- const: ti,cpsw-mdio
|
|
- const: ti,davinci_mdio
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
bus_freq:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
maximum: 2500000
|
|
description: MDIO Bus frequency
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
clock-names:
|
|
items:
|
|
- const: fck
|
|
|
|
ti,hwmods:
|
|
description: TI hwmod name
|
|
deprecated: true
|
|
$ref: /schemas/types.yaml#/definitions/string-array
|
|
items:
|
|
const: davinci_mdio
|
|
|
|
if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: ti,davinci_mdio
|
|
then:
|
|
required:
|
|
- bus_freq
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- "#address-cells"
|
|
- "#size-cells"
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
davinci_mdio: mdio@4a101000 {
|
|
compatible = "ti,davinci_mdio";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
reg = <0x4a101000 0x1000>;
|
|
bus_freq = <1000000>;
|
|
};
|