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

2017-06-01 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] [PATCH v5 5/5] usb: host: xhci-dwc3: Add generic PHY support

2017-06-01 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 v5 1/5] usb: host: xhci-dwc3: Convert driver to DM

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Add Driver Model support with use of generic DT compatible string "snps,dwc3" Signed-off-by: Patrice Chotard --- v5: _ replace dev_get_addr() by devfdt_get_addr() v4: _ none v3: _ none v2: _ use

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

2017-06-01 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 v5 0/5] Extend xhci-dwc3

2017-06-01 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] [PATCH v5 00/11] usb: Extend ehci and ohci generic drivers

2017-06-01 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 v5 01/11] reset: add reset_request()

2017-06-01 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 --- v5: _ none v4: _ none v3: _

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

2017-06-01 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 --- v5: _ none

[U-Boot] [PATCH v5 06/11] usb: host: ehci-generic: replace printf() by error()

2017-06-01 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 --- v5: _ none v4: _ none v3: _ add commit message v2:

[U-Boot] [PATCH v5 11/11] usb: host: ohci-generic: add generic PHY support

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Extend ohci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v5: _ none v4: _ use generic_phy_valid() before generic_phy_exit() call v3:

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

2017-06-01 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 Reviewed-by: Simon Glass --- v7: _ none

[U-Boot] [PATCH v7 05/10] STiH410-B2260: enable USB Host Networking

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Enable USB Host Networking support by enabling Ethernet/USB adaptors support and by enabling some BOOTP flags Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v7: _ none v6: _ add

[U-Boot] [PATCH v5 02/11] reset: add reset_count()

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Add reset_count() method to be able to get the number of resets contained into a resets property. This will allow to allocate the right amount of memory in order to keep resets reference. These resets reference can be used later on error path or in

[U-Boot] [PATCH v5 04/11] clk: add clk_count()

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Add clk_count() method to be able to get the number of clocks contained into a clock property. This will allow to allocate the right amount of memory in order to keep clock reference. These clock reference can be used later on error path or in

[U-Boot] [PATCH v5 03/11] reset: add reset_assert_all()

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Add reset_assert_all() method which Request/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 v5 09/11] usb: host: ohci-generic: add CLOCK support

2017-06-01 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 --- v5: _ none

[U-Boot] [PATCH v5 05/11] clk: add clk_disable_all()

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Add clk_disable_all() method which Request/Disable/Free an array of clocks that has been previously requested by clk_request/get_by_*() Signed-off-by: Patrice Chotard --- v5: _ none v4: _ add clk_disable_all() method

[U-Boot] [PATCH v5 07/11] usb: host: ehci-generic: add error path and .remove callback

2017-06-01 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 v7 07/10] usb: dwc3: Add dwc3 glue driver support for STi

2017-06-01 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 v7 08/10] ARM: dts: STiH410: set DWC3 dual role mode to peripheral

2017-06-01 Thread patrice.chotard
From: Patrice Chotard On STi 96boards, configure by default the micro USB connector (managed by DWC3 hardware block) in peripheral mode. This will allow to use fastboot feature. Signed-off-by: Patrice Chotard --- v7: _ none

[U-Boot] [PATCH v5 08/11] usb: host: ehci-generic: add generic PHY support

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Extend ehci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v5: _ none v4: _ use generic_phy_valid() before generic_phy_exit() call v3:

[U-Boot] [PATCH v7 03/10] mmc: sti_sdhci: Use reset framework

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard Reviewed-by: Jaehoon Chung Reviewed-by: Simon Glass --- v7: _ none v6: _ add reviewed-by Simon Glass v5: _ none v4: _ none v3:

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

2017-06-01 Thread patrice.chotard
From: Patrice Chotard This series adds : _ update existing sdhci driver to use reset framework _ add usb phy driver _ add fastboot support With all this feature enable, it's now possible to _ boot on usb mass storage device _ boot

