[PATCH 3/9] ARM: dts: omap3-gta04: Fix mmc1 properties.

2014-01-25 Thread Marek Belisko
Does not have an aux supply, and must be non-removable. Otherwise it is removed during suspend and filesystem gets confused. Signed-off-by: NeilBrown ne...@suse.de --- arch/arm/boot/dts/omap3-gta04.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] of: add vendor prefix for Honeywell

2014-01-25 Thread Marek Belisko
Signed-off-by: Marek Belisko ma...@goldelico.com --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 3f900cd..b14c617

[PATCH] iio: gyro: itg3200: Add DT support.

2014-01-18 Thread Marek Belisko
Signed-off-by: NeilBrown Signed-off-by: Marek Belisko --- V2: Added entries to i2c/trivial-devices and also add invensense to vendor-prefixes file. .../devicetree/bindings/i2c/trivial-devices.txt| 1 + .../devicetree/bindings/iio/gyro/itg3200.txt | 22

[PATCH] iio: gyro: itg3200: Add DT support.

2014-01-18 Thread Marek Belisko
Signed-off-by: NeilBrown ne...@suse.de Signed-off-by: Marek Belisko ma...@goldelico.com --- V2: Added entries to i2c/trivial-devices and also add invensense to vendor-prefixes file. .../devicetree/bindings/i2c/trivial-devices.txt| 1 + .../devicetree/bindings/iio/gyro/itg3200.txt

[PATCH] iio: gyro: itg3200: Add DT support.

2014-01-11 Thread Marek Belisko
Signed-off-by: NeilBrown Signed-off-by: Marek Belisko --- .../devicetree/bindings/iio/gyro/itg3200.txt | 22 ++ drivers/iio/gyro/itg3200_core.c| 9 + 2 files changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH] ARM: dts: twl4030: Add power support.

2014-01-11 Thread Marek Belisko
Signed-off-by: NeilBrown Signed-off-by: Marek Belisko --- arch/arm/boot/dts/twl4030.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi index 4217096..21079e1 100644 --- a/arch/arm/boot/dts/twl4030.dtsi +++ b/arch/arm/boot

[PATCH] ARM: dts: twl4030: Add power support.

2014-01-11 Thread Marek Belisko
Signed-off-by: NeilBrown ne...@suse.de Signed-off-by: Marek Belisko ma...@goldelico.com --- arch/arm/boot/dts/twl4030.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi index 4217096..21079e1 100644 --- a/arch/arm/boot/dts

[PATCH] iio: gyro: itg3200: Add DT support.

2014-01-11 Thread Marek Belisko
Signed-off-by: NeilBrown ne...@suse.de Signed-off-by: Marek Belisko ma...@goldelico.com --- .../devicetree/bindings/iio/gyro/itg3200.txt | 22 ++ drivers/iio/gyro/itg3200_core.c| 9 + 2 files changed, 31 insertions(+) create mode 100644

[PATCH] ARM: dts: omap3-gta04: Add EOC irq gpio line handling.

2013-12-21 Thread Marek Belisko
BMP085 EOC (End Of Conversion) irq line is connected to gpio113 on gta04. Set irq properties to have driver using irq instead polling for EOC. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04

[PATCH] ARM: dts: omap3-gta04: Add EOC irq gpio line handling.

2013-12-21 Thread Marek Belisko
BMP085 EOC (End Of Conversion) irq line is connected to gpio113 on gta04. Set irq properties to have driver using irq instead polling for EOC. Signed-off-by: Marek Belisko ma...@goldelico.com --- arch/arm/boot/dts/omap3-gta04.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm

[PATCH] omap: twl-common: Fix musb-hdrc device name.

2013-12-03 Thread Marek Belisko
-517 and usb isn't working. This is probably regression caused by commit: 6c27f939 Signed-off-by: Marek Belisko --- arch/arm/mach-omap2/twl-common.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c index

[PATCH] omap: twl-common: Fix musb-hdrc device name.

2013-12-03 Thread Marek Belisko
-517 and usb isn't working. This is probably regression caused by commit: 6c27f939 Signed-off-by: Marek Belisko marek.beli...@open-nandra.com --- arch/arm/mach-omap2/twl-common.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach

[PATCH v2 2/2] misc: bmp085: devicetree irq update.

2013-11-30 Thread Marek Belisko
Document irq handling for bmp085. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/misc/bmp085.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/misc/bmp085.txt b/Documentation/devicetree/bindings/misc/bmp085.txt index 91dfda2

[PATCH v2 1/2] misc: bmp085: Clean up and enable use of interrupt for completion.

