[PATCH v2 2/2] phy: stm32: manage optional vbus regulator on phy_power_on/off

2021-04-13 Thread Amelie Delaunay
This patch adds support for optional vbus regulator. It is managed on phy_power_on/off calls and may be needed for host mode. Signed-off-by: Amelie Delaunay --- No changes in v2. --- drivers/phy/st/phy-stm32-usbphyc.c | 31 ++ 1 file changed, 31 insertions(+) diff

[PATCH v2 0/2] STM32 USBPHYC vbus-supply property support

2021-04-13 Thread Amelie Delaunay
STM32 USBPHYC provides two USB High-Speed ports which are used by controllers with Host capabilities. That's why vbus-supply has to be supported on each phy node. --- Changes in v2: - use connector node vbus-supply property as suggested by Rob --- Amelie Delaunay (2): dt-bindings: phy: add vbus

[PATCH v2 1/2] dt-bindings: phy: add vbus-supply optional property to phy-stm32-usbphyc

2021-04-13 Thread Amelie Delaunay
This patch adds vbus-supply optional property to phy sub-nodes using connector node. A regulator for USB VBUS may be needed for host mode. Signed-off-by: Amelie Delaunay --- Changes in v2: - add connector vbus-supply property as suggested by Rob --- .../devicetree/bindings/phy/phy-stm32

Re: [PATCH 1/2] dt-bindings: phy: add vbus-supply optional property to phy-stm32-usbphyc

2021-03-26 Thread Amelie DELAUNAY
Hi Rob, On 3/26/21 1:28 AM, Rob Herring wrote: On Wed, Mar 17, 2021 at 05:09:53PM +0100, Amelie Delaunay wrote: This patch adds vbus-supply optional property to phy sub-nodes. A regulator for USB VBUS may be needed for host mode. Signed-off-by: Amelie Delaunay --- Documentation/devicetree

[PATCH 1/2] dt-bindings: phy: add vbus-supply optional property to phy-stm32-usbphyc

2021-03-17 Thread Amelie Delaunay
This patch adds vbus-supply optional property to phy sub-nodes. A regulator for USB VBUS may be needed for host mode. Signed-off-by: Amelie Delaunay --- Documentation/devicetree/bindings/phy/phy-stm32-usbphyc.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree

[PATCH 0/2] STM32 USBPHYC vbus-supply property support

2021-03-17 Thread Amelie Delaunay
STM32 USBPHYC provides two USB High-Speed ports which are used by controllers with Host capabilities. That's why vbus-supply has to be supported on each phy node. Amelie Delaunay (2): dt-bindings: phy: add vbus-supply optional property to phy-stm32-usbphyc phy: stm32: manage optional vbus

[PATCH 2/2] phy: stm32: manage optional vbus regulator on phy_power_on/off

2021-03-17 Thread Amelie Delaunay
This patch adds support for optional vbus regulator. It is managed on phy_power_on/off calls and may be needed for host mode. Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 31 ++ 1 file changed, 31 insertions(+) diff --git a/drivers/phy/st

[RESEND PATCH v3 1/2] dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells property

2021-03-09 Thread Amelie Delaunay
usbphyc provides a unique clock called ck_usbo_48m. STM32 USB OTG needs a 48Mhz clock (utmifs_clk48) for Full-Speed operation. ck_usbo_48m is a possible parent clock for USB OTG 48Mhz clock. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay Acked-by: Rob

[RESEND PATCH v3 0/2] STM32 USBPHYC ck_usbo_48m clock provider

2021-03-09 Thread Amelie Delaunay
Changes in v3: - remove #clock-cells from required properties Changes in v2: - fix COMMON_CLK dependency issue reported by kernel test robot --- Amelie Delaunay (2): dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells property phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock

[RESEND PATCH v3 2/2] phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock

2021-03-09 Thread Amelie Delaunay
ck_usbo_48m is generated by usbphyc PLL and used by OTG controller for Full-Speed use cases with dedicated Full-Speed transceiver. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay --- No changes in v3. Changes in v2: - fix COMMON_CLK dependency issue

[RESEND PATCH v3 0/2] STM32 USBPHYC ck_usbo_48m clock provider

2021-03-04 Thread Amelie Delaunay
from required properties Changes in v2: - fix COMMON_CLK dependency issue reported by kernel test robot --- Amelie Delaunay (2): dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells property phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock .../bindings/phy/phy-stm32

[RESEND PATCH v3 1/2] dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells property

2021-03-04 Thread Amelie Delaunay
usbphyc provides a unique clock called ck_usbo_48m. STM32 USB OTG needs a 48Mhz clock (utmifs_clk48) for Full-Speed operation. ck_usbo_48m is a possible parent clock for USB OTG 48Mhz clock. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay Acked-by: Rob

[RESEND PATCH v3 2/2] phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock

