4c0f44199b8020158796ce352dbf48f365195f60
[openwrt/staging/wigyori.git] /
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Fri, 5 Feb 2021 21:57:41 +0100
3 Subject: [PATCH 1/2] dt-bindings: net: document BCM4908 Ethernet controller
4
5 BCM4908 is a family of SoCs with integrated Ethernet controller.
6
7 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 ---
9 .../bindings/net/brcm,bcm4908enet.yaml | 45 +++++++++++++++++++
10 1 file changed, 45 insertions(+)
11 create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm4908enet.yaml
12
13 --- /dev/null
14 +++ b/Documentation/devicetree/bindings/net/brcm,bcm4908enet.yaml
15 @@ -0,0 +1,45 @@
16 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
17 +%YAML 1.2
18 +---
19 +$id: http://devicetree.org/schemas/net/brcm,bcm4908enet.yaml#
20 +$schema: http://devicetree.org/meta-schemas/core.yaml#
21 +
22 +title: Broadcom BCM4908 Ethernet controller
23 +
24 +description: Broadcom's Ethernet controller integrated into BCM4908 family SoCs
25 +
26 +maintainers:
27 + - Rafał Miłecki <rafal@milecki.pl>
28 +
29 +properties:
30 + compatible:
31 + const: brcm,bcm4908enet
32 +
33 + reg:
34 + maxItems: 1
35 +
36 + interrupts:
37 + description: RX interrupt
38 +
39 + interrupt-names:
40 + const: rx
41 +
42 +required:
43 + - reg
44 + - interrupts
45 + - interrupt-names
46 +
47 +additionalProperties: false
48 +
49 +examples:
50 + - |
51 + #include <dt-bindings/interrupt-controller/irq.h>
52 + #include <dt-bindings/interrupt-controller/arm-gic.h>
53 +
54 + ethernet@80002000 {
55 + compatible = "brcm,bcm4908enet";
56 + reg = <0x80002000 0x1000>;
57 +
58 + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
59 + interrupt-names = "rx";
60 + };