[U-Boot] [PATCH v7 10/10] board: STiH410-B2260: add fastboot support

2017-06-01 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 Reviewed-by: Simon Glass

[U-Boot] [PATCH v7 06/10] STiH410-B2260: enable USB, fastboot, reset, PHY related flags

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v7: _ none v6: _ add reviewed-by Simon Glass v5: _ remove CONFIG_USB_OHCI_STI and CONFIG_USB_EHCI_STI _ enable

[U-Boot] [PATCH v7 01/10] mmc: sti_sdhci: Rework sti_mmc_core_config()

2017-06-01 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 v7 04/10] usb: phy: Add STi USB2 PHY

2017-06-01 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 --- v7:

[U-Boot] [PATCH v7 09/10] ARM: dts: STiH410: update ehci and ohci compatible

2017-06-01 Thread patrice.chotard
From: Patrice Chotard Update ehci and ohci node's compatible string in order to use ehci-generic and ohci-generic drivers. Signed-off-by: Patrice Chotard --- v7: _ none arch/arm/dts/stih410.dtsi | 11 +++ 1 file changed, 7

[U-Boot] [PATCH v8 01/10] mmc: sti_sdhci: Rework sti_mmc_core_config()

2017-06-05 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 v8 09/10] ARM: dts: STiH410: update ehci and ohci compatible

2017-06-05 Thread patrice.chotard
From: Patrice Chotard Update ehci and ohci node's compatible string in order to use ehci-generic and ohci-generic drivers. Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v8: _ add Reviewed-by: Simon Glass

[U-Boot] [PATCH v8 07/10] usb: dwc3: Add dwc3 glue driver support for STi

2017-06-05 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 v8 06/10] STiH410-B2260: enable USB, fastboot, reset, PHY related flags

2017-06-05 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v8: _ none v7: _ none v6: _ add reviewed-by Simon Glass v5: _ remove CONFIG_USB_OHCI_STI and CONFIG_USB_EHCI_STI _

[U-Boot] [PATCH v8 03/10] mmc: sti_sdhci: Use reset framework

2017-06-05 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard Reviewed-by: Jaehoon Chung Reviewed-by: Simon Glass --- v8: _ none v7: _ none v6: _ add reviewed-by Simon Glass v5: _ none v4:

[U-Boot] [PATCH v8 04/10] usb: phy: Add STi USB2 PHY

2017-06-05 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: Simon Glass ---

[U-Boot] [PATCH v8 05/10] STiH410-B2260: enable USB Host Networking

2017-06-05 Thread patrice.chotard
From: Patrice Chotard Enable USB Host Networking support by enabling Ethernet/USB adaptors support and by enabling some BOOTP flags Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v8: _ none v7: _ none

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

2017-06-05 Thread patrice.chotard
From: Patrice Chotard This series adds : _ update existing sdhci driver to use reset framework _ add usb phy driver _ add fastboot support With all this feature enable, it's now possible to _ boot on usb mass storage device _ boot

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

2017-06-05 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 Reviewed-by: Simon Glass --- v8: _ none

[U-Boot] [PATCH v8 10/10] board: STiH410-B2260: add fastboot support

2017-06-05 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 Reviewed-by: Simon Glass

[U-Boot] [PATCH v8 08/10] ARM: dts: STiH410: set DWC3 dual role mode to peripheral

2017-06-05 Thread patrice.chotard
From: Patrice Chotard On STi 96boards, configure by default the micro USB connector (managed by DWC3 hardware block) in peripheral mode. This will allow to use fastboot feature. Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass

[U-Boot] [PATCH 0/3] Extend xhci-dwc3

2017-05-19 Thread patrice.chotard
From: Patrice Chotard Convert xhci-dwc3 to Driver Model Add dual role mode selection from DT Add generic PHY support Patrice Chotard (3): usb: host: xhci-dwc3: Convert driver to DM usb: host: xhci-dwc3: Add dual role mode support from DT usb: host: xhci-dwc3: Add

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

