Re: [PATCH v4 02/22] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-09-21 Thread Clément Péron
Hi Maxime, On Mon, 21 Sep 2020 at 14:29, Maxime Ripard wrote: > > On Mon, Sep 21, 2020 at 12:27:11PM +0200, Clément Péron wrote: > > As slots and slot_width can be overwritter in case set_tdm() is > > called. Avoid to have this logic in set_chan_cfg(). > > > > Inste

Re: [PATCH v4 03/22] ASoC: sun4i-i2s: Change get_sr() and get_wss() to be more explicit

2020-09-21 Thread Clément Péron
Hi Maxime, On Mon, 21 Sep 2020 at 15:55, Maxime Ripard wrote: > > On Mon, Sep 21, 2020 at 12:27:12PM +0200, Clément Péron wrote: > > We are actually using a complex formula to just return a bunch of > > simple values. Also this formula is wrong for sun4i. > > Just like

Re: [PATCH v4 09/22] arm64: dts: allwinner: h6: Add HDMI audio node

2020-09-21 Thread Clément Péron
Hi Maxime, On Mon, 21 Sep 2020 at 15:59, Maxime Ripard wrote: > > On Mon, Sep 21, 2020 at 12:27:18PM +0200, Clément Péron wrote: > > From: Jernej Skrabec > > > > Add a simple-soundcard to link audio between HDMI and I2S. > > > > Signed-off-by: Jernej Skrab

Re: [PATCH v3 3/7] ASoC: sun4i-i2s: Add support for H6 I2S

2020-09-17 Thread Clément Péron
> >> On 9/3/20 3:58 PM, Maxime Ripard wrote: > > >>> On Thu, Sep 03, 2020 at 10:02:31PM +0200, Clément Péron wrote: > > >>>> Hi Maxime, > > >>>> > > >>>> On Wed, 29 Jul 2020 at 17:16, Mark Brown wrote: > > >&g

Re: [linux-sunxi] Re: [PATCH v3 10/12] arm64: dts: allwinner: h6: Add IR receiver node

2019-06-04 Thread Clément Péron
Hi Ondrej, On Tue, 4 Jun 2019 at 16:47, Ondřej Jirman wrote: > > Hi Clément, > > On Tue, Jun 04, 2019 at 02:33:55PM +0200, verejna wrote: > > Hi Clément, > > > > On Mon, Jun 03, 2019 at 09:58:23PM +0200, Clément Péron wrote: > > > Hi Ondrej, > >

Re: [PATCH v3 03/12] media: rc: sunxi: Add A31 compatible

2019-06-04 Thread Clément Péron
Hi, On Tue, 4 Jun 2019 at 16:54, Ondřej Jirman wrote: > > On Tue, May 28, 2019 at 06:14:31PM +0200, Clément Péron wrote: > > Allwiner A31 has a different memory mapping so add the compatible > > we will need it later. > > > > Signed-off-by: Clément Péron >

Re: [linux-sunxi] Re: [PATCH v3 10/12] arm64: dts: allwinner: h6: Add IR receiver node

2019-06-04 Thread Clément Péron
Hi Ondrej, On Tue, 4 Jun 2019 at 17:30, Ondřej Jirman wrote: > > Hi Clément, > > On Tue, Jun 04, 2019 at 05:04:07PM +0200, Clément Péron wrote: > > Hi Ondrej, > > > > On Tue, 4 Jun 2019 at 16:47, Ondřej Jirman wrote: > > > > > > Hi Clément, >

Re: [linux-sunxi] [PATCH v2] clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register

2019-06-04 Thread Clément Péron
Hi Ondrej, On Tue, 4 Jun 2019 at 17:40, megous via linux-sunxi wrote: > > From: Ondrej Jirman > > The current code defines W1 clock gate to be at 0x1cc, overlaying it > with the IR gate. > > Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver > causing interrupt floods on H6

[PATCH v4 01/13] dt-bindings: media: sunxi-ir: Add A31 compatible

2019-06-04 Thread Clément Péron
-by: Clément Péron Acked-by: Sean Young --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt index

[PATCH v4 06/13] ARM: dts: sunxi: Prefer A31 bindings for IR

