* [PATCH net-next 0/2] Add FEC support on s32v234 platform @ 2022-09-07 9:56 wei.fang 2022-09-07 9:56 ` [PATCH net-next 1/2] dt-bindings: net: fec: add fsl,s32v234-fec to compatible property wei.fang ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: wei.fang @ 2022-09-07 9:56 UTC (permalink / raw) To: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, netdev, devicetree, linux-kernel From: Wei Fang <wei.fang@nxp.com> This series patches are to add FEC support on s32v234 platfom. 1. Add compatible string and quirks for fsl,s32v234 2. Update Kconfig to also check for ARCH_S32. Wei Fang (2): dt-bindings: net: fec: add fsl,s32v234-fec to compatible property net: fec: Add initial s32v234 support Documentation/devicetree/bindings/net/fsl,fec.yaml | 1 + drivers/net/ethernet/freescale/Kconfig | 6 +++--- drivers/net/ethernet/freescale/fec_main.c | 12 ++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) -- 2.25.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH net-next 1/2] dt-bindings: net: fec: add fsl,s32v234-fec to compatible property 2022-09-07 9:56 [PATCH net-next 0/2] Add FEC support on s32v234 platform wei.fang @ 2022-09-07 9:56 ` wei.fang 2022-09-08 12:10 ` Krzysztof Kozlowski 2022-09-07 9:56 ` [PATCH net-next 2/2] net: fec: Add initial s32v234 support wei.fang 2022-09-20 1:10 ` [PATCH net-next 0/2] Add FEC support on s32v234 platform patchwork-bot+netdevbpf 2 siblings, 1 reply; 6+ messages in thread From: wei.fang @ 2022-09-07 9:56 UTC (permalink / raw) To: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, netdev, devicetree, linux-kernel From: Wei Fang <wei.fang@nxp.com> Add fsl,s32v234-fec to compatible property to support s32v234 platform. Signed-off-by: Wei Fang <wei.fang@nxp.com> --- Documentation/devicetree/bindings/net/fsl,fec.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/fsl,fec.yaml b/Documentation/devicetree/bindings/net/fsl,fec.yaml index 5cfb661be124..e0f376f7e274 100644 --- a/Documentation/devicetree/bindings/net/fsl,fec.yaml +++ b/Documentation/devicetree/bindings/net/fsl,fec.yaml @@ -21,6 +21,7 @@ properties: - fsl,imx28-fec - fsl,imx6q-fec - fsl,mvf600-fec + - fsl,s32v234-fec - items: - enum: - fsl,imx53-fec -- 2.25.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH net-next 1/2] dt-bindings: net: fec: add fsl,s32v234-fec to compatible property 2022-09-07 9:56 ` [PATCH net-next 1/2] dt-bindings: net: fec: add fsl,s32v234-fec to compatible property wei.fang @ 2022-09-08 12:10 ` Krzysztof Kozlowski 0 siblings, 0 replies; 6+ messages in thread From: Krzysztof Kozlowski @ 2022-09-08 12:10 UTC (permalink / raw) To: wei.fang, davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, netdev, devicetree, linux-kernel On 07/09/2022 11:56, wei.fang@nxp.com wrote: > From: Wei Fang <wei.fang@nxp.com> > > Add fsl,s32v234-fec to compatible property to support s32v234 platform. > > Signed-off-by: Wei Fang <wei.fang@nxp.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH net-next 2/2] net: fec: Add initial s32v234 support 2022-09-07 9:56 [PATCH net-next 0/2] Add FEC support on s32v234 platform wei.fang 2022-09-07 9:56 ` [PATCH net-next 1/2] dt-bindings: net: fec: add fsl,s32v234-fec to compatible property wei.fang @ 2022-09-07 9:56 ` wei.fang 2022-09-14 1:26 ` Wei Fang 2022-09-20 1:10 ` [PATCH net-next 0/2] Add FEC support on s32v234 platform patchwork-bot+netdevbpf 2 siblings, 1 reply; 6+ messages in thread From: wei.fang @ 2022-09-07 9:56 UTC (permalink / raw) To: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, netdev, devicetree, linux-kernel From: Wei Fang <wei.fang@nxp.com> Update Kconfig to also check for ARCH_S32. Add compatible string and quirks for fsl,s32v234 Signed-off-by: Wei Fang <wei.fang@nxp.com> --- drivers/net/ethernet/freescale/Kconfig | 6 +++--- drivers/net/ethernet/freescale/fec_main.c | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/Kconfig b/drivers/net/ethernet/freescale/Kconfig index e04e1c5cb013..b7bf45cec29d 100644 --- a/drivers/net/ethernet/freescale/Kconfig +++ b/drivers/net/ethernet/freescale/Kconfig @@ -9,7 +9,7 @@ config NET_VENDOR_FREESCALE depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \ M523x || M527x || M5272 || M528x || M520x || M532x || \ ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && PPC_BESTCOMM) || \ - ARCH_LAYERSCAPE || COMPILE_TEST + ARCH_LAYERSCAPE || ARCH_S32 || COMPILE_TEST help If you have a network (Ethernet) card belonging to this class, say Y. @@ -23,7 +23,7 @@ if NET_VENDOR_FREESCALE config FEC tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)" depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ - ARCH_MXC || SOC_IMX28 || COMPILE_TEST) + ARCH_MXC || ARCH_S32 || SOC_IMX28 || COMPILE_TEST) default ARCH_MXC || SOC_IMX28 if ARM depends on PTP_1588_CLOCK_OPTIONAL select CRC32 @@ -31,7 +31,7 @@ config FEC imply NET_SELFTESTS help Say Y here if you want to use the built-in 10/100 Fast ethernet - controller on some Motorola ColdFire and Freescale i.MX processors. + controller on some Motorola ColdFire and Freescale i.MX/S32 processors. config FEC_MPC52xx tristate "FEC MPC52xx driver" diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 8ba8eb340b92..705348879b0c 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -155,6 +155,13 @@ static const struct fec_devinfo fec_imx8qm_info = { FEC_QUIRK_DELAYED_CLKS_SUPPORT, }; +static const struct fec_devinfo fec_s32v234_info = { + .quirks = FEC_QUIRK_ENET_MAC | FEC_QUIRK_HAS_GBIT | + FEC_QUIRK_HAS_BUFDESC_EX | FEC_QUIRK_HAS_CSUM | + FEC_QUIRK_HAS_VLAN | FEC_QUIRK_HAS_AVB | + FEC_QUIRK_ERR007885 | FEC_QUIRK_BUG_CAPTURE, +}; + static struct platform_device_id fec_devtype[] = { { /* keep it for coldfire */ @@ -187,6 +194,9 @@ static struct platform_device_id fec_devtype[] = { }, { .name = "imx8qm-fec", .driver_data = (kernel_ulong_t)&fec_imx8qm_info, + }, { + .name = "s32v234-fec", + .driver_data = (kernel_ulong_t)&fec_s32v234_info, }, { /* sentinel */ } @@ -203,6 +213,7 @@ enum imx_fec_type { IMX6UL_FEC, IMX8MQ_FEC, IMX8QM_FEC, + S32V234_FEC, }; static const struct of_device_id fec_dt_ids[] = { @@ -215,6 +226,7 @@ static const struct of_device_id fec_dt_ids[] = { { .compatible = "fsl,imx6ul-fec", .data = &fec_devtype[IMX6UL_FEC], }, { .compatible = "fsl,imx8mq-fec", .data = &fec_devtype[IMX8MQ_FEC], }, { .compatible = "fsl,imx8qm-fec", .data = &fec_devtype[IMX8QM_FEC], }, + { .compatible = "fsl,s32v234-fec", .data = &fec_devtype[S32V234_FEC], }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, fec_dt_ids); -- 2.25.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* RE: [PATCH net-next 2/2] net: fec: Add initial s32v234 support 2022-09-07 9:56 ` [PATCH net-next 2/2] net: fec: Add initial s32v234 support wei.fang @ 2022-09-14 1:26 ` Wei Fang 0 siblings, 0 replies; 6+ messages in thread From: Wei Fang @ 2022-09-14 1:26 UTC (permalink / raw) To: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, netdev, devicetree, linux-kernel Kindly Ping... Best Regards, Wei Fang > -----Original Message----- > From: Wei Fang > Sent: 2022年9月7日 17:57 > To: davem@davemloft.net; edumazet@google.com; kuba@kernel.org; > pabeni@redhat.com; robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > netdev@vger.kernel.org; devicetree@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: [PATCH net-next 2/2] net: fec: Add initial s32v234 support > > From: Wei Fang <wei.fang@nxp.com> > > Update Kconfig to also check for ARCH_S32. > Add compatible string and quirks for fsl,s32v234 > > Signed-off-by: Wei Fang <wei.fang@nxp.com> > --- > drivers/net/ethernet/freescale/Kconfig | 6 +++--- > drivers/net/ethernet/freescale/fec_main.c | 12 ++++++++++++ > 2 files changed, 15 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/ethernet/freescale/Kconfig > b/drivers/net/ethernet/freescale/Kconfig > index e04e1c5cb013..b7bf45cec29d 100644 > --- a/drivers/net/ethernet/freescale/Kconfig > +++ b/drivers/net/ethernet/freescale/Kconfig > @@ -9,7 +9,7 @@ config NET_VENDOR_FREESCALE > depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || > PPC_MPC512x || \ > M523x || M527x || M5272 || M528x || M520x || M532x || \ > ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && > PPC_BESTCOMM) || \ > - ARCH_LAYERSCAPE || COMPILE_TEST > + ARCH_LAYERSCAPE || ARCH_S32 || COMPILE_TEST > help > If you have a network (Ethernet) card belonging to this class, say Y. > > @@ -23,7 +23,7 @@ if NET_VENDOR_FREESCALE config FEC > tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)" > depends on (M523x || M527x || M5272 || M528x || M520x || M532x > || \ > - ARCH_MXC || SOC_IMX28 || COMPILE_TEST) > + ARCH_MXC || ARCH_S32 || SOC_IMX28 || COMPILE_TEST) > default ARCH_MXC || SOC_IMX28 if ARM > depends on PTP_1588_CLOCK_OPTIONAL > select CRC32 > @@ -31,7 +31,7 @@ config FEC > imply NET_SELFTESTS > help > Say Y here if you want to use the built-in 10/100 Fast ethernet > - controller on some Motorola ColdFire and Freescale i.MX processors. > + controller on some Motorola ColdFire and Freescale i.MX/S32 > processors. > > config FEC_MPC52xx > tristate "FEC MPC52xx driver" > diff --git a/drivers/net/ethernet/freescale/fec_main.c > b/drivers/net/ethernet/freescale/fec_main.c > index 8ba8eb340b92..705348879b0c 100644 > --- a/drivers/net/ethernet/freescale/fec_main.c > +++ b/drivers/net/ethernet/freescale/fec_main.c > @@ -155,6 +155,13 @@ static const struct fec_devinfo fec_imx8qm_info = { > FEC_QUIRK_DELAYED_CLKS_SUPPORT, > }; > > +static const struct fec_devinfo fec_s32v234_info = { > + .quirks = FEC_QUIRK_ENET_MAC | FEC_QUIRK_HAS_GBIT | > + FEC_QUIRK_HAS_BUFDESC_EX | FEC_QUIRK_HAS_CSUM | > + FEC_QUIRK_HAS_VLAN | FEC_QUIRK_HAS_AVB | > + FEC_QUIRK_ERR007885 | FEC_QUIRK_BUG_CAPTURE, }; > + > static struct platform_device_id fec_devtype[] = { > { > /* keep it for coldfire */ > @@ -187,6 +194,9 @@ static struct platform_device_id fec_devtype[] = { > }, { > .name = "imx8qm-fec", > .driver_data = (kernel_ulong_t)&fec_imx8qm_info, > + }, { > + .name = "s32v234-fec", > + .driver_data = (kernel_ulong_t)&fec_s32v234_info, > }, { > /* sentinel */ > } > @@ -203,6 +213,7 @@ enum imx_fec_type { > IMX6UL_FEC, > IMX8MQ_FEC, > IMX8QM_FEC, > + S32V234_FEC, > }; > > static const struct of_device_id fec_dt_ids[] = { @@ -215,6 +226,7 @@ static > const struct of_device_id fec_dt_ids[] = { > { .compatible = "fsl,imx6ul-fec", .data = &fec_devtype[IMX6UL_FEC], }, > { .compatible = "fsl,imx8mq-fec", .data = &fec_devtype[IMX8MQ_FEC], }, > { .compatible = "fsl,imx8qm-fec", .data = &fec_devtype[IMX8QM_FEC], }, > + { .compatible = "fsl,s32v234-fec", .data = &fec_devtype[S32V234_FEC], > +}, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, fec_dt_ids); > -- > 2.25.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH net-next 0/2] Add FEC support on s32v234 platform 2022-09-07 9:56 [PATCH net-next 0/2] Add FEC support on s32v234 platform wei.fang 2022-09-07 9:56 ` [PATCH net-next 1/2] dt-bindings: net: fec: add fsl,s32v234-fec to compatible property wei.fang 2022-09-07 9:56 ` [PATCH net-next 2/2] net: fec: Add initial s32v234 support wei.fang @ 2022-09-20 1:10 ` patchwork-bot+netdevbpf 2 siblings, 0 replies; 6+ messages in thread From: patchwork-bot+netdevbpf @ 2022-09-20 1:10 UTC (permalink / raw) To: Wei Fang Cc: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, netdev, devicetree, linux-kernel Hello: This series was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>: On Wed, 7 Sep 2022 17:56:47 +0800 you wrote: > From: Wei Fang <wei.fang@nxp.com> > > This series patches are to add FEC support on s32v234 platfom. > 1. Add compatible string and quirks for fsl,s32v234 > 2. Update Kconfig to also check for ARCH_S32. > > Wei Fang (2): > dt-bindings: net: fec: add fsl,s32v234-fec to compatible property > net: fec: Add initial s32v234 support > > [...] Here is the summary with links: - [net-next,1/2] dt-bindings: net: fec: add fsl,s32v234-fec to compatible property https://git.kernel.org/netdev/net-next/c/00f5303c17ee - [net-next,2/2] net: fec: Add initial s32v234 support https://git.kernel.org/netdev/net-next/c/167d5fe0f6c9 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-09-20 1:10 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-09-07 9:56 [PATCH net-next 0/2] Add FEC support on s32v234 platform wei.fang 2022-09-07 9:56 ` [PATCH net-next 1/2] dt-bindings: net: fec: add fsl,s32v234-fec to compatible property wei.fang 2022-09-08 12:10 ` Krzysztof Kozlowski 2022-09-07 9:56 ` [PATCH net-next 2/2] net: fec: Add initial s32v234 support wei.fang 2022-09-14 1:26 ` Wei Fang 2022-09-20 1:10 ` [PATCH net-next 0/2] Add FEC support on s32v234 platform patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).