Question on commit: [PATCH] net: stmmac: Delete txtimer in suspend()

2020-09-21 Thread Christophe ROULLIER
Hi all, I would like to know if you have already seen this behavior : Without this patch https://patchwork.ozlabs.org/project/netdev/patch/20200201020124.5989-1-nicoleots...@gmail.com/, during suspend/resume sequence on STM32MP15 (stmmac driver): [   69.184175] dwc2 4900.usb-otg: suspe

Re: [PATCH v3 0/1] net: ethernet: stmmac: simplify phy modes management for stm32

2020-05-18 Thread Christophe ROULLIER
Hi, Just a "gentleman ping" Regards, Christophe. On 27/04/2020 12:00, Christophe Roullier wrote: > No new feature, just to simplify stm32 part to be easier to use. > Add by default all Ethernet clocks in DT, and activate or not in function > of phy mode, clock frequency,

[PATCH V3 2/6] net: ethernet: stmmac: update to support all PHY config for stm32mp157c.

2019-03-05 Thread Christophe Roullier
Update glue codes to support all PHY config on stm32mp157c PHY_MODE (MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz), PHY wo crystal (50Mhz), No 125Mhz from PHY config. Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 107

[PATCH V3 3/6] dt-bindings: net: stmmac: add phys config properties

2019-03-05 Thread Christophe Roullier
Add properties to support all Phy config PHY_MODE (MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz), PHY wo crystal (50Mhz), No 125Mhz from PHY config. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 6 +++--- 1 file changed, 3

[PATCH V3 5/6] dt-bindings: net: stmmac: remove syscfg clock property

2019-03-05 Thread Christophe Roullier
Syscfg clock is no more needed. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b/Documentation/devicetree/bindings/net/stm32

[PATCH V3 6/6] ARM: dts: stm32: Add Ethernet support on stm32h7 SOC and activate it for eval and disco boards

2019-03-05 Thread Christophe Roullier
Synopsys GMAC 4.10 is used. And Phy mode for eval and disco is RMII with PHY SMSC LAN8742 Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 15 +++ arch/arm/boot/dts/stm32h743.dtsi | 13 + arch/arm/boot/dts/stm32h743i-disco.dts

[PATCH V3 0/6] stmmac: add some fixes for stm32

2019-03-05 Thread Christophe Roullier
/134 https://lkml.org/lkml/2018/12/12/131 https://lkml.org/lkml/2018/12/12/132 Christophe Roullier (6): net: ethernet: stmmac: manage Ethernet WoL for stm32mp157c. net: ethernet: stmmac: update to support all PHY config for stm32mp157c. dt-bindings: net: stmmac: add

[PATCH V3 1/6] net: ethernet: stmmac: manage Ethernet WoL for stm32mp157c.

2019-03-05 Thread Christophe Roullier
Add glue codes to support magic packet on stm32mp157c Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 30 ++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers

[PATCH V3 4/6] net: ethernet: stmmac: add management of clk_csr property

2019-03-05 Thread Christophe Roullier
In Documentation stmmac.txt there is possibility to fixed CSR Clock range selection with property clk_csr. This patch add the management of this property For example to use it, add in your ethernet node DT: clk_csr = <3>; Signed-off-by: Christophe Roullier --- drivers/net/et

Re: [PATCH V2 3/8] dt-bindings: net: stmmac: add phys config properties

2019-02-26 Thread Christophe ROULLIER
On 2/23/19 1:16 AM, Rob Herring wrote: > On Fri, Feb 22, 2019 at 09:28:04AM +0100, Christophe Roullier wrote: >> Add properties to support all Phy config >> PHY_MODE (MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz), >> PHY wo crystal (50Mhz), No 1

[PATCH V2 4/8] net: ethernet: stmmac: add management of clk_csr property

2019-02-22 Thread Christophe Roullier
In Documentation stmmac.txt there is possibility to fixed CSR Clock range selection with property clk_csr. This patch add the management of this property For example to use it, add in your ethernet node DT: clk_csr = <3>; Signed-off-by: Christophe Roullier --- drivers/net/et

[PATCH V2 0/8] stmmac: add some fixes for stm32

2019-02-22 Thread Christophe Roullier
-phy@X Christophe Roullier (8): net: ethernet: stmmac: manage Ethernet WoL for stm32mp157c. net: ethernet: stmmac: update to support all PHY config for stm32mp157c. dt-bindings: net: stmmac: add phys config properties net: ethernet: stmmac: add management of clk_csr property net

