# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/net/renesas,etheravb.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Renesas Ethernet AVB maintainers: - Sergei Shtylyov properties: compatible: oneOf: - items: - enum: - renesas,etheravb-r8a7742 # RZ/G1H - renesas,etheravb-r8a7743 # RZ/G1M - renesas,etheravb-r8a7744 # RZ/G1N - renesas,etheravb-r8a7745 # RZ/G1E - renesas,etheravb-r8a77470 # RZ/G1C - renesas,etheravb-r8a7790 # R-Car H2 - renesas,etheravb-r8a7791 # R-Car M2-W - renesas,etheravb-r8a7792 # R-Car V2H - renesas,etheravb-r8a7793 # R-Car M2-N - renesas,etheravb-r8a7794 # R-Car E2 - const: renesas,etheravb-rcar-gen2 # R-Car Gen2 and RZ/G1 - items: - enum: - renesas,etheravb-r8a774a1 # RZ/G2M - renesas,etheravb-r8a774b1 # RZ/G2N - renesas,etheravb-r8a774c0 # RZ/G2E - renesas,etheravb-r8a774e1 # RZ/G2H - renesas,etheravb-r8a7795 # R-Car H3 - renesas,etheravb-r8a7796 # R-Car M3-W - renesas,etheravb-r8a77961 # R-Car M3-W+ - renesas,etheravb-r8a77965 # R-Car M3-N - renesas,etheravb-r8a77970 # R-Car V3M - renesas,etheravb-r8a77980 # R-Car V3H - renesas,etheravb-r8a77990 # R-Car E3 - renesas,etheravb-r8a77995 # R-Car D3 - renesas,etheravb-r8a779a0 # R-Car V3U - const: renesas,etheravb-rcar-gen3 # R-Car Gen3 and RZ/G2 - items: - enum: - renesas,r9a07g044-gbeth # RZ/G2{L,LC} - const: renesas,rzg2l-gbeth # RZ/G2L reg: true interrupts: true interrupt-names: true clocks: true clock-names: true iommus: maxItems: 1 power-domains: maxItems: 1 resets: maxItems: 1 phy-mode: true phy-handle: true '#address-cells': description: Number of address cells for the MDIO bus. const: 1 '#size-cells': description: Number of size cells on the MDIO bus. const: 0 renesas,no-ether-link: type: boolean description: Specify when a board does not provide a proper AVB_LINK signal. renesas,ether-link-active-low: type: boolean description: Specify when the AVB_LINK signal is active-low instead of normal active-high. rx-internal-delay-ps: enum: [0, 1800] tx-internal-delay-ps: enum: [0, 2000] patternProperties: "^ethernet-phy@[0-9a-f]$": type: object $ref: ethernet-phy.yaml# required: - compatible - reg - interrupts - clocks - power-domains - resets - phy-mode - phy-handle - '#address-cells' - '#size-cells' allOf: - $ref: ethernet-controller.yaml# - if: properties: compatible: contains: enum: - renesas,etheravb-rcar-gen2 - renesas,etheravb-r8a7795 - renesas,etheravb-r8a7796 - renesas,etheravb-r8a77961 - renesas,etheravb-r8a77965 then: properties: reg: items: - description: MAC register block - description: Stream buffer else: properties: reg: items: - description: MAC register block - if: properties: compatible: contains: enum: - renesas,etheravb-rcar-gen2 - renesas,rzg2l-gbeth then: properties: interrupts: minItems: 1 maxItems: 3 interrupt-names: minItems: 1 items: - const: mux - const: fil - const: arp_ns rx-internal-delay-ps: false else: properties: interrupts: minItems: 25 maxItems: 25 interrupt-names: items: pattern: '^ch[0-9]+$' required: - interrupt-names - rx-internal-delay-ps - if: properties: compatible: contains: enum: - renesas,etheravb-r8a774a1 - renesas,etheravb-r8a774b1 - renesas,etheravb-r8a774e1 - renesas,etheravb-r8a7795 - renesas,etheravb-r8a7796 - renesas,etheravb-r8a77961 - renesas,etheravb-r8a77965 - renesas,etheravb-r8a77970 - renesas,etheravb-r8a77980 - renesas,etheravb-r8a779a0 then: required: - tx-internal-delay-ps else: properties: tx-internal-delay-ps: false - if: properties: compatible: contains: const: renesas,etheravb-r8a77995 then: properties: rx-internal-delay-ps: const: 1800 - if: properties: compatible: contains: const: renesas,etheravb-r8a77980 then: properties: tx-internal-delay-ps: const: 2000 - if: properties: compatible: contains: const: renesas,rzg2l-gbeth then: properties: clocks: items: - description: Main clock - description: Register access clock - description: Reference clock for RGMII clock-names: items: - const: axi - const: chi - const: refclk else: properties: clocks: minItems: 1 items: - description: AVB functional clock - description: Optional TXC reference clock clock-names: minItems: 1 items: - const: fck - const: refclk additionalProperties: false examples: - | #include #include #include #include aliases { ethernet0 = &avb; }; avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a7795", "renesas,etheravb-rcar-gen3"; reg = <0xe6800000 0x800>, <0xe6a00000 0x10000>; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , ; interrupt-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6", "ch7", "ch8", "ch9", "ch10", "ch11", "ch12", "ch13", "ch14", "ch15", "ch16", "ch17", "ch18", "ch19", "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; iommus = <&ipmmu_ds0 16>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii"; phy-handle = <&phy0>; rx-internal-delay-ps = <0>; tx-internal-delay-ps = <2000>; #address-cells = <1>; #size-cells = <0>; phy0: ethernet-phy@0 { rxc-skew-ps = <1500>; reg = <0>; interrupt-parent = <&gpio2>; interrupts = <11 IRQ_TYPE_LEVEL_LOW>; reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; }; };