[U-Boot] [PATCH 1/2] serial: stm32x7: align compatible with kernel one

2017-06-08 Thread patrice.chotard
From: Patrice Chotard stm32x7.c driver is dedicated for STM32F7. In kernel, "st,stm32-usart" and "st,stm32-uart" compatible strings are dedicated for STM32F4. To keep U-boot and kernel aligned, replace the serial compatible string from "st,stm32-usart", "st,stm32-uart"

[U-Boot] [PATCH 0/2] Align serial stm32x7 driver with kernel's one

2017-06-08 Thread patrice.chotard
From: Patrice Chotard This patch update the STM32F7 serial driver compatible string with the one used in kernel. It reworks the baud rate register calculation, this code is inspired by the kernel driver implementation. Patrice Chotard (2): serial: stm32x7: align

[U-Boot] [PATCH 2/2] serial: stm32x7: simplify baud rate register calculation

2017-06-08 Thread patrice.chotard
From: Patrice Chotard Simplify baud rate register formula and use the oversampling uart feature. This code is aligned with what is implemented in kernel driver drivers/tty/serial/stm32-usart.c since kernel v4.9. Signed-off-by: Patrice Chotard

[U-Boot] [PATCH v7 02/10] reset: add reset_assert_all()

2017-06-20 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 v7 00/10] usb: Extend ehci and ohci generic drivers

2017-06-20 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 v7 07/10] usb: host: ehci-generic: add generic PHY support

2017-06-20 Thread patrice.chotard
From: Patrice Chotard Extend ehci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v7: _ none v6: _ none v5: _ none v4: _ update the memory allocation

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

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

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

2017-06-20 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 --- v7: _ replace reset_count() by

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

2017-06-20 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 --- v7: _ replace clk_count() by

[U-Boot] [PATCH v7 03/10] clk: add clk_disable_all()

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

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

2017-06-20 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 --- v7: _ none v6: _ none v5: _ none v4: _ none

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

2017-06-20 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 --- v7: _ none v6: _ none v5: _

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

2017-06-20 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 v7 10/10] usb: host: ohci-generic: add generic PHY support

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

[U-Boot] [PATCH v8 03/10] clk: add clk_disable_all()

2017-06-21 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 --- v8: _ replace clk->dev by clk[i].dev in

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

2017-06-21 Thread patrice.chotard
From: Patrice Chotard Extend ehci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard --- v8: _ rework error path by propagating the initial error code until the end of probe() v7: _ none v6: _ none v5: _

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

2017-06-21 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 v8 06/10] usb: host: ehci-generic: add error path and .remove callback

2017-06-21 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 --- v8: _

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

2017-06-21 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 --- v8: _ rework error path by propagating the initial error

[U-Boot] [PATCH v8 02/10] reset: add reset_assert_all()

2017-06-21 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 v8 01/10] reset: add reset_request()

2017-06-21 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 --- v8: _ none v7: _ none v6: _

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

2017-06-21 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 --- v8: _ rework error path by propagating the initial error

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

2017-06-21 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 --- v8: _ none v7: _ none v6: _ none v5: _ none

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

2017-06-21 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 v8 10/10] usb: host: ohci-generic: add generic PHY support

2017-06-21 Thread patrice.chotard
From: Patrice Chotard Extend ohci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard --- v8: _ rework error path by propagating the initial error code until the end of probe() v7: _ none v6: _ none v5: _

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

2017-06-21 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 --- v9: _ to avoid confusion, rename

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

2017-06-21 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 --- v9: _

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

2017-06-21 Thread patrice.chotard
From: Patrice Chotard Extend ehci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard --- v9: _ none v8: _ rework error path by propagating the initial error code until the end of probe() v7: _ none v6: _

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

2017-06-21 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 --- v9: _ none v8: _ none v7: _

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

2017-06-21 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 v9 05/10] usb: host: ehci-generic: replace printf() by error()

2017-06-21 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 --- v9: _ none v8: _ none v7: _ none v6: _ none

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

2017-06-21 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 --- v9: _ remove useless reset_free() when a reset is

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

2017-06-21 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 --- v9: _ to avoid confusion, rename clk_disable_all() in

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

