Re: runtime check for omap-aes bus access permission (was: Re: 3.13-rc3 (commit 7ce93f3) breaks Nokia N900 DT boot)

2015-02-19 Thread Matthijs van Duin
On 18 February 2015 at 22:14, Pali Rohár pali.ro...@gmail.com wrote: Can you help us with above problem? How to catch external abort on non-linefetch in kernel driver and prevent kernel panic? Actually it's a synchronous bus error that you want to catch, which however is misreported by linux as

[PATCH] arm: boot: dts: am437x-idk: fix sleep pinctrl state

2015-02-19 Thread Felipe Balbi
we have i2c0 sleep pinctrl state but were passing default state anyhow. Fix that. Signed-off-by: Felipe Balbi ba...@ti.com --- arch/arm/boot/dts/am437x-idk-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am437x-idk-evm.dts

[PATCH] arm: boot: dts: am437x-idk: enable i2c2

2015-02-19 Thread Felipe Balbi
i2c2 goes to an expansion connector which we want to use. Signed-off-by: Felipe Balbi ba...@ti.com --- arch/arm/boot/dts/am437x-idk-evm.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/am437x-idk-evm.dts b/arch/arm/boot/dts/am437x-idk-evm.dts

[PATCH v2] dtc: parser: Add label while overriding nodes

2015-02-19 Thread Nikhil Devshatwar
This patch changes the dtc grammar to allow following syntax i2cexp: i2c2 { ... }; Current device tree compiler allows to define multiple labels when defining the device node the first time. Typically device nodes are defined in DTSI files. Now these nodes can be overwritten for updating

advanced LED controllers

2015-02-19 Thread Felipe Balbi
Hi, Do we have support for LED controllers which can handle patterns of different kinds ? I mean, currently, if we have an LED controller such as TPIC2810 [1] which can control 8 different leds and each LED corresponds to one bit on register 0x44, we could control leds by just playing a wave file

Re: runtime check for omap-aes bus access permission (was: Re: 3.13-rc3 (commit 7ce93f3) breaks Nokia N900 DT boot)

2015-02-19 Thread Aaro Koskinen
Hi, On Thu, Feb 19, 2015 at 07:20:41PM +0100, Pali Rohár wrote: Anyway, in Nokia Harmattan N9/N950 2.6.32 kernel is this patch: +/* Do we need runtime check ? */ +#if __LINUX_ARM_ARCH__ 6 { do_bad, SIGBUS, 0, external abort on linefetch }, +#else +

Re: [PATCH] ARM: dts: Revert disabling of smc91x for n900

2015-02-19 Thread Pali Rohár
On Thursday 19 February 2015 05:50:48 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [150218 15:58]: On Wednesday 18 February 2015 23:42:06 Tony Lindgren wrote: Of course it's always possible to do do a omap3-n900-qemu.dts if larger changes are needed :) I would like to avoid

Re: Enabling DBGEN signal in GP OMAP3

2015-02-19 Thread Matthijs van Duin
On 19 February 2015 at 03:16, Grazvydas Ignotas nota...@gmail.com wrote: It turns out 050, 054 and 058 (but only them) are actually documented in dm3730 manual and are part of Emulation Pin Manager. 058 works as you (and the manual) describe, however claiming and enabling EPM registers still

Re: [PATCH 0/2] ARM: DRA7x/OMAP5: Clock: DPLL Clock fixes

2015-02-19 Thread Ravikumar Kattekola
On 1/31/2015 10:36 PM, Ravikumar Kattekola wrote: Fix bypass clock source for a few DPLLs. On DRA7x/OMAP5, for a few DPLLs, both CLKINP and CLKINPULOW are connected to a mux and the output from mux is routed to the bypass clkout. Add a mux-clock as bypass clock with CLKINP and CLKINPULOW as

Re: [PATCH] i2c: omap: implement bus recovery

2015-02-19 Thread Felipe Balbi
On Thu, Feb 19, 2015 at 12:06:49PM -0600, Felipe Balbi wrote: If either SCL or SDA are stuck low, we need to recover the bus using the procedure described on section 3.1.16 of the I2C specification. Note that we're trying to implement the procedure exactly as described by that section.

Re: runtime check for omap-aes bus access permission (was: Re: 3.13-rc3 (commit 7ce93f3) breaks Nokia N900 DT boot)

2015-02-19 Thread Pali Rohár
On Wednesday 11 February 2015 16:22:51 Matthijs van Duin wrote: On 11 February 2015 at 13:39, Pali Rohár pali.ro...@gmail.com wrote: Anyhow, since checking the firewalls/APs to see if you have permission will probably only get you yet another fault if things are walled off, the robust way

