[PATCH v2 0/2] mfd: da9063: Register device with proper irq_base

2014-11-21 Thread Dmitry Lavnikevich
This patchset fixes rtc-da9063 registration failure caused by platform_get_irq_byname() returning local irq instead of virtual one. In first patch version it was supposed to just transform local IRQ to VIRQ in rtc-da9063 driver but after discussion in [1] it was decided to register mfd device with

[PATCH v2 2/2] regulator: da9063: Do not transform local IRQ to virtual

2014-11-21 Thread Dmitry Lavnikevich
Call platform_get_irq_byname() already returns VIRQ instead of local IRQ. Passing this value to regmap_irq_get_virq() causes error which results in IRQ registration failure. This patch fixes such behaviour. Signed-off-by: Dmitry Lavnikevich --- drivers/regulator/da9063-regulator.c | 19

[PATCH v2 1/2] mfd: da9063: Get irq base dynamically before registering device

2014-11-21 Thread Dmitry Lavnikevich
After registering mfd device with proper irq_base platform_get_irq_byname() calls will return VIRQ instead of local IRQ. This fixes da9063 rtc registration issue: da9063-rtc da9063-rtc: Failed to request ALARM IRQ 1: -22 Signed-off-by: Dmitry Lavnikevich --- drivers/mfd/da9063-core.c | 4

Re: [PATCH] rtc: da9063: Fix ALARM interrupt registration.

2014-11-21 Thread Dmitry Lavnikevich
> On 20Nov, 2014, at 15:43, Opensource [Steve Twiss] > wrote: > > On 20 November 2014 13:09 Dmitry Lavnikevich wrote: > [...] >>> >>> da9063-rtc da9063-rtc: Failed to request ALARM IRQ -22: -22 >>> da9063-rtc: probe of da9063-rtc failed with error -22

Re: [PATCH] rtc: da9063: Fix ALARM interrupt registration.

2014-11-20 Thread Dmitry Lavnikevich
> On 20Nov, 2014, at 12:23, Opensource [Steve Twiss] > wrote: > > On 20 November 2014 09:55 Dmitry Lavnikevich wrote: > >> Call platform_get_irq_byname() returns local IRQ number. Use >> regmap_irq_get_virq() to get VIRQ instead. >> This fixes rtc initializ

[PATCH] rtc: da9063: Fix ALARM interrupt registration.

2014-11-20 Thread Dmitry Lavnikevich
Call platform_get_irq_byname() returns local IRQ number. Use regmap_irq_get_virq() to get VIRQ instead. This fixes rtc initialization error: da9063-rtc da9063-rtc: Failed to request ALARM IRQ 1: -22 Signed-off-by: Dmitry Lavnikevich --- drivers/rtc/rtc-da9063.c | 1 + 1 file changed, 1

[PATCH v6 2/3] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-11-04 Thread Dmitry Lavnikevich
Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 101 ++- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 15 2 files changed, 114

[PATCH v6 3/3] ARM: imx_v6_v7_defconfig: enable tlv320aic3x audio codec by default

2014-11-04 Thread Dmitry Lavnikevich
Used on Phytec PBAB01 board. Signed-off-by: Dmitry Lavnikevich --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 8fca6e2..cac07d6 100644 --- a/arch/arm/configs

[PATCH v6 1/3] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-11-04 Thread Dmitry Lavnikevich
@020e/i2c2grp imx6q-pinctrl 20e.iomuxc: no groups defined in /soc/aips-bus@0200/iomuxc@020e/i2c3grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c2grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c3grp Signed-off-by: Dmitry Lavnikevich --- arch/arm

[PATCH v6 0/3] Add Phytec pbab01 audio support

2014-11-04 Thread Dmitry Lavnikevich
This version of patchset contains following style changes since v5: - nodes sorted in alphabetical order; - pinctrl entries sorted alphabetically; - new line inserted between nodes. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vge

Re: [PATCH v5 2/3] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-11-04 Thread Dmitry Lavnikevich
> On 3Nov, 2014, at 09:14, Shawn Guo wrote: > On Wed, Oct 29, 2014 at 04:47:03PM +0300, Dmitry Lavnikevich wrote: >> +fsl,audmux-port = <4>; >> +fsl,port-config = < >> +0x >> +