2021-03-04 Thread Amelie Delaunay
ck_usbo_48m is generated by usbphyc PLL and used by OTG controller for Full-Speed use cases with dedicated Full-Speed transceiver. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay --- No changes in v3. Changes in v2: - fix COMMON_CLK dependency issue

[PATCH v3 0/2] STM32 USBPHYC ck_usbo_48m clock provider

2021-02-08 Thread Amelie Delaunay
from required properties Changes in v2: - fix COMMON_CLK dependency issue reported by kernel test robot --- Amelie Delaunay (2): dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells property phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock .../bindings/phy/phy-stm32

[PATCH v3 1/2] dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells property

2021-02-08 Thread Amelie Delaunay
usbphyc provides a unique clock called ck_usbo_48m. STM32 USB OTG needs a 48Mhz clock (utmifs_clk48) for Full-Speed operation. ck_usbo_48m is a possible parent clock for USB OTG 48Mhz clock. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay --- Changes in v3

[PATCH v3 2/2] phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock

2021-02-08 Thread Amelie Delaunay
ck_usbo_48m is generated by usbphyc PLL and used by OTG controller for Full-Speed use cases with dedicated Full-Speed transceiver. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay --- Changes in v2: - fix COMMON_CLK dependency issue reported by kernel test

Re: [PATCH v2 1/2] dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells required property

2021-01-26 Thread Amelie DELAUNAY
Hi Rob, On 1/25/21 10:40 PM, Rob Herring wrote: On Thu, Jan 14, 2021 at 06:13:13PM +0100, Amelie Delaunay wrote: usbphyc provides a unique clock called ck_usbo_48m. STM32 USB OTG needs a 48Mhz clock (utmifs_clk48) for Full-Speed operation. ck_usbo_48m is a possible parent clock for USB OTG

[PATCH v2 0/2] STM32 USBPHYC ck_usbo_48m clock provider

2021-01-14 Thread Amelie Delaunay
dependency issue reported by kernel test robot --- Amelie Delaunay (2): dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells required property phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock .../bindings/phy/phy-stm32-usbphyc.yaml | 6 ++ drivers/phy/st/Kconfig

[PATCH v2 2/2] phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock

2021-01-14 Thread Amelie Delaunay
ck_usbo_48m is generated by usbphyc PLL and used by OTG controller for Full-Speed use cases with dedicated Full-Speed transceiver. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay --- Changes in v2: - fix COMMON_CLK dependency issue reported by kernel test

[PATCH v2 1/2] dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells required property

2021-01-14 Thread Amelie Delaunay
usbphyc provides a unique clock called ck_usbo_48m. STM32 USB OTG needs a 48Mhz clock (utmifs_clk48) for Full-Speed operation. ck_usbo_48m is a possible parent clock for USB OTG 48Mhz clock. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay --- No change

[PATCH v2 1/3] ARM: dts: stm32: add usbphyc vdda1v1 and vdda1v8 supplies on stm32mp151

2021-01-14 Thread Amelie Delaunay
vdda1v1 and vdda1v8 supplies are required by USB PLL. Add them in usbphyc node. Cc: Manivannan Sadhasivam Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp151.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151

[PATCH v2 2/3] ARM: dts: stm32: remove usbphyc ports vdda1v1 & vdda1v8 on stm32mp15 boards

2021-01-14 Thread Amelie Delaunay
vdda1v1 and vdda1v8 supplies are required by USB PLL, not by the PHYs. Remove them from usbphyc child phy nodes now that they are managed in usbphyc parent node at SoC level. Cc: Manivannan Sadhasivam Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp157a-stinger96.dtsi | 4

[PATCH v2 3/3] ARM: dts: stm32: add #clock-cells property to usbphyc node on stm32mp151

2021-01-14 Thread Amelie Delaunay
usbphyc is a 48Mhz clock provider: the clock can be used as clock source for USB OTG. Add #clock-cells property to usbphyc node to reflect this capability. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp151.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts

[PATCH v2 0/3] ARM: stm32: USBPHYC updates on stm32mp15

2021-01-14 Thread Amelie Delaunay
This series updates usbphyc parent and child nodes to follow latest DT bindings. --- Changes in v2: - squash all DT board patches in one patch - update also non-ST DT Amelie Delaunay (3): ARM: dts: stm32: add usbphyc vdda1v1 and vdda1v8 supplies on stm32mp151 ARM: dts: stm32: remove

[PATCH 2/4] ARM: dts: stm32: remove usbphyc ports vdda1v1-vdda1v8 on stm32mp157c-ed1

2021-01-14 Thread Amelie Delaunay
vdda1v1 and vdda1v8 supplies are required by USB PLL, not by the PHYs. Remove them from usbphyc child phy nodes now that they are managed in usbphyc parent node at SoC level. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp157c-ed1.dts | 4 1 file changed, 4 deletions(-) diff

[PATCH 1/4] ARM: dts: stm32: add usbphyc vdda1v1 and vdda1v8 supplies on stm32mp151

