Based on kernel version 6.11
. Page generated on 2024-09-24 08:21 EST
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) # Copyright 2019 BayLibre, SAS %YAML 1.2 --- $id: http://devicetree.org/schemas/net/stm32-dwmac.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: STMicroelectronics STM32 / MCU DWMAC glue layer controller maintainers: - Alexandre Torgue <alexandre.torgue@foss.st.com> - Christophe Roullier <christophe.roullier@foss.st.com> description: This file documents platform glue layer for stmmac. # We need a select here so we don't match all nodes with 'snps,dwmac' select: properties: compatible: contains: enum: - st,stm32-dwmac - st,stm32mp1-dwmac - st,stm32mp13-dwmac - st,stm32mp25-dwmac required: - compatible properties: compatible: oneOf: - items: - enum: - st,stm32mp25-dwmac - const: snps,dwmac-5.20 - items: - enum: - st,stm32mp1-dwmac - st,stm32mp13-dwmac - const: snps,dwmac-4.20a - items: - enum: - st,stm32-dwmac - const: snps,dwmac-4.10a - items: - enum: - st,stm32-dwmac - const: snps,dwmac-3.50a reg: true reg-names: items: - const: stmmaceth clocks: minItems: 3 items: - description: GMAC main clock - description: MAC TX clock - description: MAC RX clock - description: For MPU family, used for power mode - description: For MPU family, used for PHY without quartz - description: PTP clock clock-names: minItems: 3 maxItems: 6 contains: enum: - stmmaceth - mac-clk-tx - mac-clk-rx - ethstp - eth-ck - ptp_ref st,syscon: $ref: /schemas/types.yaml#/definitions/phandle-array items: - minItems: 2 items: - description: phandle to the syscon node which encompases the glue register - description: offset of the control register - description: field to set mask in register description: Should be phandle/offset pair. The phandle to the syscon node which encompases the glue register, the offset of the control register and the mask to set bitfield in control register st,ext-phyclk: description: set this property in RMII mode when you have PHY without crystal 50MHz and want to select RCC clock instead of ETH_REF_CLK. OR in RGMII mode when you want to select RCC clock instead of ETH_CLK125. type: boolean st,eth-clk-sel: description: set this property in RGMII PHY when you want to select RCC clock instead of ETH_CLK125. type: boolean st,eth-ref-clk-sel: description: set this property in RMII mode when you have PHY without crystal 50MHz and want to select RCC clock instead of ETH_REF_CLK. type: boolean access-controllers: minItems: 1 maxItems: 2 required: - compatible - clocks - clock-names - st,syscon unevaluatedProperties: false allOf: - $ref: snps,dwmac.yaml# - if: properties: compatible: contains: enum: - st,stm32-dwmac - st,stm32mp1-dwmac - st,stm32mp25-dwmac then: properties: st,syscon: items: minItems: 2 maxItems: 2 - if: properties: compatible: contains: enum: - st,stm32mp13-dwmac then: properties: st,syscon: items: minItems: 3 maxItems: 3 examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/clock/stm32mp1-clks.h> //Example 1 ethernet0: ethernet@5800a000 { compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a"; reg = <0x5800a000 0x2000>; reg-names = "stmmaceth"; interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "macirq"; clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx", "ethstp", "eth-ck"; clocks = <&rcc ETHMAC>, <&rcc ETHTX>, <&rcc ETHRX>, <&rcc ETHSTP>, <&rcc ETHCK_K>; st,syscon = <&syscfg 0x4>; snps,pbl = <2>; snps,axi-config = <&stmmac_axi_config_0>; snps,tso; phy-mode = "rgmii"; }; - | //Example 2 (MCU example) ethernet1: ethernet@40028000 { compatible = "st,stm32-dwmac", "snps,dwmac-3.50a"; reg = <0x40028000 0x8000>; reg-names = "stmmaceth"; interrupts = <0 61 0>, <0 62 0>; interrupt-names = "macirq", "eth_wake_irq"; clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx"; clocks = <&rcc 0 25>, <&rcc 0 26>, <&rcc 0 27>; st,syscon = <&syscfg 0x4>; snps,pbl = <8>; snps,mixed-burst; phy-mode = "mii"; }; - | //Example 3 ethernet2: ethernet@40027000 { compatible = "st,stm32-dwmac", "snps,dwmac-4.10a"; reg = <0x40028000 0x8000>; reg-names = "stmmaceth"; interrupts = <61>; interrupt-names = "macirq"; clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx"; clocks = <&rcc 62>, <&rcc 61>, <&rcc 60>; st,syscon = <&syscfg 0x4>; snps,pbl = <8>; phy-mode = "mii"; }; |