2013-11-30 Thread Marek Belisko
- pass IRQ to driver and have it initialize - finish waiting early if interrupt fires Signed-off-by: NeilBrown Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- drivers/misc/bmp085-i2c.c | 2 +- drivers/misc/bmp085-spi.c | 2 +- drivers/misc/bmp085.c | 39

[PATCH v2 0/2] Add EOC handling for bmp085 + DT update

2013-11-30 Thread Marek Belisko
property - drop patch 3 (adding platform data isn't necessary) Marek Belisko (2): misc: bmp085: Clean up and enable use of interrupt for completion. misc: bmp085: devicetree irq update. Documentation/devicetree/bindings/misc/bmp085.txt | 4 +++ drivers/misc/bmp085-i2c.c

[PATCH v2 0/2] Add EOC handling for bmp085 + DT update

2013-11-30 Thread Marek Belisko
property - drop patch 3 (adding platform data isn't necessary) Marek Belisko (2): misc: bmp085: Clean up and enable use of interrupt for completion. misc: bmp085: devicetree irq update. Documentation/devicetree/bindings/misc/bmp085.txt | 4 +++ drivers/misc/bmp085-i2c.c

[PATCH v2 1/2] misc: bmp085: Clean up and enable use of interrupt for completion.

2013-11-30 Thread Marek Belisko
- pass IRQ to driver and have it initialize - finish waiting early if interrupt fires Signed-off-by: NeilBrown ne...@suse.de Signed-off-by: H. Nikolaus Schaller h...@goldelico.com Signed-off-by: Marek Belisko ma...@goldelico.com --- drivers/misc/bmp085-i2c.c | 2 +- drivers/misc/bmp085-spi.c

[PATCH v2 2/2] misc: bmp085: devicetree irq update.

2013-11-30 Thread Marek Belisko
Document irq handling for bmp085. Signed-off-by: Marek Belisko ma...@goldelico.com --- Documentation/devicetree/bindings/misc/bmp085.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/misc/bmp085.txt b/Documentation/devicetree/bindings/misc/bmp085.txt

[PATCH 3/3] misc: bmp085: Add missing platform data.

2013-11-14 Thread Marek Belisko
DT bindings contains more parameters to set so add them to platform data also to have possibility to use on arch where DT isn't available yet. Signed-off-by: Marek Belisko --- drivers/misc/bmp085.c | 21 + include/linux/i2c/bmp085.h | 7 +++ 2 files changed, 24

[PATCH 0/3] Add EOC handling for bmp085 + DT and platform data updates

2013-11-14 Thread Marek Belisko
on non-DT archs. Marek Belisko (3): misc: bmp085: Clean up and enable use of interrupt for completion. misc: bmp085: Add DT bindings for EOC gpio line and direct irq. misc: bmp085: Add missing platform data. Documentation/devicetree/bindings/misc/bmp085.txt | 8 ++ drivers/misc/bmp085.c

[PATCH 1/3] misc: bmp085: Clean up and enable use of interrupt for completion.

2013-11-14 Thread Marek Belisko
- pass GPIO or IRQ to driver and have it initialize the GPIO and the IRQ - finish waiting early if interrupt fires - clean up GPIO and IRQ on exit. Signed-off-by: NeilBrown Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- drivers/misc/bmp085.c | 68

[PATCH 2/3] misc: bmp085: Add DT bindings for EOC gpio line and direct irq.

2013-11-14 Thread Marek Belisko
Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/misc/bmp085.txt | 8 drivers/misc/bmp085.c | 53 --- 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/misc/bmp085.txt b

[PATCH 2/3] misc: bmp085: Add DT bindings for EOC gpio line and direct irq.

2013-11-14 Thread Marek Belisko
Signed-off-by: Marek Belisko ma...@goldelico.com --- Documentation/devicetree/bindings/misc/bmp085.txt | 8 drivers/misc/bmp085.c | 53 --- 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/misc

[PATCH 0/3] Add EOC handling for bmp085 + DT and platform data updates

2013-11-14 Thread Marek Belisko
on non-DT archs. Marek Belisko (3): misc: bmp085: Clean up and enable use of interrupt for completion. misc: bmp085: Add DT bindings for EOC gpio line and direct irq. misc: bmp085: Add missing platform data. Documentation/devicetree/bindings/misc/bmp085.txt | 8 ++ drivers/misc/bmp085.c

[PATCH 1/3] misc: bmp085: Clean up and enable use of interrupt for completion.

2013-11-14 Thread Marek Belisko
- pass GPIO or IRQ to driver and have it initialize the GPIO and the IRQ - finish waiting early if interrupt fires - clean up GPIO and IRQ on exit. Signed-off-by: NeilBrown ne...@suse.de Signed-off-by: H. Nikolaus Schaller h...@goldelico.com Signed-off-by: Marek Belisko ma...@goldelico.com

[PATCH 3/3] misc: bmp085: Add missing platform data.

2013-11-14 Thread Marek Belisko
DT bindings contains more parameters to set so add them to platform data also to have possibility to use on arch where DT isn't available yet. Signed-off-by: Marek Belisko ma...@goldelico.com --- drivers/misc/bmp085.c | 21 + include/linux/i2c/bmp085.h | 7 +++ 2

[PATCH] media: i2c: Add camera driver for ov9655 chips.

2013-11-08 Thread Marek Belisko
This is a driver for the Omnivision OV9655 camera module connected to the OMAP3 parallel camera interface and using the ISP (Image Signal Processor). It supports SXGA and VGA plus some other modes. It was tested on gta04 board. Signed-off-by: Marek Belisko Signed-off-by: H. Nikolaus Schaller

[PATCH] media: i2c: Add camera driver for ov9655 chips.

2013-11-08 Thread Marek Belisko
This is a driver for the Omnivision OV9655 camera module connected to the OMAP3 parallel camera interface and using the ISP (Image Signal Processor). It supports SXGA and VGA plus some other modes. It was tested on gta04 board. Signed-off-by: Marek Belisko ma...@goldelico.com Signed-off-by: H

[PATCH v3] omapdss: Add new panel driver for Topolly td028ttec1 LCD.

2013-10-29 Thread Marek Belisko
Signed-off-by: Marek Belisko Signed-off-by: H. Nikolaus Schaller --- changes from v2: - move tx_buf from driver data to functions where it's used - update write functions names (to reflect how many bytes are transferred) - update delays from 1s to 1ms (probably typo) - remove unnecessary 90ms

[PATCH v3] omapdss: Add new panel driver for Topolly td028ttec1 LCD.

2013-10-29 Thread Marek Belisko
Signed-off-by: Marek Belisko ma...@goldelico.com Signed-off-by: H. Nikolaus Schaller h...@goldelico.com --- changes from v2: - move tx_buf from driver data to functions where it's used - update write functions names (to reflect how many bytes are transferred) - update delays from 1s to 1ms

[PATCH v2] omapdss: Add new panel driver for Topolly td028ttec1 LCD.

2013-10-17 Thread Marek Belisko
Signed-off-by: Marek Belisko Signed-off-by: H. Nikolaus Schaller --- changes from v1: - reworked to be spi driver instead platform with custom spi bitbang this configuration was tested with spi_gpio bitbang driver on gta04 board and works fine (thanks Tomi and Lars-Peter for comments

[PATCH v2] omapdss: Add new panel driver for Topolly td028ttec1 LCD.

2013-10-17 Thread Marek Belisko
Signed-off-by: Marek Belisko ma...@goldelico.com Signed-off-by: H. Nikolaus Schaller h...@goldelico.com --- changes from v1: - reworked to be spi driver instead platform with custom spi bitbang this configuration was tested with spi_gpio bitbang driver on gta04 board and works fine (thanks

[PATCH 2/3] video: venc: Add new callback and handling for bypass and acbias setup.

2013-10-14 Thread Marek Belisko
Add new callback to set bypass and acbias. During venc enble disable those bit are updated in devconf1 register. Signed-off-by: Marek Belisko --- drivers/video/omap2/dss/venc.c | 21 + include/video/omapdss.h| 2 ++ 2 files changed, 23 insertions(+) diff --git

[PATCH 1/3] arm: omap2: Export devconf1 bypass and acbias.

2013-10-14 Thread Marek Belisko
devconf1 reg access is localized only in mach-omap2 and we need to export updating of devconf1 from omapdss venc driver (bypass and acbias bits). Add simple api call which update only necessary bits. Signed-off-by: Marek Belisko --- arch/arm/mach-omap2/Makefile | 2 ++ arch/arm/mach-omap2

[PATCH 0/3] omapdss: venc: Add support for bypass and acbias.

2013-10-14 Thread Marek Belisko
. Marek Belisko (3): arm: omap2: Export devconf1 bypass and acbias. video: venc: Add new callback and handling for bypass and acbias setup. omapdss: Add OPA362 analog video amplifier driver. arch/arm/mach-omap2/Makefile | 2 + arch/arm/mach-omap2/control.h

[PATCH 3/3] omapdss: Add OPA362 analog video amplifier driver.

2013-10-14 Thread Marek Belisko
This driver add handlign for opa362 chip which is video amplifier with internal gain and filter. Enable/disable is controlled via single gpio. This driver was tested on gta04 board. Signed-off-by: Marek Belisko Signed-off-by: H. Nikolaus Schaller --- drivers/video/omap2/displays-new/Kconfig

[PATCH 3/3] omapdss: Add OPA362 analog video amplifier driver.

2013-10-14 Thread Marek Belisko
This driver add handlign for opa362 chip which is video amplifier with internal gain and filter. Enable/disable is controlled via single gpio. This driver was tested on gta04 board. Signed-off-by: Marek Belisko ma...@goldelico.com Signed-off-by: H. Nikolaus Schaller h...@goldelico.com

[PATCH 1/3] arm: omap2: Export devconf1 bypass and acbias.

2013-10-14 Thread Marek Belisko
devconf1 reg access is localized only in mach-omap2 and we need to export updating of devconf1 from omapdss venc driver (bypass and acbias bits). Add simple api call which update only necessary bits. Signed-off-by: Marek Belisko ma...@goldelico.com --- arch/arm/mach-omap2/Makefile | 2

[PATCH 0/3] omapdss: venc: Add support for bypass and acbias.

2013-10-14 Thread Marek Belisko
. Marek Belisko (3): arm: omap2: Export devconf1 bypass and acbias. video: venc: Add new callback and handling for bypass and acbias setup. omapdss: Add OPA362 analog video amplifier driver. arch/arm/mach-omap2/Makefile | 2 + arch/arm/mach-omap2/control.h

[PATCH 2/3] video: venc: Add new callback and handling for bypass and acbias setup.

2013-10-14 Thread Marek Belisko
Add new callback to set bypass and acbias. During venc enble disable those bit are updated in devconf1 register. Signed-off-by: Marek Belisko ma...@goldelico.com --- drivers/video/omap2/dss/venc.c | 21 + include/video/omapdss.h| 2 ++ 2 files changed, 23 insertions

[PATCH] omapdss: Add new panel driver for Topolly td028ttec1 LCD.

2013-10-09 Thread Marek Belisko
For communicating with driver is used gpio bitbanging because TD028 does not have a standard compliant SPI interface. It is a 3-wire thing with direction reversal. Communication with display is used only during panel enable/disable so it's not performance issue. Signed-off-by: Marek Belisko

[PATCH] omapdss: Add new panel driver for Topolly td028ttec1 LCD.

2013-10-09 Thread Marek Belisko
For communicating with driver is used gpio bitbanging because TD028 does not have a standard compliant SPI interface. It is a 3-wire thing with direction reversal. Communication with display is used only during panel enable/disable so it's not performance issue. Signed-off-by: Marek Belisko ma

[PATCH] omap2: panel-generic: Added panel parameters for ortus-com37h3m05dtc/99dtc and sharp-lq070y3dg3b.

2013-08-29 Thread Marek Belisko
Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- drivers/video/omap2/displays/panel-generic-dpi.c | 53 1 file changed, 53 insertions(+) diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers/video/omap2/displays/panel-generic

[PATCH] omap2: panel-generic: Added panel parameters for ortus-com37h3m05dtc/99dtc and sharp-lq070y3dg3b.

2013-08-29 Thread Marek Belisko
Signed-off-by: H. Nikolaus Schaller h...@goldelico.com Signed-off-by: Marek Belisko ma...@goldelico.com --- drivers/video/omap2/displays/panel-generic-dpi.c | 53 1 file changed, 53 insertions(+) diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers

[PATCH] power: rx51_battery: Replace hardcoded channels values.

2013-08-21 Thread Marek Belisko
In twl4030_madc header exist defines for fixed channels + add rx51 specific channels and replace all hardcoded channels values. Signed-off-by: Marek Belisko --- drivers/power/rx51_battery.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/power

[PATCH] power: rx51_battery: Replace hardcoded channels values.

2013-08-21 Thread Marek Belisko
In twl4030_madc header exist defines for fixed channels + add rx51 specific channels and replace all hardcoded channels values. Signed-off-by: Marek Belisko marek.beli...@open-nandra.com --- drivers/power/rx51_battery.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff

[PATCH] ARM:dts: Add devicetree for gta04 board.

2013-08-15 Thread Marek Belisko
This adds devicetree for gta04 (Openmoko next generation board) with necessary support for mmc, usb, leds and button. Signed-off-by: Marek Belisko --- This is resurrection of patch sent in March https://lkml.org/lkml/2013/1/24/419 when I got no reply from maintainer. Patch is updated and based

[PATCH] ARM:dts: Add devicetree for gta04 board.

2013-08-15 Thread Marek Belisko
This adds devicetree for gta04 (Openmoko next generation board) with necessary support for mmc, usb, leds and button. Signed-off-by: Marek Belisko ma...@goldelico.com --- This is resurrection of patch sent in March https://lkml.org/lkml/2013/1/24/419 when I got no reply from maintainer. Patch

[PATCH v2] ASoC: Add PCM1681 codec driver.

2013-08-01 Thread Marek Belisko
PCM1681 can be controlled via I2C, SPI or in bootstrap mode (no control mode). This code add support only for I2C mode. Signed-off-by: Marek Belisko --- Changes from v1: - fix de-emphasis handling (disable when invalid freq is used) - constify deemph freq - digital_mute refactoring - remove

[PATCH v2] ASoC: Add PCM1681 codec driver.

2013-08-01 Thread Marek Belisko
PCM1681 can be controlled via I2C, SPI or in bootstrap mode (no control mode). This code add support only for I2C mode. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- Changes from v1: - fix de-emphasis handling (disable when invalid freq is used) - constify deemph freq

Re: [PATCH] ASoC: Add PCM1681 codec driver.

2013-06-27 Thread Marek Belisko
Hi Mark, On 06/26/2013 04:30 PM, Mark Brown wrote: On Wed, Jun 26, 2013 at 03:05:28PM +0200, Marek Belisko wrote: +#define PCM1681_ATT_CONTROL(X) (X <= 6 ? X : X + 9) /* Attenuation level */ Write a function for this. This macro is used when creating controls for channels volume

Re: [PATCH] ASoC: Add PCM1681 codec driver.

2013-06-27 Thread Marek Belisko
Hi Mark, On 06/26/2013 04:30 PM, Mark Brown wrote: On Wed, Jun 26, 2013 at 03:05:28PM +0200, Marek Belisko wrote: +#define PCM1681_ATT_CONTROL(X) (X = 6 ? X : X + 9) /* Attenuation level */ Write a function for this. This macro is used when creating controls for channels volume so

Re: [PATCH] ASoC: Add PCM1681 codec driver.

2013-06-26 Thread Marek Belisko
Hi Daniel, On 06/26/2013 03:16 PM, Daniel Mack wrote: Hi Marek, On 26.06.2013 15:05, Marek Belisko wrote: PCM1681 can be controlled via I2C, SPI or in bootstrap mode. This code add support only for I2C mode. Signed-off-by: Marek Belisko --- .../devicetree/bindings/sound/ti,pcm1681.txt

[PATCH] ASoC: Add PCM1681 codec driver.

2013-06-26 Thread Marek Belisko
PCM1681 can be controlled via I2C, SPI or in bootstrap mode. This code add support only for I2C mode. Signed-off-by: Marek Belisko --- .../devicetree/bindings/sound/ti,pcm1681.txt | 15 + sound/soc/codecs/Kconfig |4 + sound/soc/codecs/Makefile

[PATCH v2] pwm: pwm-tiehrpwm: Use clk_enable/disable instead clk_prepare/unprepare.

2013-06-26 Thread Marek Belisko
u_idle+0x60/0x98) [ 809.000250] [] (cpu_idle+0x60/0x98) from [] (start_kernel+0x1e9/0x234) Remove non atomic clk api calls and use only atomic for enable/disable because can be called from atomic context (led_heartbeat_function is timer callback). Signed-off-by: Marek Belisko --- changes f

[PATCH v2] pwm: pwm-tiehrpwm: Use clk_enable/disable instead clk_prepare/unprepare.

2013-06-26 Thread Marek Belisko
because can be called from atomic context (led_heartbeat_function is timer callback). Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- changes from v1: - add clk_unprepare() to .remove callback + add it also to error handling when probe fails drivers/pwm/pwm-tiehrpwm.c | 13

[PATCH] ASoC: Add PCM1681 codec driver.

2013-06-26 Thread Marek Belisko
PCM1681 can be controlled via I2C, SPI or in bootstrap mode. This code add support only for I2C mode. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- .../devicetree/bindings/sound/ti,pcm1681.txt | 15 + sound/soc/codecs/Kconfig |4 + sound

Re: [PATCH] ASoC: Add PCM1681 codec driver.

2013-06-26 Thread Marek Belisko
Hi Daniel, On 06/26/2013 03:16 PM, Daniel Mack wrote: Hi Marek, On 26.06.2013 15:05, Marek Belisko wrote: PCM1681 can be controlled via I2C, SPI or in bootstrap mode. This code add support only for I2C mode. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- .../devicetree

[PATCH] pwm: pwm-tiehrpwm: Use clk_enable/disable instead clk_prepare/unprepare.

2013-06-18 Thread Marek Belisko
u_idle+0x60/0x98) [ 809.000250] [] (cpu_idle+0x60/0x98) from [] (start_kernel+0x1e9/0x234) Remove non atomic clk api calls and use only atomic for enable/disable because can be called from atomic context (led_heartbeat_function is timer callback). Signed-off-by: Marek Belisko --- drivers/p

[PATCH] pwm: pwm-tiehrpwm: Use clk_enable/disable instead clk_prepare/unprepare.

2013-06-18 Thread Marek Belisko
because can be called from atomic context (led_heartbeat_function is timer callback). Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- drivers/pwm/pwm-tiehrpwm.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm

Re: [PATCH v2 1/2] clk: si5351: Fix clkout rate computation.

2013-05-16 Thread Marek Belisko
On 05/14/2013 09:16 PM, Mike Turquette wrote: Quoting Marek Belisko (2013-05-02 22:53:22) Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Belisko Acked-by: Sebastian Hesselbarth Do either of these patches need to go into clk-fixes? If so

Re: [PATCH v2 1/2] clk: si5351: Fix clkout rate computation.

2013-05-16 Thread Marek Belisko
On 05/14/2013 09:16 PM, Mike Turquette wrote: Quoting Marek Belisko (2013-05-02 22:53:22) Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com Acked-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com

Re: [PATCH 2/2] clk: si5351: Powerdown output when clock rate is 0.

2013-05-07 Thread Marek Belisko
On 05/07/2013 12:07 PM, Sebastian Hesselbarth wrote: On 05/07/2013 10:14 AM, Marek Belisko wrote: When rate is 0 powerdown clock output. Signed-off-by: Marek Belisko --- drivers/clk/clk-si5351.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff

Re: [PATCH 1/2] clk: si5351: Fix msynth_recalc_rate return value when fOUT is 0.

2013-05-07 Thread Marek Belisko
On 05/07/2013 12:03 PM, Sebastian Hesselbarth wrote: On 05/07/2013 10:14 AM, Marek Belisko wrote: When p3 is eual to 0 then result for fOUT is 0. In that case we should return 0 not parent_rate; This issue was causing deadlock in si5351 chip when user set_rate for ms0->clk0 and then set_r

[PATCH 2/2] clk: si5351: Powerdown output when clock rate is 0.

2013-05-07 Thread Marek Belisko
When rate is 0 powerdown clock output. Signed-off-by: Marek Belisko --- drivers/clk/clk-si5351.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index a8fc0f4..e254e76 100644

[PATCH 1/2] clk: si5351: Fix msynth_recalc_rate return value when fOUT is 0.

2013-05-07 Thread Marek Belisko
enable it again (try also manually with i2cset commands). Only power cycle helps. Signed-off-by: Marek Belisko --- drivers/clk/clk-si5351.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index fc215ce..a8fc0f4 100644 --- a/d

[PATCH 1/2] clk: si5351: Fix msynth_recalc_rate return value when fOUT is 0.

2013-05-07 Thread Marek Belisko
it again (try also manually with i2cset commands). Only power cycle helps. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- drivers/clk/clk-si5351.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index fc215ce

Re: [PATCH 1/2] clk: si5351: Fix msynth_recalc_rate return value when fOUT is 0.

2013-05-07 Thread Marek Belisko
On 05/07/2013 12:03 PM, Sebastian Hesselbarth wrote: On 05/07/2013 10:14 AM, Marek Belisko wrote: When p3 is eual to 0 then result for fOUT is 0. In that case we should return 0 not parent_rate; This issue was causing deadlock in si5351 chip when user set_rate for ms0-clk0 and then set_rate

Re: [PATCH 2/2] clk: si5351: Powerdown output when clock rate is 0.

2013-05-07 Thread Marek Belisko
On 05/07/2013 12:07 PM, Sebastian Hesselbarth wrote: On 05/07/2013 10:14 AM, Marek Belisko wrote: When rate is 0 powerdown clock output. Signed-off-by: Marek Beliskomarek.beli...@streamunlimited.com --- drivers/clk/clk-si5351.c | 32 +++- 1 file changed, 19

[PATCH v2 2/2] clk: si5351: Set initial clkout rate when defined in platform data.

2013-05-02 Thread Marek Belisko
Signed-off-by: Marek Belisko --- Changes v1->v2: - update commit message and comment to refer to platform data not DT drivers/clk/clk-si5351.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index cf39e53..24f5536 100

[PATCH v2 1/2] clk: si5351: Fix clkout rate computation.

2013-05-02 Thread Marek Belisko
Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Belisko Acked-by: Sebastian Hesselbarth --- drivers/clk/clk-si5351.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index

[PATCH] ASoC: McASP: Fix receive clock polarity in DAIFMT_NB_NF mode.

2013-05-02 Thread Marek Belisko
edge and macsp must read then on rising edge. Signed-off-by: Marek Belisko --- sound/soc/davinci/davinci-mcasp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 849a187..c46112e 100644 --- a/sound

[PATCH v2] clk: si5351: Allow user to define disabled state for every clock output

2013-05-02 Thread Marek Belisko
From: Sebastian Hesselbarth This patch adds platform data and DT bindings to allow to overwrite the stored disabled state for each clock output. Signed-off-by: Marek Belisko Signed-off-by: Sebastian Hesselbarth --- Changes from v1->v2: Sebastian Hesselbarth send me updated version of pa

[PATCH v2] clk: si5351: Allow user to define disabled state for every clock output

2013-05-02 Thread Marek Belisko
From: Sebastian Hesselbarth sebastian.hesselba...@gmail.com This patch adds platform data and DT bindings to allow to overwrite the stored disabled state for each clock output. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com Signed-off-by: Sebastian Hesselbarth sebastian.hesselba

[PATCH] ASoC: McASP: Fix receive clock polarity in DAIFMT_NB_NF mode.

2013-05-02 Thread Marek Belisko
edge and macsp must read then on rising edge. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- sound/soc/davinci/davinci-mcasp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index

[PATCH v2 1/2] clk: si5351: Fix clkout rate computation.

2013-05-02 Thread Marek Belisko
Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com Acked-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- drivers/clk/clk-si5351.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 2/2] clk: si5351: Set initial clkout rate when defined in platform data.

2013-05-02 Thread Marek Belisko
Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- Changes v1-v2: - update commit message and comment to refer to platform data not DT drivers/clk/clk-si5351.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c

[PATCH] clk: si5351: Allow user to define disabled state for every clock output.

2013-04-30 Thread Marek Belisko
Add platform data and dt bindings to allow user override disabled state. Signed-off-by: Marek Belisko --- .../devicetree/bindings/clock/silabs,si5351.txt|5 +++ drivers/clk/clk-si5351.c | 36 +--- include/linux/platform_data/si5351.h

[PATCH 1/1] ASoC: McASP: Add device tree binding for defining separate clock and sync used by tx and rx.

2013-04-30 Thread Marek Belisko
Add new property tx-rx-clk-separate which we can distinquish between common and separate clock for tx and rx blocks. Signed-off-by: Marek Belisko --- .../bindings/sound/davinci-mcasp-audio.txt |2 ++ include/linux/platform_data/davinci_asp.h |1 + sound/soc/davinci

[PATCH 1/1] ASoC: McASP: Add device tree binding for defining separate clock and sync used by tx and rx.

2013-04-30 Thread Marek Belisko
Add new property tx-rx-clk-separate which we can distinquish between common and separate clock for tx and rx blocks. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- .../bindings/sound/davinci-mcasp-audio.txt |2 ++ include/linux/platform_data/davinci_asp.h

[PATCH] clk: si5351: Allow user to define disabled state for every clock output.

2013-04-30 Thread Marek Belisko
Add platform data and dt bindings to allow user override disabled state. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- .../devicetree/bindings/clock/silabs,si5351.txt|5 +++ drivers/clk/clk-si5351.c | 36 +--- include/linux

Re: [PATCH v2 2/3] ASoC: spdif_transmitter: Add DT support.

2013-04-29 Thread Marek Belisko
Dear Sebastian Hesselbarth, On 04/26/2013 09:24 PM, Sebastian Hesselbarth wrote: On 04/25/2013 03:13 PM, Marek Belisko wrote: Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty Signed-off-by: Marek Belisko --- .../bindings/sound/spdif-transmitter.txt

Re: [PATCH v2 2/3] ASoC: spdif_transmitter: Add DT support.

2013-04-29 Thread Marek Belisko
Dear Sebastian Hesselbarth, On 04/26/2013 09:24 PM, Sebastian Hesselbarth wrote: On 04/25/2013 03:13 PM, Marek Belisko wrote: Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachratymichal.bachr...@streamunlimited.com Signed-off-by: Marek Beliskomarek.beli

[PATCH] ASoC: McASP: Add pins output direction for rx clocks when configured in CBS_CFS format.

2013-04-26 Thread Marek Belisko
When McASP is bit clock and frame clock master enable pin output for rx clocks. Signed-off-by: Marek Belisko --- sound/soc/davinci/davinci-mcasp.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c

[PATCH] ASoC: McASP: Add pins output direction for rx clocks when configured in CBS_CFS format.

2013-04-26 Thread Marek Belisko
When McASP is bit clock and frame clock master enable pin output for rx clocks. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- sound/soc/davinci/davinci-mcasp.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/davinci/davinci-mcasp.c b

[PATCH v2 1/3] ASoC: spdif_transceiver: Change driver filename to spdif_transmitter.c.

2013-04-25 Thread Marek Belisko
Transceiver usually means receiver + transmitter. This codec can do only transmit. Update driver accordingly. Signed-off-by: Marek Belisko --- sound/soc/codecs/Makefile |2 +- .../{spdif_transciever.c => spdif_transmitter.c} |0 2 files changed, 1 insert

[PATCH v2 2/3] ASoC: spdif_transmitter: Add DT support.

2013-04-25 Thread Marek Belisko
Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty Signed-off-by: Marek Belisko --- .../bindings/sound/spdif-transmitter.txt | 10 ++ sound/soc/codecs/spdif_transmitter.c | 10 ++ 2 files changed, 20 insertions

[PATCH v2 3/3] ASoC: spdif_receiver: Add DT support.

2013-04-25 Thread Marek Belisko
Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty Signed-off-by: Marek Belisko --- .../devicetree/bindings/sound/spdif-receiver.txt | 10 ++ sound/soc/codecs/spdif_receiver.c | 10 ++ 2 files changed, 20 insertions

[PATCH v2 0/3] ASoC: Add devicetree support for spdif dummy codecs.

2013-04-25 Thread Marek Belisko
changes from v1 (for patch 2 and 3): - add prefix linux for compatible property (for both tx and rx) - rename spdif_transceiver.c to spdif_transmitter.c - add bindings documentation Marek Belisko (3): ASoC: spdif_transceiver: Change driver filename to spdif_transmitter.c. ASoC

[PATCH v2 0/3] ASoC: Add devicetree support for spdif dummy codecs.

2013-04-25 Thread Marek Belisko
changes from v1 (for patch 2 and 3): - add prefix linux for compatible property (for both tx and rx) - rename spdif_transceiver.c to spdif_transmitter.c - add bindings documentation Marek Belisko (3): ASoC: spdif_transceiver: Change driver filename to spdif_transmitter.c. ASoC

[PATCH v2 2/3] ASoC: spdif_transmitter: Add DT support.

2013-04-25 Thread Marek Belisko
Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- .../bindings/sound/spdif-transmitter.txt | 10 ++ sound/soc/codecs/spdif_transmitter.c

[PATCH v2 3/3] ASoC: spdif_receiver: Add DT support.

2013-04-25 Thread Marek Belisko
Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- .../devicetree/bindings/sound/spdif-receiver.txt | 10 ++ sound/soc/codecs/spdif_receiver.c

[PATCH v2 1/3] ASoC: spdif_transceiver: Change driver filename to spdif_transmitter.c.

2013-04-25 Thread Marek Belisko
Transceiver usually means receiver + transmitter. This codec can do only transmit. Update driver accordingly. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- sound/soc/codecs/Makefile |2 +- .../{spdif_transciever.c = spdif_transmitter.c} |0

[PATCH 2/2] clk: si5351: Apply rate when clock-frequency is defined in devicetree.

2013-04-23 Thread Marek Belisko
clock-frequency property from devicetree was read but never used. Apply defined rate when clock is registered. Signed-off-by: Marek Belisko --- drivers/clk/clk-si5351.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index

[PATCH 1/2] clk: si5351: Fix clkout rate computation.

2013-04-23 Thread Marek Belisko
Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Belisko --- drivers/clk/clk-si5351.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index 8927284..cf39e53 100644

[PATCH 1/2] clk: si5351: Fix clkout rate computation.

2013-04-23 Thread Marek Belisko
Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- drivers/clk/clk-si5351.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index

[PATCH 2/2] clk: si5351: Apply rate when clock-frequency is defined in devicetree.

2013-04-23 Thread Marek Belisko
clock-frequency property from devicetree was read but never used. Apply defined rate when clock is registered. Signed-off-by: Marek Belisko marek.beli...@streamunlimited.com --- drivers/clk/clk-si5351.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/clk-si5351.c b

[PATCH] Trivial: Fix typo in arch/arm/mach-mvebu/irq-armada-370-xp.c

2013-03-15 Thread Marek Belisko
Signed-off-by: Marek Belisko --- arch/arm/mach-mvebu/irq-armada-370-xp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/irq-armada-370-xp.c b/arch/arm/mach-mvebu/irq-armada-370-xp.c index 274ff58..d8dbcc1 100644 --- a/arch/arm/mach-mvebu/irq-armada

[PATCH] Trivial: Fix typo in arch/arm/mach-mvebu/irq-armada-370-xp.c

2013-03-15 Thread Marek Belisko
Signed-off-by: Marek Belisko marek.beli...@open-nandra.com --- arch/arm/mach-mvebu/irq-armada-370-xp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/irq-armada-370-xp.c b/arch/arm/mach-mvebu/irq-armada-370-xp.c index 274ff58..d8dbcc1 100644 --- a/arch

[PATCH] arm/dts: Add basic support for gta04 (Openmoko next generation) board.

2013-01-24 Thread Marek Belisko
Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 94 + 1 file changed, 94 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-gta04.dts diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts new file

<    1   2   3   4   5   6   >