[PATCH V2 1/1] watchdog: stm32_iwdg: don't print an error on probe deferral

2020-11-06 Thread Christophe Roullier
From: Etienne Carriere Do not print an error trace when deferring probe for clock resources. Signed-off-by: Etienne Carriere Signed-off-by: Christophe Roullier --- drivers/watchdog/stm32_iwdg.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/watchdog

[PATCH V2 0/1] watchdog: stm32_iwdg: don't print an error on probe deferral

2020-11-06 Thread Christophe Roullier
Do not print an error trace when deferring probe for clock resources. Version 2: Remark from Guenter and Ahmad use dev_err_probe instead Etienne Carriere (1): watchdog: stm32_iwdg: don't print an error on probe deferral drivers/watchdog/stm32_iwdg.c | 13 + 1 file

[PATCH 1/1] watchdog: stm32_iwdg: don't print an error on probe deferral

2020-11-06 Thread Christophe Roullier
From: Etienne Carriere Do not print an error trace when deferring probe for clock resources. Signed-off-by: Etienne Carriere Signed-off-by: Christophe Roullier --- drivers/watchdog/stm32_iwdg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog

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,

Re: [PATCH 0/5] net: ethernet: stmmac: some fixes and optimization

2019-09-23 Thread Christophe ROULLIER
07:38:12 +0200, Christophe Roullier wrote: >> Some improvements (manage syscfg as optional clock, update slew rate of >> ETH_MDIO pin, Enable gating of the MAC TX clock during TX low-power mode) >> Fix warning build message when W=1 > There seems to be some new features/clea

[PATCH 2/5] net: ethernet: stmmac: fix warning when w=1 option is used during build

2019-09-19 Thread Christophe Roullier
This patch fix the following warning: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int val, ret; Signed-off-by: Christophe Roullier --- drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 4/5] ARM: dts: stm32: adjust slew rate for Ethernet

2019-09-19 Thread Christophe Roullier
ETH_MDIO slew-rate should be set to "0" instead of "2" Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm

[PATCH 0/5] net: ethernet: stmmac: some fixes and optimization

2019-09-19 Thread Christophe Roullier
Some improvements (manage syscfg as optional clock, update slew rate of ETH_MDIO pin, Enable gating of the MAC TX clock during TX low-power mode) Fix warning build message when W=1 Christophe Roullier (5): net: ethernet: stmmac: Add support for syscfg clock net: ethernet: stmmac: fix warning

[PATCH 3/5] ARM: dts: stm32: remove syscfg clock on stm32mp157c ethernet

2019-09-19 Thread Christophe Roullier
Syscfg is now activated automatically when syscfg registers are used Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index

[PATCH 5/5] ARM: dts: stm32: Enable gating of the MAC TX clock during TX low-power mode on stm32mp157c

2019-09-19 Thread Christophe Roullier
When there is no activity on ethernet phy link, the ETH_GTX_CLK is cut Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index f51d6222a0e8

[PATCH 1/5] net: ethernet: stmmac: Add support for syscfg clock

2019-09-19 Thread Christophe Roullier
Add optional support for syscfg clock in dwmac-stm32.c Now Syscfg clock is activated automatically when syscfg registers are used Signed-off-by: Christophe Roullier --- .../net/ethernet/stmicro/stmmac/dwmac-stm32.c | 36 +-- 1 file changed, 25 insertions(+), 11 deletions

[PATCH 1/1] ARM: dts: stm32: replace rgmii mode with rgmii-id on stm32mp15 boards

2019-06-17 Thread Christophe Roullier
On disco and eval board, Tx and Rx delay are applied (pull-up of 4.7k put on VDD) so which correspond to RGMII-ID mode with internal RX and TX delays provided by the PHY, the MAC should not add the RX or TX delays in this case Signed-off-by: Christophe Roullier --- arch/arm/boot/dts/stm32mp157a

[PATCH 0/1] ARM: dts: stm32: replace rgmii mode with rgmii-id on stm32mp15 boards

2019-06-17 Thread Christophe Roullier
On disco and eval board, Tx and Rx delay are applied (pull-up of 4.7k put on VDD) so which correspond to RGMII-ID mode with internal RX and TX delays provided by the PHY, the MAC should not add the RX or TX delays in this case Christophe Roullier (1): ARM: dts: stm32: replace rgmii mode with

[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 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 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 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

[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 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

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 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 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 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 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 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

[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 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

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 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 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 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 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 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 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 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 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 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 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] 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