Re: [PATCH 00/13] uio_pruss: add support for devicetree and am33xx

2014-07-09 Thread Andre Heider
On Mon, Jul 07, 2014 at 05:50:09PM +, Paul Walmsley wrote: On Mon, 7 Jul 2014, Andre Heider wrote: On Sun, Jun 29, 2014 at 06:21:34PM +0200, Andre Heider wrote: this series adds PRUv2 support to uio_pruss through devicetree, makes the device usable on am33xx and enables

Re: [PATCH 00/13] uio_pruss: add support for devicetree and am33xx

2014-07-07 Thread Andre Heider
On Sun, Jun 29, 2014 at 06:21:34PM +0200, Andre Heider wrote: Hi, this series adds PRUv2 support to uio_pruss through devicetree, makes the device usable on am33xx and enables it on beaglebone black. Inspired by old patches from Matt Porter found in a downstream tree. To archieve

Re: [PATCH 07/13] Documentation: devicetree: add bindings for TI PRUSS

2014-06-30 Thread Andre Heider
On Mon, Jun 30, 2014 at 10:33:32AM +0100, Mark Rutland wrote: On Sun, Jun 29, 2014 at 05:21:41PM +0100, Andre Heider wrote: diff --git a/Documentation/devicetree/bindings/misc/ti,pruss.txt b/Documentation/devicetree/bindings/misc/ti,pruss.txt new file mode 100644 index 000..4eacc41

Re: [PATCH 09/13] uio: uio_pruss: add devicetree support

2014-06-30 Thread Andre Heider
On Mon, Jun 30, 2014 at 10:36:06AM +0100, Mark Rutland wrote: On Sun, Jun 29, 2014 at 05:21:43PM +0100, Andre Heider wrote: - /* Power on PRU in case its not done as part of boot-loader */ - gdev-pruss_clk = clk_get(dev, pruss); - if (IS_ERR(gdev-pruss_clk)) { - dev_err

Re: [PATCH 12/13] ARM: dts: am33xx: add the PRUSSv2 device

2014-06-30 Thread Andre Heider
On Mon, Jun 30, 2014 at 10:36:42AM +0100, Mark Rutland wrote: On Sun, Jun 29, 2014 at 05:21:46PM +0100, Andre Heider wrote: --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi @@ -409,6 +409,15 @@ ti,hwmods = rtc

Re: [PATCH 02/13] uio: uio_pruss: use devm_kzalloc()

2014-06-30 Thread Andre Heider
On Mon, Jun 30, 2014 at 10:38:09AM +0100, Mark Rutland wrote: On Sun, Jun 29, 2014 at 05:21:36PM +0100, Andre Heider wrote: --- a/drivers/uio/uio_pruss.c +++ b/drivers/uio/uio_pruss.c @@ -109,9 +109,7 @@ static void pruss_cleanup(struct device *dev, struct uio_pruss_dev *gdev

[PATCH 00/13] uio_pruss: add support for devicetree and am33xx

2014-06-29 Thread Andre Heider
(which apparently doesn't yet exist for this SoC?) and let the driver deassert/assert on probe/remove? * the platform device path has a clk_enable() / clk_put() calls. Are those now redundant with the introduced pm_runtime_enable() pm_runtime_disable() calls? Thanks, Andre Andre Heider (13

[PATCH 02/13] uio: uio_pruss: use devm_kzalloc()

2014-06-29 Thread Andre Heider
Replace kzalloc() by devm_kzalloc() and remove the kfree() calls. Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/uio/uio_pruss.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c index c28d6e2

[PATCH 01/13] uio: uio_pruss: use struct device

2014-06-29 Thread Andre Heider
Get rid of the repeating dev-dev constructs and prevent introducing new ones. Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/uio/uio_pruss.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/uio/uio_pruss.c b/drivers

[PATCH 03/13] uio: uio_pruss: use devm_ioremap_resource()

2014-06-29 Thread Andre Heider
Replace resource_size() followed by ioremap() with devm_ioremap_resource() and remove the iounmap() call. Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/uio/uio_pruss.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers/uio/uio_pruss.c b

[PATCH 07/13] Documentation: devicetree: add bindings for TI PRUSS

2014-06-29 Thread Andre Heider
Signed-off-by: Andre Heider a.hei...@gmail.com --- Documentation/devicetree/bindings/misc/ti,pruss.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/ti,pruss.txt diff --git a/Documentation/devicetree/bindings/misc/ti

[PATCH 12/13] ARM: dts: am33xx: add the PRUSSv2 device

2014-06-29 Thread Andre Heider
Signed-off-by: Andre Heider a.hei...@gmail.com --- arch/arm/boot/dts/am33xx.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 4a4e02d..28a7e5d 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts

[PATCH 05/13] ARM: OMAP2+: hwmod: Introduce a flag to deassert the HW reset line

2014-06-29 Thread Andre Heider
hwmod's hardreset lines are not deasserted after a reset. Add the HWMOD_INIT_DEASSERT_HARD_RESET flag to deassert those after a successful reset. This is required to get the PRU-ICSS in a usable state on am33xx SoCs. Signed-off-by: Andre Heider a.hei...@gmail.com --- arch/arm/mach-omap2

[PATCH 09/13] uio: uio_pruss: add devicetree support

2014-06-29 Thread Andre Heider
Add support to probe via devicetree. Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/uio/uio_pruss.c | 46 +++--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c index afaf726

[PATCH 13/13] ARM: dts: am335x-boneblack: enable the PRUSSv2 device

2014-06-29 Thread Andre Heider
Signed-off-by: Andre Heider a.hei...@gmail.com --- arch/arm/boot/dts/am335x-boneblack.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts index 305975d..eeb5c2e 100644 --- a/arch/arm/boot/dts/am335x

[PATCH 11/13] uio: uio_pruss: enable the driver for am33xx SoCs

2014-06-29 Thread Andre Heider
Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/uio/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig index 5a90914..1678387 100644 --- a/drivers/uio/Kconfig +++ b/drivers/uio/Kconfig @@ -106,10 +106,10 @@ config

[PATCH 06/13] ARM: AM33XX: hwmod: deassert PRUSS' hardreset lines

2014-06-29 Thread Andre Heider
Set HWMOD_INIT_DEASSERT_HARD_RESET to get the PRUSS out of hardreset upon boot. Signed-off-by: Andre Heider a.hei...@gmail.com --- arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c

[PATCH 04/13] uio: uio_pruss: use dmam_alloc_coherent()

2014-06-29 Thread Andre Heider
Replace dma_alloc_coherent() with dmam_alloc_coherent() and remove the dma_free_coherent() call. This shaves off 2 vars in the driver data struct. Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/uio/uio_pruss.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions

[PATCH 08/13] uio: uio_pruss: make the UIO SRAM memory region optional

2014-06-29 Thread Andre Heider
memory region less. This behavior is in line with downstream patches and userland driver support for this SoC family. Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/uio/uio_pruss.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git

[PATCH 10/13] uio: uio_pruss: add runtime pm support

2014-06-29 Thread Andre Heider
This enables the hwmod's associated clocks and gets the device in a working state. Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/uio/uio_pruss.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c index 2df54ab..28a1c1f

Re: [PATCH] staging: dwc2: set up all module params

2013-11-26 Thread Andre Heider
On Mon, Nov 25, 2013 at 10:02:30PM -0700, Stephen Warren wrote: The DWC2 USB controller in the BCM2835 (Raspberry Pi) needs some non- default parameters. Select these based on the compatible value from the DT node. For all other HW, fall back to the default parameters currently in use. The