[U-Boot] [PATCH v8 4/6] drivers: phy: add generic_phy_valid() method

2017-07-24 Thread patrice.chotard
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:

[U-Boot] [PATCH v8 6/6] usb: host: xhci-dwc3: Add generic PHY support

2017-07-24 Thread patrice.chotard
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:

[U-Boot] [PATCH v8 0/6] Extend xhci-dwc3

2017-07-24 Thread patrice.chotard
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:

[U-Boot] [PATCH v8 1/6] usb: host: xhci-dwc3: Convert driver to DM

2017-07-24 Thread patrice.chotard
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

[U-Boot] [PATCH v8 3/6] drivers: phy: Set phy->dev to NULL when generic_phy_get_by_index() fails

2017-07-24 Thread patrice.chotard
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

[U-Boot] [PATCH v8 5/6] dm: phy: add PHY stub function

2017-07-24 Thread 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 ---

[U-Boot] [PATCH v11 01/10] reset: add reset_request()

2017-07-24 Thread 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:

[U-Boot] [PATCH v11 00/10] usb: Extend ehci and ohci generic driver

2017-07-24 Thread patrice.chotard
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

[U-Boot] [PATCH v11 05/10] usb: host: ehci-generic: replace printf() by error()

2017-07-24 Thread patrice.chotard
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

[U-Boot] [PATCH v11 09/10] usb: host: ohci-generic: add RESET support

2017-07-24 Thread patrice.chotard
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

[U-Boot] [PATCH v11 04/10] dm: core: add ofnode_count_phandle_with_args()

2017-07-24 Thread patrice.chotard
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

[U-Boot] [PATCH v11 06/10] usb: host: ehci-generic: add error path and .remove callback

2017-07-24 Thread patrice.chotard
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:

[U-Boot] [PATCH v11 03/10] clk: add clk_release_all()

2017-07-24 Thread patrice.chotard
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

[U-Boot] [PATCH v11 10/10] usb: host: ohci-generic: add generic PHY support

2017-07-24 Thread patrice.chotard
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:

[U-Boot] [PATCH v11 08/10] usb: host: ohci-generic: add CLOCK support

2017-07-24 Thread patrice.chotard
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

[U-Boot] [PATCH v11 02/10] reset: add reset_release_all()

2017-07-24 Thread patrice.chotard
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 ---

[U-Boot] [PATCH v11 07/10] usb: host: ehci-generic: add generic PHY support

2017-07-24 Thread patrice.chotard
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: _

[U-Boot] [PATCH 1/1] mtd: stm32: use parameter instead of default value

2017-07-04 Thread patrice.chotard
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.

[U-Boot] [RESEND][PATCH v5 0/5] Extend xhci-dwc3

2017-07-06 Thread patrice.chotard
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:

[U-Boot] [RESEND][PATCH v5 1/5] usb: host: xhci-dwc3: Convert driver to DM

2017-07-06 Thread patrice.chotard
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: _

[U-Boot] [RESEND][PATCH v5 2/5] usb: host: xhci-dwc3: Add dual role mode support from DT

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 03/10] clk: add clk_release_all()

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 04/10] dm: core: add ofnode_count_phandle_with_args()

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 02/10] reset: add reset_release_all()

2017-07-06 Thread patrice.chotard
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 ---

[U-Boot] [PATCH v10 07/10] usb: host: ehci-generic: add generic PHY support

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 08/10] usb: host: ohci-generic: add CLOCK support

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 00/10] usb: Extend ehci and ohci generic driver

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 06/10] usb: host: ehci-generic: add error path and .remove callback

2017-07-06 Thread patrice.chotard
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:_

[U-Boot] [RESEND][PATCH v5 4/5] drivers: phy: add generic_phy_valid() method

2017-07-06 Thread patrice.chotard
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:

[U-Boot] [RESEND][PATCH v5 3/5] drivers: phy: Set phy->dev to NULL when generic_phy_get_by_index() fails

2017-07-06 Thread patrice.chotard
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

[U-Boot] [RESEND][PATCH v5 5/5] usb: host: xhci-dwc3: Add generic PHY support

2017-07-06 Thread 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

