summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/net/mdio-mux.yaml
blob: d169adf5d9f437a0fdb4d0d1e08fac8fe4d10dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/mdio-mux.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Common MDIO bus multiplexer/switch properties.

maintainers:
  - Andrew Lunn <andrew@lunn.ch>

description: |+
  An MDIO bus multiplexer/switch will have several child busses that are
  numbered uniquely in a device dependent manner.  The nodes for an MDIO
  bus multiplexer/switch will have one child node for each child bus.

properties:
  $nodename:
    pattern: '^mdio-mux[\-@]?'

  mdio-parent-bus:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      The phandle of the MDIO bus that this multiplexer's master-side port is
      connected to.

  '#address-cells':
    const: 1

  '#size-cells':
    const: 0

patternProperties:
  '^mdio@[0-9a-f]+$':
    type: object

    properties:
      reg:
        maxItems: 1
        description: The sub-bus number.

additionalProperties: true

...