[PATCH V2 5/8] net: ethernet: stmmac: update to be compatible with MCU family (stm32f4, stm32h7)

2019-02-22 Thread Christophe Roullier
Update glue codes to be compatible with MCU family. Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 51 ++- 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers

[PATCH V2 1/8] net: ethernet: stmmac: manage Ethernet WoL for stm32mp157c.

2019-02-22 Thread Christophe Roullier
Add glue codes to support magic packet on stm32mp157c Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 30 ++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers

[PATCH V2 3/8] dt-bindings: net: stmmac: add phys config properties

2019-02-22 Thread Christophe Roullier
Add properties to support all Phy config PHY_MODE (MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz), PHY wo crystal (50Mhz), No 125Mhz from PHY config. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 6 +++--- 1 file changed, 3

[PATCH V2 2/8] net: ethernet: stmmac: update to support all PHY config for stm32mp157c.

2019-02-22 Thread Christophe Roullier
Update glue codes to support all PHY config on stm32mp157c PHY_MODE (MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz), PHY wo crystal (50Mhz), No 125Mhz from PHY config. Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 105

[PATCH V2 7/8] ARM: dts: stm32: Add Ethernet support on stm32h7 SOC and activate it for eval and disco boards

2019-02-22 Thread Christophe Roullier
Synopsys GMAC 4.10 is used. And Phy mode for eval and disco is RMII with PHY SMSC LAN8742 Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 15 +++ arch/arm/boot/dts/stm32h743.dtsi | 19 +++ arch/arm/boot/dts/stm32h743i

[PATCH V2 8/8] ARM: dts: stm32: add syscfg clock support for Ethernet on STM32F429 SoC

2019-02-22 Thread Christophe Roullier
This patch add syscfg clock support for Ethernet of the STM32F429 SoC. Needed if bootloader do not manage it. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32f429.dtsi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch

[PATCH V2 6/8] dt-bindings: net: stmmac: add syscfg clock property

2019-02-22 Thread Christophe Roullier
Need syscfg clock for MCU family in case bootloader does not activate it. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b

Re: [PATCH 2/8] net: ethernet: stmmac: update to support all PHY config for stm32mp157c.

2019-02-14 Thread Christophe ROULLIER
On 2/14/19 4:15 PM, Andrew Lunn wrote: >> Sorry, I've misunderstood your question ;-) >> >> And you spoke about : >> >> case PHY_INTERFACE_MODE_RGMII: >> case PHY_INTERFACE_MODE_RGMII_ID: >> case PHY_INTERFACE_MODE_RGMII_RXID: >> case PHY_INTERFACE_MODE_RGMII_TXID: >> >> So in my setup I've only RG

Re: [PATCH 2/8] net: ethernet: stmmac: update to support all PHY config for stm32mp157c.

2019-02-14 Thread Christophe ROULLIER
On 2/14/19 2:40 PM, Andrew Lunn wrote: > On Thu, Feb 14, 2019 at 07:45:57AM +0100, Christophe Roullier wrote: >> @@ -131,19 +185,19 @@ static int stm32mp1_set_mode(struct >> plat_stmmacenet_data *plat_dat) >> case PHY_INTERFACE_MODE_RGMII: >> val

Re: [PATCH 7/8] ARM: dts: stm32: Add Ethernet support on stm32h7 SOC and activate it for eval and disco boards

2019-02-14 Thread Christophe ROULLIER
On 2/14/19 2:44 PM, Andrew Lunn wrote: > On Thu, Feb 14, 2019 at 07:46:02AM +0100, Christophe Roullier wrote: >> +mdio0 { >> +#address-cells = <1>; >> +#size-cells = <0>; >> +compatible = "snps,dwmac

Re: [PATCH 2/8] net: ethernet: stmmac: update to support all PHY config for stm32mp157c.

2019-02-14 Thread Christophe ROULLIER
On 2/14/19 2:40 PM, Andrew Lunn wrote: > On Thu, Feb 14, 2019 at 07:45:57AM +0100, Christophe Roullier wrote: >> @@ -131,19 +185,19 @@ static int stm32mp1_set_mode(struct >> plat_stmmacenet_data *plat_dat) >> case PHY_INTERFACE_MODE_RGMII: >> val

[PATCH 0/8] stmmac: add some fixes for stm32

2019-02-13 Thread Christophe Roullier
), PHY wo crystal (50Mhz), No 125Mhz from PHY config For stm32mcu: - Add Ethernet support for stm32h7 - Add syscfg clk support for stm32f4 Christophe Roullier (8): net: ethernet: stmmac: manage Ethernet WoL for stm32mp157c. net: ethernet: stmmac: update to support all PHY

