74dda6454f6c9e66be64241fb664cc00b3124c92
[openwrt/staging/noltari.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 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 BCM4908 is a family of SoCs with integrated Ethernet controller.
9
10 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
11 ---
12 .../bindings/net/brcm,bcm4908-enet.yaml | 43 +++++++++++++++++++
13 1 file changed, 43 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm4908-enet.yaml
15
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/net/brcm,bcm4908-enet.yaml
18 @@ -0,0 +1,43 @@
19 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
20 +%YAML 1.2
21 +---
22 +$id: http://devicetree.org/schemas/net/brcm,bcm4908-enet.yaml#
23 +$schema: http://devicetree.org/meta-schemas/core.yaml#
24 +
25 +title: Broadcom BCM4908 Ethernet controller
26 +
27 +description: Broadcom's Ethernet controller integrated into BCM4908 family SoCs
28 +
29 +maintainers:
30 + - Rafał Miłecki <rafal@milecki.pl>
31 +
32 +allOf:
33 + - $ref: ethernet-controller.yaml#
34 +
35 +properties:
36 + compatible:
37 + const: brcm,bcm4908-enet
38 +
39 + reg:
40 + maxItems: 1
41 +
42 + interrupts:
43 + description: RX interrupt
44 +
45 +required:
46 + - reg
47 + - interrupts
48 +
49 +additionalProperties: false
50 +
51 +examples:
52 + - |
53 + #include <dt-bindings/interrupt-controller/irq.h>
54 + #include <dt-bindings/interrupt-controller/arm-gic.h>
55 +
56 + ethernet@80002000 {
57 + compatible = "brcm,bcm4908-enet";
58 + reg = <0x80002000 0x1000>;
59 +
60 + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
61 + };