1*afb970f7SStephen Warren* Synopsys DWC Ethernet QoS IP version 4.10 driver (GMAC) 2*afb970f7SStephen Warren 3*afb970f7SStephen WarrenThis binding supports the Synopsys Designware Ethernet QoS (Quality Of Service) 4*afb970f7SStephen WarrenIP block. The IP supports multiple options for bus type, clocking and reset 5*afb970f7SStephen Warrenstructure, and feature list. Consequently, a number of properties and list 6*afb970f7SStephen Warrenentries in properties are marked as optional, or only required in specific HW 7*afb970f7SStephen Warrenconfigurations. 8*afb970f7SStephen Warren 9*afb970f7SStephen WarrenRequired properties: 10*afb970f7SStephen Warren- compatible: One of: 11*afb970f7SStephen Warren - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10" 12*afb970f7SStephen Warren Represents the IP core when integrated into the Axis ARTPEC-6 SoC. 13*afb970f7SStephen Warren - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10" 14*afb970f7SStephen Warren Represents the IP core when integrated into the NVIDIA Tegra186 SoC. 15*afb970f7SStephen Warren - "snps,dwc-qos-ethernet-4.10" 16*afb970f7SStephen Warren This combination is deprecated. It should be treated as equivalent to 17*afb970f7SStephen Warren "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10". It is supported to be 18*afb970f7SStephen Warren compatible with earlier revisions of this binding. 19*afb970f7SStephen Warren- reg: Address and length of the register set for the device 20*afb970f7SStephen Warren- clocks: Phandle and clock specifiers for each entry in clock-names, in the 21*afb970f7SStephen Warren same order. See ../clock/clock-bindings.txt. 22*afb970f7SStephen Warren- clock-names: May contain any/all of the following depending on the IP 23*afb970f7SStephen Warren configuration, in any order: 24*afb970f7SStephen Warren - "tx" 25*afb970f7SStephen Warren The EQOS transmit path clock. The HW signal name is clk_tx_i. 26*afb970f7SStephen Warren In some configurations (e.g. GMII/RGMII), this clock also drives the PHY TX 27*afb970f7SStephen Warren path. In other configurations, other clocks (such as tx_125, rmii) may 28*afb970f7SStephen Warren drive the PHY TX path. 29*afb970f7SStephen Warren - "rx" 30*afb970f7SStephen Warren The EQOS receive path clock. The HW signal name is clk_rx_i. 31*afb970f7SStephen Warren In some configurations (e.g. GMII/RGMII), this clock is derived from the 32*afb970f7SStephen Warren PHY's RX clock output. In other configurations, other clocks (such as 33*afb970f7SStephen Warren rx_125, rmii) may drive the EQOS RX path. 34*afb970f7SStephen Warren In cases where the PHY clock is directly fed into the EQOS receive path 35*afb970f7SStephen Warren without intervening logic, the DT need not represent this clock, since it 36*afb970f7SStephen Warren is assumed to be fully under the control of the PHY device/driver. In 37*afb970f7SStephen Warren cases where SoC integration adds additional logic to this path, such as a 38*afb970f7SStephen Warren SW-controlled clock gate, this clock should be represented in DT. 39*afb970f7SStephen Warren - "slave_bus" 40*afb970f7SStephen Warren The CPU/slave-bus (CSR) interface clock. This applies to any bus type; 41*afb970f7SStephen Warren APB, AHB, AXI, etc. The HW signal name is hclk_i (AHB) or clk_csr_i (other 42*afb970f7SStephen Warren buses). 43*afb970f7SStephen Warren - "master_bus" 44*afb970f7SStephen Warren The master bus interface clock. Only required in configurations that use a 45*afb970f7SStephen Warren separate clock for the master and slave bus interfaces. The HW signal name 46*afb970f7SStephen Warren is hclk_i (AHB) or aclk_i (AXI). 47*afb970f7SStephen Warren - "ptp_ref" 48*afb970f7SStephen Warren The PTP reference clock. The HW signal name is clk_ptp_ref_i. 49*afb970f7SStephen Warren - "phy_ref_clk" 50*afb970f7SStephen Warren This clock is deprecated and should not be used by new compatible values. 51*afb970f7SStephen Warren It is equivalent to "tx". 52*afb970f7SStephen Warren - "apb_pclk" 53*afb970f7SStephen Warren This clock is deprecated and should not be used by new compatible values. 54*afb970f7SStephen Warren It is equivalent to "slave_bus". 55*afb970f7SStephen Warren 56*afb970f7SStephen Warren Note: Support for additional IP configurations may require adding the 57*afb970f7SStephen Warren following clocks to this list in the future: clk_rx_125_i, clk_tx_125_i, 58*afb970f7SStephen Warren clk_pmarx_0_i, clk_pmarx1_i, clk_rmii_i, clk_revmii_rx_i, clk_revmii_tx_i. 59*afb970f7SStephen Warren Configurations exist where multiple similar clocks are used at once, e.g. all 60*afb970f7SStephen Warren of clk_rx_125_i, clk_pmarx_0_i, clk_pmarx1_i. For this reason it is best to 61*afb970f7SStephen Warren extend the binding with a separate clock-names entry for each of those RX 62*afb970f7SStephen Warren clocks, rather than repurposing the existing "rx" clock-names entry as a 63*afb970f7SStephen Warren generic/logical clock in a similar fashion to "master_bus" and "slave_bus". 64*afb970f7SStephen Warren This will allow easy support for configurations that support multiple PHY 65*afb970f7SStephen Warren interfaces using a mux, and hence need to have explicit control over 66*afb970f7SStephen Warren specific RX clocks. 67*afb970f7SStephen Warren 68*afb970f7SStephen Warren The following compatible values require the following set of clocks: 69*afb970f7SStephen Warren - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10": 70*afb970f7SStephen Warren - "slave_bus" 71*afb970f7SStephen Warren - "master_bus" 72*afb970f7SStephen Warren - "rx" 73*afb970f7SStephen Warren - "tx" 74*afb970f7SStephen Warren - "ptp_ref" 75*afb970f7SStephen Warren - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10": 76*afb970f7SStephen Warren - "slave_bus" 77*afb970f7SStephen Warren - "master_bus" 78*afb970f7SStephen Warren - "tx" 79*afb970f7SStephen Warren - "ptp_ref" 80*afb970f7SStephen Warren - "snps,dwc-qos-ethernet-4.10" (deprecated): 81*afb970f7SStephen Warren - "phy_ref_clk" 82*afb970f7SStephen Warren - "apb_clk" 83*afb970f7SStephen Warren- interrupt-parent: Should be the phandle for the interrupt controller 84*afb970f7SStephen Warren that services interrupts for this device 85*afb970f7SStephen Warren- interrupts: Should contain the core's combined interrupt signal 86*afb970f7SStephen Warren- phy-mode: See ethernet.txt file in the same directory 87*afb970f7SStephen Warren- resets: Phandle and reset specifiers for each entry in reset-names, in the 88*afb970f7SStephen Warren same order. See ../reset/reset.txt. 89*afb970f7SStephen Warren- reset-names: May contain any/all of the following depending on the IP 90*afb970f7SStephen Warren configuration, in any order: 91*afb970f7SStephen Warren - "eqos". The reset to the entire module. The HW signal name is hreset_n 92*afb970f7SStephen Warren (AHB) or aresetn_i (AXI). 93*afb970f7SStephen Warren 94*afb970f7SStephen Warren The following compatible values require the following set of resets: 95*afb970f7SStephen Warren (the reset properties may be omitted if empty) 96*afb970f7SStephen Warren - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10": 97*afb970f7SStephen Warren - "eqos". 98*afb970f7SStephen Warren - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10": 99*afb970f7SStephen Warren - None. 100*afb970f7SStephen Warren - "snps,dwc-qos-ethernet-4.10" (deprecated): 101*afb970f7SStephen Warren - None. 102*afb970f7SStephen Warren 103*afb970f7SStephen WarrenOptional properties: 104*afb970f7SStephen Warren- dma-coherent: Present if dma operations are coherent 105*afb970f7SStephen Warren- mac-address: See ethernet.txt in the same directory 106*afb970f7SStephen Warren- local-mac-address: See ethernet.txt in the same directory 107*afb970f7SStephen Warren- phy-reset-gpios: Phandle and specifier for any GPIO used to reset the PHY. 108*afb970f7SStephen Warren See ../gpio/gpio.txt. 109*afb970f7SStephen Warren- snps,en-lpi: If present it enables use of the AXI low-power interface 110*afb970f7SStephen Warren- snps,write-requests: Number of write requests that the AXI port can issue. 111*afb970f7SStephen Warren It depends on the SoC configuration. 112*afb970f7SStephen Warren- snps,read-requests: Number of read requests that the AXI port can issue. 113*afb970f7SStephen Warren It depends on the SoC configuration. 114*afb970f7SStephen Warren- snps,burst-map: Bitmap of allowed AXI burst lengts, with the LSB 115*afb970f7SStephen Warren representing 4, then 8 etc. 116*afb970f7SStephen Warren- snps,txpbl: DMA Programmable burst length for the TX DMA 117*afb970f7SStephen Warren- snps,rxpbl: DMA Programmable burst length for the RX DMA 118*afb970f7SStephen Warren- snps,en-tx-lpi-clockgating: Enable gating of the MAC TX clock during 119*afb970f7SStephen Warren TX low-power mode. 120*afb970f7SStephen Warren- phy-handle: See ethernet.txt file in the same directory 121*afb970f7SStephen Warren- mdio device tree subnode: When the GMAC has a phy connected to its local 122*afb970f7SStephen Warren mdio, there must be device tree subnode with the following 123*afb970f7SStephen Warren required properties: 124*afb970f7SStephen Warren - compatible: Must be "snps,dwc-qos-ethernet-mdio". 125*afb970f7SStephen Warren - #address-cells: Must be <1>. 126*afb970f7SStephen Warren - #size-cells: Must be <0>. 127*afb970f7SStephen Warren 128*afb970f7SStephen Warren For each phy on the mdio bus, there must be a node with the following 129*afb970f7SStephen Warren fields: 130*afb970f7SStephen Warren 131*afb970f7SStephen Warren - reg: phy id used to communicate to phy. 132*afb970f7SStephen Warren - device_type: Must be "ethernet-phy". 133*afb970f7SStephen Warren - fixed-mode device tree subnode: see fixed-link.txt in the same directory 134*afb970f7SStephen Warren 135*afb970f7SStephen WarrenExamples: 136*afb970f7SStephen Warrenethernet2@40010000 { 137*afb970f7SStephen Warren clock-names = "phy_ref_clk", "apb_pclk"; 138*afb970f7SStephen Warren clocks = <&clkc 17>, <&clkc 15>; 139*afb970f7SStephen Warren compatible = "snps,dwc-qos-ethernet-4.10"; 140*afb970f7SStephen Warren interrupt-parent = <&intc>; 141*afb970f7SStephen Warren interrupts = <0x0 0x1e 0x4>; 142*afb970f7SStephen Warren reg = <0x40010000 0x4000>; 143*afb970f7SStephen Warren phy-handle = <&phy2>; 144*afb970f7SStephen Warren phy-mode = "gmii"; 145*afb970f7SStephen Warren phy-reset-gpios = <&gpioctlr 43 GPIO_ACTIVE_LOW>; 146*afb970f7SStephen Warren 147*afb970f7SStephen Warren snps,en-tx-lpi-clockgating; 148*afb970f7SStephen Warren snps,en-lpi; 149*afb970f7SStephen Warren snps,write-requests = <2>; 150*afb970f7SStephen Warren snps,read-requests = <16>; 151*afb970f7SStephen Warren snps,burst-map = <0x7>; 152*afb970f7SStephen Warren snps,txpbl = <8>; 153*afb970f7SStephen Warren snps,rxpbl = <2>; 154*afb970f7SStephen Warren 155*afb970f7SStephen Warren dma-coherent; 156*afb970f7SStephen Warren 157*afb970f7SStephen Warren mdio { 158*afb970f7SStephen Warren #address-cells = <0x1>; 159*afb970f7SStephen Warren #size-cells = <0x0>; 160*afb970f7SStephen Warren phy2: phy@1 { 161*afb970f7SStephen Warren compatible = "ethernet-phy-ieee802.3-c22"; 162*afb970f7SStephen Warren device_type = "ethernet-phy"; 163*afb970f7SStephen Warren reg = <0x1>; 164*afb970f7SStephen Warren }; 165*afb970f7SStephen Warren }; 166*afb970f7SStephen Warren}; 167