2017-06-21 Thread patrice.chotard
From: Patrice Chotard Extend ohci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard --- v9: _ none v8: _ rework error path by propagating the initial error code until the end of probe() v7: _ none v6: _

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

2017-06-21 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 v9 08/10] usb: host: ohci-generic: add CLOCK support

2017-06-21 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 --- v9: _ remove useless clk_free() when a clock is correctly

[U-Boot] [PATCH 1/2] pinctrl: stm32: handle a configuration list

2017-06-20 Thread patrice.chotard
From: Christophe Kerello This patch handles a configuration list behind pinctrl-0 like pinctrl-0 = <_clk_a _bk1_a _bk2_a>; Signed-off-by: Christophe Kerello Acked-by: Vikas MANOCHA --- drivers/pinctrl/pinctrl_stm32.c

[U-Boot] [PATCH 0/2] stm32 pinctrl improvements

2017-06-20 Thread patrice.chotard
From: Patrice Chotard This series improves the stm32 pinctrl driver by adding: _ pinmux list support _ set_state ops callback support Christophe Kerello (2): pinctrl: stm32: handle a configuration list pinctrl: stm32: add set_state ops

[U-Boot] [PATCH 2/2] pinctrl: stm32: add set_state ops

2017-06-20 Thread patrice.chotard
From: Christophe Kerello set_state_ops is kept under PINCTRL_FULL flag in order to decrease memory footprint in some configuration. PINCTRL_FULL can be enabled for debug purpose. Signed-off-by: Christophe Kerello Signed-off-by: Patrice

[U-Boot] [PATCH v4 00/11] usb: Extend ehci and ohci generic drivers

2017-05-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 v4 10/11] usb: host: ohci-generic: add RESET support

2017-05-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 --- v4: _ update the memory allocation for deasserted

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

2017-05-24 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 v4 08/11] usb: host: ehci-generic: add generic PHY support

2017-05-24 Thread patrice.chotard
From: Patrice Chotard Extend ehci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard --- v4: _ use generic_phy_valid() before generic_phy_exit() call v3: _ test return value on generic_phy_get_by_index() and

[U-Boot] [PATCH v4 01/11] reset: add reset_request()

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

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

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

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

2017-05-24 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 v4 09/11] usb: host: ohci-generic: add CLOCK support

2017-05-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 --- v4: _ use generic_phy_valid() before generic_phy_exit()

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

2017-05-24 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 --- v4: _ add clk_disable_all() method as suggested

[U-Boot] [PATCH v4 01/11] reset: add reset_request()

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

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

2017-05-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 --- v4: _

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

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

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

2017-05-24 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 --- v4: _ add reset_assert_all()

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

2017-05-24 Thread patrice.chotard
From: Patrice Chotard Extend ohci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard --- v4: _ use generic_phy_valid() before generic_phy_exit() call v3: _ extract in this patch the PHY support add-on from previous

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

2017-05-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 --- v4: _

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

2017-05-24 Thread patrice.chotard
From: Patrice Chotard Extend ohci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard --- v4: _ use generic_phy_valid() before generic_phy_exit() call v3: _ extract in this patch the PHY support add-on from previous

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

2017-05-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 --- v4: _ update the memory allocation for deasserted

[U-Boot] [PATCH v4 09/11] usb: host: ohci-generic: add CLOCK support

2017-05-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 --- v4: _ use generic_phy_valid() before generic_phy_exit()

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

2017-05-24 Thread patrice.chotard
From: Patrice Chotard Extend ehci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard --- v4: _ use generic_phy_valid() before generic_phy_exit() call v3: _ test return value on generic_phy_get_by_index() and

[U-Boot] [PATCH v4 00/11] usb: Extend ehci and ohci generic drivers

2017-05-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 v4 04/11] clk: add clk_count()

2017-05-24 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 v2 0/3] Extend xhci-dwc3

2017-05-22 Thread patrice.chotard
From: Patrice Chotard v2: _ use dev_get_addr() in PATCH 1 and removed useless piece of code 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:

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

