0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/net/allwinner,sun4i-a10-emac.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A10 EMAC Ethernet Controller Device Tree Bindings
0008
0009 allOf:
0010 - $ref: "ethernet-controller.yaml#"
0011
0012 maintainers:
0013 - Chen-Yu Tsai <wens@csie.org>
0014 - Maxime Ripard <mripard@kernel.org>
0015
0016 properties:
0017 compatible:
0018 const: allwinner,sun4i-a10-emac
0019
0020 reg:
0021 maxItems: 1
0022
0023 interrupts:
0024 maxItems: 1
0025
0026 clocks:
0027 maxItems: 1
0028
0029 allwinner,sram:
0030 description: Phandle to the device SRAM
0031 $ref: /schemas/types.yaml#/definitions/phandle-array
0032 items:
0033 - items:
0034 - description: phandle to SRAM
0035 - description: register value for device
0036
0037 required:
0038 - compatible
0039 - reg
0040 - interrupts
0041 - clocks
0042 - phy-handle
0043 - allwinner,sram
0044
0045 unevaluatedProperties: false
0046
0047 examples:
0048 - |
0049 emac: ethernet@1c0b000 {
0050 compatible = "allwinner,sun4i-a10-emac";
0051 reg = <0x01c0b000 0x1000>;
0052 interrupts = <55>;
0053 clocks = <&ahb_gates 17>;
0054 phy-handle = <&phy0>;
0055 allwinner,sram = <&emac_sram 1>;
0056 };
0057
0058 ...