2017-05-19 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 --- drivers/usb/host/xhci-dwc3.c | 9 + 1 file changed,

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

2017-05-19 Thread patrice.chotard
From: Patrice Chotard Add Driver Model support with use of generic DT compatible string "snps,dwc3" Signed-off-by: Patrice Chotard --- drivers/usb/host/xhci-dwc3.c | 71 1 file changed, 71

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

2017-05-19 Thread patrice.chotard
From: Patrice Chotard Add support of generic PHY framework support Signed-off-by: Patrice Chotard --- drivers/usb/host/xhci-dwc3.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/usb/host/xhci-dwc3.c

[U-Boot] [PATCH v2 3/9] dm: clk: add clk driver support for stm32h7 SoCs

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This driver implements basic clock setup, only clock gating is implemented. This driver doesn't implement .of_match as it's binded by MFD RCC driver. Files include/dt-bindings/clock/stm32h7-clks.h and

[U-Boot] [PATCH v2 2/9] serial: stm32x7: add STM32H7 support

2017-09-13 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 v2 6/9] ARM: DTS: stm32: add stm32h743i-disco files

2017-09-13 Thread patrice.chotard
From: Patrice Chotard All these files are imported from linux kernel v4.13 Add device tree support for STM32H743 SoC and discovery board. This board offers : _ STM32H743XIH6 microcontroller with 2 Mbytes of Flash memory and 1 Mbyte of RAM in TFBGA240+25 package _

[U-Boot] [PATCH v2 9/9] board: Add stm32h7 SoC, discovery and evaluation boards support

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This patch adds support for stm32h7 soc family, stm32h743 discovery and evaluation boards. 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 v2 8/9] ARM: DTS: stm32: adapt stm32h7 dts files for U-boot

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This patch adapts stm32h743 disco and eval dts files to match with U-boot requirements or add features wich are not yet upstreamed on kernel side : _ Add RCC clock driver node and update all clocks phandle accordingly. By default, on kernel

[U-Boot] [PATCH v2 4/9] dm: reset: add stm32 reset driver

2017-09-13 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. This driver doesn't implement .of_match as it's binded by MFD RCC driver. To add support for each SoC family, a SoC's specific

[U-Boot] [PATCH v2 1/9] pinctrl: stm32: add stm32h743-pinctrl compatible

2017-09-13 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 v2 0/9] Add STM32H7 SoC, Discovery and Evaluation board support

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This series adds support for STM32H7 SoCs series and its Discovery and Evaluation board For more detailed information please visit: www.st.com/en/microcontrollers/stm32h7-series.html v2:_ add stm32h743 Evaluation board support _ squash all DTS

[U-Boot] [PATCH v2 7/9] ARM: DTS: stm32: add stm32h743i-eval files

2017-09-13 Thread patrice.chotard
From: Patrice Chotard This file is imported from linux kernel v4.13 Add device tree support for STM32H743 evaluation board. This board offers : _ STM32H743XIH6 microcontroller with 2 Mbytes of Flash memory and 1 Mbyte of RAM in TFBGA240+25 package _ 5.7” 640x480

[U-Boot] [PATCH v2 5/9] dm: misc: add stm32 rcc driver

2017-09-13 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 v2 3/3] board: STiH410-B2260: set ramdisk_addr_r to 0x48000000

2017-09-22 Thread patrice.chotard
From: Lee Jones Add missing ramdisk_addr_r param and set it to 0x4800 Signed-off-by: Lee Jones --- v2: rebase on v2017.09 include/configs/stih410-b2260.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/stih410-b2260.h

[U-Boot] [PATCH v2 0/3] STiH410-B2260: update environment/configuration settings

2017-09-22 Thread patrice.chotard
From: Patrice Chotard Update the CONFIG_EXTRA_ENV_SETTINGS, BOOT_TARGET_DEVICES and CONFIG_BOOTARGS Fix SDRAM size v2: rebase on v2017.09 Lee Jones (1): board: STiH410-B2260: set ramdisk_addr_r to 0x4800 Nicolas Le Bayon (1): board: STiH410-B2260: fix sdram