2019-06-04 Thread Clément Péron
Since A31, memory mapping of the IR driver has changed. Prefer the A31 bindings instead of A13. Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b

[PATCH v4 05/13] ARM: dts: sunxi: Prefer A31 bindings for IR

2019-06-04 Thread Clément Péron
Since A31, memory mapping of the IR driver has changed. Prefer the A31 bindings instead of A13. Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm/boot/dts/sun6i-a31.dtsi | 2 +- arch/arm/boot/dts/sun8i-a83t.dtsi | 2 +- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 3 files changed

[PATCH v4 03/13] media: rc: sunxi: Add A31 compatible

2019-06-04 Thread Clément Péron
Allwiner A31 has a different memory mapping so add the compatible we will need it later. Signed-off-by: Clément Péron Acked-by: Sean Young --- drivers/media/rc/sunxi-cir.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c

[PATCH v4 11/13] arm64: dts: allwinner: h6: Add IR receiver node

2019-06-04 Thread Clément Péron
Allwinner H6 IR is similar to A31 and can use same driver. Add support for it. Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6

[PATCH v4 10/13] dt-bindings: media: sunxi-ir: Add H6 compatible

2019-06-04 Thread Clément Péron
There are some minor differences between A31 or A64 with H6 IR peripheral. But A31 IR driver is compatible with H6. Signed-off-by: Clément Péron Acked-by: Sean Young --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v4 08/13] arm64: dts: allwinner: a64: Add IR node

2019-06-04 Thread Clément Péron
From: Igors Makejevs IR peripheral is completely compatible with A31 one. Signed-off-by: Igors Makejevs Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 18 ++ 1 file changed, 18 insertions

[PATCH v4 12/13] arm64: dts: allwinner: h6: Enable IR on H6 boards

2019-06-04 Thread Clément Péron
Beelink GS1, OrangePi H6 boards and Pine H64 have an IR receiver. Enable it in their device-tree. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 4 arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 4 arch/arm64/boot/dts/allwinner

[PATCH v4 09/13] arm64: dts: allwinner: a64: Enable IR on Orange Pi Win

2019-06-04 Thread Clément Péron
From: Jernej Skrabec OrangePi Win board contains IR receiver. Enable it. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v4 13/13] arm64: defconfig: Enable IR SUNXI option

2019-06-04 Thread Clément Péron
Enable CONFIG_IR_SUNXI option for ARM64, so that Allwinner A64/H6 SoCs can use their IR receiver controller. Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs

[PATCH v4 07/13] dt-bindings: media: sunxi-ir: Add A64 compatible

2019-06-04 Thread Clément Péron
There are some minor differences between A31 and A64 driver. But A31 IR driver is compatible with A64. Signed-off-by: Clément Péron Acked-by: Sean Young --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree

[PATCH v4 02/13] media: rc: Introduce sunxi_ir_quirks

2019-06-04 Thread Clément Péron
This driver is used in various Allwinner SoC with different configuration. Introduce a quirks struct to know the fifo size and if a reset is required. Signed-off-by: Clément Péron Acked-by: Sean Young --- drivers/media/rc/sunxi-cir.c | 61 +++- 1 file changed

[PATCH v4 00/13] Allwinner A64/H6 IR support

2019-06-04 Thread Clément Péron
; tags Changes since v2: - Disable IR for other H6 boards - Split DTS patch for H3/H5 - Introduce IR quirks Changes since v1: - Document reset lines as required since A31 - Explain the memory mapping difference in commit log - Fix misspelling "Allwiner" to "Allwinner" Cléme

[PATCH v4 04/13] media: rc: sunxi: Add RXSTA bits definition

2019-06-04 Thread Clément Péron
We are using RXINT bits definition when looking at RXSTA register. These bits are equal but it's not really proper. Introduce the RXSTA bits and use them to have coherency. Signed-off-by: Clément Péron --- drivers/media/rc/sunxi-cir.c | 18 -- 1 file changed, 12 inser

Re: [linux-sunxi] [PATCH v2] clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register

