Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: net: brcm,iproc-mdio: convert to the json-schema

This helps validating DTS files.

Introduced changes:
1. Swapped #address-cells and #size-cells values
2. Renamed node: s/enet-gphy/ethernet-phy@/

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Rafał Miłecki and committed by
David S. Miller
011ab4df 5fe8e519

+38 -23
-23
Documentation/devicetree/bindings/net/brcm,iproc-mdio.txt
··· 1 - * Broadcom iProc MDIO bus controller 2 - 3 - Required properties: 4 - - compatible: should be "brcm,iproc-mdio" 5 - - reg: address and length of the register set for the MDIO interface 6 - - #size-cells: must be 1 7 - - #address-cells: must be 0 8 - 9 - Child nodes of this MDIO bus controller node are standard Ethernet PHY device 10 - nodes as described in Documentation/devicetree/bindings/net/phy.txt 11 - 12 - Example: 13 - 14 - mdio@18002000 { 15 - compatible = "brcm,iproc-mdio"; 16 - reg = <0x18002000 0x8>; 17 - #size-cells = <1>; 18 - #address-cells = <0>; 19 - 20 - enet-gphy@0 { 21 - reg = <0>; 22 - }; 23 - };
+38
Documentation/devicetree/bindings/net/brcm,iproc-mdio.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/brcm,iproc-mdio.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom iProc MDIO bus controller 8 + 9 + maintainers: 10 + - Rafał Miłecki <rafal@milecki.pl> 11 + 12 + allOf: 13 + - $ref: mdio.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: brcm,iproc-mdio 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + unevaluatedProperties: false 23 + 24 + required: 25 + - reg 26 + 27 + examples: 28 + - | 29 + mdio@18002000 { 30 + compatible = "brcm,iproc-mdio"; 31 + reg = <0x18002000 0x8>; 32 + #address-cells = <1>; 33 + #size-cells = <0>; 34 + 35 + ethernet-phy@0 { 36 + reg = <0>; 37 + }; 38 + };