[U-Boot] [PATCH v2 02/10] usb: Generic USB Kconfig option, that fits both host and gadget and comments

2015-08-04 Thread Hans de Goede
From: Paul Kocialkowski cont...@paulk.fr There is no particular reason why the USB Kconfig option should be specific to host mode. In prevision of adding MUSB host and gadget to Kconfig, this moves the title and help message of the USB Kconfig option to a more generic format. Adding comments to

[U-Boot] [PATCH v2 07/10] musb: sunxi: Force EP0 on re-enable

2015-08-04 Thread Hans de Goede
From: Maxime Ripard maxime.rip...@free-electrons.com Currently, the second use of a gadget will fail, while the first one works. Forcing the EP0 at every enable fix this issue. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/usb/musb-new/sunxi.c | 3 +++ 1 file

[U-Boot] [PATCH v2 08/10] sunxi: MUSB gadget config provisions, with fastboot and USB mass storage support

2015-08-04 Thread Hans de Goede
From: Paul Kocialkowski cont...@paulk.fr This adds some config options to the sunxi-common config to enable the USB download gadget and the fastboot and USB mass storage functions. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- include/configs/sunxi-common.h | 30

[U-Boot] [PATCH v2 03/10] usb: musb-new: CONFIG_MUSB prefix replacement with CONFIG_USB_MUSB

2015-08-04 Thread Hans de Goede
From: Paul Kocialkowski cont...@paulk.fr USB-related options are usually prefixed with CONFIG_USB and platform-specific adaptation for the MUSB controller already have a CONFIG_USB_MUSB prefix, so this switches all MUSB-related options to a CONFIG_USB_MUSB prefix, for consistency. Signed-off-by:

[U-Boot] [PATCH v2 0/10] usb: MUSB gadget config provisions

2015-08-04 Thread Hans de Goede
Hi Marek and Paul, Here is a new version of Paul's MUSB gadget Kconfig changes based on the latest master. I've dropped the dependency on the Kconfig-menu changes since similar changes for drivers/usb/Kconfig have already landed in master via the arm: mx6: cm-fx6 changes. Likewise I've dropped

[U-Boot] [PATCH v2 10/10] sunxi: Drop our own copy of the USB_KEYBOARD options

2015-08-04 Thread Hans de Goede
USB_KEYBOARD is now defined in drivers/usb/Kconfig, drop our own duplicate definition. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/Kconfig| 1 + board/sunxi/Kconfig | 7 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm

[U-Boot] [PATCH v2 09/10] usb: USB storage-specific part ifdef in uclass

2015-08-04 Thread Hans de Goede
From: Paul Kocialkowski cont...@paulk.fr usb_stor_reset is only defined when USB storage support is enabled, thus the function is not declared when such support is missing. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/usb/host/usb-uclass.c | 2 ++ 1 file changed, 2

[U-Boot] [PATCH] sunxi: Enable musb in host mode on the Jesurun Q5

2015-08-04 Thread Hans de Goede
The Jesurun Q5 has the musb hooked up to an usb-a receptacle, enable it in host-only mode. Signed-off-by: Hans de Goede hdego...@redhat.com --- configs/jesurun_q5_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/jesurun_q5_defconfig b/configs/jesurun_q5_defconfig index

[U-Boot] [PATCH 1/5] sunxi: display: Replace #ifdef-ery with helper functions

2015-08-03 Thread Hans de Goede
. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/video/sunxi_display.c | 90 +++ 1 file changed, 56 insertions(+), 34 deletions(-) diff --git a/drivers/video/sunxi_display.c b/drivers/video/sunxi_display.c index 269083b..3942d2f 100644

[U-Boot] [PATCH 5/5] sunxi: display: Add composite video out support

2015-08-03 Thread Hans de Goede
Add composite video out support. This only gets enabled on the Mele M3 for now, since that is were it was tested. It will be enabled on more boards after testing. Signed-off-by: Hans de Goede hdego...@redhat.com --- board/sunxi/Kconfig | 7 ++ configs/Mele_M3_defconfig | 1

[U-Boot] [PATCH 4/5] sunxi: display: Add support for interlaced modes

2015-08-03 Thread Hans de Goede
Add support for interlaced modes, this is a preparation patch for adding composite out support. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/video/sunxi_display.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/drivers

[U-Boot] [PATCH 2/5] sunxi: display: Correct clk_delay calculations for lcd displays

2015-08-03 Thread Hans de Goede
We should only substract 2 from the vblank time when using tcon1. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/video/sunxi_display.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/video/sunxi_display.c b/drivers/video/sunxi_display.c index

[U-Boot] [PATCH 3/5] sunxi: display: Add a few extra register and constant defines

2015-08-03 Thread Hans de Goede
Add a few extra sunxi display registers and constant defines. This is a preparation patch for adding composite video out support. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 2 +- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 1 + arch

Re: [U-Boot] [PATCH 3/3] sunxi: Do not add a stdout-path alias to dts on boards without a serial port