2019-06-04 Thread Clément Péron
Hi Ondrej, On Tue, 4 Jun 2019 at 18:21, Ondřej Jirman wrote: > > Hi Clément, > > On Tue, Jun 04, 2019 at 06:14:15PM +0200, Clément Péron wrote: > > Hi Ondrej, > > > > On Tue, 4 Jun 2019 at 17:40, megous via linux-sunxi > > wrote: > > > > >

Re: [PATCH v4 04/13] media: rc: sunxi: Add RXSTA bits definition

2019-06-05 Thread Clément Péron
Hi Maxime, On Wed, 5 Jun 2019 at 11:51, Maxime Ripard wrote: > > On Tue, Jun 04, 2019 at 06:29:50PM +0200, Clément Péron wrote: > > We are using RXINT bits definition when looking at RXSTA register. > > > > These bits are equal but it's not really proper. > > &

Re: [PATCH v4 04/13] media: rc: sunxi: Add RXSTA bits definition

2019-06-05 Thread Clément Péron
On Wed, 5 Jun 2019 at 22:00, Maxime Ripard wrote: > > On Wed, Jun 05, 2019 at 02:44:06PM +0200, Clément Péron wrote: > > Hi Maxime, > > > > On Wed, 5 Jun 2019 at 11:51, Maxime Ripard > > wrote: > > > > > > On Tue, Jun 04, 2019 at 06:29:50PM +0200,

[PATCH v3 01/12] dt-bindings: media: sunxi-ir: add A31 compatible

2019-05-28 Thread Clément Péron
-by: Clément Péron --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt index 278098987edb..2e59a32a7e33

[PATCH v3 00/12] Allwinner A64/H6 IR support

2019-05-28 Thread Clément Péron
since A31 - Explain the memory mapping difference in commit log - Fix misspelling "Allwiner" to "Allwinner" Clément Péron (10): dt-bindings: media: sunxi-ir: add A31 compatible media: rc: Introduce sunxi_ir_quirks media: rc: sunxi: Add A31 compatible ARM: dts: sunxi: P

[PATCH v3 03/12] media: rc: sunxi: Add A31 compatible

2019-05-28 Thread Clément Péron
Allwiner A31 has a different memory mapping so add the compatible we will need it later. Signed-off-by: Clément Péron --- drivers/media/rc/sunxi-cir.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index d02dcb6fd0a5

[PATCH v3 07/12] arm64: dts: allwinner: a64: Add IR node

2019-05-28 Thread Clément Péron
From: Igors Makejevs IR peripheral is completely compatible with A31 one. Signed-off-by: Igors Makejevs Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch

[PATCH v3 12/12] arm64: defconfig: enable IR SUNXI option

2019-05-28 Thread Clément Péron
Enable CONFIG_IR_SUNXI option for ARM64, so that Allwinner A64/H6 SoCs can use their IR receiver controller. Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH v3 09/12] dt-bindings: media: sunxi-ir: Add H6 compatible

2019-05-28 Thread Clément Péron
There are some minor differences between A31 or A64 with H6 IR peripheral. But A31 IR driver is compatible with H6. Signed-off-by: Clément Péron --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media

[PATCH v3 11/12] arm64: dts: allwinner: h6: Enable IR on Beelink GS1

2019-05-28 Thread Clément Péron
Beelink GS1 has an IR receiver. Enable it in the device-tree. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts

[PATCH v3 10/12] arm64: dts: allwinner: h6: Add IR receiver node

2019-05-28 Thread Clément Péron
Allwinner H6 IR is similar to A31 and can use same driver. Add support for it. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot

[PATCH v3 06/12] dt-bindings: media: sunxi-ir: Add A64 compatible

2019-05-28 Thread Clément Péron
There are some minor differences between A31 and A64 driver. But A31 IR driver is compatible with A64. Signed-off-by: Clément Péron --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt

[PATCH v3 08/12] arm64: dts: allwinner: a64: Enable IR on Orange Pi Win

2019-05-28 Thread Clément Péron
From: Jernej Skrabec OrangePi Win board contains IR receiver. Enable it. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64

[PATCH v3 05/12] ARM: dts: sunxi: Prefer A31 bindings for IR

2019-05-28 Thread Clément Péron
Since A31, memory mapping of the IR driver has changed. Prefer the A31 bindings instead of A13. Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi

