bmips: switch to linux 5.15
[openwrt/staging/dedeckeh.git] / target / linux / bmips / patches-5.10 / 046-v5.13-dt-bindings-net-Add-bcm6368-mdio-mux-bindings.patch
1 From da6557edb9f3f4513b01d9a20a36c2fbc31810a1 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
3 Date: Mon, 15 Mar 2021 16:45:27 +0100
4 Subject: [PATCH 1/2] dt-bindings: net: Add bcm6368-mdio-mux bindings
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Add documentations for bcm6368 mdio mux driver.
10
11 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14 .../bindings/net/brcm,bcm6368-mdio-mux.yaml | 76 +++++++++++++++++++
15 1 file changed, 76 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm6368-mdio-mux.yaml
17
18 --- /dev/null
19 +++ b/Documentation/devicetree/bindings/net/brcm,bcm6368-mdio-mux.yaml
20 @@ -0,0 +1,76 @@
21 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
22 +%YAML 1.2
23 +---
24 +$id: http://devicetree.org/schemas/net/brcm,bcm6368-mdio-mux.yaml#
25 +$schema: http://devicetree.org/meta-schemas/core.yaml#
26 +
27 +title: Broadcom BCM6368 MDIO bus multiplexer
28 +
29 +maintainers:
30 + - Álvaro Fernández Rojas <noltari@gmail.com>
31 +
32 +description:
33 + This MDIO bus multiplexer defines buses that could be internal as well as
34 + external to SoCs. When child bus is selected, one needs to select these two
35 + properties as well to generate desired MDIO transaction on appropriate bus.
36 +
37 +allOf:
38 + - $ref: "mdio.yaml#"
39 +
40 +properties:
41 + compatible:
42 + const: brcm,bcm6368-mdio-mux
43 +
44 + "#address-cells":
45 + const: 1
46 +
47 + "#size-cells":
48 + const: 0
49 +
50 + reg:
51 + maxItems: 1
52 +
53 +required:
54 + - compatible
55 + - reg
56 +
57 +patternProperties:
58 + '^mdio@[0-1]$':
59 + type: object
60 + properties:
61 + reg:
62 + maxItems: 1
63 +
64 + "#address-cells":
65 + const: 1
66 +
67 + "#size-cells":
68 + const: 0
69 +
70 + required:
71 + - reg
72 + - "#address-cells"
73 + - "#size-cells"
74 +
75 +unevaluatedProperties: false
76 +
77 +examples:
78 + - |
79 + mdio0: mdio@10e000b0 {
80 + #address-cells = <1>;
81 + #size-cells = <0>;
82 + compatible = "brcm,bcm6368-mdio-mux";
83 + reg = <0x10e000b0 0x6>;
84 +
85 + mdio_int: mdio@0 {
86 + #address-cells = <1>;
87 + #size-cells = <0>;
88 + reg = <0>;
89 + };
90 +
91 + mdio_ext: mdio@1 {
92 + #address-cells = <1>;
93 + #size-cells = <0>;
94 + reg = <1>;
95 + };
96 + };