2021-01-14 Thread Amelie Delaunay
vdda1v1 and vdda1v8 supplies are required by USB PLL. Add them in usbphyc node. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp151.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index 3c75abacb374

[PATCH 4/4] ARM: dts: stm32: add #clock-cells property to usbphyc node on stm32mp151

2021-01-14 Thread Amelie Delaunay
usbphyc is a 48Mhz clock provider: the clock can be used as clock source for USB OTG. Add #clock-cells property to usbphyc node to reflect this capability. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp151.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts

[PATCH 3/4] ARM: dts: stm32: remove usbphyc ports vdda1v1-vdda1v8 on stm32mp15xx-dkx

2021-01-14 Thread Amelie Delaunay
vdda1v1 and vdda1v8 supplies are required by USB PLL, not by the PHYs. Remove them from usbphyc child phy nodes now that they are managed in usbphyc parent node at SoC level. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 4 1 file changed, 4 deletions(-) diff

[PATCH 0/4] ARM: stm32: USBPHYC updates on stm32mp15

2021-01-14 Thread Amelie Delaunay
This series updates usbphyc parent and child nodes to follow latest DT bindings. Amelie Delaunay (4): ARM: dts: stm32: add usbphyc vdda1v1 and vdda1v8 supplies on stm32mp151 ARM: dts: stm32: remove usbphyc ports vdda1v1-vdda1v8 on stm32mp157c-ed1 ARM: dts: stm32: remove usbphyc

[PATCH 2/2] phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock

2021-01-14 Thread Amelie Delaunay
ck_usbo_48m is generated by usbphyc PLL and used by OTG controller for Full-Speed use cases with dedicated Full-Speed transceiver. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 66

[PATCH 1/2] dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells required property

2021-01-14 Thread Amelie Delaunay
usbphyc provides a unique clock called ck_usbo_48m. STM32 USB OTG needs a 48Mhz clock (utmifs_clk48) for Full-Speed operation. ck_usbo_48m is a possible parent clock for USB OTG 48Mhz clock. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay

[PATCH 0/2] STM32 USBPHYC ck_usbo_48m clock provider

2021-01-14 Thread Amelie Delaunay
STM32 USBPHYC provides clocks to STM32 RCC pour STM32 USB controllers. Specifically, ck_usbo_48m is a possible clock parent for USB OTG clock, during OTG Full-Speed operation. This series registers the usbphyc as clock provider of this ck_usbo_48m clock. Amelie Delaunay (2): dt-bindings: phy

[PATCH v2 3/3] usb: dwc2: disable Link Power Management on STM32MP15 HS OTG

2021-01-05 Thread Amelie Delaunay
Link Power Management on STM32MP15 HS OTG. Signed-off-by: Amelie Delaunay Acked-by: Minas Harutyunyan --- drivers/usb/dwc2/params.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 9e5dd7f3f2f6..92df3d620f7d 100644 --- a/drivers/usb/dwc

[PATCH v2 1/3] usb: dwc2: set ahbcfg parameter for STM32MP15 OTG HS and FS

2021-01-05 Thread Amelie Delaunay
controller performance. [1] https://www.st.com/resource/en/reference_manual/dm00327659.pdf, p.3149 Signed-off-by: Amelie Delaunay Acked-by: Minas Harutyunyan --- drivers/usb/dwc2/params.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c

[PATCH v2 2/3] usb: dwc2: enable FS/LS PHY clock select on STM32MP15 FS OTG

2021-01-05 Thread Amelie Delaunay
When the core is in FS host mode, using the FS transceiver, and a Low-Speed device is connected, transceiver clock is 6Mhz. So, to support Low-Speed devices, enable support of FS/LS Low Power mode, so that the PHY supplies a 6 MHz clock during Low-Speed mode. Signed-off-by: Amelie Delaunay Acked

[PATCH v2 0/3] STM32MP15 OTG params updates

2021-01-05 Thread Amelie Delaunay
' Reviewed-by on all patches Amelie Delaunay (3): usb: dwc2: set ahbcfg parameter for STM32MP15 OTG HS and FS usb: dwc2: enable FS/LS PHY clock select on STM32MP15 FS OTG usb: dwc2: disable Link Power Management on STM32MP15 HS OTG drivers/usb/dwc2/params.c | 8 1 file changed, 8 insertions

[PATCH v2 3/6] phy: stm32: replace regulator_bulk* by multiple regulator_*

2021-01-05 Thread Amelie Delaunay
Due to async_schedule_domain call in regulator_bulk_enable, scheduling while atomic bug can raise if regulator_bulk_enable is called under atomic context. To avoid this issue, this patch replaces all regulator_bulk* by regulator_ per regulators. Signed-off-by: Amelie Delaunay --- drivers/phy/st

[PATCH v2 1/6] dt-bindings: phy: phy-stm32-usbphyc: move PLL supplies to parent node