[U-Boot] [PATCH v2 1/3] board: STiH410-B2260: update environment variable

2017-09-22 Thread patrice.chotard
From: Patrice Chotard Update environment variable by updating: _ BOOT_TARGET_DEVICE _ CONFIGS_BOOTARGS _ kernel_addr_r, fdtfile, fdt_addr_r, scriptaddr, fdt_high, intird_high Signed-off-by: Patrice Chotard --- v2: rebase on v2017.09

[U-Boot] [PATCH v2 2/3] board: STiH410-B2260: fix sdram size

2017-09-22 Thread patrice.chotard
From: Nicolas Le Bayon 32MB are reserved for Trusted Zone purpose Signed-off-by: Nicolas Le Bayon --- v2: rebase on v2017.09 include/configs/stih410-b2260.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 1/1] dm: clk: add missing .priv_auto_alloc_size() for stm32f7

2017-09-21 Thread patrice.chotard
From: Patrice Chotard Add missing .priv_auto_alloc_size() callback. Previously private struct stm32_clk was not allocate which leads to unpredictable behaviour Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f7.c | 13 +++-- 1

[U-Boot] [PATCH 1/1] mmc: stm32_sdmmc2: increase polling status register delay

2017-10-09 Thread patrice.chotard
From: Christophe Kerello MMC commands like MMC_CMD_ALL_SEND_CID or MMC_CMD_SEND_CSD can reach 500 us. This patch increases the polling status register delay to avoid a timeout on a command. Signed-off-by: Christophe Kerello Signed-off-by:

[U-Boot] [PATCH v2 1/2] i2c: stm32f7_i2c: fix data abort

2017-10-17 Thread patrice.chotard
From: Christophe Kerello As "v" is a local variable in stm32_i2c_choose_solution() "v" has to be copied into "s" to avoid data abort in stm32_i2c_compute_timing(). Signed-off-by: Christophe Kerello Reviewed-by: Patrick DELAUNAY

[U-Boot] [PATCH v2 2/2] i2c: stm32f7_i2c: fix usage of useless local variable

2017-10-17 Thread patrice.chotard
From: Patrice Chotard Remove useless local variable "s" and use directly function's parameter "output" Signed-off-by: Patrice Chotard --- v2: rebase on top of v2017.11-rc2 drivers/i2c/stm32f7_i2c.c | 10 ++ 1 file changed, 2

[U-Boot] [PATCH v2 0/2] stm32f7_i2c fixes

2017-10-17 Thread patrice.chotard
From: Patrice Chotard This series : _ fixes data abort for stm32f7_i2c driver _ removes useless local variable v2: rebase on top of v2017.11-rc2 Christophe Kerello (1): i2c: stm32f7_i2c: fix data abort Patrice Chotard (1): i2c: stm32f7_i2c: fix

[U-Boot] [PATCH 2/2] i2c: stm32f7_i2c: fix usage of useless local variable

2017-10-11 Thread patrice.chotard
From: Patrice Chotard Remove useless local variable "s" and use directly function's parameter "output" Signed-off-by: Patrice Chotard --- drivers/i2c/stm32f7_i2c.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH 0/2] stm32f7_i2c fixes

2017-10-11 Thread patrice.chotard
From: Patrice Chotard This series : _ fixes data abort for stm32f7_i2c driver _ removes useless local variable Christophe Kerello (1): i2c: stm32f7_i2c: fix data abort Patrice Chotard (1): i2c: stm32f7_i2c: fix usage of useless local variable

[U-Boot] [PATCH 1/2] i2c: stm32f7_i2c: fix data abort

2017-10-11 Thread patrice.chotard
From: Christophe Kerello As "v" is a local variable in stm32_i2c_choose_solution() "v" has to be copied into "s" to avoid data abort in stm32_i2c_compute_timing(). Signed-off-by: Christophe Kerello Reviewed-by: Patrick DELAUNAY

