Debian Codegraph @

Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/net/allwinner,sun4i-a10-emac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Allwinner A10 EMAC Ethernet Controller
8
9 allOf:
10 - $ref: ethernet-controller.yaml#
11
12 maintainers:
13 - Chen-Yu Tsai <[email protected]>
14 - Maxime Ripard <[email protected]>
15
16 properties:
17 compatible:
18 const: allwinner,sun4i-a10-emac
19
20 reg:
21 maxItems: 1
22
23 interrupts:
24 maxItems: 1
25
26 clocks:
27 maxItems: 1
28
29 allwinner,sram:
30 description: Phandle to the device SRAM
31 $ref: /schemas/types.yaml#/definitions/phandle-array
32 items:
33 - items:
34 - description: phandle to SRAM
35 - description: register value for device
36 dmas:
37 items:
38 - description: RX DMA Channel
39 - description: TX DMA Channel
40
41 dma-names:
42 items:
43 - const: rx
44 - const: tx
45
46 required:
47 - compatible
48 - reg
49 - interrupts
50 - clocks
51 - phy-handle
52 - allwinner,sram
53
54 unevaluatedProperties: false
55
56 examples:
57 - |
58 emac: ethernet@1c0b000 {
59 compatible = "allwinner,sun4i-a10-emac";
60 reg = <0x01c0b000 0x1000>;
61 interrupts = <55>;
62 clocks = <&ahb_gates 17>;
63 phy-handle = <&phy0>;
64 allwinner,sram = <&emac_sram 1>;
65 };
66
67 ...