2021-01-05 Thread Amelie Delaunay
dependent. To ensure a good behavior of the PLL, supplies have to be managed at PLL activation/deactivation. That means the supplies need to be put in usbphyc parent node and not in phy children nodes. Signed-off-by: Amelie Delaunay Reviewed-by: Rob Herring --- Note that even with bindings change

[PATCH v2 0/6] STM32 USBPHYC PLL management rework

2021-01-05 Thread Amelie Delaunay
: - Move author mail address from @st.com to @foss.st.com - Add Rob's Reviewed-by on bindings patch 1/6 Amelie Delaunay (6): dt-bindings: phy: phy-stm32-usbphyc: move PLL supplies to parent node phy: stm32: manage 1v1 and 1v8 supplies at pll activation/deactivation phy: stm32: replace

[PATCH v2 4/6] phy: stm32: ensure pll is disabled before phys creation

2021-01-05 Thread Amelie Delaunay
To ensure a good balancing of regulators, force PLL disable either by reset or by clearing the PLLEN bit. If waiting the powerdown pulse delay isn't enough, return -EPROBE_DEFER instead of polling the PLLEN bit, which will be low at the next probe. Signed-off-by: Amelie Delaunay --- drivers/phy

[PATCH v2 2/6] phy: stm32: manage 1v1 and 1v8 supplies at pll activation/deactivation

2021-01-05 Thread Amelie Delaunay
dependent. To ensure a good behavior of the PLL, supplies have to be managed at PLL activation/deactivation. That means the supplies need to be put in usbphyc node and not in phy children nodes. Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 102

[PATCH v2 6/6] phy: stm32: rework PLL Lock detection

2021-01-05 Thread Amelie Delaunay
if a phy_exit is required to properly disable the PLL. Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 88 ++ 1 file changed, 54 insertions(+), 34 deletions(-) diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index

[PATCH v2 5/6] phy: stm32: ensure phy are no more active when removing the driver

2021-01-05 Thread Amelie Delaunay
To ensure a good balancing of regulators, and allow PLL disabling when the driver is removed, call stm32_usbphyc_phy_exit on each ports to set phys inactive and disable PLL. Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH 1/1] mfd: stmfx: remove .of_compatible from stmfx_cells for idd and ts

2021-01-04 Thread Amelie Delaunay
]" won't appear anymore. .of_compatible could be added as soon as idd or ts bindings are described and drivers available. Signed-off-by: Amelie Delaunay --- drivers/mfd/stmfx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mfd/stmfx.c b/drivers/mfd/stmfx.c index e095a3930142..b

[PATCH 1/1] dmaengine: stm32-mdma: fix STM32_MDMA_VERY_HIGH_PRIORITY value

2021-01-04 Thread Amelie Delaunay
STM32_MDMA_VERY_HIGH_PRIORITY is b11 not 0x11, so fix it with 0x3. Signed-off-by: Amelie Delaunay --- drivers/dma/stm32-mdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index e4637ec786d3..36ba8b43e78d 100644

Re: [Linux-stm32] [PATCH v5 1/1 RESEND] usb: typec: stusb160x: fix power-opmode property with typec-power-opmode

2020-11-27 Thread Amelie DELAUNAY
On 11/27/20 2:45 PM, Greg Kroah-Hartman wrote: On Fri, Nov 27, 2020 at 02:17:35PM +0100, Amelie Delaunay wrote: Device tree property is named typec-power-opmode, not power-opmode. Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family") Signed-off-

[PATCH v5 1/1 RESEND] usb: typec: stusb160x: fix power-opmode property with typec-power-opmode

2020-11-27 Thread Amelie Delaunay
Device tree property is named typec-power-opmode, not power-opmode. Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family") Signed-off-by: Amelie Delaunay Reviewed-by: Heikki Krogerus --- drivers/usb/typec/stusb160x.c | 2 +- 1 file changed, 1 inser

Re: [PATCH v5 3/5] usb: typec: stusb160x: fix power-opmode property with typec-power-opmode

2020-11-27 Thread Amelie DELAUNAY
On 11/27/20 2:07 PM, Greg Kroah-Hartman wrote: On Fri, Nov 27, 2020 at 02:01:29PM +0100, Amelie DELAUNAY wrote: Hi Greg, gentle reminder for this patch, lost in the middle of a DT series (DT part already in stm32-next). Odd, I don't see this anymore, can you resend just this one so I can

Re: [PATCH v5 3/5] usb: typec: stusb160x: fix power-opmode property with typec-power-opmode

