brintos

brintos / linux-shallow public Read only

0
0
Text · 3.4 KiB · c578637 Raw
144 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/airoha,en7581-eth.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Airoha EN7581 Frame Engine Ethernet controller8 9maintainers:10  - Lorenzo Bianconi <lorenzo@kernel.org>11 12description:13  The frame engine ethernet controller can be found on Airoha SoCs.14  These SoCs have multi-GMAC ports.15 16properties:17  compatible:18    enum:19      - airoha,en7581-eth20 21  reg:22    items:23      - description: Frame engine base address24      - description: QDMA0 base address25      - description: QDMA1 base address26 27  reg-names:28    items:29      - const: fe30      - const: qdma031      - const: qdma132 33  interrupts:34    items:35      - description: QDMA lan irq036      - description: QDMA lan irq137      - description: QDMA lan irq238      - description: QDMA lan irq339      - description: QDMA wan irq040      - description: QDMA wan irq141      - description: QDMA wan irq242      - description: QDMA wan irq343      - description: FE error irq44      - description: PDMA irq45 46  resets:47    maxItems: 848 49  reset-names:50    items:51      - const: fe52      - const: pdma53      - const: qdma54      - const: xsi-mac55      - const: hsi0-mac56      - const: hsi1-mac57      - const: hsi-mac58      - const: xfp-mac59 60  "#address-cells":61    const: 162 63  "#size-cells":64    const: 065 66patternProperties:67  "^ethernet@[1-4]$":68    type: object69    unevaluatedProperties: false70    $ref: ethernet-controller.yaml#71    description:72      Ethernet GMAC port associated to the MAC controller73    properties:74      compatible:75        const: airoha,eth-mac76 77      reg:78        minimum: 179        maximum: 480        description: GMAC port identifier81 82    required:83      - reg84      - compatible85 86required:87  - compatible88  - reg89  - interrupts90  - resets91  - reset-names92 93unevaluatedProperties: false94 95examples:96  - |97    #include <dt-bindings/interrupt-controller/arm-gic.h>98    #include <dt-bindings/interrupt-controller/irq.h>99    #include <dt-bindings/clock/en7523-clk.h>100 101    soc {102      #address-cells = <2>;103      #size-cells = <2>;104 105      eth: ethernet@1fb50000 {106        compatible = "airoha,en7581-eth";107        reg = <0 0x1fb50000 0 0x2600>,108              <0 0x1fb54000 0 0x2000>,109              <0 0x1fb56000 0 0x2000>;110        reg-names = "fe", "qdma0", "qdma1";111 112        resets = <&scuclk 44>,113                 <&scuclk 30>,114                 <&scuclk 31>,115                 <&scuclk 6>,116                 <&scuclk 15>,117                 <&scuclk 16>,118                 <&scuclk 17>,119                 <&scuclk 26>;120        reset-names = "fe", "pdma", "qdma", "xsi-mac",121                      "hsi0-mac", "hsi1-mac", "hsi-mac",122                      "xfp-mac";123 124        interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,125                     <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,126                     <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,127                     <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,128                     <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,129                     <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,130                     <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,131                     <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,132                     <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,133                     <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;134 135        #address-cells = <1>;136        #size-cells = <0>;137 138        mac: ethernet@1 {139          compatible = "airoha,eth-mac";140          reg = <1>;141        };142      };143    };144