[U-Boot] [PATCH v10 09/10] usb: host: ohci-generic: add RESET support

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 05/10] usb: host: ehci-generic: replace printf() by error()

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 10/10] usb: host: ohci-generic: add generic PHY support

2017-07-06 Thread patrice.chotard
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

[U-Boot] [PATCH v10 01/10] reset: add reset_request()

2017-07-06 Thread 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 --- v10:_ none v9: _ none v8:

[U-Boot] [PATCH 1/1] arm/lib/bootm.c: keep ARM v7M in thumb mode during boot_jump_linux()

2017-04-25 Thread patrice.chotard
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

[U-Boot] [PATCH v2 1/1] i2c: add i2c driver for stm32

2017-08-09 Thread patrice.chotard
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

[U-Boot] [PATCH v2 1/2] dm: core: add clocks node scan

2017-08-08 Thread patrice.chotard
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

[U-Boot] [PATCH v2 0/2] dm: core: add clocks node scan

2017-08-08 Thread patrice.chotard
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

[U-Boot] [PATCH v2 2/2] dm: test: replace dm_scan_dt() by of dm_extended_scan_fdt() in dm_do_test

2017-08-08 Thread patrice.chotard
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

[U-Boot] [PATCH 1/1] stm32f1: remove stm32f1 support

2017-08-09 Thread patrice.chotard
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

[U-Boot] [PATCH 00/15] Add STM32H7 SoC and STM32H743-Disco board support

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 02/15] serial: stm32x7: add STM32H7 support

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 04/15] dm: reset: add stm32 reset driver

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 01/15] pinctrl: stm32: add stm32h743-pinctrl compatible

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 09/15] ARM: DTS: stm32: add gpio compatible and aliases for stm32h743

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 10/15] ARM: DTS: stm32: add sdram config for stm32h743i-disco

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 11/15] ARM: DTS: stm32: add HSI and CSI fixed clock for stm32H743

2017-08-04 Thread patrice.chotard
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 ---

[U-Boot] [PATCH 06/15] ARM: DTS: stm32: add stm32h743i-disco files

2017-08-04 Thread 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

[U-Boot] [PATCH 08/15] ARM: DTS: stm32: update usart compatible string for stm32h743

2017-08-04 Thread patrice.chotard
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]

[U-Boot] [PATCH 03/15] dm: clk: add clk driver support for stm32h7 SoCs

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 07/15] ARM: DTS: stm32: Enable Clock driver for stm32h743

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 12/15] ARM: DTS: stm32: add u-boot, dm-pre-reloc for stm32h743i-disco

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 05/15] dm: misc: add stm32 rcc driver

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 13/15] ARM: DTS: stm32: set HSE clock to 25Mhz for stm32h743i-disco

2017-08-04 Thread patrice.chotard
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

[U-Boot] [PATCH 15/15] board: Add stm32h7 SoC and stm32h743-disco board support

2017-08-04 Thread patrice.chotard
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 ---

[U-Boot] [PATCH 14/15] ARM: DTS: stm32: add "simple-bus" compatible for clocks node

2017-08-04 Thread 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]

[U-Boot] [PATCH v5 07/14] board: STiH410-B2260: add OHCI and XHCI related defines

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 01/14] mmc: sti_sdhci: Rework sti_mmc_core_config()

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 00/14] STiH410-B2260: add reset, usb and fastboot support

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 09/14] STiH410-B2260: enable USB Host Networking

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 05/14] usb: xhci: Add STi xhci support

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 06/14] usb: dwc3: Add dwc3 glue driver support for STi

2017-05-10 Thread 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

[U-Boot] [PATCH v5 11/14] ARM: DTS: STiH410: rework ehci nodes

2017-05-10 Thread patrice.chotard
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:

[U-Boot] [PATCH v5 14/14] STiH410-B2260: enable USB, fastboot, reset related flags

2017-05-10 Thread patrice.chotard
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:

[U-Boot] [PATCH v5 10/14] usb: extend generic EHCI with PHY

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 02/14] ARM: dts: stih410-family: Add missing reset_names for mmc1 node

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 04/14] usb: phy: Add STi USB2 PHY