2020-11-27 Thread Amelie DELAUNAY
Hi Greg, gentle reminder for this patch, lost in the middle of a DT series (DT part already in stm32-next). Thanks and regards, Amelie On 11/6/20 5:58 PM, Amelie Delaunay wrote: Device tree property is named typec-power-opmode, not power-opmode. Fixes: da0cb6310094 ("usb: typec

[PATCH 6/6] phy: stm32: rework PLL Lock detection

2020-11-23 Thread Amelie Delaunay
if a phy_exit is required to properly disable the PLL. Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 88 ++ 1 file changed, 54 insertions(+), 34 deletions(-) diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index

[PATCH 1/6] dt-bindings: phy: phy-stm32-usbphyc: move PLL supplies to parent node

2020-11-23 Thread Amelie Delaunay
dependent. To ensure a good behavior of the PLL, supplies have to be managed at PLL activation/deactivation. That means the supplies need to be put in usbphyc parent node and not in phy children nodes. Signed-off-by: Amelie Delaunay --- Note that even with bindings change, it doesn't break

[PATCH 4/6] phy: stm32: ensure pll is disabled before phys creation

2020-11-23 Thread Amelie Delaunay
To ensure a good balancing of regulators, force PLL disable either by reset or by clearing the PLLEN bit. If waiting the powerdown pulse delay isn't enough, return -EPROBE_DEFER instead of polling the PLLEN bit, which will be low at the next probe. Signed-off-by: Amelie Delaunay --- drivers/phy

[PATCH 5/6] phy: stm32: ensure phy are no more active when removing the driver

2020-11-23 Thread Amelie Delaunay
To ensure a good balancing of regulators, and allow PLL disabling when the driver is removed, call stm32_usbphyc_phy_exit on each ports to set phys inactive and disable PLL. Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH 2/6] phy: stm32: manage 1v1 and 1v8 supplies at pll activation/deactivation

2020-11-23 Thread Amelie Delaunay
dependent. To ensure a good behavior of the PLL, supplies have to be managed at PLL activation/deactivation. That means the supplies need to be put in usbphyc node and not in phy children nodes. Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 102

[PATCH 3/6] phy: stm32: replace regulator_bulk* by multiple regulator_*

2020-11-23 Thread Amelie Delaunay
Due to async_schedule_domain call in regulator_bulk_enable, scheduling while atomic bug can raise if regulator_bulk_enable is called under atomic context. To avoid this issue, this patch replaces all regulator_bulk* by regulator_ per regulators. Signed-off-by: Amelie Delaunay --- drivers/phy/st

[PATCH 0/6] STM32 USBPHYC PLL management rework

2020-11-23 Thread Amelie Delaunay
STM32 USBPHYC controls the USB PLL. PLL requires to be powered with 1v1 and 1v8 supplies. To ensure a good behavior of the PLL, during boot, runtime and suspend/resume sequences, this series reworks its management to fix regulators issues and improve PLL status reliability. Amelie Delaunay (6

[PATCH 1/3] usb: dwc2: set ahbcfg parameter for STM32MP15 OTG HS and FS

2020-11-23 Thread Amelie Delaunay
controller performance. [1] https://www.st.com/resource/en/reference_manual/dm00327659.pdf, p.3149 Signed-off-by: Amelie Delaunay --- drivers/usb/dwc2/params.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 267543c3dc38

[PATCH 3/3] usb: dwc2: disable Link Power Management on STM32MP15 HS OTG

2020-11-23 Thread Amelie Delaunay
Link Power Management on STM32MP15 HS OTG. Signed-off-by: Amelie Delaunay --- drivers/usb/dwc2/params.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 9e5dd7f3f2f6..92df3d620f7d 100644 --- a/drivers/usb/dwc2/params.c +++ b/driver

[PATCH 0/3] STM32MP15 OTG params updates

2020-11-23 Thread Amelie Delaunay
), OTG doesn't succeed to exit L1 state. It also enables FS/LS PHY clock selection when the Core is in FS Host mode, to have 6MHz PHY clock when the connected device is LS, and 48Mhz PHY clock otherwise. Amelie Delaunay (3): usb: dwc2: set ahbcfg parameter for STM32MP15 OTG HS and FS usb: dwc2

[PATCH 2/3] usb: dwc2: enable FS/LS PHY clock select on STM32MP15 FS OTG

2020-11-23 Thread Amelie Delaunay
When the core is in FS host mode, using the FS transceiver, and a Low-Speed device is connected, transceiver clock is 6Mhz. So, to support Low-Speed devices, enable support of FS/LS Low Power mode, so that the PHY supplies a 6 MHz clock during Low-Speed mode. Signed-off-by: Amelie Delaunay

[PATCH 3/4] dmaengine: stm32-dma: take address into account when computing max width

2020-11-20 Thread Amelie Delaunay
DMA_SxPAR or DMA_SxM0AR/M1AR registers have to be aligned on PSIZE or MSIZE respectively. This means that bus width needs to be forced to 1 byte when computed width is not aligned with address. Signed-off-by: Amelie Delaunay --- drivers/dma/stm32-dma.c | 19 ++- 1 file changed

[PATCH 4/4] dmaengine: stm32-mdma: rework interrupt handler

2020-11-20 Thread Amelie Delaunay
To avoid multiple entries in MDMA interrupt handler for each flag enable, manage all flags set at once. Signed-off-by: Amelie Delaunay --- drivers/dma/stm32-mdma.c | 64 +--- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/drivers/dma/stm32

