8c60b9706ed09dd9d2e531823471e42d2ef1dc68
[openwrt/staging/mkresin.git] /
1 From 387d1c1819790aa8398c7cffab587f9a050a0d1a Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Sun, 7 Feb 2021 23:26:31 +0100
4 Subject: [PATCH] dt-bindings: net: document BCM4908 Ethernet controller
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 BCM4908 is a family of SoCs with integrated Ethernet controller.
10
11 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14 .../bindings/net/brcm,bcm4908enet.yaml | 45 +++++++++++++++++++
15 1 file changed, 45 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm4908enet.yaml
17
18 --- /dev/null
19 +++ b/Documentation/devicetree/bindings/net/brcm,bcm4908enet.yaml
20 @@ -0,0 +1,45 @@
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,bcm4908enet.yaml#
25 +$schema: http://devicetree.org/meta-schemas/core.yaml#
26 +
27 +title: Broadcom BCM4908 Ethernet controller
28 +
29 +description: Broadcom's Ethernet controller integrated into BCM4908 family SoCs
30 +
31 +maintainers:
32 + - Rafał Miłecki <rafal@milecki.pl>
33 +
34 +properties:
35 + compatible:
36 + const: brcm,bcm4908enet
37 +
38 + reg:
39 + maxItems: 1
40 +
41 + interrupts:
42 + description: RX interrupt
43 +
44 + interrupt-names:
45 + const: rx
46 +
47 +required:
48 + - reg
49 + - interrupts
50 + - interrupt-names
51 +
52 +additionalProperties: false
53 +
54 +examples:
55 + - |
56 + #include <dt-bindings/interrupt-controller/irq.h>
57 + #include <dt-bindings/interrupt-controller/arm-gic.h>
58 +
59 + ethernet@80002000 {
60 + compatible = "brcm,bcm4908enet";
61 + reg = <0x80002000 0x1000>;
62 +
63 + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
64 + interrupt-names = "rx";
65 + };