aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/devicetree/bindings/net/brcm,iproc-mdio.yaml
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-27 22:28:15 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-02 13:05:21 -0700
commit011ab4dffe965c16c2ba27c0b97d42d41a97b4da (patch)
treeb1c27ce9a0024c5c5576cd65cf7fab8adb04c75e /Documentation/devicetree/bindings/net/brcm,iproc-mdio.yaml
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next (diff)
downloadwireguard-linux-011ab4dffe965c16c2ba27c0b97d42d41a97b4da.tar.xz
wireguard-linux-011ab4dffe965c16c2ba27c0b97d42d41a97b4da.zip
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>
Diffstat (limited to 'Documentation/devicetree/bindings/net/brcm,iproc-mdio.yaml')
-rw-r--r--Documentation/devicetree/bindings/net/brcm,iproc-mdio.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/brcm,iproc-mdio.yaml b/Documentation/devicetree/bindings/net/brcm,iproc-mdio.yaml
new file mode 100644
index 000000000000..3031395f7e6e
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/brcm,iproc-mdio.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/brcm,iproc-mdio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom iProc MDIO bus controller
+
+maintainers:
+ - Rafał Miłecki <rafal@milecki.pl>
+
+allOf:
+ - $ref: mdio.yaml#
+
+properties:
+ compatible:
+ const: brcm,iproc-mdio
+
+ reg:
+ maxItems: 1
+
+unevaluatedProperties: false
+
+required:
+ - reg
+
+examples:
+ - |
+ mdio@18002000 {
+ compatible = "brcm,iproc-mdio";
+ reg = <0x18002000 0x8>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet-phy@0 {
+ reg = <0>;
+ };
+ };