[PATCH 1/4] dmaengine: stm32-dma: rework irq handler to manage error before xfer events

2020-11-20 Thread Amelie Delaunay
is set, we check if the channel is disabled or not, and if a Transfer Complete flag is set, which means that the channel is disabled because of the end of transfer. Because channel is disabled by hardware either by a FIFO level error, or by an end of transfer. Signed-off-by: Amelie Delaunay

[PATCH 0/4] Bunch of improvements for STM32 DMA controllers

2020-11-20 Thread Amelie Delaunay
This series brings 3 patches for STM32 DMA and 1 for STM32 MDMA. They increase the reliability and the efficiency of the transfers. Amelie Delaunay (4): dmaengine: stm32-dma: rework irq handler to manage error before xfer events dmaengine: stm32-dma: clean channel configuration when

[PATCH 2/4] dmaengine: stm32-dma: clean channel configuration when channel is freed

2020-11-20 Thread Amelie Delaunay
When dma_channel_release is called, it means that the channel won't be used anymore with the configuration it had. To ensure a future client can safely use the channel after it has been released, clean the configuration done when channel was requested. Signed-off-by: Amelie Delaunay --- drivers

[PATCH v2 1/1] dt-bindings: phy: phy-stm32-usbphyc: convert bindings to json-schema

2020-11-16 Thread Amelie Delaunay
Convert the STM32 USB PHY Controller (USBPHYC) bindings to DT schema format using json-schema. Signed-off-by: Amelie Delaunay Reviewed-by: Rob Herring --- v2: add additionalProperties also for child nodes and Rob's Reviewed-by --- .../bindings/phy/phy-stm32-usbphyc.txt| 73

[PATCH 1/1] mfd: stmfx: remove .of_compatible from stmfx_cells for idd and ts

2020-11-16 Thread Amelie Delaunay
abled"; }; stmfx_ts: stmfx_ts { status = "disabled"; }; Then, the warning "Failed to locate of_node [id: -1]" wont appear anymore. .of_compatible could be added as soon as idd or ts bindings are described and drivers available.

Re: [PATCH 1/2] phy: stm32: don't print an error on probe deferral

2020-11-16 Thread Amelie DELAUNAY
On 11/16/20 10:50 AM, Vinod Koul wrote: On 16-11-20, 09:02, Amelie DELAUNAY wrote: Hi Vinod, On 11/16/20 8:37 AM, Vinod Koul wrote: On 10-11-20, 11:23, Amelie Delaunay wrote: Change stm32-usbphyc driver to not print an error message when the device probe operation is deferred. Applied all

Re: [PATCH 1/2] phy: stm32: don't print an error on probe deferral

2020-11-16 Thread Amelie DELAUNAY
Hi Vinod, On 11/16/20 8:37 AM, Vinod Koul wrote: On 10-11-20, 11:23, Amelie Delaunay wrote: Change stm32-usbphyc driver to not print an error message when the device probe operation is deferred. Applied all, thanks I'm sorry for the mess, I sent a v2 for the patch 1/2: https

Re: [PATCH 1/1] mfd: stmfx: fix dev_err_probe call in stmfx_chip_init

2020-11-13 Thread Amelie DELAUNAY
On 11/13/20 11:09 AM, Lee Jones wrote: On Tue, 10 Nov 2020, Amelie Delaunay wrote: ret may be 0 so, dev_err_probe should be called only when ret is an error code. Fixes: 41c9c06c491a ("mfd: stmfx: Simplify with dev_err_probe()") Signed-off-by: Amelie Delaunay --- drivers/mfd/s

[PATCH v2 1/1] mfd: stmfx: fix dev_err_probe call in stmfx_chip_init

2020-11-13 Thread Amelie Delaunay
ret may be 0 so, dev_err_probe should be called only when ret is an error code. Fixes: 41c9c06c491a ("mfd: stmfx: Simplify with dev_err_probe()") Signed-off-by: Amelie Delaunay --- v2: address Lee's comment about error handling area --- drivers/mfd/stmfx.c | 10 +- 1 file

[PATCH 1/1] ARM: dts: stm32: fix mdma1 clients channel priority level on stm32mp151

2020-11-10 Thread Amelie Delaunay
Update mdma1 clients channel priority level following stm32-mdma bindings. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp151.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index

[PATCH 1/2] ARM: dts: stm32: fix dmamux reg property on stm32mp151

2020-11-10 Thread Amelie Delaunay
Reg property length should cover all DMAMUX_CxCR registers. DMAMUX_CxCR Address offset: 0x000 + 0x04 * x (x = 0 to 15), so latest offset is at 0x3c, so length should be 0x40. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp151.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 2/2] ARM: dts: stm32: fix dmamux reg property on stm32h743

2020-11-10 Thread Amelie Delaunay
Reg property length should cover all DMAMUX_CxCR registers. DMAMUX_CxCR Address offset: 0x000 + 0x04 * x (x = 0 to 15), so latest offset is at 0x3c, so length should be 0x40. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32h743.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/1] ARM: dts: stm32: adjust USB OTG gadget fifo sizes in stm32mp151