2017-05-10 Thread patrice.chotard
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:

[U-Boot] [PATCH v5 03/14] mmc: sti_sdhci: Use reset framework

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 13/14] ARM: DTS: STiH410: rework ohci nodes

2017-05-10 Thread patrice.chotard
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

[U-Boot] [PATCH v5 08/14] board: STiH410-B2260: add fastboot support

2017-05-10 Thread patrice.chotard
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: _

[U-Boot] [PATCH v3 6/7] usb: host: ohci-generic: add RESET support

2017-05-17 Thread patrice.chotard
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

[U-Boot] [PATCH v3 1/7] reset: add reset_request()

2017-05-17 Thread 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 --- v3: _ none v2: _ none

[U-Boot] [PATCH v3 7/7] usb: host: ohci-generic: add generic PHY support

2017-05-17 Thread patrice.chotard
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

[U-Boot] [PATCH v3 3/7] usb: host: ehci-generic: add error path and .remove callback

2017-05-17 Thread patrice.chotard
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: _

[U-Boot] [PATCH 1/1] reset: sti: add deassert counter in reset channel descriptor

2017-05-18 Thread patrice.chotard
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",

[U-Boot] [PATCH v3 2/7] usb: host: ehci-generic: replace printf() by error()

2017-05-17 Thread patrice.chotard
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

[U-Boot] [PATCH v3 0/7] usb: Extend ehci and ohci generic drivers

2017-05-17 Thread patrice.chotard
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

[U-Boot] [PATCH v3 4/7] usb: host: ehci-generic: add generic PHY support

2017-05-17 Thread patrice.chotard
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

[U-Boot] [PATCH v3 5/7] usb: host: ohci-generic: add CLOCK support

2017-05-17 Thread patrice.chotard
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

[U-Boot] [PATCH 0/2] usb: Extend ehci and ohci generic drivers

2017-05-12 Thread patrice.chotard
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

[U-Boot] [PATCH 1/2] usb: extend generic EHCI driver with PHY

2017-05-12 Thread patrice.chotard
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

[U-Boot] [PATCH 2/2] usb: extend generic OHCI with CLOCK, RESET and PHY

2017-05-12 Thread patrice.chotard
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

[U-Boot] [PATCH v4 02/12] ARM: dts: stih410-family: Add missing reset_names for mmc1 node

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 03/12] mmc: sti_sdhci: Use reset framework

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 04/12] usb: phy: Add STi USB2 PHY

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 05/12] usb: ehci: Add STi ehci support

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 00/12] STiH410-B2260: add reset, usb and fastboot support

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 06/12] usb: ohci: Add STi ohci support

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 11/12] STiH410-B2260: enable USB Host Networking

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 09/12] board: STiH410-B2260: add OHCI and XHCI related defines

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 08/12] usb: dwc3: Add dwc3 glue driver support for STi

2017-05-09 Thread 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

[U-Boot] [PATCH v4 01/12] mmc: sti_sdhci: Rework sti_mmc_core_config()

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v4 12/12] STiH410-B2260: enable USB, fastboot, reset related flags

2017-05-09 Thread patrice.chotard
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

[U-Boot] [PATCH v2 3/5] usb: host: extend generic EHCI driver with PHY

2017-05-12 Thread patrice.chotard
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

[U-Boot] [PATCH v2 5/5] usb: host: extend generic OHCI with CLOCK, RESET and PHY

2017-05-12 Thread patrice.chotard
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

[U-Boot] [PATCH v2 1/5] reset: add reset_request()

2017-05-12 Thread 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 --- drivers/reset/reset-uclass.c | 9 + include/reset.h | 9

[U-Boot] [PATCH v2 4/5] usb: host: replace printf() by error() in ehci-generic

2017-05-12 Thread patrice.chotard
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

[U-Boot] [PATCH v2 0/5] usb: Extend ehci and ohci generic drivers

2017-05-12 Thread patrice.chotard
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

[U-Boot] [PATCH v2 2/5] usb: host: add error path and remove callback in ehci-generic

2017-05-12 Thread patrice.chotard
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

<    1   2   3   4   5   6   7   >