From: Patrice Chotard
This allow to check if a PHY has been correctly
initialised and avoid to get access to phy struct.
Signed-off-by: Patrice Chotard
Reviewed-by: Marek Vasut
Reviewed-by: Simon Glass
---
v8:
From: Patrice Chotard
Add support of generic PHY framework support
Signed-off-by: Patrice Chotard
---
v8: _ fix bisection issue with patch 1 reported by Ćukasz Majewski, move
struct
xhci_dwc3_platdata in this patch to fix it.
v7:
From: Patrice Chotard
This series extend xhci-dwc3.c drivers by :
_ converting it to DM model,
_ adding dual role mode support from DT
_ adding new generic_phy_valid() method in PHY framework
_ adding support of generic PHY framework
v8:
From: Patrice Chotard
Add Driver Model support with use of generic DT
compatible string "snps,dwc3"
Signed-off-by: Patrice Chotard
---
v8: _ Add CONFIG_DM_USB flag to fix compilation issue for platforms
which uses xhci-dwc3 driver
From: Patrice Chotard
phy->dev need to be set to NULL in case of generic_phy_get_by_index()
fails. Then phy->dev can be used to check if the phy is valid
Reported-by: Jean-Jacques Hiblot
Signed-off-by: Patrice Chotard
From: Patrice Chotard
To avoid compilation breakage on platform that doesn't
support DM PHY but uses xhci-dwc3 driver, add PHY stub
functions.
Cc: Ran Wang
Cc: Bin Meng
Signed-off-by: Patrice Chotard
---
From: Patrice Chotard
This is needed in error path to assert previously deasserted
reset by using a saved reset_ctl reference.
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v11:_ none
v10:_ none
v9:
From: Patrice Chotard
This series improves generic ehci and ohci drivers by addition of :
_ error path during probe (clocks, resets and phy release)
_ .remove callback
_ add generic PHY framework for both generic ehci and ohci drivers
_ add
From: Patrice Chotard
this allows to get file, line and function location
of the current error message.
Signed-off-by: patrice chotard
Reviewed-by: Simon Glass
---
v11:_ none
v10:_ none
v9: _ none
v8: _ none
From: Patrice Chotard
use array to save deasserted resets reference in order to
assert them in case of error during probe() or during driver
removal.
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v11:_ none
From: Patrice Chotard
This function is usefull to get phandle number contained
in a property list.
For example, this allows to allocate the right amount
of memory to keep clock's reference contained into the
"clocks" property.
To implement it, either
From: Patrice Chotard
Use an array to save enabled clocks reference and deasserted resets
in order to respectively disabled and asserted them in case of error
during probe() or during driver removal.
Signed-off-by: Patrice Chotard
Reviewed-by:
From: Patrice Chotard
Add clk_release_all() method which Disable/Free an
array of clocks that has been previously requested by
clk_request/get_by_*()
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v11:_ none
From: Patrice Chotard
Extend ohci-generic driver with generic PHY framework
Signed-off-by: Patrice Chotard
---
v11:_ fix issue reported by Patrick DELAUNAY, Generic PHY must be
initialized only when found.
v10:_ none
v9:
From: Patrice Chotard
use array to save enabled clocks reference in order to
disabled them in case of error during probe() or during
driver removal.
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v11:_ none
From: Patrice Chotard
Add reset_release_all() method which Assert/Free an
array of resets signal that has been previously successfully
requested by reset_get_by_*()
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
From: Patrice Chotard
Extend ehci-generic driver with generic PHY framework
Signed-off-by: Patrice Chotard
---
v11:_ fix issue reported by Patrick DELAUNAY, Generic PHY must be
initialized only when found.
v10:_ none
v9: _
From: Patrice Chotard
To set wait state, a hard coded value is used instead of using
latency parameter. stm32_flash_latency_cfg() is currently used
in arch/arm/mach-stm32/stm32f4/clock.c and in
drivers/clk/clk_stm32f7.c with, in both case, "5" as parameter.
From: Patrice Chotard
This series extend xhci-dwc3.c drivers by :
_ converting it to DM model,
_ adding dual role mode support from DT
_ adding new generic_phy_valid() method in PHY framework
_ adding support of generic PHY framework
v5:
From: Patrice Chotard
Add Driver Model support with use of generic DT
compatible string "snps,dwc3"
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v5: _ replace dev_get_addr() by devfdt_get_addr()
v4: _
From: Patrice Chotard
DWC3 dual role mode is selected using DT "dr_mode"
property. If not found, DWC3 controller is configured
in HOST mode by default
Signed-off-by: Patrice Chotard
Reviewed-by: Marek Vasut
Reviewed-by: Simon
From: Patrice Chotard
Add clk_release_all() method which Disable/Free an
array of clocks that has been previously requested by
clk_request/get_by_*()
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v10:_ none
From: Patrice Chotard
This function is usefull to get phandle number contained
in a property list.
For example, this allows to allocate the right amount
of memory to keep clock's reference contained into the
"clocks" property.
To implement it, either
From: Patrice Chotard
Add reset_release_all() method which Assert/Free an
array of resets signal that has been previously successfully
requested by reset_get_by_*()
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
From: Patrice Chotard
Extend ehci-generic driver with generic PHY framework
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v10:_ none
v9: _ none
v8: _ rework error path by propagating the initial
From: Patrice Chotard
use array to save enabled clocks reference in order to
disabled them in case of error during probe() or during
driver removal.
Signed-off-by: Patrice Chotard
---
v10:_ replace ofnode_count_phandle_with_args() by
From: Patrice Chotard
This series improves generic ehci and ohci drivers by addition of :
_ error path during probe (clocks, resets and phy release)
_ .remove callback
_ add generic PHY framework for both generic ehci and ohci drivers
_ add
From: Patrice Chotard
Use an array to save enabled clocks reference and deasserted resets
in order to respectively disabled and asserted them in case of error
during probe() or during driver removal.
Signed-off-by: Patrice Chotard
---
v10:_
From: Patrice Chotard
This allow to check if a PHY has been correctly
initialised and avoid to get access to phy struct.
Signed-off-by: Patrice Chotard
Reviewed-by: Marek Vasut
Reviewed-by: Simon Glass
---
v5:
From: Patrice Chotard
phy->dev need to be set to NULL in case of generic_phy_get_by_index()
fails. Then phy->dev can be used to check if the phy is valid
Reported-by: Jean-Jacques Hiblot
Signed-off-by: Patrice Chotard
From: Patrice Chotard
Add support of generic PHY framework support
Signed-off-by: Patrice Chotard
Reviewed-by: Marek Vasut
Reviewed-by: Simon Glass
---
v5: _ none
v4: _ none
v3: _ use
From: Patrice Chotard
use array to save deasserted resets reference in order to
assert them in case of error during probe() or during driver
removal.
Signed-off-by: Patrice Chotard
---
v10:_ replace ofnode_count_phandle_with_args() by
From: Patrice Chotard
this allows to get file, line and function location
of the current error message.
Signed-off-by: patrice chotard
Reviewed-by: Simon Glass
---
v10:_ none
v9: _ none
v8: _ none
v7: _ none
From: Patrice Chotard
Extend ohci-generic driver with generic PHY framework
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v10:_ none
v9: _ none
v8: _ rework error path by propagating the initial
From: Patrice Chotard
This is needed in error path to assert previously deasserted
reset by using a saved reset_ctl reference.
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v10:_ none
v9: _ none
v8:
From: Patrice Chotard
On ARM v7M, the processor will return to ARM mode when executing
a blx instruction with bit 0 of the address == 0. Always set it
to 1 to stay in thumb mode.
Tested on STM32f746-disco board
Similar commit:
f3c10882f7dc8ec35993d5febe59aac01e6a
From: Patrice Chotard
Add i2c driver which can be used on both STM32F7 and STM32H7.
This I2C block supports the following features:
_ Slave and master modes
_ Multimaster capability
_ Standard-mode (up to 100 kHz)
_ Fast-mode (up to 400 kHz)
_ Fast-mode Plus (up to 1
From: Patrice Chotard
Currently, all fixed-clock declared in "clocks" node in device tree
can be binded by clk_fixed_rate.c driver only if each of them have
the "simple-bus" compatible string.
This constraint has been invoked here [1].
This patch offers a solution to
From: Patrice Chotard
v2: _ implement this feature in dm_extended_scan_dt() which can be called
from test/dm/test-main.c to insure that test scan DT clocks
sub-nodes
_ replace fdt_path_offset() by ofnode_path()
_ update sandbox
From: Patrice Chotard
This allows to scan the DT including all "clocks" node's sub-nodes
in which fixed-clock are defined.
All fixed-clock should be defined inside a clocks node which collect all
external oscillators. Until now, all clocks sub-nodes can't be binded except
From: Patrice Chotard
A few years ago STM32F1 SoCs support has been added :
0144caf22ce6acd5c gpio: stm32: add stm32f1 support
2d18ef2364fd3561a ARMv7M: add STM32F1 support
But neither STM32F1 dedicated defconfig nor board was
associated to these commits.
Got
From: Patrice Chotard
This series adds support for STM32H7 SoCs series and its Discovery board
For more detailed information about STM32H7 SoCs family please visit:
www.st.com/en/microcontrollers/stm32h7-series.html
The STM32H743-discovery board offers:
_ 2MBytes
From: Patrice Chotard
STM32F7 and STM32H7 shares the same UART block, add
STM32H7 compatible string.
Signed-off-by: Patrice Chotard
---
drivers/serial/Kconfig | 7 ---
drivers/serial/serial_stm32x7.c | 2 ++
2 files changed, 6
From: Patrice Chotard
This driver is adapted from linux drivers/reset/reset-stm32.c
It's compatible with STM32 F4/F7/H7 SoCs.
To add support for each SoC family, a SoC's specific
include/dt-binfings/mfd/stm32xx-rcc.h file must be added.
This patch only includes
From: Patrice Chotard
STM32H7 SoCs uses the same pinctrl block as found into
STM32F7 SoCs
Signed-off-by: Patrice Chotard
---
drivers/pinctrl/pinctrl_stm32.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pinctrl/pinctrl_stm32.c
From: Patrice Chotard
This is needed to bind stm32-gpio driver
Signed-off-by: Patrice Chotard
---
arch/arm/dts/stm32h743-pinctrl.dtsi | 11 +++
arch/arm/dts/stm32h743i-disco.dts | 11 +++
2 files changed, 22 insertions(+)
diff
From: Patrice Chotard
Add FMC sdram node with associated new bindings value to managed
bank 1.
Signed-off-by: Patrice Chotard
---
arch/arm/dts/stm32h743-pinctrl.dtsi | 69
arch/arm/dts/stm32h743.dtsi
From: Patrice Chotard
Add missing HSI (High Speed Internal) and CSI (Low Power Internal)
oscillators nodes needed by STM32H7 RCC clock driver.
These clocks can be used as clocksource in some configuration.
Signed-off-by: Patrice Chotard
---
From: Patrice Chotard
Add device tree support for STM32H743 SoC and discovery
board. This board offers :
_ 2MBytes Flash
_ 1 x micro USB OTG port
_ 1 x STLink connector (micro USB)
_ 1 x micro SD card slot
_ 1 x RJ45 connector
_ 1 x RCA connector
_ 2 x Audio
From: Patrice Chotard
Align STM32H7 serial compatible string with the one which will be
available in next kernel tag. The bindings has been acked by
Rob Herring [1].
This compatible string will be usefull to add stm32h7 specific
feature for this serial driver.
[1]
From: Patrice Chotard
This driver implements basic clock setup, only clock gating
is implemented.
Files include/dt-bindings/clock/stm32h7-clks.h and
doc/device-tree-bindings/clock/st,stm32h7-rcc.txt
will be available soon in a kernel tag, as all the
bindings have been
From: Patrice Chotard
Add RCC clock driver node and update all clocks phandle
accordingly.
By default, on kernel side, all clocks was temporarly
configured as a phandle to timer_clk waiting for a RCC
clock driver to be available.
On U-boot side, we now have a dedicated
From: Patrice Chotard
Add "u-boot,dm-pre-reloc" for rcc, fmc, fixed-clock, pinctrl
and gpio nodes
Signed-off-by: Patrice Chotard
---
arch/arm/dts/stm32h743-pinctrl.dtsi | 12
arch/arm/dts/stm32h743.dtsi | 8
2
From: Christophe Kerello
This patch adds the support of reset and clock control
block (rcc) found on STM32 SoCs.
This driver is similar to a MFD linux driver.
This driver supports currently STM32H7 only.
STM32F4 and STM32F7 will be migrated to this rcc MFD driver
in
From: Patrice Chotard
By default, the external oscillator frequency is defined at
25 Mhz in SoC stm32h743.dtsi file.
It has been set at 125 Mhz in kernel DT temporarly waiting for
RCC clock driver becomes available.
As in U-boot we got a RCC clock driver, the real value
From: Patrice Chotard
This patch adds support for stm32h7 family and stm32h743 discovery board.
For more information about STM32H7 series, please visit:
http://www.st.com/en/microcontrollers/stm32h7-series.html
Signed-off-by: Patrice Chotard
---
From: Patrice Chotard
This is a workaround to bind clocks fixed-clocks subnodes.
This constraint has been invoked here [1].
A new proposal has been sent to U-boot mailing list to
avoid this workaround [2]
[1] http://patchwork.ozlabs.org/patch/558837/
[2]
From: Patrice Chotard
Signed-off-by: Patrice Chotard
---
v5: _ none
v4: _ none
v3: _ none
v2: _ none
include/configs/stih410-b2260.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/configs/stih410-b2260.h
From: Patrice Chotard
Use struct udevice* as input parameter. Previous
parameters are retrieved through plat and priv data.
This to prepare to use the reset framework.
Signed-off-by: Patrice Chotard
Reviewed-by: Jaehoon Chung
From: Patrice Chotard
This series adds :
_ update existing sdhci driver to use reset framework
_ add usb phy driver
_ add ehci support
_ add ohci support
_ add xhci support
_ add fastboot support
With all this feature
From: Patrice Chotard
Signed-off-by: Patrice Chotard
---
v5: _ none
v4: _ none
v3: _ none
v2: _ none
include/configs/stih410-b2260.h | 12
1 file changed, 12 insertions(+)
diff --git
From: Patrice Chotard
Add support for on-chip DWC3 controller available
on STMicrolectronics STiH407 family SoCs.
On B2260 board, the type AB USB connector is managed
by a DWC3 IP. As USB3 signals are not wired, only USB2
is supported.
Signed-off-by: Patrice Chotard
From: Patrice Chotard
This patch adds the ST glue logic to manage the DWC3 HC
on STiH407 SoC family. It configures the internal glue
logic and syscfg registers.
Part of this code been extracted from kernel.org driver
(drivers/usb/dwc3/dwc3-st.c)
Signed-off-by: Patrice
From: Patrice Chotard
Update the compatible string in order to use ehci-generic
driver instead of a STi specific one
Reverse the order of resets, due to the fact that softreset
must be deasserted first.
Signed-off-by: Patrice Chotard
---
v5:
From: Patrice Chotard
Signed-off-by: Patrice Chotard
---
v5: _ remove CONFIG_USB_OHCI_STI and CONFIG_USB_EHCI_STI
_ enable CONFIG_USB_EHCI_GENERIC and CONFIG_USB_OHCI_GENERIC
v4: _ enable CONFIG_PHY and CONFIG_STI_USB_PHY
v3:
From: Patrice Chotard
Signed-off-by: Patrice Chotard
---
v5: _ add support of new generic PHY UCLASS
drivers/usb/host/ehci-generic.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/usb/host/ehci-generic.c
From: Patrice Chotard
reset-names property is needed to use the reset
API for STi sdhci driver.
Signed-off-by: Patrice Chotard
Reviewed-by: Jaehoon Chung
---
v5: _ none
v4: _ none
v3: _ none
v2: _ none
From: Patrice Chotard
This is the generic phy driver for the picoPHY ports
used by USB2/1.1 controllers. It is found on STiH407 SoC
family from STMicroelectronics.
Signed-off-by: Patrice Chotard
Reviewed-by: Marek Vasut
---
v5:
From: Patrice Chotard
Signed-off-by: Patrice Chotard
Reviewed-by: Jaehoon Chung
---
v5: _ none
v4: _ none
v3: _ none
v2: _ none
drivers/mmc/sti_sdhci.c | 31 ++-
1 file
From: Patrice Chotard
Update the compatible string in order to use ehci-generic
driver instead of a STi specific one
Signed-off-by: Patrice Chotard
---
v5: _ update compatible to fit with ohci-generic driver
arch/arm/dts/stih410.dtsi | 4
From: Patrice Chotard
Add usb_gadget_handle_interrupts(), board_usb_init(),
board_usb_cleanup() and g_dnl_board_usb_cable_connected()
callbacks needed for FASTBOOT support
Signed-off-by: Patrice Chotard
---
v5: _ none
v4: _ none
v3: _
From: Patrice Chotard
use list to save reference to deasserted resets in order to
assert them in case of error during probe() or during driver
removal.
Signed-off-by: Patrice Chotard
---
v3: _ extract in this patch the RESET support add-on
From: Patrice Chotard
This is needed in error path to assert previously deasserted
reset by using a saved reset_ctl reference.
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
---
v3: _ none
v2: _ none
From: Patrice Chotard
Extend ohci-generic driver with generic PHY framework
Signed-off-by: Patrice Chotard
---
v3: _ extract in this patch the PHY support add-on from previous patch 5
drivers/usb/host/ohci-generic.c | 25
From: Patrice Chotard
use list to save reference to enabled clocks and deasserted resets
in order to respectively disabled and asserted them in case of error
during probe() or during driver removal.
Signed-off-by: Patrice Chotard
---
v3: _
From: Patrice Chotard
This deassert counter allow to manage "shared" reset lines
encountered in some specific case. On STiH410 SoC, DWC3,
EHCI and OHCI are all using a respective PHY, but all of
these PHYs shared a "global" reset.
Currently, during command "usb stop",
From: Patrice Chotard
This allows to get file, line and function location
of the current error message.
Signed-off-by: Patrice Chotard
---
v3: _ add commit message
v2: _ create this independant path for printf() replacement
From: Patrice Chotard
v3: _ keep enabled clocks and deasserted resets reference in list in order
to
disable clock or assert resets in error path or in .remove callback
_ add missing commit message
_ use struct generic_ehci * instead of
From: Patrice Chotard
Extend ehci-generic driver with generic PHY framework
Signed-off-by: Patrice Chotard
---
v3: _ test return value on generic_phy_get_by_index() and
generic_phy_init()
drivers/usb/host/ehci-generic.c | 23
From: Patrice Chotard
use list to save reference to enabled clocks in order to
disabled them in case of error during probe() or
during driver removal.
Signed-off-by: Patrice Chotard
---
v3: _ extract in this patch the CLOCK support add-on
From: Patrice Chotard
Add generic PHY framework support to ehci-generic.c
Add RESET, CLOCK and generic PHY frameworks support to ohci-generic.c
Patrice Chotard (2):
usb: extend generic EHCI driver with PHY
usb: extend generic OHCI with CLOCK, RESET and PHY
From: Patrice Chotard
Add support of generic PHY framework
Replace printf() by error()
Signed-off-by: Patrice Chotard
---
drivers/usb/host/ehci-generic.c | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git
From: Patrice Chotard
Add CLOCK, RESET and generic PHY frameworks support
Signed-off-by: Patrice Chotard
---
drivers/usb/host/ohci-generic.c | 40 ++--
1 file changed, 34 insertions(+), 6 deletions(-)
diff
From: Patrice Chotard
reset-names property is needed to use the reset
API for STi sdhci driver.
Signed-off-by: Patrice Chotard
Reviewed-by: Jaehoon Chung
---
v4: _ none
v3: _ none
v2: _ none
From: Patrice Chotard
Signed-off-by: Patrice Chotard
Reviewed-by: Jaehoon Chung
---
v4: _ none
v3: _ none
v2: _ none
drivers/mmc/sti_sdhci.c | 31 ++-
1 file changed, 22
From: Patrice Chotard
This is the generic phy driver for the picoPHY ports
used by USB2/1.1 controllers. It is found on STiH407 SoC
family from STMicroelectronics.
Signed-off-by: Patrice Chotard
---
v4: _ update to use the new PHY uclass
From: Patrice Chotard
Add support for on-chip ehci controller available
on STMicrolectronics SoCs.
ehci support will be then available on both type A
USB 2.0 connectors.
Signed-off-by: Patrice Chotard
---
v4: _ update to use the new PHY
From: Patrice Chotard
This series adds :
_ update existing sdhci driver to use reset framework
_ add usb phy driver
_ add ehci support
_ add ohci support
_ add xhci support
_ add fastboot support
With all this feature
From: Patrice Chotard
Add support for on-chip ohci controller available
on STMicrolectronics SoCs.
Ohci support will be then available on both type A
USB 2.0 connectors.
Signed-off-by: Patrice Chotard
---
v4: _ update to use the new PHY
From: Patrice Chotard
Signed-off-by: Patrice Chotard
---
v4: _ none
v3: _ none
v2: _ none
include/configs/stih410-b2260.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/configs/stih410-b2260.h
From: Patrice Chotard
Signed-off-by: Patrice Chotard
---
v4: _ none
v3: _ none
v2: _ none
include/configs/stih410-b2260.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/configs/stih410-b2260.h
From: Patrice Chotard
This patch adds the ST glue logic to manage the DWC3 HC
on STiH407 SoC family. It configures the internal glue
logic and syscfg registers.
Part of this code been extracted from kernel.org driver
(drivers/usb/dwc3/dwc3-st.c)
Signed-off-by: Patrice
From: Patrice Chotard
Use struct udevice* as input parameter. Previous
parameters are retrieved through plat and priv data.
This to prepare to use the reset framework.
Signed-off-by: Patrice Chotard
Reviewed-by: Jaehoon Chung
From: Patrice Chotard
Signed-off-by: Patrice Chotard
---
v4: _ enable CONFIG_PHY and CONFIG_STI_USB_PHY
v3: _ none
v2: _ none
configs/stih410-b2260_defconfig | 37 +
1 file changed, 33
From: Patrice Chotard
Add support of generic PHY framework
Signed-off-by: Patrice Chotard
---
v2: _ split previous path 1, add generic PHY framework
drivers/usb/host/ehci-generic.c | 11 +++
1 file changed, 11 insertions(+)
diff
From: Patrice Chotard
Add CLOCK, RESET and generic PHY frameworks support
Signed-off-by: Patrice Chotard
---
v2: _ add error path management
_ add .remove callback
drivers/usb/host/ohci-generic.c | 99
From: Patrice Chotard
This is needed in error path to assert previously deasserted
reset by using a saved reset_ctl reference.
Signed-off-by: Patrice Chotard
---
drivers/reset/reset-uclass.c | 9 +
include/reset.h | 9
From: Patrice Chotard
Signed-off-by: Patrice Chotard
---
v2: _ create this independant path for printf() replacement
drivers/usb/host/ehci-generic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
From: Patrice Chotard
v2: _ add needed reset_request() in RESET framework
_ add error path in ehci/ohci-generic to disable clocks and to assert
resets
_ add .remove callback with clocks, resets and phy release
_ split the replacement of
From: Patrice Chotard
Add error path to disable enabled clocks and to assert
deasserted resets
Populate the remove callback
Signed-off-by: Patrice Chotard
---
v2: _ split previous path 1, add error path and .remove callback
201 - 300 of 661 matches
Mail list logo