[PATCH 4/8] net: ethernet: stmmac: add management of clk_csr property

2019-02-13 Thread Christophe Roullier
In Documentation stmmac.txt there is possibility to fixed CSR Clock range selection with property clk_csr. This patch add the management of this property For example to use it, add in your ethernet node DT: clk_csr = <3>; Signed-off-by: Christophe Roullier --- drivers/net/et

[PATCH 2/8] net: ethernet: stmmac: update to support all PHY config for stm32mp157c.

2019-02-13 Thread Christophe Roullier
Update glue codes to support all PHY config on stm32mp157c PHY_MODE (MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz), PHY wo crystal (50Mhz), No 125Mhz from PHY config. Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 102

[PATCH 5/8] net: ethernet: stmmac: update to be compatible with MCU family (stm32f4, stm32h7)

2019-02-13 Thread Christophe Roullier
Update glue codes to be compatible with MCU family. Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 51 ++- 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers

[PATCH 7/8] ARM: dts: stm32: Add Ethernet support on stm32h7 SOC and activate it for eval and disco boards

2019-02-13 Thread Christophe Roullier
Synopsys GMAC 4.10 is used. And Phy mode for eval and disco is RMII with PHY SMSC LAN8742 Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 15 +++ arch/arm/boot/dts/stm32h743.dtsi | 19 +++ arch/arm/boot/dts/stm32h743i

[PATCH 8/8] ARM: dts: stm32: add syscfg clock support for Ethernet on STM32F429 SoC

2019-02-13 Thread Christophe Roullier
This patch add syscfg clock support for Ethernet of the STM32F429 SoC. Needed if bootloader do not manage it. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32f429.dtsi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch

[PATCH 6/8] dt-bindings: net: stmmac: add syscfg clock property

2019-02-13 Thread Christophe Roullier
Need syscfg clock for MCU family in case bootloader does not activate it. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b

[PATCH 1/8] net: ethernet: stmmac: manage Ethernet WoL for stm32mp157c.

2019-02-13 Thread Christophe Roullier
Add glue codes to support magic packet on stm32mp157c Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 30 ++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers

[PATCH 3/8] dt-bindings: net: stmmac: add phys config properties

2019-02-13 Thread Christophe Roullier
Add properties to support all Phy config PHY_MODE (MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz), PHY wo crystal (50Mhz), No 125Mhz from PHY config. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 6 +++--- 1 file changed, 3

[PATCH V0:net-next 0/4] net: ethernet: stmmac: add support for stm32mp1

2018-05-25 Thread Christophe Roullier
Patches to have Ethernet support on stm32mp1 Christophe Roullier (4): net: ethernet: stmmac: add adaptation for stm32mp157c. dt-bindings: stm32-dwmac: add support of MPU families net: stmmac: add dwmac-4.20a compatible dt-bindings: stm32: add compatible for syscon .../devicetree

[PATCH V0:net-next 2/4] dt-bindings: stm32-dwmac: add support of MPU families

2018-05-25 Thread Christophe Roullier
Add description for Ethernet MPU families fields Signed-off-by: Christophe Roullier Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net

[PATCH V0:net-next 4/4] dt-bindings: stm32: add compatible for syscon

2018-05-25 Thread Christophe Roullier
This patch describes syscon DT bindings. Signed-off-by: Christophe Roullier Reviewed-by: Rob Herring --- .../devicetree/bindings/arm/stm32/stm32-syscon.txt | 14 ++ .../devicetree/bindings/arm/{ => stm32}/stm32.txt | 0 2 files changed, 14 insertions(+) cre

[PATCH V0:net-next 1/4] net: ethernet: stmmac: add adaptation for stm32mp157c.

2018-05-25 Thread Christophe Roullier
Glue codes to support stm32mp157c device and stay compatible with stm32 mcu familly Signed-off-by: Christophe Roullier Acked-by: Alexandre TORGUE --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 267 -- 1 file changed, 252 insertions(+), 15 deletions(-) diff --git a

