]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
arm64: dts: imx93: add FEC support
authorClark Wang <xiaoning.wang@nxp.com>
Fri, 13 Jan 2023 03:33:45 +0000 (11:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 12:47:40 +0000 (12:47 +0000)
Add FEC node for imx93 platform.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/boot/dts/freescale/imx93.dtsi

index de85e7f31582afd5d8879779e106128f1618e438..22dd2ee70be72c0f7934b07df730db7f76a15197 100644 (file)
                                status = "disabled";
                        };
 
+                       fec: ethernet@42890000 {
+                               compatible = "fsl,imx93-fec", "fsl,imx8mq-fec", "fsl,imx6sx-fec";
+                               reg = <0x42890000 0x10000>;
+                               interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clk IMX93_CLK_ENET1_GATE>,
+                                        <&clk IMX93_CLK_ENET1_GATE>,
+                                        <&clk IMX93_CLK_ENET_TIMER1>,
+                                        <&clk IMX93_CLK_ENET_REF>,
+                                        <&clk IMX93_CLK_ENET_REF_PHY>;
+                               clock-names = "ipg", "ahb", "ptp",
+                                             "enet_clk_ref", "enet_out";
+                               assigned-clocks = <&clk IMX93_CLK_ENET_TIMER1>,
+                                                 <&clk IMX93_CLK_ENET_REF>,
+                                                 <&clk IMX93_CLK_ENET_REF_PHY>;
+                               assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>,
+                                                        <&clk IMX93_CLK_SYS_PLL_PFD0_DIV2>,
+                                                        <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>;
+                               assigned-clock-rates = <100000000>, <250000000>, <50000000>;
+                               fsl,num-tx-queues = <3>;
+                               fsl,num-rx-queues = <3>;
+                               status = "disabled";
+                       };
+
                        usdhc3: mmc@428b0000 {
                                compatible = "fsl,imx93-usdhc", "fsl,imx8mm-usdhc";
                                reg = <0x428b0000 0x10000>;