2015-08-03 Thread Hans de Goede
Hi, On 02-08-15 20:57, Ian Campbell wrote: On Sun, 2015-08-02 at 20:45 +0200, Hans de Goede wrote: [...] So for now to keep things working we need CONFIG_CONS_INDEX 1 even on the 1 board we have which does not have a serial port (the uart1 pins which are routed to the outside on the A13

Re: [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-08-02 Thread Hans de Goede
Hi, On 01-08-15 21:22, Scott Wood wrote: On Sat, 2015-08-01 at 14:30 +0200, Boris Brezillon wrote: Hi Hans, On Sat, 1 Aug 2015 14:15:53 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 23-07-15 14:33, Piotr Zierhoffer wrote: This is a basic driver for the sunxi NAND controller

Re: [U-Boot] [PATCH 3/3] sunxi: Do not add a stdout-path alias to dts on boards without a serial port

2015-08-02 Thread Hans de Goede
Hi, On 02-08-15 18:28, Ian Campbell wrote: On Sat, 2015-08-01 at 14:50 +0200, Hans de Goede wrote: Do not add a bogus (pointing to a non existing serial port) stdout-path alias to dts on boards without a serial port. Signed-off-by: Hans de Goede hdego...@redhat.com --- include/configs/sunxi

[U-Boot] [PATCH 3/3] sunxi: Do not add a stdout-path alias to dts on boards without a serial port

2015-08-01 Thread Hans de Goede
Do not add a bogus (pointing to a non existing serial port) stdout-path alias to dts on boards without a serial port. Signed-off-by: Hans de Goede hdego...@redhat.com --- include/configs/sunxi-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/sunxi-common.h b/include

[U-Boot] [PATCH 1/3] sunxi: usb-phy: Never power off the usb ports

2015-08-01 Thread Hans de Goede
vbus as that means an external vbus may be present now Signed-off-by: Hans de Goede hdego...@redhat.com --- Changes in v2: -Skip the vbus detect for the otg port if we've already turned the power on, otherwise we get a false positive for having an external vbus and the otg port is not usable

[U-Boot] [PATCH 2/3] sunxi: Add CONFIG_USB0_ID_DET setting to 2 more tablets

2015-08-01 Thread Hans de Goede
Now that we have code to check the id-pin and detect usb-host adapters plugged into the otg port that way, enable it on the tablets which I own. Signed-off-by: Hans de Goede hdego...@redhat.com --- configs/Chuwi_V7_CW0825_defconfig | 1 + configs/UTOO_P66_defconfig| 1 + 2 files changed

Re: [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-08-01 Thread Hans de Goede
Hi, On 23-07-15 14:33, Piotr Zierhoffer wrote: This is a basic driver for the sunxi NAND controller for Allwinner A20. It supports only SPL. The driver uses DMA for data transfers. It does not support writing. Thanks for your work on this. I've merged patches 1 - 3 in my sunxi-wip branch,

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Hans de Goede
Hi, On 31-07-15 16:25, Michal Suchanek wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 31-07-15 02:47, Scott Wood wrote: On Thu, 2015-07-23 at 14:33 +0200

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Hans de Goede
Hi, On 31-07-15 02:47, Scott Wood wrote: On Thu, 2015-07-23 at 14:33 +0200, Piotr Zierhoffer wrote: +int nand_spl_load_image(uint32_t offs, unsigned int size, void *dest) +{ + void *current_dest; + uint32_t count; + uint32_t current_count; + uint32_t ecc_errors = 0; + +

Re: [U-Boot] U-boot mini-summit @ ELCE 2015, Dublin, date ?

2015-07-31 Thread Hans de Goede
Hi, On 31-07-15 10:10, Wolfgang Denk wrote: Dear Hans, In message 55b0b0ea.5040...@redhat.com you wrote: I'm preparing my trip to ELCE in Dublin, Oct 5th - 7th, and I was wondering if it is already known which day the u-boot mini-summit will be. My plan is to travel to Dublin Oct 4th, and

Re: [U-Boot] [PATCH] sunxi: Enable USB DRC on Wexler TAB7200

2015-07-31 Thread Hans de Goede
Hi Aleksei, On 30-07-15 19:33, Aleksei Mamlin wrote: Enable the otg/drc usb controller on the Wexler TAB7200 tablet. Signed-off-by: Aleksei Mamlin mamli...@gmail.com There are some other u-boot USB patches pending which change how to enable the MUSB controller in the defconfig. So I'm going

Re: [U-Boot] [PATCH v2 00/11] USB and sunxi Kconfig and config changes leading up to fastboot support

2015-07-29 Thread Hans de Goede
Hi, On 29-07-15 15:32, Paul Kocialkowski wrote: This series is based off the following patch: * drivers: hierarchize drivers Kconfig menu that was sent to the list earlier. Please pick it up as well when merging this series. The entire series looks good to me: Acked-by: Hans de Goede hdego

Re: [U-Boot] [PATCH 08/12] sunxi: USB EHCI Kconfig option instead of config define

2015-07-27 Thread Hans de Goede
Hi, On 27-07-15 14:31, Paul Kocialkowski wrote: Hi, Le mercredi 22 juillet 2015 à 11:31 +0200, Hans de Goede a écrit : Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: This makes sunxi boards use the USB_EHCI_HCD Kconfig option instead of defining USB_EHCI as a config define. This allows

[U-Boot] [PATCH] dm: serial: Add a REQUIRE_SERIAL_CONSOLE option for boards with no serial port

2015-07-25 Thread Hans de Goede
for CONFIG_DM_SERIAL=n configs is non trivial, and is not necessary at this moment. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/serial/Kconfig | 11 +++ drivers/serial/serial-uclass.c | 20 +--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git

[U-Boot] Please pull u-boot-sunxi master

2015-07-25 Thread Hans de Goede
initialising mmc multiple times sunxi: Create helper function veryfing valid boot signature on MMC sunxi: spl: Detect at runtime where SPL was read from sunxi: spl: Remove redundant check from `board_mmc_init` for signature Hans de Goede (11): sunxi: Remove bogus uart entry from

[U-Boot] U-boot mini-summit @ ELCE 2015, Dublin, date ?

2015-07-23 Thread Hans de Goede
Hi All, I'm preparing my trip to ELCE in Dublin, Oct 5th - 7th, and I was wondering if it is already known which day the u-boot mini-summit will be. My plan is to travel to Dublin Oct 4th, and back on Oct 8th, so my main question is, will the summit be during ELCE itself, or a day before /

Re: [U-Boot] USB and unbinding

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 05:48, Simon Glass wrote: Hi Hans, On 21 July 2015 at 13:52, Hans de Goede hdego...@redhat.com wrote: Hi, On 07/20/2015 05:49 PM, Simon Glass wrote: Hi Hans, On 20 July 2015 at 09:31, Hans de Goede hdego...@redhat.com wrote: Hi, On 20-07-15 04:23, Simon Glass wrote

Re: [U-Boot] [PATCH 12/12] sunxi: MUSB gadget config provisions, with fastboot and USB mass storage support

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: This adds some config options to the sunxi-common config to enable the USB download gadget and the fastboot and USB mass storage functions. Signed-off-by: Paul Kocialkowski cont...@paulk.fr Acked-by: Hans de Goede hdego...@redhat.com Regards

Re: [U-Boot] [PATCH 11/12] musb: sunxi: Force EP0 on re-enable

2015-07-22 Thread Hans de Goede
Acked-by: Hans de Goede hdego...@redhat.com Regards, Hans --- drivers/usb/musb-new/sunxi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 052e065..4effaaa 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb

Re: [U-Boot] [PATCH 08/12] sunxi: USB EHCI Kconfig option instead of config define

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: This makes sunxi boards use the USB_EHCI_HCD Kconfig option instead of defining USB_EHCI as a config define. This allows for more flexibility in enabling the controller and handling other Kconfig that may depend on USB EHCI. Signed-off-by: Paul

Re: [U-Boot] [PATCH 09/12] sunxi: Kconfig defaults for USB

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: USB_STORAGE and USB_KEYBOARD should only be selected when either USB_EHCI_HCD or USB_MUSB_HOST is set. In addition, the musb controller should automatically be selected when either USB_MUSB_HOST or USB_MUSB_GADGET is selected, not the other way

Re: [U-Boot] [PATCH 06/12] usb: USB_MUSB_SUNXI move to musb-new Kconfig

2015-07-22 Thread Hans de Goede
but not CONFIG_USB_MUSB_HOST=y please update all sunxi defconfigs which have CONFIG_USB_MUSB_SUNXI=y to also set CONFIG_USB_MUSB_HOST=y in this patch to avoid this breakage. Note all earlier patches in this series look good to me and are: Acked-by: Hans de Goede hdego...@redhat.com Regards, Hans

Re: [U-Boot] [PATCH 07/12] usb: USB_KEYBOARD move to usb Kconfig

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: The USB_KEYBOARD Kconfig is not specific to sunxi, so we can move it to the common USB Kconfig. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/Kconfig | 5 - drivers/usb/Kconfig | 6 ++ 2 files changed, 6

Re: [U-Boot] [PATCH 10/12] sunxi: config update to stick with Kconfig changes

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: Now that some things were updated in Kconfig, they should be reflected on the sunxi-common config too. Signed-off-by: Paul Kocialkowski cont...@paulk.fr Ack. Regards, Hans --- include/configs/sunxi-common.h | 8 +++- 1 file changed,

Re: [U-Boot] USB and unbinding

2015-07-21 Thread Hans de Goede
Hi, On 07/20/2015 05:49 PM, Simon Glass wrote: Hi Hans, On 20 July 2015 at 09:31, Hans de Goede hdego...@redhat.com wrote: Hi, On 20-07-15 04:23, Simon Glass wrote: Hi Hans, I've been thinking about the USB unbinding code. I know that I agreed to go with it, but in retrospect I think

Re: [U-Boot] USB and unbinding

2015-07-20 Thread Hans de Goede
Hi, On 20-07-15 04:23, Simon Glass wrote: Hi Hans, I've been thinking about the USB unbinding code. I know that I agreed to go with it, but in retrospect I think that was a mistake. I believe we should separate out the unbinding and make it an option, so that it is not required in order to

Re: [U-Boot] u-boot-with-spl.bin don't include the dtb image when enable CONFIG_OF_SEPARATE

2015-07-19 Thread Hans de Goede
Hi, On 16-07-15 01:17, Simon Glass wrote: Hi, On 15 July 2015 at 02:42, Wang Haikun haikun.w...@freescale.com wrote: Hi Simon, It seems that we don't update the source image name to u-boot-dtb.bin in case of enabling CONFIG_OF_SEPARATE when generate u-boot-with-spl.bin file. ifdef

Re: [U-Boot] [PATCH] musb: set MUSB speed based on CONFIG

2015-07-19 Thread Hans de Goede
Hi, On 13-07-15 16:16, Bin Liu wrote: Hi, On 07/11/2015 08:04 AM, Hans de Goede wrote: Hi, On 10-07-15 17:31, Bin Liu wrote: Hi, On 07/10/2015 10:12 AM, Heiko Schocher wrote: Hello Samuel, Am 10.07.2015 um 16:50 schrieb Egli, Samuel: Hi Hans, -Original Message- From: Hans de

Re: [U-Boot] [PATCH] musb: set MUSB speed based on CONFIG

2015-07-11 Thread Hans de Goede
Hi, On 10-07-15 17:31, Bin Liu wrote: Hi, On 07/10/2015 10:12 AM, Heiko Schocher wrote: Hello Samuel, Am 10.07.2015 um 16:50 schrieb Egli, Samuel: Hi Hans, -Original Message- From: Hans de Goede [mailto:hdego...@redhat.com] Sent: Freitag, 10. Juli 2015 16:37 To: Egli, Samuel; ma

Re: [U-Boot] [PATCH] musb: set MUSB speed based on CONFIG

2015-07-11 Thread Hans de Goede
Hi, On 10-07-15 17:31, Bin Liu wrote: Hi, On 07/10/2015 10:12 AM, Heiko Schocher wrote: Hello Samuel, Am 10.07.2015 um 16:50 schrieb Egli, Samuel: Hi Hans, -Original Message- From: Hans de Goede [mailto:hdego...@redhat.com] Sent: Freitag, 10. Juli 2015 16:37 To: Egli, Samuel; ma

Re: [U-Boot] [PATCH] musb: set MUSB speed based on CONFIG

2015-07-10 Thread Hans de Goede
Hi, On 10-07-15 15:16, Samuel Egli wrote: From: Bin Liu b-...@ti.com Do not config MUSB to highspeed mode if CONFIG_USB_GADGET_DUALSPEED is not set, in which case Ether gadget only operates in fullspeed. Note: This patch is necessary for devices like some siemens boards that allow only FULL

Re: [U-Boot] [PATCH] musb: set MUSB speed based on CONFIG

2015-07-10 Thread Hans de Goede
Hi, On 10-07-15 16:30, Hans de Goede wrote: Hi, On 10-07-15 15:16, Samuel Egli wrote: From: Bin Liu b-...@ti.com Do not config MUSB to highspeed mode if CONFIG_USB_GADGET_DUALSPEED is not set, in which case Ether gadget only operates in fullspeed. Note: This patch is necessary for devices

Re: [U-Boot] [PATCH 1/3] dm: serial: Do not panic if no serial ports are found

2015-07-08 Thread Hans de Goede
Hi Simon, On 07-07-15 09:00, Hans de Goede wrote: Hi, On 06-07-15 18:39, Simon Glass wrote: Hi Hans, On 5 July 2015 at 12:56, Hans de Goede hdego...@redhat.com wrote: Some boards simply do not have any serial ports. Also no one will see the panic message as there is no where to print

[U-Boot] Please pull u-boot-sunxi master (bugfix for v2015.07)

2015-07-08 Thread Hans de Goede
to fetch changes up to 8fa2e20913183133998cbbb78a5184bd20ccfcbe: sunxi: Adjust Ippo_q8h_v1_2_a33_1024x600 dts filename to match the upstream kernel (2015-07-08 16:21:27 +0200) Hans de Goede (1): sunxi: Adjust

Re: [U-Boot] [PATCH 1/3] dm: serial: Do not panic if no serial ports are found

2015-07-08 Thread Hans de Goede
Hi, On 08-07-15 16:08, Simon Glass wrote: +Masahiro Hi Hans, On 8 July 2015 at 05:56, Hans de Goede hdego...@redhat.com wrote: Hi Simon, On 07-07-15 09:00, Hans de Goede wrote: Hi, On 06-07-15 18:39, Simon Glass wrote: Hi Hans, On 5 July 2015 at 12:56, Hans de Goede hdego

[U-Boot] [PATCH] sunxi: usb-phy: Never power off the usb ports

2015-07-08 Thread Hans de Goede
the powering off calls, fixing the undesirable power bouncing. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/usb_phy.c| 17 - arch/arm/include/asm/arch-sunxi/usb_phy.h | 1 - drivers/usb/host/ehci-sunxi.c | 1 - drivers/usb/host/ohci

Re: [U-Boot] [PATCH] sunxi: usb-phy: Never power off the usb ports

2015-07-08 Thread Hans de Goede
Hi, On 08-07-15 17:02, Marek Vasut wrote: On Wednesday, July 08, 2015 at 04:54:07 PM, Hans de Goede wrote: USB devices are not really designed to get the power bounced off and on at them. Esp. USB powered harddisks do not like this. Currently we power off the USB ports both on a usb reset

Re: [U-Boot] [PATCH 1/3] dm: serial: Do not panic if no serial ports are found

2015-07-07 Thread Hans de Goede
Hi, On 06-07-15 18:39, Simon Glass wrote: Hi Hans, On 5 July 2015 at 12:56, Hans de Goede hdego...@redhat.com wrote: Some boards simply do not have any serial ports. Also no one will see the panic message as there is no where to print it if no serial port is found (and other stdout options

Re: [U-Boot] [PATCH v2 0/4] musb device model support series

2015-07-05 Thread Hans de Goede
Hi, On 01-07-15 21:47, Simon Glass wrote: Hi Hans, On 1 July 2015 at 12:52, Hans de Goede hdego...@redhat.com wrote: Hi Simon, Marek, Here is a series with just the patches which needed work after my v1 posting of this series. I've a rebased version of the entire series (some patches

[U-Boot] Please pull u-boot-sunxi master (take 2)

2015-07-05 Thread Hans de Goede
Hi Tom, Here is a rebased / fixed version of my previous pull-req for two bug-fixes, and one new board. Since the first one was no good I've done a forced push with the new one to u-boot-sunxi/master . The following changes since commit 891b487098ee2169a16b1bbb354aaef28aa90630: Merge branch

Re: [U-Boot] [PATCH] sunxi: Fix wrong pinmux names in arch/arm/cpu/armv7/sunxi/board.c

2015-07-05 Thread Hans de Goede
Hi Tom, On 29-06-15 23:03, Karsten Merker wrote: Commit 487b3277d4f70bcb2e4a1930beb6438565f25910 (sunxi: GPIO pin mux hardware-feature-specific function index defines) has removed and/or changed the names of various pinmux definitions, but has missed two instances in

[U-Boot] [PATCH 2/3] sunxi: Update selects in arch/arm/Kconfig for DM conversions

2015-07-05 Thread Hans de Goede
From: Tom Rini tr...@konsulko.com With certain features being convert to DM now we want sunxi to default to having DM enabled for ETH/SERIAL and USB in some cases. Cc: Hans de Goede hdego...@redhat.com Cc: Ian Campbell i...@hellion.org.uk Signed-off-by: Tom Rini tr...@konsulko.com [hdego

[U-Boot] [PATCH 1/3] dm: serial: Do not panic if no serial ports are found

2015-07-05 Thread Hans de Goede
Some boards simply do not have any serial ports. Also no one will see the panic message as there is no where to print it if no serial port is found (and other stdout options are not yet set up at this point). Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/serial/serial-uclass.c | 8

Re: [U-Boot] [PATCH 3/3] sunxi:Added difference MMC SLOT for booting

2015-07-05 Thread Hans de Goede
Hi, On 29-06-15 11:48, ?? wrote: From 94a30632fb9db555b8dbfac4e46c922c73371960 Mon Sep 17 00:00:00 2001 From: Zhi Yuan Wan dv...@qq.com Date: Thu, 25 Jun 2015 20:03:58 +0800 Subject: [PATCH 3/3] sunxi:Added difference MMC SLOT for booting Signed-off-by: Zhi Yuan Wan dv...@qq.com

Re: [U-Boot] [PATCH 2/3] sunxi:Added Mele i7 eMMC MOD DTS

2015-07-05 Thread Hans de Goede
Hi, On 29-06-15 11:47, ?? wrote: From 83aa308eb836b0a63f0e30bd10d72040151a1e98 Mon Sep 17 00:00:00 2001 From: Zhi Yuan Wan dv...@qq.com Date: Thu, 25 Jun 2015 20:00:46 +0800 Subject: [PATCH 2/3] sunxi:Added Mele i7 eMMC MOD DTS Signed-off-by: Zhi Yuan Wan dv...@qq.com ---

[U-Boot] [PATCH 0/3] sunxi: Update selects in arch/arm/Kconfig for DM

2015-07-05 Thread Hans de Goede
Hi All, Here is a patch-set to cleanup the CONFIG_foo=y options which are present in practically all sunxi defconfigs since Joe's latest patches. Simon, the first patch in this patchset is necessary to be able to use DM_SERIAL=y on all sunxi boards, without this things do not work as some sunxi

[U-Boot] [PATCH 3/3] sunxi: Enable CMD_USB and USB_STORAGE by default on sunxi

2015-07-05 Thread Hans de Goede
Start using the new Kconfig options which are available for these now, and simply always enable them by selecting them as sunxi builds always include USB support. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Ian Campbell i...@hellion.org.uk --- arch/arm/Kconfig | 2

Re: [U-Boot] [PATCH 1/3] sunxi:Added NAND Flash defines and MMC2 IO defines for sun6i

2015-07-05 Thread Hans de Goede
Hi, First of all thanks for the patches. I've a question about this series in general, this series is for the Mele i7 board, correct? AFAIK that board has regular NAND, not an eMMC. It seems your version has an eMMC though, so it seems that there are 2 versions of the board. Are you sure you

Re: [U-Boot] New sunxi board: Lamobo Bananapi R1

2015-07-04 Thread Hans de Goede
..a77fb5c --- /dev/null +++ b/arch/arm/dts/sun7i-a20-bananapir1.dts @@ -0,0 +1,231 @@ +/* + * Copyright 2014 Hans de Goede hdego...@redhat.com + * + * Hans de Goede hdego...@redhat.com + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your

[U-Boot] [PATCH v2 0/4] musb device model support series

2015-07-01 Thread Hans de Goede
Hi Simon, Marek, Here is a series with just the patches which needed work after my v1 posting of this series. I've a rebased version of the entire series (some patches needed adjustment after the recent Kconfig / defconfig changes) in my personal tree. Simon, AFAIK the plan is still for this to

[U-Boot] [PATCH v2 1/4] dm: Export device_remove_children / device_unbind_children

2015-07-01 Thread Hans de Goede
These functions are useful to remove all children from an usb bus before rescanning the bus. Give them a better name and export them. Signed-off-by: Hans de Goede hdego...@redhat.com --- Changes in v2: -Not only export but also rename the functions to device_remove_children

[U-Boot] [PATCH v2 2/4] dm: usb: Document that mixing DM_DEVICE_REMOVE and DM_USB is a bad idea

2015-07-01 Thread Hans de Goede
Document that mixing DM_DEVICE_REMOVE and DM_USB is a bad idea, and also why this is a bad idea. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/core/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index 2861b43..e40372d

[U-Boot] [PATCH v2 4/4] dm: usb: Rename usb_find_child to usb_find_emul_child

2015-07-01 Thread Hans de Goede
another #ifdef to the caller, this is done this way because adding a #ifdef to the caller is somewhat hairy. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/usb-uclass.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/usb

[U-Boot] [PATCH v2 3/4] dm: usb: Use device_unbind_children to clean up usb devs on stop

2015-07-01 Thread Hans de Goede
[ + ]`-- generic_bus_0_dev_1 As expected, and usb_get_dev_index works properly and the keyboard works. Signed-off-by: Hans de Goede hdego...@redhat.com --- Changes in v2: -We only need to call device_unbind_children, the children are removed already by the device_remove call on the host -Do not add

Re: [U-Boot] [PATCH 12/22] musb: Update usb-compat to work with struct usb_device without a parent ptr

2015-07-01 Thread Hans de Goede
Hi, On 29-06-15 05:45, Simon Glass wrote: Hi Hans, On 17 June 2015 at 13:33, Hans de Goede hdego...@redhat.com wrote: When building with CONFIG_DM_USB=y struct usb_device does not have a parent pointer. This commit adds support to the musb code to deal with this. Signed-off-by: Hans de Goede

Re: [U-Boot] [PATCH] sunxi: Select a bunch of CONFIG_foo options from ARCH_SUNXI

2015-07-01 Thread Hans de Goede
Hi, On 30-06-15 22:46, Tom Rini wrote: On Tue, Jun 30, 2015 at 10:33:17PM +0200, Hans de Goede wrote: Select a bunch of CONFIG_foo options from ARCH_SUNXI, instead of having them set to y in every single sunxi defconfig. Signed-off-by: Hans de Goede hdego...@redhat.com Ug, sorry, I

Re: [U-Boot] [PATCH 03/22] usb: usb_setup_device: Drop unneeded portnr function argument

2015-06-30 Thread Hans de Goede
Hi, On 29-06-15 05:44, Simon Glass wrote: Hi Hans. On 17 June 2015 at 13:33, Hans de Goede hdego...@redhat.com wrote: Drop the unneeded portnr function argument, the portnr is part of the usb_device struct which is passed via the dev argument. Signed-off-by: Hans de Goede hdego...@redhat.com

Re: [U-Boot] [PATCH 04/22] usb: Pass device instead of portnr to usb_legacy_port_reset

2015-06-30 Thread Hans de Goede
Hi, On 29-06-15 05:44, Simon Glass wrote: Hi Hans, On 17 June 2015 at 13:33, Hans de Goede hdego...@redhat.com wrote: Pass the usb_device instead of the portnr to usb_legacy_port_reset and rename it to usb_hub_port_reset as there is nothing legacy about it. Signed-off-by: Hans de Goede hdego

Re: [U-Boot] [PATCH 08/22] dm: usb: Use device_chld_remove and _unbind to clean up usb devs on stop

2015-06-30 Thread Hans de Goede
Hi, On 29-06-15 05:45, Simon Glass wrote: Hi Hans, On 17 June 2015 at 13:33, Hans de Goede hdego...@redhat.com wrote: On an usb stop instead of leaving orphan usb devices behind simply remove On a usb_stop() or On a 'usb stop' command ? My intention was for both, since I was under

Re: [U-Boot] [PATCH 06/22] dm: Export device_chld_remove / device_chld_unbind

2015-06-30 Thread Hans de Goede
Hi, On 29-06-15 05:45, Simon Glass wrote: Hi Hans, On 17 June 2015 at 13:33, Hans de Goede hdego...@redhat.com wrote: These functions are useful to remove all children from an usb bus before rescanning the bus. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/core/device

Re: [U-Boot] Please pull u-boot-sunxi master (fixes for v2015.07)

2015-06-30 Thread Hans de Goede
Hi, On 30-06-15 15:30, Ian Campbell wrote: On Tue, 2015-06-30 at 15:11 +0200, Hans de Goede wrote: [...] The latest patch-series seems to do the exact reverse. More knowledge is being moved away from a central place and into defconfig files. As said ARCH_SUNXI builds must always have CONFIG_DM

Re: [U-Boot] Please pull u-boot-sunxi master (fixes for v2015.07)

2015-06-30 Thread Hans de Goede
Hi, On 28-06-15 18:06, Tom Rini wrote: On Sun, Jun 28, 2015 at 05:39:28PM +0200, Hans de Goede wrote: Hi, On 26-06-15 23:05, Tom Rini wrote: On Fri, Jun 26, 2015 at 12:13:51PM +0200, Hans de Goede wrote: Hi Tom, Please pull u-boot-sunxi/master into master for two bug-fixes, and one new

Re: [U-Boot] [PATCH 08/22] dm: usb: Use device_chld_remove and _unbind to clean up usb devs on stop

2015-06-30 Thread Hans de Goede
Hi, On 06/30/2015 04:58 PM, Simon Glass wrote: Hi Hans, On 30 June 2015 at 06:54, Hans de Goede hdego...@redhat.com wrote: Hi, On 29-06-15 05:45, Simon Glass wrote: Hi Hans, On 17 June 2015 at 13:33, Hans de Goede hdego...@redhat.com wrote: On an usb stop instead of leaving orphan usb

Re: [U-Boot] [PATCH 08/22] dm: usb: Use device_chld_remove and _unbind to clean up usb devs on stop

2015-06-30 Thread Hans de Goede
Hi, On 06/30/2015 06:07 PM, Simon Glass wrote: snip Instead, I wonder if we can remove the children when we probe the bus? That should work, but I do not really see any advantage in that, removing the children is not that expensive and it feels like a kludge. That's how it currently

Re: [U-Boot] Please pull u-boot-sunxi master (fixes for v2015.07)

2015-06-30 Thread Hans de Goede
Hi, On 06/30/2015 07:52 PM, Tom Rini wrote: On Tue, Jun 30, 2015 at 03:11:02PM +0200, Hans de Goede wrote: Hi, On 28-06-15 18:06, Tom Rini wrote: On Sun, Jun 28, 2015 at 05:39:28PM +0200, Hans de Goede wrote: Hi, On 26-06-15 23:05, Tom Rini wrote: On Fri, Jun 26, 2015 at 12:13:51PM +0200

[U-Boot] [PATCH] sunxi: Select a bunch of CONFIG_foo options from ARCH_SUNXI

2015-06-30 Thread Hans de Goede
Select a bunch of CONFIG_foo options from ARCH_SUNXI, instead of having them set to y in every single sunxi defconfig. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/Kconfig | 3 +++ configs/A10-OLinuXino-Lime_defconfig | 3 --- configs/A10s

Re: [U-Boot] FEL mode broken since sunxi: Move all boards to the driver-model

2015-06-28 Thread Hans de Goede
Hi, On 26-06-15 21:50, Ian Campbell wrote: Hi Hans, Sorry for only just noticing this, but it looks like FEL mode doesn't work on my cubietruck since this commit. I get the SPL output: U-Boot SPL 2015.04-00665-gb6006ba (Jun 26 2015 - 20:38:50) DRAM: 2048 MiB CPU: 91200Hz, AXI/AHB/APB:

Re: [U-Boot] Please pull u-boot-sunxi master (fixes for v2015.07)

2015-06-28 Thread Hans de Goede
Hi, On 26-06-15 23:05, Tom Rini wrote: On Fri, Jun 26, 2015 at 12:13:51PM +0200, Hans de Goede wrote: Hi Tom, Please pull u-boot-sunxi/master into master for two bug-fixes, and one new board: The following changes since commit 325849ff3d4adeebb8f8f9bc5db950724df9bc21: Merge git

[U-Boot] Please pull u-boot-sunxi master (fixes for v2015.07)

2015-06-26 Thread Hans de Goede
Hi Tom, Please pull u-boot-sunxi/master into master for two bug-fixes, and one new board: The following changes since commit 325849ff3d4adeebb8f8f9bc5db950724df9bc21: Merge git://git.denx.de/u-boot-usb (2015-06-19 16:46:51 -0400) are available in the git repository at:

Re: [U-Boot] [PATCH 0/5] sunxi: misc fixes and SinA33 support

2015-06-26 Thread Hans de Goede
Hi, On 23-06-15 13:57, Chen-Yu Tsai wrote: Hi, This series adds support for Sinlinx SinA33, an A33 devboard, while also fixing some things I encountered along the way. Patch 1 fixes build break when using PORT F UART0. (It seems no one uses it now that we have LCD support.) Patch 2 fixes the

Re: [U-Boot] [PATCH 0/2] sunxi: musb: Fix usb reset handling

2015-06-26 Thread Hans de Goede
Hi, On 26-06-15 12:20, Maxime Ripard wrote: Hi, On Sun, Jun 14, 2015 at 12:40:11PM +0200, Hans de Goede wrote: Paul, can you test these with gadget mode? Specifically if they help the problem you were seeing when switching roles? Also this bit from the kernel code for the sunxi glue may

Re: [U-Boot] [PATCH 0/2] sunxi: musb: Fix usb reset handling

2015-06-26 Thread Hans de Goede
Hi, On 26-06-15 12:20, Maxime Ripard wrote: Hi, On Sun, Jun 14, 2015 at 12:40:11PM +0200, Hans de Goede wrote: Paul, can you test these with gadget mode? Specifically if they help the problem you were seeing when switching roles? Also this bit from the kernel code for the sunxi glue may

Re: [U-Boot] [PATCH 1/3] sunxi: musb: Improve output during probing

2015-06-23 Thread Hans de Goede
Hi, On 22-06-15 18:11, Ian Campbell wrote: On Mon, 2015-06-22 at 17:39 +0200, Hans de Goede wrote: How about the following: Subject: [PATCH 1/3] sunxi: musb: Improve output during probing When we return an error the usb core will log a message, so in this case do not print anything. Signed

Re: [U-Boot] [PATCH 3/3] sunxi: Enable both ehci and otg in host mode on various boards

2015-06-22 Thread Hans de Goede
Hi, On 21-06-15 10:01, Ian Campbell wrote: On Sat, 2015-06-20 at 17:35 +0200, Hans de Goede wrote: Now that the device-model port of the musb mode makes it possible, enable both the ehci and oth in host mode on boards where the otg is wired up in otg? Replaced with musb in my personal tree

Re: [U-Boot] [PATCH 1/3] sunxi: musb: Improve output during probing

2015-06-22 Thread Hans de Goede
Hi, On 21-06-15 10:00, Ian Campbell wrote: On Sat, 2015-06-20 at 17:35 +0200, Hans de Goede wrote: When we return an error the usb core will log a message, so in this case do not print a newline, instead print : after our identifier as a seperator between our identifier and the error message

[U-Boot] [PATCH 0/3] sunxi: Enable both ehci and otg in host mode on various boards

2015-06-20 Thread Hans de Goede
Hi All, Here is a small series enabling the combined use of ehci + musb-otg on more sunxi boards. This applies on top of my large series for making this possible posted earlier. As said before I believe it is best if all the sunxi bits of that series go upstream through u-boot-sunxi/master, the

[U-Boot] [PATCH 2/3] sunxi: musb: Stop treating not having a vbus-det gpio as an error

2015-06-20 Thread Hans de Goede
-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/usb_phy.c | 4 +--- drivers/usb/musb-new/sunxi.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/armv7/sunxi/usb_phy.c b/arch/arm/cpu/armv7/sunxi/usb_phy.c index 5e82ddc..4d63a74 100644

[U-Boot] [PATCH 3/3] sunxi: Enable both ehci and otg in host mode on various boards

2015-06-20 Thread Hans de Goede
Now that the device-model port of the musb mode makes it possible, enable both the ehci and oth in host mode on boards where the otg is wired up in host only mode, either via an usb-a receptacle or via an usb - sata converter. Signed-off-by: Hans de Goede hdego...@redhat.com --- configs

[U-Boot] [PATCH 1/3] sunxi: musb: Improve output during probing

2015-06-20 Thread Hans de Goede
When we return an error the usb core will log a message, so in this case do not print a newline, instead print : after our identifier as a seperator between our identifier and the error message logged by the core. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/musb-new/sunxi.c

Re: [U-Boot] [PATCH 0/3] sunxi: Enable both ehci and otg in host mode on various boards

2015-06-20 Thread Hans de Goede
Hi, On 20-06-15 18:08, Marek Vasut wrote: On Saturday, June 20, 2015 at 05:35:06 PM, Hans de Goede wrote: Hi All, Here is a small series enabling the combined use of ehci + musb-otg on more sunxi boards. This applies on top of my large series for making this possible posted earlier. As said

Re: [U-Boot] [PATCH 21/22] sunxi: Kconfig: Enable CONFIG_USB and friends by default on sunxi

2015-06-19 Thread Hans de Goede
Hi, On 19-06-15 09:46, Ian Campbell wrote: On Wed, 2015-06-17 at 21:34 +0200, Hans de Goede wrote: Start using the new Kconfig options which are available for most of the USB settings now. This also allows us to use CONFIG_USB_EHCI_HCD=y in defconfig files for new boards instead

Re: [U-Boot] [PATCH 00/22] Convert musb host mode code to the device-model

2015-06-19 Thread Hans de Goede
Hi, On 19-06-15 15:10, Simon Glass wrote: Hi Hans, On 17 June 2015 at 13:33, Hans de Goede hdego...@redhat.com wrote: Hi Marek and Simon, This series started out with the idea that it would be a nice small project for the weekend, but it turned out to be a bit more work... The main purpose

Re: [U-Boot] [PATCH 00/22] Convert musb host mode code to the device-model

2015-06-19 Thread Hans de Goede
Hi, On 19-06-15 15:10, Simon Glass wrote: Hi Hans, On 17 June 2015 at 13:33, Hans de Goede hdego...@redhat.com wrote: Hi Marek and Simon, This series started out with the idea that it would be a nice small project for the weekend, but it turned out to be a bit more work... The main purpose

Re: [U-Boot] [PATCH 0/2] sunxi: musb: Fix usb reset handling

2015-06-19 Thread Hans de Goede
Hi, On 19-06-15 14:35, Marek Vasut wrote: On Sunday, June 14, 2015 at 12:40:11 PM, Hans de Goede wrote: Hi Ian, Paul, Here is a patch to fix the problems where most usb devices will no longer work after a usb reset , when connected to the otg controller in host mode + a related cleanup patch

Re: [U-Boot] [PATCH 19/22] sunxi: musb: Move musb config and platdata to the sunxi-musb glue

2015-06-19 Thread Hans de Goede
Hi, On 19-06-15 09:43, Ian Campbell wrote: On Wed, 2015-06-17 at 21:34 +0200, Hans de Goede wrote: Move the musb config and platdata to the sunxi-musb glue, which is where it really belongs. This is preparation patch for adding device-model support for the sunxi-musb-host code. Signed-off

Re: [U-Boot] [PATCH 18/22] sunxi: musb: Add id pin support

2015-06-19 Thread Hans de Goede
Hi, On 19-06-15 09:40, Ian Campbell wrote: On Wed, 2015-06-17 at 21:34 +0200, Hans de Goede wrote: When in host mode check if there is a host cable inserted into the otg port by checking the id pin. If there is no host cable return an error to make usb_lowlevel_init() exit early, rather

[U-Boot] [PATCH 1/2] usb: ehci: Properly deal with data toggle for interrupt endpoints

2015-06-18 Thread Hans de Goede
repeat triggering. This commit fixes this. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ehci-hcd.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 1e5a6e2

<    3   4   5   6   7   8   9   10   11   12   >