[PATCH V0:net-next 3/4] net: stmmac: add dwmac-4.20a compatible

2018-05-25 Thread Christophe Roullier
Manage dwmac-4.20a version from synopsys Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro

[PATCH V4 4/8] ARM: dts: stm32: Add syscfg on stm32mp1

2018-05-23 Thread Christophe Roullier
System configuration controller is mainly used to manage the compensation cell and other IOs and system related settings. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch

[PATCH V4 8/8] dt-bindings: stm32: add compatible for syscon

2018-05-23 Thread Christophe Roullier
This patch describes syscon DT bindings. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/arm/stm32.txt| 10 -- .../devicetree/bindings/arm/stm32/stm32-syscon.txt | 14 ++ Documentation/devicetree/bindings/arm/stm32/stm32.txt

[PATCH V4 7/8] ARM: dts: stm32: add support of ethernet on stm32mp157c-ev1

2018-05-23 Thread Christophe Roullier
MAC is connected to a PHY in RGMII mode. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index 57e6dbc..a7fee5c

[PATCH V4 3/8] ARM: dts: stm32: add ethernet pins to stm32mp157c

2018-05-23 Thread Christophe Roullier
Add ethernet pins on stm32mp157c. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 46 +++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index

[PATCH V4 0/8] net: ethernet: stmmac: add support for stm32mp1

2018-05-23 Thread Christophe Roullier
/stm32mp157c.dtsi, syscfg: system-config@5002 with syscfg: syscon@5002syscfg: system-config@5002 Christophe Roullier (8): net: ethernet: stmmac: add adaptation for stm32mp157c. dt-bindings: stm32-dwmac: add support of MPU families ARM: dts: stm32: add ethernet pins to

[PATCH V4 6/8] net: stmmac: add dwmac-4.20a compatible

2018-05-23 Thread Christophe Roullier
Manage dwmac-4.20a version from synopsys Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro

[PATCH V4 5/8] ARM: dts: stm32: Add ethernet dwmac on stm32mp1

2018-05-23 Thread Christophe Roullier
Add Ethernet support (Synopsys MAC IP 4.20a) on stm32mp1 SOC. Enable feature supported by the stmmac driver, such as TSO. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot

[PATCH V4 2/8] dt-bindings: stm32-dwmac: add support of MPU families

2018-05-23 Thread Christophe Roullier
Add description for Ethernet MPU families fields Signed-off-by: Christophe Roullier Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net

[PATCH V4 1/8] net: ethernet: stmmac: add adaptation for stm32mp157c.

2018-05-23 Thread Christophe Roullier
Glue codes to support stm32mp157c device and stay compatible with stm32 mcu family Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 270 -- 1 file changed, 255 insertions(+), 15 deletions(-) diff --git a/drivers/net/ethernet/stmicro

Re: [PATCH V3 8/8] dt-bindings: stm32: add compatible for syscon

2018-05-23 Thread Christophe ROULLIER
On 05/22/2018 07:22 PM, Rob Herring wrote: > On Mon, May 21, 2018 at 10:07:26AM +0200, Christophe Roullier wrote: >> This patch describes syscon DT bindings. >> >> Signed-off-by: Christophe Roullier >> --- >> Documentation/devicetree/bindings/arm/stm32.txt

[PATCH V3 2/8] dt-bindings: stm32-dwmac: add support of MPU families

2018-05-21 Thread Christophe Roullier
Add description for Ethernet MPU families fields Signed-off-by: Christophe Roullier Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net

[PATCH V3 0/8] net: ethernet: stmmac: add support for stm32mp1

2018-05-21 Thread Christophe Roullier
Patches to have Ethernet support on stm32mp1 Changelog: Remark from Rob Herring In Documentation/devicetree/bindings/arm/stm32.txt: In arch/arm/boot/dts/stm32mp157c.dtsi: Add "st,stm32mp157-syscfg" compatible Christophe Roullier (8): net: ethernet: stmmac: add adaptation for stm32mp

[PATCH V3 4/8] ARM: dts: stm32: Add syscfg on stm32mp1

2018-05-21 Thread Christophe Roullier
System configuration controller is mainly used to manage the compensation cell and other IOs and system related settings. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch

[PATCH V3 3/8] ARM: dts: stm32: add ethernet pins to stm32mp157c

2018-05-21 Thread Christophe Roullier
Add ethernet pins on stm32mp157c. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 46 +++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index

