Re: [RFC 05/19] clk: imx: clk-busy: Switch to clk_hw based API

2019-03-23 Thread Daniel Baluta
On Fri, Mar 22, 2019 at 5:39 PM Abel Vesa wrote: > > Switch all the clk_busy clock registering functions > to clk_hw based API. > Hi Abel, The commit message should explain why such a change is needed. thanks, Daniel. > Signed-off-by: Abel Vesa > --- > drivers/clk/imx/clk-busy.c | 30

[PATCH v7 1/4] arm64: dts: imx8mq: Add SDMA nodes

2019-03-19 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang Signed-off-by: Daniel Baluta Reviewed-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v7 4/4] arm64: dts: imx8mq-evk: Enable audio codec wm8524

2019-03-19 Thread Daniel Baluta
machine driver to connect them into a sound card. Signed-off-by: Daniel Baluta Reviewed-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 48 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot

[PATCH v7 0/4] Enable wm8524 on i.MX8MQ-EVK

2019-03-19 Thread Daniel Baluta
ng Changes since v2: - s/QM/MQ after Chris comments Changes since v1: - added cover letter - remove "fsl,imx8mq-sdma" compatible for sdma. Daniel Baluta (4): arm64: dts: imx8mq: Add SDMA nodes bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string arm

[PATCH v7 3/4] arm64: dts: imx8mq: Add SAI2 node

2019-03-19 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region. Signed-off-by: Daniel Baluta Reviewed-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale

[PATCH v7 2/4] bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

2019-03-19 Thread Daniel Baluta
Add imx8mq sdma support. Signed-off-by: Daniel Baluta Reviewed-by: Rob Herring Reviewed-by: Fabio Estevam --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation

Re: [RFC] clk: imx: Allow re-parenting by default on set rate

2019-03-13 Thread Daniel Baluta
On Wed, Mar 13, 2019 at 12:42 PM Sascha Hauer wrote: > > On Mon, Mar 11, 2019 at 10:41:40AM +, Abel Vesa wrote: > > On 19-03-11 11:28:25, Sascha Hauer wrote: > > > Hi Abel, > > > > > > On Thu, Mar 07, 2019 at 09:20:37AM +, Abel Vesa wrote: > > > > By default, the muxes should re-parent on

Re: [PATCH 3/3] arm64: librem5-devkit: Add defconfig for the Librem5 devkit

2019-03-12 Thread Daniel Baluta
On Tue, Mar 12, 2019 at 1:47 AM Angus Ainslie (Purism) wrote: > > Signed-off-by: Angus Ainslie (Purism) Hi Angus, My impression was that for arm64 world there will be only one defconfig. So, I'm not sure if this patch would be acceptable. thanks, Daniel. > --- >

Re: [PATCH 2/3] arm64: dts: fsl: Build the Librem5 devkit devicetree

2019-03-12 Thread Daniel Baluta
On Tue, Mar 12, 2019 at 1:48 AM Angus Ainslie (Purism) wrote: > > Compile the Librem5 devkit device tree > > Signed-off-by: Angus Ainslie (Purism) > --- > arch/arm64/boot/dts/freescale/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/freescale/Makefile >

Re: [PATCH v2] ASoC: fsl: sai: Fix underrrun for playback stream start