[PATCH v3 04/12] ARM: dts: sunxi: Prefer A31 bindings for IR

2019-05-28 Thread Clément Péron
Since A31, memory mapping of the IR driver has changed. Prefer the A31 bindings instead of A13. Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun6i-a31.dtsi | 2 +- arch/arm/boot/dts/sun8i-a83t.dtsi | 2 +- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 3 files changed, 3 insertions(+), 3

[PATCH v3 02/12] media: rc: Introduce sunxi_ir_quirks

2019-05-28 Thread Clément Péron
This driver is used in various Allwinner SoC with different configuration. Introduce a quirks struct to know the fifo size and if a reset is required. Signed-off-by: Clément Péron --- drivers/media/rc/sunxi-cir.c | 61 +++- 1 file changed, 47 insertions(+), 14

Re: [linux-sunxi] Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-28 Thread Clément Péron
Hi Ondřej, On Mon, 27 May 2019 at 21:53, 'Ondřej Jirman' via linux-sunxi wrote: > > Hi Clément, > > On Mon, May 27, 2019 at 09:30:16PM +0200, verejna wrote: > > Hi Clément, > > > > On Mon, May 27, 2019 at 08:49:59PM +0200, Clément Péron wrote: > >

Re: [linux-sunxi] Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-29 Thread Clément Péron
Hi, On Wed, 29 May 2019 at 09:19, Maxime Ripard wrote: > > On Tue, May 28, 2019 at 08:04:47PM +0200, Ondřej Jirman wrote: > > Hello Clément, > > > > On Tue, May 28, 2019 at 06:21:19PM +0200, Clément Péron wrote: > > > Hi Ondřej, > > > > > > On M

Re: [PATCH] arm64: dts: allwinner: Add GPU operating points for H6

2019-05-29 Thread Clément Péron
nfrost. https://lore.kernel.org/patchwork/patch/1060374/ Regards, Clément > > Signed-off-by: Tomeu Vizoso > Cc: Clément Péron > > --- > > Feel free to pick up this patch if you are going to keep pushing this > series forward. > > Thanks, > > Tomeu > ---

Re: [PATCH v4 0/7] Allwinner H6 SPDIF support

2019-06-14 Thread Clément Péron
Hi, On Mon, 27 May 2019 at 22:10, Clément Péron wrote: > > *H6 DMA support IS REQUIRED* DMA has been merged, so this series can be merge when ASoC maintainers have reviewed it. Regards, Clément > > Allwinner H6 SoC has a SPDIF controller called One Wire Audio (OWA) which > is

Re: [PATCH v3 10/12] arm64: dts: allwinner: h6: Add IR receiver node

2019-05-30 Thread Clément Péron
Hi Ondrej, On Thu, 30 May 2019 at 16:55, Ondřej Jirman wrote: > > Hello Clément, > > On Tue, May 28, 2019 at 06:14:38PM +0200, Clément Péron wrote: > > Allwinner H6 IR is similar to A31 and can use same driver. > > > > Add support for it. > > > > Signe

Re: [linux-sunxi] Re: [PATCH v3 10/12] arm64: dts: allwinner: h6: Add IR receiver node

2019-06-03 Thread Clément Péron
Hi Ondrej, On Fri, 31 May 2019 at 14:46, Ondřej Jirman wrote: > > Hello Clément, > > On Fri, May 31, 2019 at 12:25:32AM +0200, Clément Péron wrote: > > Hi Ondrej, > > > > On Thu, 30 May 2019 at 16:55, Ondřej Jirman wrote: > > > > > > Hello Clément

Re: [PATCH 1/4] dt-bindings: sound: sun4i-spdif: Add Allwinner H6 compatible

2019-04-15 Thread Clément Péron
On Mon, 15 Apr 2019 at 10:09, Clément Péron wrote: > > Hi, > > On Mon, 15 Apr 2019 at 10:04, Maxime Ripard wrote: > > > > Hi, > > > > On Thu, Apr 11, 2019 at 11:44:19PM +0200, Clément Péron wrote: > > > Allwinner H6 has a SPDIF controller wi

<    2   3   4   5   6   7