[PATCH v5 1/3] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-10-29 Thread Dmitry Lavnikevich
@020e/i2c2grp imx6q-pinctrl 20e.iomuxc: no groups defined in /soc/aips-bus@0200/iomuxc@020e/i2c3grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c2grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c3grp Signed-off-by: Dmitry Lavnikevich --- arch/arm

[PATCH v5 2/3] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-10-29 Thread Dmitry Lavnikevich
Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 100 ++- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 15 2 files changed, 113

[PATCH v5 0/3] Add Phytec pbab01 audio support

2014-10-29 Thread Dmitry Lavnikevich
By mistake previous patchset versions was sent as in-reply-to to previous patchset versions, so they may have been lost among other mails. One of pathces was already applied by Mark Brown, here is 3 patches implementing audio support on Phytec phyFLEX-i.MX6 boards. This patchset version only rena

[PATCH v5 3/3] ARM: imx_v6_v7_defconfig: enable tlv320aic3x audio codec by default

2014-10-29 Thread Dmitry Lavnikevich
Used on Phytec PBAB01 board. Signed-off-by: Dmitry Lavnikevich --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 8fca6e276b69..cac07d67b933 100644 --- a/arch/arm/configs

[PATCH v4 RESEND 2/3] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-10-22 Thread Dmitry Lavnikevich
Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 100 ++- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 15 2 files changed, 113

[PATCH v4 RESEND 3/3] ARM: imx_v6_v7_defconfig: enable tlv320aic3x audio codec by default

2014-10-22 Thread Dmitry Lavnikevich
Used on Phytec PBAB01 board. Signed-off-by: Dmitry Lavnikevich --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 8fca6e276b69..cac07d67b933 100644 --- a/arch/arm/configs

[PATCH v4 0/3 RESEND] Add Phytec pbab01 audio support

2014-10-22 Thread Dmitry Lavnikevich
Patch fixing PLL D configuration (number 4 in previous patchset) was already accepted by Mark Brown. No notes or comments on other patches was made so resending them in case they were lost. Based on branch for-next branch of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git -- To un

[PATCH v4 RESEND 1/3] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-10-22 Thread Dmitry Lavnikevich
@020e/i2c2grp imx6q-pinctrl 20e.iomuxc: no groups defined in /soc/aips-bus@0200/iomuxc@020e/i2c3grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c2grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c3grp Signed-off-by: Dmitry Lavnikevich --- arch/arm

[PATCH v4 3/4] ARM: imx_v6_v7_defconfig: enable tlv320aic3x audio codec by default

2014-10-03 Thread Dmitry Lavnikevich
Used on Phytec PBAB01 board. Signed-off-by: Dmitry Lavnikevich --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 8fca6e276b69..cac07d67b933 100644 --- a/arch/arm/configs

[PATCH v4 4/4] ASoC: tlv320aic3x: fix PLL D configuration

