AM3517 usb host issue

2015-05-22 Thread Ben Dooks
I am trying to get the full-speed USB host working on an custom AM3517 device with the 3.18.12 kernel. The hardware works (a 2.6.37 kernel has been used for testing). Does anyone have any experience of 3.18 (or similarly recent kernel on an AM3517 system) or have any pointers as where to start

Re: [PATCHv3 10/10] CLK: TI: always enable DESHDCP clock

2015-05-22 Thread Tomi Valkeinen
On 21/05/15 06:06, Paul Walmsley wrote: Enable falls under the critical clocks discussion that is ongoing. I assume that this is some sort of critical clock that can't be turned off? It only needs to be enabled for this particular display IP subsystem to function:

Re: AM3517 usb host issue

2015-05-22 Thread Ben Dooks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 22/05/15 16:50, Felipe Balbi wrote: Hi, On Fri, May 22, 2015 at 11:04:33AM +0300, Ben Dooks wrote: I am trying to get the full-speed USB host working on an custom AM3517 device with the 3.18.12 kernel. The hardware works (a 2.6.37 kernel

[PATCH v4 1/4] remoteproc: introduce rproc_get_by_phandle API

2015-05-22 Thread Dave Gerlach
Allow users of remoteproc the ability to get a handle to an rproc by passing a phandle supplied in the user's device tree node. This is useful in situations that require manual booting of the rproc. This patch uses the code removed by commit 40e575b1d0b3 (remoteproc: remove the get_by_name/put

[PATCH v4 0/4] remoteproc: Introduce wkup_m3_rproc driver

2015-05-22 Thread Dave Gerlach
Hi, This patch series is v4 of the series to add a wkup_m3_rproc driver for TI AM335xi and AM437x SoCs. This family of SoCs contains an ARM Cortex M3 coprocessor that is responsible for low-level power tasks that cannot be handled by the main ARM Cortex A8 so firmware running from the CM3 can be

Re: AM3517 usb host issue

2015-05-22 Thread Felipe Balbi
Hi, On Fri, May 22, 2015 at 11:13:22PM +0300, Ben Dooks wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 22/05/15 16:50, Felipe Balbi wrote: Hi, On Fri, May 22, 2015 at 11:04:33AM +0300, Ben Dooks wrote: I am trying to get the full-speed USB host working on an custom

[GIT PULL] omap device tree changes for v4.2, part 1

2015-05-22 Thread Tony Lindgren
The following changes since commit b787f68c36d49bb1d9236f403813641efa74a031: Linux 4.1-rc1 (2015-04-26 17:59:10 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap tags/omap-for-v4.2/dt-pt1 for you to fetch changes up to

[PATCH v4 2/4] remoteproc: add a rproc ops for performing address translation

2015-05-22 Thread Dave Gerlach
From: Suman Anna s-a...@ti.com The rproc_da_to_va API is currently used to perform any device to kernel address translations to meet the different needs of the remoteproc core/drivers (eg: loading). The functionality is achieved within the remoteproc core, and is limited only for carveouts

[PATCH v4 4/4] remoteproc/wkup_m3: add a remoteproc driver for TI Wakeup M3

2015-05-22 Thread Dave Gerlach
Add a remoteproc driver to load the firmware and boot a small Wakeup M3 processor present on TI AM33xx and AM43xx SoCs. This Wakeup M3 remote processor is an integrated Cortex M3 that allows the SoC to enter the lowest possible power state by taking control from the MPU after it has gone into its

[PATCH v4 3/4] Documentation: dt: add bindings for TI Wakeup M3 processor

2015-05-22 Thread Dave Gerlach
Add the device tree bindings document for the TI Wakeup M3 remote processor devices on AM33xx and AM43xx SoCs. These devices are used to offload low-level power management functionality, and are handled by the wkup_m3 remoteproc driver. Signed-off-by: Suman Anna s-a...@ti.com Signed-off-by: Dave

Re: [PATCH 2/3] phy: ti-pipe3: i783 workaround for SATA lockup after dpll unlock/relock

2015-05-22 Thread Kishon Vijay Abraham I
Roger, On Wednesday 20 May 2015 07:17 PM, Roger Quadros wrote: Kishon, On 20/05/15 16:19, Kishon Vijay Abraham I wrote: Hi Roger, On Tuesday 12 May 2015 09:37 PM, Roger Quadros wrote: SATA_PLL_SOFT_RESET bit of CTRL_CORE_SMA_SW_0 must be toggled between a SATA DPLL unlock and re-lock to

[PATCH] tty: serial: omap: use mctrl_gpio helpers

2015-05-22 Thread yegorslists
From: Yegor Yefremov yegorsli...@googlemail.com This patch permits to use GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI signals. Signed-off-by: Yegor Yefremov yegorsli...@googlemail.com --- .../devicetree/bindings/serial/omap_serial.txt |9 + drivers/tty/serial/Kconfig

Re: [PATCH] spi: omap2-mcspi: Fix native cs with new set_cs

2015-05-22 Thread Mark Brown
On Thu, May 21, 2015 at 06:48:33PM -0500, Michael Welling wrote: So after reverting this patch I found there is a issue in that it is difficult to determine when a transfer is complete to properly drive the chipselect from within the transfer_one function. Is unprepare_message() a suitable

Re: AM3517 usb host issue

2015-05-22 Thread Felipe Balbi
Hi, On Fri, May 22, 2015 at 11:04:33AM +0300, Ben Dooks wrote: I am trying to get the full-speed USB host working on an custom AM3517 device with the 3.18.12 kernel. The hardware works (a 2.6.37 kernel has been used for testing). Does anyone have any experience of 3.18 (or similarly recent

Re: [PATCH 2/3] phy: ti-pipe3: i783 workaround for SATA lockup after dpll unlock/relock

2015-05-22 Thread Roger Quadros
Kishon, On 22/05/15 14:34, Kishon Vijay Abraham I wrote: Roger, On Wednesday 20 May 2015 07:17 PM, Roger Quadros wrote: Kishon, On 20/05/15 16:19, Kishon Vijay Abraham I wrote: Hi Roger, On Tuesday 12 May 2015 09:37 PM, Roger Quadros wrote: SATA_PLL_SOFT_RESET bit of CTRL_CORE_SMA_SW_0

Re: [GIT PULL 2.1/2] fixed up omap1 sparse irq support for v4.2

2015-05-22 Thread Arnd Bergmann
On Thursday 21 May 2015 15:59:38 Tony Lindgren wrote: Here's this pull request updated for the randconfig errors found by Arnd. The following changes since commit 030bbdbf4c833bc69f502eae58498bc5572db736: Linux 4.1-rc3 (2015-05-10 15:12:29 -0700) are available in the git repository

[RFC/RFT PATCH 6/7] gpio: omap: clean up omap_gpio_irq_type

2015-05-22 Thread Grygorii Strashko
The omap_gpio_irq_type() can do only configuration of GPIO IRQ triggering type, because now OMAP GPIO driver has implemented .irq_startup()/.irq_shutdown() which are responsible for GPIO bank enabling and pin direction configuration. Hence, remove redundant code and omap_gpio_init_irq() which is

[PATCH 1/7] gpio: omap: fix omap_gpio_free to not clean up irq configuration

2015-05-22 Thread Grygorii Strashko
This patch fixes following issue: - GPIOn is used as IRQ by some dev, for example PCF8575.INT - gpio6.11 - PCFx driver knows nothing about type of IRQ line (GPIO or not) so it doesn't request gpio and just do request_irq() - If gpio6.11 will be exported through the sysfs and then un-xeported

[RFC/RFT PATCH 4/7] gpio: omap: rework omap_gpio_request to touch only gpio specific registers

2015-05-22 Thread Grygorii Strashko
The GPIO Chip and GPIO IRQ Chip functionality are essentially orthogonal, so GPIO Chip implementation shouldn't touch GPIO IRQ specific registers and vise versa. Hence, rework omap_gpio_request: - don't reset GPIO IRQ triggering type to IRQ_TYPE_NONE, because GPIO irqchip should be responsible

[RFC/RFT PATCH v2 7/7] gpio: omap: ensure that runtime pm will disable unused gpio banks

2015-05-22 Thread Grygorii Strashko
Now there are some points related to Runtime PM usage: 1) bank state doesn't need to be checked in places where Rintime PM is used, bacause Runtime PM maintains its own usage counter: if (!BANK_USED(bank)) pm_runtime_get_sync(bank-dev); so, it's safe to drop such checks. 2)

[RFC/RFT PATCH 5/7] gpio: omap: rework omap_gpio_irq_startup to handle current pin state properly

2015-05-22 Thread Grygorii Strashko
The omap_gpio_irq_startup() can be called at time when: - corresponding GPIO has been requested already and in this case it has to be configured as input already. If not - return with -EINVAL and do not try to re-configure it as it could be unsafe. - corresponding GPIO is free: reconfigure GPIO as

[PATCH] video: omap/h3: fix tps65010 dependency

2015-05-22 Thread Arnd Bergmann
The h3 LCD driver fails to link when tps65010 is configured as a loadable module: drivers/built-in.o: In function `h3_panel_disable': debugfs.c:(.text+0x206ac): undefined reference to `tps65010_set_gpio_out_value' debugfs.c:(.text+0x206cc): undefined reference to `tps65010_set_gpio_out_value'

[RFC/RFT PATCH 0/7] gpio: omap: rework and fixes

2015-05-22 Thread Grygorii Strashko
Hi Tony, As I promised in [1] I've prepared a new series for OMAP GPIO driver. Patches 1-2 are bug fixes. Patches 3-6 is attempt (RFC/RFT) to rework OMAP GPIO driver taking into account that GPIO Chip and GPIO IRQ Chip functionality are mostly orthogonal. Patch 7 is second attempt (RFC/RFT) to

[RFC/RFT PATCH 3/7] gpio: omap: rework omap_x_irq_shutdown to touch only irqs specific registers

2015-05-22 Thread Grygorii Strashko
The GPIO Chip and GPIO IRQ Chip functionality are essentially orthogonal, so GPIO IRQ Chip implementation shouldn't touch GPIO specific registers and vise versa. Hence, rework omap_gpio_irq_shutdown and try to touch only irqs specific registers: - don't configure GPIO as input (it, actually,

[PATCH 2/7] gpio: omap: fix error handling in omap_gpio_irq_type

2015-05-22 Thread Grygorii Strashko
The GPIO bank will be kept powered in case if input parameters are invalid or error occurred in omap_gpio_irq_type. Hence, fix it by ensuring that GPIO bank will be unpowered in case of errors and add additional check of value returned from omap_set_gpio_triggering(). Signed-off-by: Grygorii

Re: [GIT PULL 1/2] omap clean-up for v4.2

2015-05-22 Thread Arnd Bergmann
On Wednesday 20 May 2015 15:36:04 Tony Lindgren wrote: Clean-up for omaps for v4.2 merge window: Drop more omap3 legacy board-*.c files for v4.2. This time we're dropping the board files for beagle, overo and cm-t35. The reason for dropping these now rather than later is that now we can

Re: [PATCH] tty: serial: omap: use mctrl_gpio helpers

2015-05-22 Thread Nishanth Menon
On 05/22/2015 07:16 AM, yegorsli...@googlemail.com wrote: From: Yegor Yefremov yegorsli...@googlemail.com This patch permits to use GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI signals. Signed-off-by: Yegor Yefremov yegorsli...@googlemail.com ---

Re: [PATCH] tty: serial: omap: use mctrl_gpio helpers

2015-05-22 Thread Tony Lindgren
* Nishanth Menon n...@ti.com [150522 08:36]: On 05/22/2015 07:16 AM, yegorsli...@googlemail.com wrote: From: Yegor Yefremov yegorsli...@googlemail.com This patch permits to use GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI signals. Signed-off-by: Yegor Yefremov

Re: [PATCH] spi: omap2-mcspi: Fix native cs with new set_cs

2015-05-22 Thread Michael Welling
On Fri, May 22, 2015 at 01:25:44PM +0100, Mark Brown wrote: On Thu, May 21, 2015 at 06:48:33PM -0500, Michael Welling wrote: So after reverting this patch I found there is a issue in that it is difficult to determine when a transfer is complete to properly drive the chipselect from

Re: [RFC/RFT PATCH 0/7] gpio: omap: rework and fixes

2015-05-22 Thread Tony Lindgren
* Grygorii Strashko grygorii.stras...@linaro.org [150522 07:37]: Hi Tony, As I promised in [1] I've prepared a new series for OMAP GPIO driver. Great! Patches 1-2 are bug fixes. Patches 3-6 is attempt (RFC/RFT) to rework OMAP GPIO driver taking into account that GPIO Chip and GPIO

Re: [RFC/RFT PATCH 6/7] gpio: omap: clean up omap_gpio_irq_type

2015-05-22 Thread Tony Lindgren
Hi, * Grygorii Strashko grygorii.stras...@linaro.org [150522 07:37]: The omap_gpio_irq_type() can do only configuration of GPIO IRQ triggering type, because now OMAP GPIO driver has implemented .irq_startup()/.irq_shutdown() which are responsible for GPIO bank enabling and pin direction

Re: races in omap_wdt

2015-05-22 Thread Felipe Balbi
On Fri, May 22, 2015 at 08:16:47PM +0200, Uwe Kleine-König wrote: On Fri, Apr 24, 2015 at 11:18:40AM +0200, Uwe Kleine-König wrote: [dropped Varadarajan Charulatha and Shubhrajyoti D from the addressees because the ti mailserver doesn't know them :-(, added Felipe instead] On Thu, Apr

Re: [PATCH] tty: serial: omap: use mctrl_gpio helpers

2015-05-22 Thread Felipe Balbi
On Fri, May 22, 2015 at 09:52:13AM -0700, Tony Lindgren wrote: * Nishanth Menon n...@ti.com [150522 08:36]: On 05/22/2015 07:16 AM, yegorsli...@googlemail.com wrote: From: Yegor Yefremov yegorsli...@googlemail.com This patch permits to use GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI

Re: [PATCH] tty: serial: omap: use mctrl_gpio helpers

2015-05-22 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [150522 10:41]: On Fri, May 22, 2015 at 09:52:13AM -0700, Tony Lindgren wrote: * Nishanth Menon n...@ti.com [150522 08:36]: On 05/22/2015 07:16 AM, yegorsli...@googlemail.com wrote: From: Yegor Yefremov yegorsli...@googlemail.com This patch permits to

Re: [RFC/RFT PATCH v2 7/7] gpio: omap: ensure that runtime pm will disable unused gpio banks

2015-05-22 Thread Tony Lindgren
Not tainted 4.1.0-rc4-next-20150522-00021-g6d8613e #94 [6.182800] Hardware name: Generic OMAP36xx (Flattened Device Tree) [6.189422] task: c09b0678 ti: c09aa000 task.ti: c09aa000 [6.195129] PC is at omap_gpio_irq_handler+0x9c/0x234 [6.200469] LR is at trace_hardirqs_off+0x14/0x18