[U-Boot] [PATCH v10 05/10] STiH410-B2260: enable USB Host Networking

2017-09-05 Thread patrice.chotard
From: Patrice Chotard Enable USB Host Networking support by enabling Ethernet/USB adaptors support and by enabling some BOOTP flags Signed-off-by: Patrice Chotard --- v10:_ remove obsolete CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS v9: _ none

[U-Boot] [PATCH v10 08/10] ARM: dts: STiH410: set DWC3 dual role mode to peripheral

2017-09-05 Thread patrice.chotard
From: Patrice Chotard On STi 96boards, configure by default the micro USB connector (managed by DWC3 hardware block) in peripheral mode. This will allow to use fastboot feature. Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass

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

2017-09-05 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 Reviewed-by: Simon Glass --- v10:_ none

[U-Boot] [PATCH v10 01/10] mmc: sti_sdhci: Rework sti_mmc_core_config()

2017-09-05 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 v10 00/10] STiH410-B2260: add reset, usb and fastboot support

2017-09-05 Thread patrice.chotard
From: Patrice Chotard This series adds : _ update existing sdhci driver to use reset framework _ add usb phy driver _ add fastboot support With all this feature enable, it's now possible to _ boot on usb mass storage device _ boot

[U-Boot] [PATCH v10 07/10] usb: dwc3: Add dwc3 glue driver support for STi

2017-09-05 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 v10 10/10] board: STiH410-B2260: add fastboot support

2017-09-05 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 Reviewed-by: Simon Glass

[U-Boot] [PATCH v10 09/10] ARM: dts: STiH410: update ehci and ohci compatible

2017-09-05 Thread patrice.chotard
From: Patrice Chotard Update ehci and ohci node's compatible string in order to use ehci-generic and ohci-generic drivers. Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v10:_ none v9: _ none v8: _

[U-Boot] [PATCH v10 06/10] STiH410-B2260: enable USB, fastboot, reset, PHY related flags

2017-09-05 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v10:_ none v9: _ none v8: _ none v7: _ none v6: _ add reviewed-by Simon Glass v5: _ remove CONFIG_USB_OHCI_STI and

[U-Boot] [PATCH v10 03/10] mmc: sti_sdhci: Use reset framework

2017-09-05 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard Reviewed-by: Jaehoon Chung Reviewed-by: Simon Glass --- v10:_ none v9: _ none v8: _ none v7: _ none v6: _ add reviewed-by Simon

[U-Boot] [PATCH v10 04/10] usb: phy: Add STi USB2 PHY

2017-09-05 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: Simon Glass ---

[U-Boot] [PATCH] configs: stm32: update SRAM address for STM32H7 disco and eval

2017-10-03 Thread patrice.chotard
From: Patrice Chotard As suggested by Vikas Manocha, update embedded SRAM address to use AXI SRAM available on D1 domain instead of using AHB SRAM (D2 domain). On some STM32H743 SoCs, D2 domain SRAM is accessible even if SRAMxEN bit in AHB2ENR bits are not set whereas on

[U-Boot] [PATCH 0/7] Add MMC support for STM32H7 discovery and evaluation

2017-10-03 Thread patrice.chotard
From: Patrice Chotard Add pinctrl and MMC nodes for both disco and eval boards Enable filesystem related flags to read different type of SD/MMC partition Fix drivers/mmc/Kconfig to remove obsolete DM_MMC_OPS flag Patrice Chotard (7): ARM: DTS: stm32: add SDMMC support

[U-Boot] [PATCH 6/7] configs: stm32h743-disco: enable filesystem related flags

2017-10-03 Thread patrice.chotard
From: Patrice Chotard Enable CMD_GPT/EXT2/EXT4/EXT4_WRITE/FAT_FS_GENERIC flags Signed-off-by: Patrice Chotard --- configs/stm32h743-disco_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/stm32h743-disco_defconfig