[PATCH V3 5/8] ARM: dts: stm32: Add ethernet dwmac on stm32mp1

2018-05-21 Thread Christophe Roullier
Add Ethernet support (Synopsys MAC IP 4.20a) on stm32mp1 SOC. Enable feature supported by the stmmac driver, such as TSO. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot

[PATCH V3 8/8] dt-bindings: stm32: add compatible for syscon

2018-05-21 Thread Christophe Roullier
This patch describes syscon DT bindings. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/arm/stm32.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/stm32.txt b/Documentation/devicetree/bindings/arm/stm32.txt index

[PATCH V3 7/8] ARM: dts: stm32: add support of ethernet on stm32mp157c-ev1

2018-05-21 Thread Christophe Roullier
MAC is connected to a PHY in RGMII mode. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index 57e6dbc..a7fee5c

[PATCH V3 6/8] net: stmmac: add dwmac-4.20a compatible

2018-05-21 Thread Christophe Roullier
Manage dwmac-4.20a version from synopsys Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro

[PATCH V3 1/8] net: ethernet: stmmac: add adaptation for stm32mp157c.

2018-05-21 Thread Christophe Roullier
Glue codes to support stm32mp157c device and stay compatible with stm32 mcu family Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 270 -- 1 file changed, 255 insertions(+), 15 deletions(-) diff --git a/drivers/net/ethernet/stmicro

RE: [PATCH V2 8/8] dt-bindings: stm32: add compatible for syscon

2018-05-15 Thread Christophe ROULLIER
your help. Christophe. -Original Message- From: Rob Herring [mailto:r...@kernel.org] Sent: lundi 7 mai 2018 18:36 To: Christophe ROULLIER Cc: mark.rutl...@arm.com; mcoquelin.st...@gmail.com; Alexandre TORGUE ; Peppe CAVALLARO ; devicet...@vger.kernel.org; and...@lunn.ch; lin

RE: [PATCH V2 6/8] net: stmmac: add dwmac-4.20a compatible

2018-05-02 Thread Christophe ROULLIER
mai 2018 16:41 To: Christophe ROULLIER ; mark.rutl...@arm.com; mcoquelin.st...@gmail.com; Alexandre TORGUE ; Peppe CAVALLARO Cc: devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; netdev@vger.kernel.org; and...@lunn.ch Subject: Re: [PATCH V2 6/8] net: stmmac: add dwmac-4.20a compati

[PATCH V2 5/8] ARM: dts: stm32: Add ethernet dwmac on stm32mp1

2018-05-02 Thread Christophe Roullier
Add Ethernet support (Synopsys MAC IP 4.20a) on stm32mp1 SOC. Enable feature supported by the stmmac driver, such as TSO. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot

[PATCH V2 6/8] net: stmmac: add dwmac-4.20a compatible

2018-05-02 Thread Christophe Roullier
Manage dwmac-4.20a version from synopsys Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro

[PATCH V2 1/8] net: ethernet: stmmac: add adaptation for stm32mp157c.

2018-05-02 Thread Christophe Roullier
Glue codes to support stm32mp157c device and stay compatible with stm32 mcu family Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 270 -- 1 file changed, 255 insertions(+), 15 deletions(-) diff --git a/drivers/net/ethernet/stmicro

[PATCH V2 3/8] ARM: dts: stm32: add ethernet pins to stm32mp157c

2018-05-02 Thread Christophe Roullier
Add ethernet pins on stm32mp157c. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 46 +++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index

[PATCH V2 4/8] ARM: dts: stm32: Add syscfg on stm32mp1

2018-05-02 Thread Christophe Roullier
System configuration controller is mainly used to manage the compensation cell and other IOs and system related settings. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch

[PATCH V2 8/8] dt-bindings: stm32: add compatible for syscon

2018-05-02 Thread Christophe Roullier
This patch describes syscon DT bindings. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/arm/stm32.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/stm32.txt b/Documentation/devicetree/bindings/arm/stm32.txt index

[PATCH V2 2/8] dt-bindings: stm32-dwmac: add support of MPU families

2018-05-02 Thread Christophe Roullier
Add description for Ethernet MPU families fields Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b

[PATCH V2 7/8] ARM: dts: stm32: add support of ethernet on stm32mp157c-ev1

2018-05-02 Thread Christophe Roullier
MAC is connected to a PHY in RGMII mode. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index 57e6dbc..a7fee5c

