xref: /freebsd/sys/contrib/device-tree/Bindings/net/brcm,systemport.yaml (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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,systemport.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT)
8
9maintainers:
10  - Florian Fainelli <f.fainelli@gmail.com>
11
12properties:
13  compatible:
14    enum:
15      - brcm,systemport-v1.00
16      - brcm,systemportlite-v1.00
17      - brcm,systemport
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    minItems: 2
24    items:
25      - description: interrupt line for RX queues
26      - description: interrupt line for TX queues
27      - description: interrupt line for Wake-on-LAN
28
29  clocks:
30    items:
31      - description: main clock
32      - description: Wake-on-LAN clock
33
34  clock-names:
35    items:
36      - const: sw_sysport
37      - const: sw_sysportwol
38
39  systemport,num-tier2-arb:
40    $ref: /schemas/types.yaml#/definitions/uint32
41    description:
42      Number of tier 2 arbiters
43
44  systemport,num-tier1-arb:
45    $ref: /schemas/types.yaml#/definitions/uint32
46    description:
47      Number of tier 2 arbiters
48
49  systemport,num-txq:
50    $ref: /schemas/types.yaml#/definitions/uint32
51    minimum: 1
52    maximum: 32
53    description:
54      Number of HW transmit queues
55
56  systemport,num-rxq:
57    $ref: /schemas/types.yaml#/definitions/uint32
58    minimum: 1
59    maximum: 32
60    description:
61      Number of HW receive queues
62
63required:
64  - reg
65  - interrupts
66  - phy-mode
67
68allOf:
69  - $ref: ethernet-controller.yaml#
70
71unevaluatedProperties: false
72
73examples:
74  - |
75    ethernet@f04a0000 {
76        compatible = "brcm,systemport-v1.00";
77        reg = <0xf04a0000 0x4650>;
78        local-mac-address = [ 00 11 22 33 44 55 ];
79        phy-mode = "gmii";
80        interrupts = <0x0 0x16 0x0>,
81                     <0x0 0x17 0x0>;
82        fixed-link {
83            speed = <1000>;
84            full-duplex;
85        };
86    };
87