[PATCH] i2c: omap: implement bus recovery

2015-02-19 Thread Felipe Balbi
If either SCL or SDA are stuck low, we need to recover the bus using the procedure described on section 3.1.16 of the I2C specification. Note that we're trying to implement the procedure exactly as described by that section. First we check which line is stuck low, then implement one or the other

[PATCH 1/2] arm: boot: dts: am437x-idk: fix TPS62362 i2c bus

2015-02-19 Thread Felipe Balbi
As it turns out, tps62362 is actually on I2C bus0, not bus1. This has gone unnoticed because Linux doesn't use (as of now) that regulator at all, it's setup by the bootloader and left as is. While at that, also add missing reg property for our regulator. Signed-off-by: Felipe Balbi ba...@ti.com

[PATCH 2/2] arm: configs: omap2plus_defconfig: enable TPS62362 regulator

2015-02-19 Thread Felipe Balbi
This regulator is used on AM437x Industrial Development Kit. Signed-off-by: Felipe Balbi ba...@ti.com --- arch/arm/configs/omap2plus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig index

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-19 Thread Mike Turquette
Quoting Stephen Boyd (2015-02-06 11:30:18) On 02/06/15 05:39, Russell King - ARM Linux wrote: On Thu, Feb 05, 2015 at 05:35:28PM -0800, Stephen Boyd wrote: From what I can tell this code is now broken because we made all clk getting functions (there's quite a few...) return unique

Re: [PATCH v2 1/3] ARM: dts: omap3-pandora: add common device tree

2015-02-19 Thread Grazvydas Ignotas
On Tue, Feb 17, 2015 at 9:52 PM, Marek Belisko ma...@goldelico.com wrote: From: H. Nikolaus Schaller h...@goldelico.com This device tree allows to boot, supports the panel, framebuffer, touch screen, as well as some more peripherals. Since there is a OMAP3530 based 600 MHz variant and a

[PATCH v3] omap-rng: Change RNG_CONFIG_REG to RNG_CONTROL_REG when, checking and disabling TRNG

2015-02-19 Thread Andre Wolokita
In omap4_rng_init(), a check of bit 10 of the RNG_CONFIG_REG is done to determine whether the RNG is running. This is suspicious firstly due to the use of RNG_CONTROL_ENABLE_TRNG_MASK and secondly because the same mask is written to RNG_CONTROL_REG after configuration of the FROs. Similar

Re: [PATCH] ARM: dts: Revert disabling of smc91x for n900

2015-02-19 Thread Pali Rohár
On Wednesday 18 February 2015 23:42:06 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [150218 11:07]: On Wednesday 18 February 2015 17:33:53 Tony Lindgren wrote: */ +// reg = 1 0x300 0xf;/* 16 byte IO range at offset 0x300 */ + reg = 1

[PATCH] ARM: dts: OMAP3-N900: Fix offset for smc91x ethernet

2015-02-19 Thread Pali Rohár
Offset for smc91x must be zero otherwise smc91x linux kernel driver does not detect smc91x ethernet hardware in qemu N900 machine. Signed-off-by: Pali Rohár pali.ro...@gmail.com --- arch/arm/boot/dts/omap3-n900.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] ARM: OMAP2+: Return correct error values from device and hwmod

2015-02-19 Thread Pali Rohár
Without this patch function pm_runtime_get_sync() returns 0 even when some omap subfunction fails. This patch properly propagate error codes from omap functions back to caller. This patch fix problem, when loading omap-aes driver in qemu cause kernel oops. Signed-off-by: Pali Rohár

Re: v3.19: Nokia N900 (qemu) - omap_aes error

2015-02-19 Thread Pali Rohár
On Wednesday 18 February 2015 22:36:41 Pali Rohár wrote: On Monday 09 February 2015 12:25:00 Pali Rohár wrote: On Saturday 31 January 2015 16:29:36 Pali Rohár wrote: Hello, when I enable problematic omap_aes.ko driver (also in DT) for Nokia N900 machine in qemu (it emulates OMAP GP

Re: [PATCH v2 0/3] ARM: dts: add openpandora device support

2015-02-19 Thread Grazvydas Ignotas
On Tue, Feb 17, 2015 at 9:52 PM, Marek Belisko ma...@goldelico.com wrote: changes from v1: - add new boards to makefile in patch 2,3 (don't add them in separate commit together), fix gpmc issues (reported by Tony Lindgren) - fix various issues reported by Grazvydas Ignotas (drop internal