[U-Boot] [PATCH 4/7] configs: stm32h743-eval: enable SDMMC support

2017-10-03 Thread patrice.chotard
From: Patrice Chotard Enable CMD_MMC, DM_MMC and STM32_SDMMC2 flags Signed-off-by: Patrice Chotard --- configs/stm32h743-eval_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/stm32h743-eval_defconfig

[U-Boot] [PATCH 5/7] configs: stm32h743-disco: enable SDMMC support

2017-10-03 Thread patrice.chotard
From: Patrice Chotard Enable CMD_MMC, DM_MMC and STM32_SDMMC2 flags Signed-off-by: Patrice Chotard --- configs/stm32h743-disco_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/stm32h743-disco_defconfig

[U-Boot] [PATCH 2/7] ARM: DTS: stm32: add SDMMC support fo stm32h743-eval

2017-10-03 Thread patrice.chotard
From: Patrice Chotard Add pinctrl and sdmmc nodes to add MMC support for STM32H743 evaluation board. Evaluation board needs a second pinctrl node "pinctrl_sdmmc1_level_shifter" to drive a level shifter on MMC bus. Signed-off-by: Patrice Chotard

[U-Boot] [PATCH 3/7] dm: mmc: remove DM_MMC_OPS for STM32_SDMMC

2017-10-03 Thread patrice.chotard
From: Patrice Chotard Since e7881d85 "dm: mmc: Drop CONFIG_DM_MMC_OPS" DM_MMC_OPS is no more used, remove it from STM32_SDMMC2 dependencies Signed-off-by: Patrice Chotard --- drivers/mmc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH 1/7] ARM: DTS: stm32: add SDMMC support for stm32h743 disco

2017-10-03 Thread patrice.chotard
From: Patrice Chotard Add pinctrl and sdmmc nodes to add MMC support for STM32H743 discovery board. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32h743-pinctrl.dtsi | 15 +++ arch/arm/dts/stm32h743.dtsi | 13

[U-Boot] [PATCH 7/7] configs: stm32h743-eval: enable filesystem related flags

2017-10-03 Thread patrice.chotard
From: Patrice Chotard Enable CMD_GPT/EXT2/EXT4/EXT4_WRITE/FAT_FS_GENERIC flags Signed-off-by: Patrice Chotard --- configs/stm32h743-eval_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/stm32h743-eval_defconfig

[U-Boot] [PATCH v3 0/3] STiH410-B2260: update environment/configuration settings

2017-09-25 Thread patrice.chotard
From: Patrice Chotard Update the CONFIG_EXTRA_ENV_SETTINGS, BOOT_TARGET_DEVICES and CONFIG_BOOTARGS Fix SDRAM size v3: fix typo in patch 2 v2: rebase on v2017.09 Lee Jones (1): board: STiH410-B2260: set ramdisk_addr_r to 0x4800 Nicolas Le Bayon (1): board:

[U-Boot] [PATCH v3 2/3] board: STiH410-B2260: fix sdram size

2017-09-25 Thread patrice.chotard
From: Nicolas Le Bayon 32MB are reserved for TrustZone purpose Signed-off-by: Nicolas Le Bayon --- v3: fix typo, replace "Trusted Zone" by "TrustZone" v2: rebase on v2017.09 include/configs/stih410-b2260.h | 2 +- 1 file changed, 1

[U-Boot] [PATCH v3 1/3] board: STiH410-B2260: update environment variable

2017-09-25 Thread patrice.chotard
From: Patrice Chotard Update environment variable by updating: _ BOOT_TARGET_DEVICE _ CONFIGS_BOOTARGS _ kernel_addr_r, fdtfile, fdt_addr_r, scriptaddr, fdt_high, intird_high Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass

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

2017-09-04 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 v3 2/2] dm: test: replace dm_scan_dt() by of dm_extended_scan_fdt() in dm_do_test