2020-11-10 Thread Amelie Delaunay
Defaut use case on stm32mp151 USB OTG is ethernet gadget, using EP1 bulk endpoint (MPS=512 bytes) and EP2 interrupt endpoint (MPS=16 bytes). This patch optimizes USB OTG FIFO sizes accordingly. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp151.dtsi | 4 ++-- 1 file changed, 2

[PATCH v2 1/2] phy: stm32: don't print an error on probe deferral

2020-11-10 Thread Amelie Delaunay
Change stm32-usbphyc driver to not print an error message when the device probe operation is deferred. Signed-off-by: Etienne Carriere Signed-off-by: Amelie Delaunay --- v2: add missing return --- drivers/phy/st/phy-stm32-usbphyc.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions

[PATCH 1/1] dt-bindings: phy: phy-stm32-usbphyc: convert bindings to json-schema

2020-11-10 Thread Amelie Delaunay
Convert the STM32 USB PHY Controller (USBPHYC) bindings to DT schema format using json-schema. Signed-off-by: Amelie Delaunay --- .../bindings/phy/phy-stm32-usbphyc.txt| 73 -- .../bindings/phy/phy-stm32-usbphyc.yaml | 136 ++ 2 files changed, 136

[PATCH 1/2] phy: stm32: don't print an error on probe deferral

2020-11-10 Thread Amelie Delaunay
Change stm32-usbphyc driver to not print an error message when the device probe operation is deferred. Signed-off-by: Etienne Carriere Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/phy/st

[PATCH 2/2] phy: stm32: defer probe for reset controller

2020-11-10 Thread Amelie Delaunay
Change stm32-usbphyc driver to defer its probe when the expected reset control has its probe operation deferred. Signed-off-by: Etienne Carriere Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/phy/st/phy

[PATCH 1/1] mfd: stmfx: fix dev_err_probe call in stmfx_chip_init

2020-11-10 Thread Amelie Delaunay
ret may be 0 so, dev_err_probe should be called only when ret is an error code. Fixes: 41c9c06c491a ("mfd: stmfx: Simplify with dev_err_probe()") Signed-off-by: Amelie Delaunay --- drivers/mfd/stmfx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd

Re: [PATCH v5 1/5] dt-bindings: connector: add typec-power-opmode property to usb-connector

2020-11-09 Thread Amelie DELAUNAY
On 11/9/20 5:02 PM, Rob Herring wrote: On Mon, Nov 9, 2020 at 9:54 AM Amelie DELAUNAY wrote: On 11/9/20 4:03 PM, Rob Herring wrote: On Fri, Nov 6, 2020 at 10:58 AM Amelie Delaunay wrote: Power operation mode may depends on hardware design, so, add the optional property typec-power

Re: [PATCH v5 1/5] dt-bindings: connector: add typec-power-opmode property to usb-connector

2020-11-09 Thread Amelie DELAUNAY
On 11/9/20 4:03 PM, Rob Herring wrote: On Fri, Nov 6, 2020 at 10:58 AM Amelie Delaunay wrote: Power operation mode may depends on hardware design, so, add the optional property typec-power-opmode for usb-c connector to select the power operation mode capability. Signed-off-by: Amelie

Re: [PATCH v4 2/5] dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller

2020-11-06 Thread Amelie DELAUNAY
On 11/6/20 5:17 PM, Rob Herring wrote: On Fri, 06 Nov 2020 10:18:51 +0100, Amelie Delaunay wrote: Add binding documentation for the STMicroelectronics STUSB160x Type-C port controller. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/usb/st,stusb160x.yaml | 85

[PATCH v5 1/5] dt-bindings: connector: add typec-power-opmode property to usb-connector

2020-11-06 Thread Amelie Delaunay
Power operation mode may depends on hardware design, so, add the optional property typec-power-opmode for usb-c connector to select the power operation mode capability. Signed-off-by: Amelie Delaunay --- Hi Bahdri, Rob, I've added the exlusion with FRS property, but new FRS property name should

[PATCH v5 4/5] ARM: dts: stm32: add STUSB1600 Type-C using I2C4 on stm32mp15xx-dkx

2020-11-06 Thread Amelie Delaunay
econnect the USB gadget: echo connect > /sys/devices/platform/soc/4900.usb-otg/udc/4900.usb-otg/soft_connect With DWC2 usb-role-switch, USB gadget is dynamically disconnected or connected. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 7 ++ arc

[PATCH v5 0/5] STUSB1600 support on STM32MP15xx-DKx

2020-11-06 Thread Amelie Delaunay
/stm32mp157c-dk2.html Amelie Delaunay (5): dt-bindings: connector: add typec-power-opmode property to usb-connector dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller usb: typec: stusb160x: fix power-opmode property with typec-power-opmode ARM: dts: stm32: add

[PATCH v5 2/5] dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller

2020-11-06 Thread Amelie Delaunay
Add binding documentation for the STMicroelectronics STUSB160x Type-C port controller. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/usb/st,stusb160x.yaml | 87 +++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/st

[PATCH v5 5/5] ARM: multi_v7_defconfig: enable STUSB160X Type-C port controller support

2020-11-06 Thread Amelie Delaunay
Enable support for the STMicroelectronics STUSB160X USB Type-C port controller driver by turning on CONFIG_TYPEC and CONFIG_TYPEC_STUSB160X as modules. Signed-off-by: Amelie Delaunay --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs

[PATCH v5 3/5] usb: typec: stusb160x: fix power-opmode property with typec-power-opmode

2020-11-06 Thread Amelie Delaunay
Device tree property is named typec-power-opmode, not power-opmode. Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family") Signed-off-by: Amelie Delaunay Reviewed-by: Heikki Krogerus --- drivers/usb/typec/stusb160x.c | 2 +- 1 file changed, 1 inser

[PATCH v4 4/5] ARM: dts: stm32: add STUSB1600 Type-C using I2C4 on stm32mp15xx-dkx

2020-11-06 Thread Amelie Delaunay
econnect the USB gadget: echo connect > /sys/devices/platform/soc/4900.usb-otg/udc/4900.usb-otg/soft_connect With DWC2 usb-role-switch, USB gadget is dynamically disconnected or connected. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 7 ++ arc

[PATCH v4 5/5] ARM: multi_v7_defconfig: enable STUSB160X Type-C port controller support

2020-11-06 Thread Amelie Delaunay
Enable support for the STMicroelectronics STUSB160X USB Type-C port controller driver by turning on CONFIG_TYPEC and CONFIG_TYPEC_STUSB160X as modules. Signed-off-by: Amelie Delaunay --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs

[PATCH v4 2/5] dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller

2020-11-06 Thread Amelie Delaunay
Add binding documentation for the STMicroelectronics STUSB160x Type-C port controller. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/usb/st,stusb160x.yaml | 85 +++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/st

[PATCH v4 3/5] usb: typec: stusb160x: fix power-opmode property with typec-power-opmode

2020-11-06 Thread Amelie Delaunay
Device tree property is named typec-power-opmode, not power-opmode. Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family") Signed-off-by: Amelie Delaunay --- drivers/usb/typec/stusb160x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v4 1/5] dt-bindings: connector: add typec-power-opmode property to usb-connector

2020-11-06 Thread Amelie Delaunay
Power operation mode may depends on hardware design, so, add the optional property typec-power-opmode for usb-c connector to select the power operation mode capability. Signed-off-by: Amelie Delaunay --- Hi Bahdri, Rob, I've added the exlusion with FRS property, but new FRS property name should

[PATCH v4 0/5] STUSB1600 support on STM32MP15xx-DKx

2020-11-06 Thread Amelie Delaunay
/stm32mp157c-dk2.html Amelie Delaunay (4): dt-bindings: connector: add power-opmode optional property to usb-connector dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller usb: typec: stusb160x: fix power-opmode property with typec-power-opmode ARM: dts: stm32: add

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-11-06 Thread Amelie DELAUNAY
Li wrote: Amelie DELAUNAY 于2020年11月5日周四 下午7:36写道: On 11/4/20 10:08 PM, Rob Herring wrote: On Fri, Oct 30, 2020 at 04:27:14PM +0100, Amelie DELAUNAY wrote: On 10/30/20 3:29 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 11:49 AM Amelie DELAUNAY wrote: On 10/29/20 4:40 PM, Rob Herring

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-11-05 Thread Amelie DELAUNAY
On 11/5/20 1:23 PM, Jun Li wrote: Amelie DELAUNAY 于2020年11月5日周四 下午7:36写道: On 11/4/20 10:08 PM, Rob Herring wrote: On Fri, Oct 30, 2020 at 04:27:14PM +0100, Amelie DELAUNAY wrote: On 10/30/20 3:29 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 11:49 AM Amelie DELAUNAY wrote: On 10/29

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-11-05 Thread Amelie DELAUNAY
On 11/4/20 10:08 PM, Rob Herring wrote: On Fri, Oct 30, 2020 at 04:27:14PM +0100, Amelie DELAUNAY wrote: On 10/30/20 3:29 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 11:49 AM Amelie DELAUNAY wrote: On 10/29/20 4:40 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 10:58:03AM +0100

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-10-30 Thread Amelie DELAUNAY
On 10/30/20 3:29 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 11:49 AM Amelie DELAUNAY wrote: On 10/29/20 4:40 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: Power operation mode may depends on hardware design, so, add the optional property

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-10-29 Thread Amelie DELAUNAY
On 10/29/20 4:40 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: Power operation mode may depends on hardware design, so, add the optional property power-opmode for usb-c connector to select the power operation mode capability. Signed-off-by: Amelie

  1   2   3   4   5   6   7   8   9   >