[PATCH V2 0/8] net: ethernet: stmmac: add support for stm32mp1

2018-05-02 Thread Christophe Roullier
-pinctrl.dtsi: Replace @0 with -0 In Documentation/devicetree/bindings/arm/stm32.txt .../devicetree/bindings/net/stm32-dwmac.txt Update with requirement of Rob In arch/arm/boot/dts/stm32mp157c.dtsi: Remove compatible "st,stm32-syscfg" and use only generic "syscon" Christophe

RE: [PATCH 2/8] dt-bindings: stm32-dwmac: add support of MPU families

2018-05-02 Thread Christophe ROULLIER
Hi, My answers below under "CRO" Thanks. Christophe -Original Message- From: Rob Herring [mailto:r...@kernel.org] Sent: mardi 1 mai 2018 15:59 To: Christophe ROULLIER Cc: mark.rutl...@arm.com; mcoquelin.st...@gmail.com; Alexandre TORGUE ; Peppe CAVALLARO ; devicet...@vger.

RE: [PATCH 1/8] net: ethernet: stmmac: add adaptation for stm32mp157c.

2018-04-25 Thread Christophe ROULLIER
val |= SYSCFG_PMCR_ETH_CLK_SEL; pr_debug("SYSCFG init : PHY_INTERFACE_MODE_RGMII\n"); break; Christophe. -Original Message- From: Andrew Lunn [mailto:and...@lunn.ch] Sent: mardi 24 avril 2018 17:40 To: Christophe ROULLIER Cc: mark.rutl...@arm.com

[PATCH 4/8] ARM: dts: stm32: Add syscfg on stm32mp1

2018-04-24 Thread Christophe Roullier
System configuration controller is mainly used to manage the compensation cell and other IOs and system related settings. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch

[PATCH 3/8] ARM: dts: stm32: add ethernet pins to stm32mp157c

2018-04-24 Thread Christophe Roullier
Add ethernet pins on stm32mp157c. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 46 +++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index

[PATCH 0/8] net: ethernet: stmmac: add support for stm32mp1

2018-04-24 Thread Christophe Roullier
Patches to have Ethernet support on stm32mp1 Christophe Roullier (8): net: ethernet: stmmac: add adaptation for stm32mp157c. dt-bindings: stm32-dwmac: add support of MPU families ARM: dts: stm32: add ethernet pins to stm32mp157c ARM: dts: stm32: Add syscfg on stm32mp1 ARM: dts: stm32

[PATCH 7/8] ARM: dts: stm32: add support of ethernet on stm32mp157c-ev1

2018-04-24 Thread Christophe Roullier
MAC is connected to a PHY in RGMII mode. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index 57e6dbc..a7fee5c

[PATCH 5/8] ARM: dts: stm32: Add ethernet dwmac on stm32mp1

2018-04-24 Thread Christophe Roullier
Add Ethernet support (Synopsys MAC IP 4.20a) on stm32mp1 SOC. Enable feature supported by the stmmac driver, such as TSO. Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot

[PATCH 6/8] net: stmmac: add dwmac-4.20a compatible

2018-04-24 Thread Christophe Roullier
Manage dwmac-4.20a version from synopsys Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro

[PATCH 2/8] dt-bindings: stm32-dwmac: add support of MPU families

2018-04-24 Thread Christophe Roullier
Add description for Ethernet MPU families fields Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/net/stm32-dwmac.txt | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b

[PATCH 8/8] dt-bindings: stm32: add compatible for syscon

2018-04-24 Thread Christophe Roullier
This patch describes syscon DT bindings. Signed-off-by: Christophe Roullier --- Documentation/devicetree/bindings/arm/stm32.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/stm32.txt b/Documentation/devicetree/bindings/arm/stm32.txt index

[PATCH 1/8] net: ethernet: stmmac: add adaptation for stm32mp157c.

2018-04-24 Thread Christophe Roullier
Glue codes to support stm32mp157c device and stay compatible with stm32 mcu family Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 267 -- 1 file changed, 252 insertions(+), 15 deletions(-) diff --git a/drivers/net/ethernet/stmicro

[PATCH] net: ethernet: stmmac: add ARP management

2017-01-17 Thread Christophe Roullier
appropriate ARP request packets. Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/common.h | 4 drivers/net/ethernet/stmicro/stmmac/dwmac4.h | 3 +++ drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 15 ++ drivers/net/ethernet/stmicro