2017-05-22 Thread patrice.chotard
From: Patrice Chotard Add Driver Model support with use of generic DT compatible string "snps,dwc3" Signed-off-by: Patrice Chotard --- v2: _ use dev_get_addr() and removed useless piece of code drivers/usb/host/xhci-dwc3.c | 50

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

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

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

2017-05-22 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 --- v2: _ none drivers/usb/host/xhci-dwc3.c | 9 +

[U-Boot] [PATCH v3 0/4] Extend xhci-dwc3

2017-05-23 Thread patrice.chotard
From: Patrice Chotard v3: _ introduce generic_phy_valid() method _ add Reviewed-by v2: _ use dev_get_addr() in PATCH 1 and removed useless piece of code Patrice Chotard (4): usb: host: xhci-dwc3: Convert driver to DM usb: host: xhci-dwc3: Add dual

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

2017-05-23 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 v3 1/4] usb: host: xhci-dwc3: Convert driver to DM

2017-05-23 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: Marek Vasut Reviewed-by: Simon Glass --- v3: _ none v2: _

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

2017-05-23 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 --- v3: _ use generic_phy_valid() method v2: _ none

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

2017-05-23 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 --- drivers/phy/phy-uclass.c | 5 + include/generic-phy.h| 8 2 files

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

2017-05-29 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 v4:

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

2017-05-29 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 --- d4: _ none v3: _ none v2: _ none

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

2017-05-29 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 --- v4:

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

2017-05-29 Thread patrice.chotard
From: Patrice Chotard Add Driver Model support with use of generic DT compatible string "snps,dwc3" Signed-off-by: Patrice Chotard --- v4: _ none v3: _ none v2: _ use dev_get_addr() and removed useless piece of code

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

2017-05-29 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 --- v4: _ none drivers/phy/phy-uclass.c | 5 + include/generic-phy.h| 8

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

2017-05-29 Thread patrice.chotard
From: Patrice Chotard Add support of generic PHY framework support Signed-off-by: Patrice Chotard --- v4: _ none v3: _ use generic_phy_valid() method v2: _ none drivers/usb/host/xhci-dwc3.c | 32 1

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

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

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

2017-05-30 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 --- v6: _ add reviewed-by Simon

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

2017-05-30 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 --- arch/arm/dts/stih410.dtsi | 11 +++ 1 file changed, 7 insertions(+), 4

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

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

2017-05-30 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 v6 04/10] usb: phy: Add STi USB2 PHY

2017-05-30 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 --- v6:

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

2017-05-30 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 --- arch/arm/dts/stih407-family.dtsi

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

2017-05-30 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v6: _ add reviewed-by Simon Glass v5: _ remove CONFIG_USB_OHCI_STI and CONFIG_USB_EHCI_STI _ enable CONFIG_USB_EHCI_GENERIC

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

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

2017-05-30 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 v6 02/10] ARM: dts: stih410-family: Add missing reset_names for mmc1 node

2017-05-30 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 --- v6: _ add

[U-Boot] [PATCH] drivers: ram: stm32: fix compilation issue

2017-05-30 Thread patrice.chotard
From: Patrice Chotard If CONFIG_CLK flag is not set, compilation raises the following error message: drivers/ram/stm32_sdram.c: In function 'stm32_fmc_probe': drivers/ram/stm32_sdram.c:154:2: error: 'ret' undeclared (first use in this function) ret =

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

2017-06-05 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 v6 04/11] clk: add clk_count()

2017-06-05 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 v6 05/11] clk: add clk_disable_all()

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

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

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

[U-Boot] [PATCH v6 09/11] usb: host: ohci-generic: add CLOCK support

2017-06-05 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 --- v6: _ none

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

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

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

2017-06-05 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 --- v6: _ none

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

2017-06-05 Thread patrice.chotard
From: Patrice Chotard Extend ehci-generic driver with generic PHY framework Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- v6: _ none v5: _ none v4: _ update the memory allocation for deasserted

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

2017-06-05 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 v6 00/11] usb: Extend ehci and ohci generic drivers

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

2017-06-05 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 --- v6: _ none v5: _ none v4: _

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

2017-06-05 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 v5 2/5] usb: host: xhci-dwc3: Add dual role mode support from DT

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

<    1   2   3   4   5   6   7   >