2014-10-03 Thread Dmitry Lavnikevich
AIC3X_PLL_PROGC_REG also remains not written and we get wrong playback speed. In this patch snd_soc_read() is used to get cached pll values and snd_soc_write() (unlike regcache_sync() this function doesn't bypasses hardware default values) to write them to registers. Signed-off-by: Dmitry Lavnikevich ---

[PATCH v4 0/4] Add Phytec pbab01 audio support

2014-10-03 Thread Dmitry Lavnikevich
New phyFLEX board audio patchset version. Small changes made since last version: - removed unnecessary 'regulator-always-on' in fixed regulators dts description; - removed 'fsl,mode = "i2s-slave"' from ssi2 node in dts since it was already removed from fsl-ssi driver. Based on branch for-nex

[PATCH v4 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-10-03 Thread Dmitry Lavnikevich
Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 100 ++- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 15 2 files changed, 113

[PATCH v4 1/4] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-10-03 Thread Dmitry Lavnikevich
@020e/i2c2grp imx6q-pinctrl 20e.iomuxc: no groups defined in /soc/aips-bus@0200/iomuxc@020e/i2c3grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c2grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c3grp Signed-off-by: Dmitry Lavnikevich --- arch/arm

Re: [PATCH v3 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-10-01 Thread Dmitry Lavnikevich
On 01/10/14 16:45, Fabio Estevam wrote: On Wed, Oct 1, 2014 at 10:40 AM, Dmitry Lavnikevich wrote: No need to have this 'regulator-always-on' why is there no need for 'regulator-alweys-on'? I see it in For a regulator that is not GPIO controlled you don't need

Re: [PATCH v3 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-10-01 Thread Dmitry Lavnikevich
On 01/10/14 15:11, Fabio Estevam wrote: On Tue, Sep 16, 2014 at 5:08 AM, Dmitry Lavnikevich wrote: + regulators { + sound_1v8: regulator@2 { We usually start counting from @0. ... >> + }; >> + >> + sound_3v3: regulator@3

Re: [PATCH v3 0/4] Add Phytec pbab01 audio support

2014-10-01 Thread Dmitry Lavnikevich
Hello, I have resent my patchset rebased on git git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git couple weeks ago. Was it lost under other mails or should I change something else? Best regards, Lavnikevich Dmitry -- To unsubscribe from this list: send the line "unsubscribe lin

[PATCH v3 1/4] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-09-16 Thread Dmitry Lavnikevich
@020e/i2c2grp imx6q-pinctrl 20e.iomuxc: no groups defined in /soc/aips-bus@0200/iomuxc@020e/i2c3grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c2grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c3grp Signed-off-by: Dmitry Lavnikevich --- arch/arm

[PATCH v3 3/4] ARM: imx_v6_v7_defconfig: enable tlv320aic3x audio codec by default

2014-09-16 Thread Dmitry Lavnikevich
Used on Phytec PBAB01 board. Signed-off-by: Dmitry Lavnikevich --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 8fca6e276b69..cac07d67b933 100644 --- a/arch/arm/configs

[PATCH v3 4/4] ASoC: tlv320aic3x: fix PLL D configuration

2014-09-16 Thread Dmitry Lavnikevich
AIC3X_PLL_PROGC_REG also remains not written and we get wrong playback speed. In this patch snd_soc_read() is used to get cached pll values and snd_soc_write() (unlike regcache_sync() this function doesn't bypasses hardware default values) to write them to registers. Signed-off-by: Dmitry Lavnikevich ---

[PATCH v3 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-16 Thread Dmitry Lavnikevich
Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 103 ++- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 15 2 files changed, 116

[PATCH v3 0/4] Add Phytec pbab01 audio support

2014-09-16 Thread Dmitry Lavnikevich
New phyFLEX board audio patchset version. Defines from dt-bindings/sound/fsl-imx-audmux.h are now used in audmux configuration instead of hardcoded register values. Also patchset is now based on branch for-next from git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git which means: -

Re: [alsa-devel] [PATCH v2 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-15 Thread Dmitry Lavnikevich
On 12/09/14 19:40, Fabio Estevam wrote: On Fri, Sep 12, 2014 at 1:26 PM, Alexander Shiyan wrote: Fri, 12 Sep 2014 19:04:30 +0300 от Dmitry Lavnikevich : Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich

Re: [PATCH v2 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-15 Thread Dmitry Lavnikevich
On 12/09/14 19:14, Alexander Shiyan wrote: Fri, 12 Sep 2014 19:04:30 +0300 от Dmitry Lavnikevich : +&audmux { + status = "okay"; + + ssi2 { + fsl,audmux-port = <1>; + fsl,port-config = <0xa500 0x8000>

[PATCH v2 0/5] Add Phytec pbab01 audio support

2014-09-12 Thread Dmitry Lavnikevich
Since previous patchset version asoc machine driver imx-tlv320aic3x was replaced with simple-audio-card and audmux. Also changed commit message for first patch, which now explicitly states that it has more than stylistic purpose. -- To unsubscribe from this list: send the line "unsubscribe linux-k

[PATCH v2 4/4] ASoC: tlv320aic3x: fix PLL D configuration

2014-09-12 Thread Dmitry Lavnikevich
AIC3X_PLL_PROGC_REG also remains not written and we get wrong playback speed. In this patch snd_soc_read() is used to get cached pll values and snd_soc_write() (unlike regcache_sync() this function doesn't bypasses hardware default values) to write them to registers. Signed-off-by: Dmitry Lavnikevich ---

[PATCH v2 1/4] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-09-12 Thread Dmitry Lavnikevich
@020e/i2c2grp imx6q-pinctrl 20e.iomuxc: no groups defined in /soc/aips-bus@0200/iomuxc@020e/i2c3grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c2grp imx6q-pinctrl 20e.iomuxc: unable to find group for node i2c3grp Signed-off-by: Dmitry Lavnikevich --- arch/arm

[PATCH v2 3/4] ARM: imx_v6_v7_defconfig: enable tlv320aic3x and simple-audio-card by default

2014-09-12 Thread Dmitry Lavnikevich
Used on Phytec PBAB01 board. Signed-off-by: Dmitry Lavnikevich --- arch/arm/configs/imx_v6_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 16cfec4385c8..b344290c537b 100644 --- a/arch/arm

[PATCH v2 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-12 Thread Dmitry Lavnikevich
Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 93 +++- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 15 + 2 files changed, 106

Re: [PATCH 1/5] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-09-12 Thread Dmitry Lavnikevich
On 11/09/14 11:47, Philipp Zabel wrote: Am Mittwoch, den 10.09.2014, 16:46 +0300 schrieb Dmitry Lavnikevich: Since pins and frequency are specific to module (pfla02), not base board (pbab02), it is better to be initialized in corresponding dts file. Signed-off-by: Dmitry Lavnikevich I have

Re: [alsa-devel] [PATCH 2/5] ASoC: fsl: add imx-tlv320aic3x machine driver

2014-09-11 Thread Dmitry Lavnikevich
Hi, On 11/09/14 09:40, Markus Pargmann wrote: On Wed, Sep 10, 2014 at 11:14:15AM -0700, Nicolin Chen wrote: On Wed, Sep 10, 2014 at 7:27 AM, Markus Pargmann wrote: Hi, On Wed, Sep 10, 2014 at 04:46:46PM +0300, Dmitry Lavnikevich wrote: This is driver for i.MX6 boards with tlv320aic3x audio

[PATCH 0/5] Add Phytec pbab01 audio support

2014-09-10 Thread Dmitry Lavnikevich
This patchset implements audio support on Phytec's phyFLEX-i.MX6 boards. This includes creating imx-tlv320aic3x machine driver, fixing tlv320aic3x driver playback speed issue and enabling audio for pbab01 itself. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

[PATCH 2/5] ASoC: fsl: add imx-tlv320aic3x machine driver

2014-09-10 Thread Dmitry Lavnikevich
This is driver for i.MX6 boards with tlv320aic3x audio codecs. Signed-off-by: Dmitry Lavnikevich --- .../bindings/sound/fsl,imx-audio-tlv320aic3x.txt | 27 sound/soc/fsl/Kconfig | 13 ++ sound/soc/fsl/Makefile | 2 + sound/soc

[PATCH 1/5] ARM: dts: pbab01: move i2c pins and frequency configuration into pfla02

2014-09-10 Thread Dmitry Lavnikevich
Since pins and frequency are specific to module (pfla02), not base board (pbab02), it is better to be initialized in corresponding dts file. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 22 -- arch/arm/boot/dts/imx6qdl-phytec-pfla02

[PATCH 3/5] ARM: imx_v6_v7_defconfig: enable imx-tlv320aic3x by default

2014-09-10 Thread Dmitry Lavnikevich
Signed-off-by: Dmitry Lavnikevich --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 16cfec4385c8..66a6a5c6e75a 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b

[PATCH 5/5] ASoC: tlv320aic3x: fix PLL D configuration

2014-09-10 Thread Dmitry Lavnikevich
AIC3X_PLL_PROGC_REG also remains not written and we get wrong playback speed. In this patch snd_soc_read() is used to get cached pll values and snd_soc_write() (unlike regcache_sync() this function doesn't bypasses hardware default values) to write them to registers. Signed-off-by: Dmitry Lavnikevich ---

[PATCH 4/5] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-10 Thread Dmitry Lavnikevich
Audio on phyFLEX boards is presented by tlv320aic3007 codec connected over SSI interface. Signed-off-by: Dmitry Lavnikevich --- arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 59 +++- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 15 +++ 2 files changed, 72