2019-03-11 Thread Daniel Baluta
On Fri, Mar 8, 2019 at 10:59 PM Nicolin Chen wrote: > > On Fri, Mar 08, 2019 at 05:39:30PM +, Daniel Baluta wrote: > > > @@ -542,6 +544,11 @@ static int fsl_sai_trigger(struct snd_pcm_substream > > *substream, int cmd, > > case SNDRV_PCM_TR

[PATCH v2] ASoC: fsl: sai: Fix underrrun for playback stream start

2019-03-08 Thread Daniel Baluta
[1] https://www.nxp.com/docs/en/reference-manual/IMX8DQXPRM.pdf Signed-off-by: Shengjiu Wang Signed-off-by: Daniel Baluta --- Changes since v1: - as per Fabio's request clarify the issue and the solution - move words writing before enabling DMA request sound/soc/fsl/fsl_sai.c | 7 +++ 1 fi

Re: [PATCH] ASoC: fsl: sai: Reduce underrun when stream starts

2019-03-08 Thread Daniel Baluta
On Fri, Mar 8, 2019 at 6:16 PM Fabio Estevam wrote: > > Hi Daniel, > > On Fri, Mar 8, 2019 at 1:09 PM Daniel Baluta wrote: > > > > From: Shengjiu Wang > > > > Write initial words into SAI FIFO to reduce the underrun > > error. > > Please provi

[PATCH] ASoC: fsl: sai: Reduce underrun when stream starts

2019-03-08 Thread Daniel Baluta
From: Shengjiu Wang Write initial words into SAI FIFO to reduce the underrun error. Signed-off-by: Shengjiu Wang Signed-off-by: Daniel Baluta --- sound/soc/fsl/fsl_sai.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index

[PATCH v6 3/4] arm64: dts: imx8mq: Add SAI2 node

2019-03-08 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 9d48450453fb

[PATCH v6 4/4] arm64: dts: imx8mq-evk: Enable audio codec wm8952

2019-03-08 Thread Daniel Baluta
-card machine driver to connect them into a sound card. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 46 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts

[PATCH v6 1/4] arm64: dts: imx8mq: Add SDMA nodes

2019-03-08 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Reviewed-by: Fabio Estevam Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1

[PATCH v6 0/4] Enable wm8524 on i.MX8MQ-EVK

2019-03-08 Thread Daniel Baluta
ng Changes since v2: - s/QM/MQ after Chris comments Changes since v1: - added cover letter - remove "fsl,imx8mq-sdma" compatible for sdma. Daniel Baluta (4): arm64: dts: imx8mq: Add SDMA nodes bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

[PATCH v6 2/4] bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

2019-03-08 Thread Daniel Baluta
Add imx8mq sdma support. Reviewed-by: Rob Herring Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx

Re: [PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable wm8524 codec

2019-03-08 Thread Daniel Baluta
On Fri, Mar 8, 2019 at 12:32 PM Fabio Estevam wrote: > > Hi Daniel, > > On Fri, Mar 1, 2019 at 12:53 PM Daniel Baluta wrote: > > > They are used by simple-card.c machine driver. > > > > asoc_simple_card_parse_clk > > -> /* Parse dai-

[PATCH v5 4/4] arm64: dts: imx8mq-evk: Enable audio codec wm8524

2019-03-01 Thread Daniel Baluta
-card machine driver to connect them into a sound card. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 48 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts

[PATCH v5 1/4] arm64: dts: imx8mq: Add SDMA nodes

2019-03-01 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Reviewed-by: Fabio Estevam Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1

[PATCH v5 3/4] arm64: dts: imx8mq: Add SAI2 node

2019-03-01 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 9d48450453fb

[PATCH v5 2/4] bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

2019-03-01 Thread Daniel Baluta
Add imx8mq sdma support. Reviewed-by: Rob Herring Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx

[PATCH v5 0/4] Enable wm8524 on i.MX8MQ-EVK

2019-03-01 Thread Daniel Baluta
l,imx8mq-sdma" compatible for sdma. Daniel Baluta (4): arm64: dts: imx8mq: Add SDMA nodes bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string arm64: dts: imx8mq: Add SAI2 node arm64: dts: imx8mq-evk: Enable audio codec wm8952 .../devicetree/bindings/dma/fsl-imx-sdma.tx

Re: [PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable wm8524 codec

2019-03-01 Thread Daniel Baluta
On Thu, Feb 28, 2019 at 11:09 PM Fabio Estevam wrote: > > On Wed, Feb 27, 2019 at 3:38 AM Daniel Baluta wrote: > > > + > > + wm8524: audio-codec-0 { > > This -0 is not needed as we have a single codec on this board. Ok, will fix. > > > +

Re: [PATCH v4 3/5] arm64: dts: imx8mq: Add SAI2 node

2019-03-01 Thread Daniel Baluta
On Thu, Feb 28, 2019 at 8:49 PM Fabio Estevam wrote: > > On Wed, Feb 27, 2019 at 3:38 AM Daniel Baluta wrote: > > > + sai2: sai@308b { > > + #sound-dai-cells = <0>; > > +

[PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable wm8524 codec

2019-02-26 Thread Daniel Baluta
This uses simple-audio-card machine driver adding 1 CPU DAI and 1 Codec DAI. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot

[PATCH v4 3/5] arm64: dts: imx8mq: Add SAI2 node

2019-02-26 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 9d48450453fb

[PATCH v4 1/5] arm64: dts: imx8mq: Add SDMA nodes

2019-02-26 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22 insertions

[PATCH v4 4/5] arm64: dts: imx8mq-evk: Enable SAI2 node

2019-02-26 Thread Daniel Baluta
This sets up clock hierarchy and pin configuration. Use PLL1 to derive a proper rate for playing files with a rate multiple of 8000. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64

[PATCH v4 0/5] Enable wm8524 on i.MX8MQ-EVK

2019-02-26 Thread Daniel Baluta
is comments Changes since v1: - added cover letter - remove "fsl,imx8mq-sdma" compatible for sdma. Daniel Baluta (5): arm64: dts: imx8mq: Add SDMA nodes bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string arm64: dts: imx8mq: Add SAI2 node arm64: dts

[PATCH v4 2/5] bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

2019-02-26 Thread Daniel Baluta
Add imx8mq sdma support. Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt index

Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ

2019-02-26 Thread Daniel Baluta
On Tue, Feb 26, 2019 at 3:10 PM Fabio Estevam wrote: > > On Tue, Feb 26, 2019 at 10:05 AM Daniel Baluta > wrote: > > > I get your point here. But for the moment it is identical with > > "fsl,imx7d-sdma" so there is no need to add it now! > > > > S

Re: [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node

2019-02-26 Thread Daniel Baluta
On Tue, Feb 26, 2019 at 2:55 PM Fabio Estevam wrote: > > On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta wrote: > > > > SAI2 is part of AIPS-3 memory region and it's the DAI through > > which the wm8524 codec gets its data. > > Please do not mention wm8524 in

Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ

2019-02-26 Thread Daniel Baluta
On Tue, Feb 26, 2019 at 2:53 PM Fabio Estevam wrote: > > Hi Daniel, > > On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta wrote: > > > > On i.MX8MQ we can start the party using the wm8524 codec > > which gets it's data through the SAI2 interface. > > > >

[PATCH v3 5/5] arm64: dts: imx8mq: Enable wm8524 codec

2019-02-25 Thread Daniel Baluta
This uses simple-audio-card machine driver adding 1 CPU DAI and 1 Codec DAI. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot

[PATCH v3 3/5] arm64: dts: imx8mq: Add SAI pinctrl configuration

2019-02-25 Thread Daniel Baluta
This sets the pin configuration for SAI pins BLCK/MCLK/FSYNC/DATA. GPIO_01 is used for mute. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64

[PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node

2019-02-25 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region and it's the DAI through which the wm8524 codec gets its data. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch

[PATCH v3 4/5] arm64: dts: imx8mq: Enable SAI2 for wm8524 codec

2019-02-25 Thread Daniel Baluta
This enables SAI2 digital audio interface to be used with wm8524 codec. wm8524 works only in slave mode, so we make sure that IMX8MQ_CLK_SAI2 has an appropriate frequency in order to easily derive rates divisible with 8000. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq

[PATCH v3 1/5] arm64: dts: imx8mq: Add SDMA nodes

2019-02-25 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22 insertions

[PATCH v3 0/5] Enable wm8524 on i.MX8MQ

2019-02-25 Thread Daniel Baluta
: - s/QM/MQ after Chris comments Changes since v1: - added cover letter - remove "fsl,imx8mq-sdma" compatible for sdma. Daniel Baluta (5): arm64: dts: imx8mq: Add SDMA nodes arm64: dts: imx8mq: Add SAI2 node arm64: dts: imx8mq: Add SAI pinctrl configurati

Re: [PATCH 0/5 v2] Enable wm8524 on i.MX8MQ

2019-02-25 Thread Daniel Baluta
On Mon, Feb 25, 2019 at 4:02 PM Chris Spencer wrote: > > Hi Daniel, > > On Mon, 25 Feb 2019 at 13:26, Daniel Baluta wrote: > > arm64: dts: imx8mq: Add SDMA nodes > > arm64: dts: imx8mq: Add SAI2 node > > arm64: dts: imx8qm: Add SAI pinctrl configuration &g

Re: [PATCH v6 2/3] dmaengine: imx-sdma: add a test for imx8mq multi sdma devices

2019-02-25 Thread Daniel Baluta
; SAI only work with sdma2 not sdma1. To make sure the sdma channel is from > the correct sdma device, use the node pointer to match. > > Signed-off-by: Angus Ainslie (Purism) > Reviewed-by: Lucas Stach Thanks Angus for the patch! Tested-by: Daniel Baluta > --- > drivers/

[PATCH 4/5 v2] arm64: dts: imx8qm: Enable SAI2 for wm8524 codec

2019-02-25 Thread Daniel Baluta
This enables SAI2 digital audio interface to be used with wm8524 codec. wm8524 works only in slave mode, so we make sure that IMX8MQ_CLK_SAI2 has an appropriate frequency in order to easily derive rates divisible with 8000. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq

[PATCH 2/5 v2] arm64: dts: imx8mq: Add SAI2 node

2019-02-25 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region and it's the DAI through which the wm8524 codec gets its data. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch

[PATCH 5/5 v2] arm64: dts: imx8qm: Enable wm8524 codec

2019-02-25 Thread Daniel Baluta
This uses simple-audio-card machine driver adding 1 CPU DAI and 1 Codec DAI. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot

[PATCH 3/5 v2] arm64: dts: imx8qm: Add SAI pinctrl configuration

2019-02-25 Thread Daniel Baluta
This sets the pin configuration for SAI pins BLCK/MCLK/FSYNC/DATA. GPIO_01 is used for mute. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64

[PATCH 1/5 v2] arm64: dts: imx8mq: Add SDMA nodes

2019-02-25 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22 insertions

[PATCH 0/5 v2] Enable wm8524 on i.MX8MQ

2019-02-25 Thread Daniel Baluta
: - added cover letter - remove "fsl,imx8mq-sdma" compatible for sdma. Daniel Baluta (5): arm64: dts: imx8mq: Add SDMA nodes arm64: dts: imx8mq: Add SAI2 node arm64: dts: imx8qm: Add SAI pinctrl configuration arm64: dts: imx8qm: Enable SAI2 for wm8524 codec

Re: [PATCH 1/5] arm64: dts: imx8mq: Add SDMA nodes

2019-02-25 Thread Daniel Baluta
Please ignore this, I sent it from the wrong repo. I swear that I double checked. Will sent v2 with correct base. On Mon, 2019-02-25 at 13:17 +, Daniel Baluta wrote: > SDMA1 is part of AIPS-3 region and SDMA2 is part > of AIPS-1 region. > > Signed-off-by: Anson Huang >

[PATCH 4/5] arm64: dts: imx8qm: Enable SAI2 for wm8524 codec

2019-02-25 Thread Daniel Baluta
This enables SAI2 digital audio interface to be used with wm8524 codec. wm8524 works only in slave mode, so we make sure that IMX8MQ_CLK_SAI2 has an appropriate frequency in order to easily derive rates divisible with 8000. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq

[PATCH 3/5] arm64: dts: imx8qm: Add SAI pinctrl configuration

2019-02-25 Thread Daniel Baluta
This sets the pin configuration for SAI pins BLCK/MCLK/FSYNC/DATA. GPIO_01 is used for mute. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64

[PATCH 1/5] arm64: dts: imx8mq: Add SDMA nodes

2019-02-25 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22 insertions

[PATCH 2/5] arm64: dts: imx8mq: Add SAI2 node

2019-02-25 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region and it's the DAI through which the wm8524 codec gets its data. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch

[PATCH 5/5] arm64: dts: imx8qm: Enable wm8524 codec

2019-02-25 Thread Daniel Baluta
This uses simple-audio-card machine driver adding 1 CPU DAI and 1 Codec DAI. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot

Re: [PATCH 3/3] imx8mq.dtsi: add the sdma nodes

2019-02-22 Thread Daniel Baluta
Hi Angus, What is the status of this patch? Most likely this should go through Shwan's tree. I noticed that I have also sent a similar patch to Shawn: https://www.spinics.net/lists/arm-kernel/msg708424.html So, lets coordinate and work better on this. I am now preparing another series where I

Re: [alsa-devel] [PATCH] ASoC: simple-card: Fix refcount underflow

2019-02-18 Thread Daniel Baluta
On Mon, Feb 18, 2019 at 7:50 PM Mark Brown wrote: > > On Mon, Feb 18, 2019 at 08:52:26AM +0100, Takashi Iwai wrote: > > Daniel Baluta wrote: > > > > > Fixes: commit da215354eb55c ("ASoC: simple-card: merge simple-scu- > > > > card") > >

Re: [PATCH] ASoC: simple-card: Fix refcount underflow

2019-02-17 Thread Daniel Baluta
tps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F10814255%2Fdata=02%7C01%7Cdaniel.baluta%40nxp.com%7Ced1b7adc66a546c1bb4608d69541aaf8%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636860506617983174sdata=hTsurDLdtLAtTw0a5v%2FrSsleSawAP2yiVPl87%2BHCzTI%3Dreserved=0

[PATCH] ASoC: simple-card: Fix refcount underflow

2019-02-16 Thread Daniel Baluta
posted by Kuninori Morimoto and commit message includes explanations from Mark Brown. https://patchwork.kernel.org/patch/10814255/ Reported-by: Vicente Bergas Signed-off-by: Daniel Baluta --- sound/soc/generic/simple-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound

Re: [PATCH v3] firmware: imx: Add support to start/stop a CPU

2019-02-04 Thread Daniel Baluta
Hi Shawn, Care to have a look? Daniel. On Thu, Jan 31, 2019 at 10:16 AM Aisheng Dong wrote: > > > -Original Message- > > From: Daniel Baluta > > Sent: Wednesday, January 30, 2019 9:30 PM > > To: shawn...@kernel.org > > Cc: s.ha...@pengutronix

[PATCH v3] firmware: imx: Add support to start/stop a CPU

2019-01-30 Thread Daniel Baluta
This is done via RPC call to SCU. Signed-off-by: Daniel Baluta --- Changes since v2: (as per Aisheng's review) - rename address with phys_address - remove unnecessary uint8_t cast - use 'true' as last parameter of imx_scu_call_rpc to actually wait for a response

Re: [PATCH v2] firmware: imx: Add support to start/stop a CPU

2019-01-30 Thread Daniel Baluta
Thanks Aisheng for the comments! +int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource, > > + bool enable, u64 address) > > +{ > > + struct imx_sc_msg_req_cpu_start msg; > > + struct imx_sc_rpc_msg *hdr = > > + > > + hdr->ver =

[PATCH v2] firmware: imx: Add support to start/stop a CPU

2019-01-30 Thread Daniel Baluta
This is done via RPC call to SCU. Signed-off-by: Daniel Baluta --- Changes since v1: - remove unused variable ret - add documentation for imx_sc_pm_cpu_start function drivers/firmware/imx/misc.c | 38 +++ include/linux/firmware/imx/svc/misc.h

[PATCH] firmware: imx: Add support to start/stop a CPU

2019-01-29 Thread Daniel Baluta
This is done via RPC call to SCU. Signed-off-by: Daniel Baluta --- drivers/firmware/imx/misc.c | 29 +++ include/linux/firmware/imx/svc/misc.h | 3 +++ 2 files changed, 32 insertions(+) diff --git a/drivers/firmware/imx/misc.c b/drivers/firmware/imx/misc.c

Re: [PATCH v2 2/3] dma: imx-sdma: add clock ratio 1:1 check

2019-01-20 Thread Daniel Baluta
On Sun, Jan 20, 2019 at 4:38 PM Angus Ainslie wrote: > > Hi Daniel, > > On 2019-01-20 02:58, Daniel Baluta wrote: > > On Sun, Jan 20, 2019 at 4:32 AM Angus Ainslie (Purism) > > wrote: > >> > >> On i.mx8 mscale B0 chip, AHB/SDMA clock ratio 2:1 can't be s

Re: [PATCH v2 2/3] dma: imx-sdma: add clock ratio 1:1 check

2019-01-20 Thread Daniel Baluta
On Sun, Jan 20, 2019 at 4:32 AM Angus Ainslie (Purism) wrote: > > On i.mx8 mscale B0 chip, AHB/SDMA clock ratio 2:1 can't be supportted, > since SDMA clock ratio has to be increased to 250Mhz, AHB can't reach > to 500Mhz, so use 1:1 instead. > > based on NXP commit MLK-16841-1 Hi Angus, Thanks

Re: [PATCH v2 1/3] dma: imx-sdma: fix NULL pointer de-reference

2019-01-20 Thread Daniel Baluta
On Sun, Jan 20, 2019 at 4:34 AM Angus Ainslie (Purism) wrote: > > On the imx8mq I get NULL pointer de-deference errors if the device > isn't passed in during allocation. > > Signed-off-by: Angus Ainslie (Purism) Hi Angus, I have already sent a fix for this:

[PATCH] ASoC: fsl_sai: Remove expensive print in irq handler

2019-01-18 Thread Daniel Baluta
impossible to stop CPU DAI. Signed-off-by: Shengjiu Wang Signed-off-by: Daniel Baluta --- sound/soc/fsl/fsl_sai.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 4163f2cfc06f..db9e0872f73d 100644 --- a/sound/soc/fsl

Re: [alsa-devel] [PATCH 4/5] ASoC: imx-sgtl5000: put of nodes if finding codec fails

2019-01-17 Thread Daniel Baluta
On Thu, Jan 17, 2019 at 11:07 AM Stefan Agner wrote: > > Make sure to properly put the of node in case finding the codec > fails. > > Fixes: 81e8e4926167 ("ASoC: fsl: add sgtl5000 clock support for imx-sgtl5000") > Signed-off-by: Stefan Agner Reviewed-by: Daniel Bal

Re: [alsa-devel] [PATCH 3/5] ASoC: imx-sgtl5000: don't print EPROBE_DEFER as error

2019-01-17 Thread Daniel Baluta
On Thu, Jan 17, 2019 at 11:07 AM Stefan Agner wrote: > > Probe deferral is to be expected during normal operation, so avoid > printing an error when it is encountered. > > Signed-off-by: Stefan Agner Reviewed-by: Daniel Baluta > --- > sound/soc/fsl/imx-sgtl5000.c | 4 +

Re: [alsa-devel] [PATCH 1/5] ASoC: fsl_spdif: don't print EPROBE_DEFER as error

2019-01-17 Thread Daniel Baluta
On Thu, Jan 17, 2019 at 11:07 AM Stefan Agner wrote: > > Probe deferral is to be expected during normal operation, so avoid > printing an error when it is encountered. > > Signed-off-by: Stefan Agner Reviewed-by: Daniel Baluta

Re: [alsa-devel] [PATCH 5/5] ASoC: imx-sgtl5000: lower log level for potential probe deferral cases

2019-01-17 Thread Daniel Baluta
On Thu, Jan 17, 2019 at 11:07 AM Stefan Agner wrote: > > Not finding the codec/SSI instance can be due to probe deferral. > Do not print error messages in those cases. > > Signed-off-by: Stefan Agner Reviewed-by: Daniel Baluta

Re: [alsa-devel] [PATCH 2/5] ASoC: imx-spdif: don't print EPROBE_DEFER as error

2019-01-17 Thread Daniel Baluta
EPROBE_DEFER case likely > would get missed. > > Signed-off-by: Stefan Agner Reviewed-by: Daniel Baluta

Re: [PATCH] arm64: dts: imx: Fix MU4_INT number

2019-01-16 Thread Daniel Baluta
On Wed, 2019-01-16 at 11:12 -0200, Fabio Estevam wrote: > Hi Daniel, > > On Tue, Jan 15, 2019 at 3:05 PM Daniel Baluta > wrote: > > > > MU4_INT correct number is 180, while 179 is for MU3_INT. > > > > Signed-off-by: Daniel Baluta > > Two nitpicks:

[PATCH v2] arm64: dts: imx8qxp: Fix MU4_INT number

2019-01-16 Thread Daniel Baluta
MU4_INT correct number is 180, while 179 is for MU3_INT. Fixes: 3d91ba65fec ("arm64: dts: imx: add imx8qxp support") Reviewed-by: Fabio Estevam Reviewed-by: Dong Aisheng Signed-off-by: Daniel Baluta --- Changes since v1: - fix subject prefix 'arm64: dts: imx' -> 'arm64:

Re: [alsa-devel] [PATCH v2 4/4] ASoC: add imx-audmix DT binding documentation

2019-01-16 Thread Daniel Baluta
On Tue, Jan 15, 2019 at 10:58 PM Rob Herring wrote: > > On Tue, Jan 08, 2019 at 01:05:51PM +, Viorel Suman wrote: > > Add the DT binding documentation for Audio Mixer > > machine driver. > > > > Signed-off-by: Viorel Suman > > --- > > .../devicetree/bindings/sound/imx-audmix.txt | 24

[PATCH] arm64: dts: imx: Fix MU4_INT number

2019-01-15 Thread Daniel Baluta
MU4_INT correct number is 180, while 179 is for MU3_INT. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index

[PATCH] dma: imx-sdma: pass ->dev to dma_alloc_coherent() API

2019-01-11 Thread Daniel Baluta
From: Andy Duan Pass ->dev to dma_alloc_coherent() API. We need this becase dma_alloc_coherent() makes use of dev parameter and receiving NULL will result in a crash. Signed-off-by: Andy Duan Signed-off-by: Daniel Baluta --- drivers/dma/imx-sdma.c | 15 --- 1 file changed

[PATCH 1/2] ASoC: ak4458: Add support for AK4497

2019-01-04 Thread Daniel Baluta
/file/ev-board-manual/AK4497EQ.pdf Datasheet for AK4458 is at: https://www.akm.com/akm/en/file/datasheet/AK4458VN.pdf Signed-off-by: Daniel Baluta --- sound/soc/codecs/ak4458.c | 79 +-- 1 file changed, 76 insertions(+), 3 deletions(-) diff --git a/sound/soc

[PATCH 0/2] Add support for AK4497 codec

2019-01-04 Thread Daniel Baluta
AK4497 is almost register compatible with AK4458. Almost means that AK4497 has an extra "debug" register that we currently do not use. Daniel Baluta (2): ASoC: ak4458: Add support for AK4497 ASoC: dt-bindings: Document support for ak4497 .../devicetree/bindings/sound/ak4458.txt

[PATCH 2/2] ASoC: dt-bindings: Document support for ak4497

2019-01-04 Thread Daniel Baluta
ak4458 driver supports also ak4497 codec. Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/sound/ak4458.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/ak4458.txt b/Documentation/devicetree/bindings/sound/ak4458

Re: [REGRESSION] imx_v6_v7_defconfig: undefined reference to `__hyp_stub_vectors'

2018-12-19 Thread Daniel Baluta
On Wed, Dec 19, 2018 at 3:17 PM Daniel Baluta wrote: > > > On Wed, 2018-12-19 at 12:42 +, Marcel Ziswiler wrote: > > Hi there > > > > I noticed that at least today's and yesterdays -next won't build with > > the imx_v6_v7_defconfig giving the following error

Re: [REGRESSION] imx_v6_v7_defconfig: undefined reference to `__hyp_stub_vectors'

2018-12-19 Thread Daniel Baluta
On Wed, 2018-12-19 at 12:42 +, Marcel Ziswiler wrote: > Hi there > > I noticed that at least today's and yesterdays -next won't build with > the imx_v6_v7_defconfig giving the following error: > > LD arch/arm/boot/compressed/vmlinux > arch/arm/boot/compressed/head.o: In function

Re: [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant

2018-12-14 Thread Daniel Baluta
On Fri, Dec 14, 2018 at 3:02 AM Shawn Guo wrote: > > On Thu, Dec 13, 2018 at 04:51:18PM +, Aisheng Dong wrote: > > [...] > > > > > > --- a/drivers/clk/imx/Makefile > > > > +++ b/drivers/clk/imx/Makefile > > > > @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o > > > >

Re: [PATCH] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant

2018-12-13 Thread Daniel Baluta
> --- a/drivers/clk/imx/Makefile > +++ b/drivers/clk/imx/Makefile > @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o > obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o > obj-$(CONFIG_SOC_IMX7D) += clk-imx7d.o > obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o > -obj-$(CONFIG_SOC_IMX8MQ) +=

Re: [alsa-devel] [PATCH v3 1/5] ALSA: soc-compress: add support to snd_compr_set_runtime_buffer()

2018-11-15 Thread Daniel Baluta
Hi Srinivas, One minor comment: > struct snd_compr_ops *ops; > + struct snd_dma_buffer *dma_buffer_p; I don't think it is necessary to encode the type inside the name variable So, dma_buffer would sounds better to me then dma_buffer_p; > void *buffer; It is also

Re: [alsa-devel] [PATCH v3 1/5] ALSA: soc-compress: add support to snd_compr_set_runtime_buffer()

2018-11-15 Thread Daniel Baluta
Hi Srinivas, One minor comment: > struct snd_compr_ops *ops; > + struct snd_dma_buffer *dma_buffer_p; I don't think it is necessary to encode the type inside the name variable So, dma_buffer would sounds better to me then dma_buffer_p; > void *buffer; It is also

Re: [PATCH v4] iio: chemical: Add support for Bosch BME680 sensor

2018-07-21 Thread Daniel Baluta
On Sat, Jul 21, 2018 at 6:43 PM, Andy Shevchenko wrote: > On Sat, Jul 21, 2018 at 6:36 PM, Himanshu Jha > wrote: > >>> > + /* Look up table 1 for the possible gas range values */ >>> > + u32 lookupTable1[16] = {2147483647u, 2147483647u, 2147483647u, >>> > +

Re: [PATCH v4] iio: chemical: Add support for Bosch BME680 sensor

2018-07-21 Thread Daniel Baluta
On Sat, Jul 21, 2018 at 6:43 PM, Andy Shevchenko wrote: > On Sat, Jul 21, 2018 at 6:36 PM, Himanshu Jha > wrote: > >>> > + /* Look up table 1 for the possible gas range values */ >>> > + u32 lookupTable1[16] = {2147483647u, 2147483647u, 2147483647u, >>> > +

Re: [PATCH] ASoC: ak5558: make two structures static

2018-06-06 Thread Daniel Baluta
e warnings: > warning: symbol 'ak5558_pm' was not declared. Should it be static? > warning: symbol 'soc_codec_dev_ak5558' was not declared. Should it be > static? > > Signed-off-by: Colin Ian King Reviewed-by: Daniel Baluta

Re: [PATCH] ASoC: ak5558: make two structures static

2018-06-06 Thread Daniel Baluta
e warnings: > warning: symbol 'ak5558_pm' was not declared. Should it be static? > warning: symbol 'soc_codec_dev_ak5558' was not declared. Should it be > static? > > Signed-off-by: Colin Ian King Reviewed-by: Daniel Baluta

Re: [PATCH v2 0/2] iio:dummy: Rework Kconfig

2018-02-27 Thread Daniel Baluta
iqueira (2): > iio: dummy: Add correct tabs and spaces to Kconfig > iio:dummy: Add extra paragraphs on Kconfig Reviewed-by: Daniel Baluta <daniel.bal...@nxp.com>

Re: [PATCH v2 0/2] iio:dummy: Rework Kconfig

2018-02-27 Thread Daniel Baluta
correct tabs and spaces to Kconfig > iio:dummy: Add extra paragraphs on Kconfig Reviewed-by: Daniel Baluta

Re: [alsa-devel] regression v4.16 on Nokia N900: sound does not work

2018-02-26 Thread Daniel Baluta
On Mon, Feb 26, 2018 at 3:13 PM, Pavel Machek wrote: > Hi! > >> JFYI: This issues is tracked in the regression reports for Linux 4.16 >> (http://bit.ly/lnxregrep416 ) with this id: >> >> Linux-Regression-ID: lr#4b650f > > Ok, so it seems that issue is bigger: whole sound subsystem

Re: [alsa-devel] regression v4.16 on Nokia N900: sound does not work

2018-02-26 Thread Daniel Baluta
On Mon, Feb 26, 2018 at 3:13 PM, Pavel Machek wrote: > Hi! > >> JFYI: This issues is tracked in the regression reports for Linux 4.16 >> (http://bit.ly/lnxregrep416 ) with this id: >> >> Linux-Regression-ID: lr#4b650f > > Ok, so it seems that issue is bigger: whole sound subsystem does not >

Re: [PATCH v2] iio:dummy: Replace S_IWUSR by 0200

2018-02-21 Thread Daniel Baluta
Hi Dan, On Jo, 2018-02-22 at 10:43 +0300, Dan Carpenter wrote: > On Wed, Feb 21, 2018 at 11:01:50PM +0200, Daniel Baluta wrote: > > > > On Wed, Feb 21, 2018 at 9:28 PM, Rodrigo Siqueira > > <rodrigosiqueiram...@gmail.com> wrote: > > > > > &g

Re: [PATCH v2] iio:dummy: Replace S_IWUSR by 0200

2018-02-21 Thread Daniel Baluta
Hi Dan, On Jo, 2018-02-22 at 10:43 +0300, Dan Carpenter wrote: > On Wed, Feb 21, 2018 at 11:01:50PM +0200, Daniel Baluta wrote: > > > > On Wed, Feb 21, 2018 at 9:28 PM, Rodrigo Siqueira > > wrote: > > > > > > This patch fixes the checkpatch.pl

Re: [PATCH v2] iio:dummy: Replace S_IWUSR by 0200

2018-02-21 Thread Daniel Baluta
On Wed, Feb 21, 2018 at 9:28 PM, Rodrigo Siqueira wrote: > This patch fixes the checkpatch.pl warning: > > drivers/iio/dummy/iio_dummy_evgen.c:151: WARNING: Symbolic permissions > 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. > ... Why this

Re: [PATCH v2] iio:dummy: Replace S_IWUSR by 0200

2018-02-21 Thread Daniel Baluta
On Wed, Feb 21, 2018 at 9:28 PM, Rodrigo Siqueira wrote: > This patch fixes the checkpatch.pl warning: > > drivers/iio/dummy/iio_dummy_evgen.c:151: WARNING: Symbolic permissions > 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. > ... Why this "..." :)? Commit subject could

Re: [PATCH] iio: light: add driver for bh1730fvc chips

2018-02-21 Thread Daniel Baluta
On Wed, Feb 21, 2018 at 6:15 PM, Pierre Bourdon (delroth) <delr...@google.com> wrote: > Hi Daniel, > > On Wed, Feb 21, 2018 at 4:31 PM, Daniel Baluta <daniel.bal...@gmail.com> > wrote: >> On Wed, Feb 21, 2018 at 2:55 PM, Pierre Bourdon <delr...@google.com

<    1   2   3   4   5   6   7   8   9   10   >