2017-09-04 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 v3 0/2] dm: core: add clocks node scan

2017-09-04 Thread patrice.chotard
From: Patrice Chotard v3: _ rename dm_extended_scan_dt() to dm_extended_scan_fdt() to insure function naming consistency _ update dm_extended_scan_fdt() description v2: _ implement this feature in dm_extended_scan_dt() which can be called

[U-Boot] [PATCH v5 1/1] mmc: Add MMC support for stm32h7 Socs

2017-09-04 Thread patrice.chotard
From: Patrice Chotard This patch adds SD/MMC support for STM32H7 SoCs. Here is an extraction of SDMMC main features, embedded in STM32H7 SoCs. The SD/MMC block include the following: _ Full compliance with MultiMediaCard System Specification Version 4.51. Card

[U-Boot] [PATCH v1 1/6] serial: stm32x7: cleanup code

2017-09-27 Thread patrice.chotard
From: Patrice Chotard Use BIT() macro and GENMASK() macro Signed-off-by: Patrice Chotard Reviewed-by: Vikas Manocha --- drivers/serial/serial_stm32x7.h | 18 +- 1 file changed, 9 insertions(+), 9

[U-Boot] [PATCH v1 4/6] serial: stm32x7: add fifo support for STM32H7

2017-09-27 Thread patrice.chotard
From: Patrice Chotard Add fifo mode support for rx and tx. As only STM32H7 supports this feature, add has_fifo flag to uart configuration to use fifo only when possible. Signed-off-by: Patrice Chotard --- drivers/serial/serial_stm32x7.c | 6

[U-Boot] [PATCH v1 3/6] serial: stm32x7: prepare the ground to STM32F4 support

2017-09-27 Thread patrice.chotard
From: Patrice Chotard STM32F4 serial IP is similar to F7 and H7, but registers are not located at the same offset and some feature are only supported by F7 and H7 version. Registers offset must be added for each version and also some flags indicated the supported

[U-Boot] [PATCH v1 6/6] serial: stm32x7: remove useless CONFIG_CLK and OF_CONTROL flag

2017-09-27 Thread patrice.chotard
From: Patrice Chotard This driver is currently used by STM32F7 and STM32H7 SoCs. As CONFIG_CLK and OF_CONTROL flags are set by default for these 2 SoCs, this flag becomes useless in this driver, so remove it. Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH v1 0/6] Update stm32x7 serial driver

2017-09-27 Thread patrice.chotard
From: Patrice Chotard This series update the serial_stm32x7 driver used by both STM32F7 and STM32H7 SoCs : _ clean the code by using BIT and GENMASK macro _ remove useless CLK and OF_CONTROL flags _ add fifo support for H7 _ introduce

[U-Boot] [PATCH v1 5/6] serial: stm32x7: add STM32F4 support

2017-09-27 Thread patrice.chotard
From: Patrice Chotard stm32f4 doesn't support FIFO and OVERRUN feature. The enable bit is not at the same location in CR1 register than for STM32F7 and STM32H7. Signed-off-by: Patrice Chotard --- drivers/serial/Kconfig | 4 ++--

[U-Boot] [PATCH v1 2/6] serial: stm32x7: remove stm32f7-usart and stm32h7-usart compatible

2017-09-27 Thread patrice.chotard
From: Patrice Chotard This patch remove the extra compatibility string "st,stm32h7-usart" and "st,stm32f7-usart" to avoid confusion, save some time & space. Signed-off-by: Patrice Chotard Reviewed-by: Vikas Manocha ---

[U-Boot] [PATCH 0/2] STM32H7 clock fixes

2017-10-09 Thread patrice.chotard
From: Patrice Chotard This series updates: _ some comment and define's name to match STM32H7 Reference manual available on www.st.com _ remove useless macro There is no functionnal changes. Patrice Chotard (2): dm: clk: remove CLK() macro for

<    1   2   3   4   5   6   7   >