xref: /freebsd/sys/contrib/device-tree/Bindings/net/brcm,bcm4908-enet.yaml (revision 994297b01b98816bea1abf45ae4bac1bc69ee7a0)
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,bcm4908-enet.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM4908 Ethernet controller
8
9description: Broadcom's Ethernet controller integrated into BCM4908 family SoCs
10
11maintainers:
12  - Rafał Miłecki <rafal@milecki.pl>
13
14allOf:
15  - $ref: ethernet-controller.yaml#
16
17properties:
18  compatible:
19    const: brcm,bcm4908-enet
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    minItems: 1
26    maxItems: 2
27    items:
28      - description: RX interrupt
29      - description: TX interrupt
30
31  interrupt-names:
32    minItems: 1
33    maxItems: 2
34    items:
35      - const: rx
36      - const: tx
37
38required:
39  - reg
40  - interrupts
41  - interrupt-names
42
43unevaluatedProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/irq.h>
48    #include <dt-bindings/interrupt-controller/arm-gic.h>
49
50    ethernet@80002000 {
51        compatible = "brcm,bcm4908-enet";
52        reg = <0x80002000 0x1000>;
53
54        interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>,
55                     <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
56        interrupt-names = "rx", "tx";
57    };
58