xref: /linux/Documentation/devicetree/bindings/net/asix,ax88178.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/asix,ax88178.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ASIX AX88172/AX88772 USB Ethernet Controllers
8
9maintainers:
10  - Oleksij Rempel <o.rempel@pengutronix.de>
11
12description: |
13  Device tree properties for hard wired USB Ethernet devices.
14
15allOf:
16  - $ref: ethernet-controller.yaml#
17
18properties:
19  compatible:
20    items:
21      - enum:
22          - usbb95,1720   # ASIX AX88172
23          - usbb95,172a   # ASIX AX88172A
24          - usbb95,1780   # ASIX AX88178
25          - usbb95,7720   # ASIX AX88772
26          - usbb95,772a   # ASIX AX88772A
27          - usbb95,772b   # ASIX AX88772B
28          - usbb95,7e2b   # ASIX AX88772B
29
30  reg:
31    maxItems: 1
32
33  local-mac-address: true
34  mac-address: true
35
36required:
37  - compatible
38  - reg
39
40additionalProperties: false
41
42examples:
43  - |
44    usb {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        ethernet@1 {
49            compatible = "usbb95,7e2b";
50            reg = <1>;
51            local-mac-address = [00 00 00 00 00 00];
52        };
53    };
54  - |
55    usb {
56        #address-cells = <1>;
57        #size-cells = <0>;
58
59        usb1@1 {
60            compatible = "usb1234,5678";
61            reg = <1>;
62            #address-cells = <1>;
63            #size-cells = <0>;
64
65            ethernet@1 {
66               compatible = "usbb95,772b";
67               reg = <1>;
68            };
69        };
70    };
71