1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/fsl,fman-dtsec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Madalin Bucur <madalin.bucur@nxp.com>
13 Each FMan has several MACs, each implementing an Ethernet interface. Earlier
14 versions of FMan used the Datapath Three Speed Ethernet Controller (dTSEC) for
15 10/100/1000 MBit/s speeds, and the 10-Gigabit Ethernet Media Access Controller
16 (10GEC) for 10 Gbit/s speeds. Later versions of FMan use the Multirate
17 Ethernet Media Access Controller (mEMAC) to handle all speeds.
30 register[bit] MAC cell-index
31 ============================================================
33 FM_EPI[16+n] dTSECn n-1
34 FM_NPI[11+n] dTSECn n-1
38 register[bit] MAC cell-index
39 ============================================================
40 FM_EPI[16+n] mEMACn n-1
43 FM_NPI[11+n] mEMACn n-1
48 FM_EPI and FM_NPI are located in the FMan memory map.
52 - P2041, P3041, P4080 P5020, P5040:
53 register[bit] FMan MAC cell
55 ============================================================
56 DCFG_DEVDISR2[7] 1 XGEC 8
57 DCFG_DEVDISR2[7+n] 1 dTSECn n-1
58 DCFG_DEVDISR2[15] 2 XGEC 8
59 DCFG_DEVDISR2[15+n] 2 dTSECn n-1
62 - T1040, T2080, T4240, B4860:
63 register[bit] FMan MAC cell
65 ============================================================
66 DCFG_CCSR_DEVDISR2[n-1] 1 mEMACn n-1
67 DCFG_CCSR_DEVDISR2[11+n] 2 mEMACn n-1
70 EVDISR, DCFG_DEVDISR2 and DCFG_CCSR_DEVDISR2 are located in
71 the specific SoC "Device Configuration/Pin Control" Memory
78 $ref: /schemas/types.yaml#/definitions/phandle-array
81 An array of two references: the first is the FMan RX port and the second
82 is the TX port used by this MAC.
85 $ref: /schemas/types.yaml#/definitions/phandle
86 description: A reference to the IEEE1588 timer
89 description: A reference to the SerDes lane(s)
97 $ref: /schemas/types.yaml#/definitions/phandle-array
101 description: See pcs-handle.
107 A reference to the various PCSs (typically found on the SerDes). If
108 pcs-handle-names is absent, and phy-connection-type is "xgmii", then the first
109 reference will be assumed to be for "xfi". Otherwise, if pcs-handle-names is
110 absent, then the first reference will be assumed to be for "sgmii".
120 description: The type of each PCS in pcsphy-handle.
123 $ref: /schemas/types.yaml#/definitions/phandle
124 description: A reference to the (TBI-based) PCS
138 - $ref: ethernet-controller.yaml#
143 const: fsl,fman-dtsec
148 unevaluatedProperties: false
153 compatible = "fsl,fman-dtsec";
155 reg = <0xe0000 0x1000>;
156 fsl,fman-ports = <&fman1_rx8 &fman1_tx28>;
157 ptp-timer = <&ptp_timer>;
158 tbi-handle = <&tbi0>;
163 compatible = "fsl,fman-memac";
164 reg = <0xe8000 0x1000>;
165 fsl,fman-ports = <&fman0_rx_0x0c &fman0_tx_0x2c>;
166 ptp-timer = <&ptp_timer0>;
167 pcs-handle = <&pcsphy4>, <&qsgmiib_pcs1>;
168 pcs-handle-names = "sgmii", "qsgmii";
170 phy-names = "serdes";