brintos

brintos / linux-shallow public Read only

0
0
Text · 2.9 KiB · b4680a1 Raw
131 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/net/renesas,ethertsn.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas Ethernet TSN End-station8 9maintainers:10  - Niklas Söderlund <niklas.soderlund@ragnatech.se>11 12description:13  The RTSN device provides Ethernet network using a 10 Mbps, 100 Mbps, or 114  Gbps full-duplex link via MII/GMII/RMII/RGMII. Depending on the connected PHY.15 16allOf:17  - $ref: ethernet-controller.yaml#18 19properties:20  compatible:21    items:22      - enum:23          - renesas,r8a779g0-ethertsn       # R-Car V4H24      - const: renesas,rcar-gen4-ethertsn25 26  reg:27    items:28      - description: TSN End Station target29      - description: generalized Precision Time Protocol target30 31  reg-names:32    items:33      - const: tsnes34      - const: gptp35 36  interrupts:37    items:38      - description: TX data interrupt39      - description: RX data interrupt40 41  interrupt-names:42    items:43      - const: tx44      - const: rx45 46  clocks:47    maxItems: 148 49  power-domains:50    maxItems: 151 52  resets:53    maxItems: 154 55  phy-mode:56    contains:57      enum:58        - mii59        - rgmii60 61  phy-handle:62    $ref: /schemas/types.yaml#/definitions/phandle63    description:64      Specifies a reference to a node representing a PHY device.65 66  rx-internal-delay-ps:67    enum: [0, 1800]68    default: 069 70  tx-internal-delay-ps:71    enum: [0, 2000]72    default: 073 74  mdio:75    $ref: /schemas/net/mdio.yaml#76    unevaluatedProperties: false77 78required:79  - compatible80  - reg81  - reg-names82  - interrupts83  - interrupt-names84  - clocks85  - power-domains86  - resets87  - phy-mode88  - phy-handle89  - mdio90 91additionalProperties: false92 93examples:94  - |95    #include <dt-bindings/clock/r8a779g0-cpg-mssr.h>96    #include <dt-bindings/interrupt-controller/arm-gic.h>97    #include <dt-bindings/power/r8a779g0-sysc.h>98    #include <dt-bindings/gpio/gpio.h>99 100    tsn0: ethernet@e6460000 {101        compatible = "renesas,r8a779g0-ethertsn", "renesas,rcar-gen4-ethertsn";102        reg = <0xe6460000 0x7000>,103              <0xe6449000 0x500>;104        reg-names = "tsnes", "gptp";105        interrupts = <GIC_SPI 429 IRQ_TYPE_LEVEL_HIGH>,106                     <GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>;107        interrupt-names = "tx", "rx";108        clocks = <&cpg CPG_MOD 2723>;109        power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;110        resets = <&cpg 2723>;111 112        phy-mode = "rgmii";113        tx-internal-delay-ps = <2000>;114        phy-handle = <&phy3>;115 116        mdio {117            #address-cells = <1>;118            #size-cells = <0>;119 120            reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;121            reset-post-delay-us = <4000>;122 123            phy3: ethernet-phy@0 {124                compatible = "ethernet-phy-ieee802.3-c45";125                reg = <0>;126                interrupt-parent = <&gpio4>;127                interrupts = <3 IRQ_TYPE_LEVEL_LOW>;128            };129        };130    };131