Skip to contentSkip to conversation

rsnd: dts: change to use extended audio dmac register

PATCH Superseded Jiada Wang 4 participants 9 messages Feb 20, 2019 – Feb 25, 2019

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Jiada Wang

author
#0 lore raw

cover rsnd: dts: change to use extended audio dmac register

According to user reference manual for R-CAR H3 and M3-W SoCs, in order to access busif4 ~ busif7, extended audio dmac registers (PDMASAREn, PDMADAREn, PDMACHCREn)
need to be used, rather than basic audio dmac registers (PDMASARn, PDMADARn, PDMACHCRn)

This patch set updates H3 (= r8a7795) and M3-W (= r8a7796) to use extended audio dmac registers

Jiada Wang (2):
arm64: dts: renesas: r8a7795: use extended audio dmac register
arm64: dts: renesas: r8a7796: use extended audio dmac register

 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.19.2
author
#1 lore raw

PATCH 1/2 arm64: dts: renesas: r8a7795: use extended audio dmac register

Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used.

---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +1 -1
index af9605d5db27..3adf0663451a 100644
@@ -1836,7 +1836,7 @@
 				<0 0xec5a0000 0 0x100>,  /* ADG */
 				<0 0xec540000 0 0x1000>, /* SSIU */
 				<0 0xec541000 0 0x280>,  /* SSI */
-				<0 0xec740000 0 0x200>;  /* Audio DMAC peri peri*/
+				<0 0xec760000 0 0x200>;  /* Audio DMAC peri peri*/
 			reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
 
 			clocks = <&cpg CPG_MOD 1005>,
Signature · 1 line
2.19.2
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH v1 1/2] arm64: dts: renesas: r8a7795: use extended audio dmac register

Quoted 5 lines · Jiada Wang

Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used.

but please consider my comments to the cover letter.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
author
#3 lore raw

PATCH 2/2 arm64: dts: renesas: r8a7796: use extended audio dmac register

In reply to Jiada Wang

Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +1 -1
index 0648d12778ed..1ca487480c79 100644
@@ -1775,7 +1775,7 @@
 				<0 0xec5a0000 0 0x100>,  /* ADG */
 				<0 0xec540000 0 0x1000>, /* SSIU */
 				<0 0xec541000 0 0x280>,  /* SSI */
-				<0 0xec740000 0 0x200>;  /* Audio DMAC peri peri*/
+				<0 0xec760000 0 0x200>;  /* Audio DMAC peri peri*/
 			reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
 
 			clocks = <&cpg CPG_MOD 1005>,
Signature · 1 line
2.19.2
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH v1 2/2] arm64: dts: renesas: r8a7796: use extended audio dmac register

Quoted 5 lines · Jiada Wang

Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used

but please consider my comments to the cover letter.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#5 lore raw
In reply to Jiada Wang

Hi Jiada,

Quoted 8 lines · Jiada Wang

According to user reference manual for R-CAR H3 and M3-W SoCs, in order to access busif4 ~ busif7, extended audio dmac registers (PDMASAREn, PDMADAREn, PDMACHCREn)
need to be used, rather than basic audio dmac registers (PDMASARn, PDMADARn, PDMACHCRn)

This patch set updates H3 (= r8a7795) and M3-W (= r8a7796) to use extended audio dmac registers

The same change should be applied for M3-N and RZ/G2M, right?

R-Car E3 and RZ/G2E already use the extended register set, as they do not have the basic set.

For SoCs having both, this feels a bit like describing software policy, instead of hardware, to me. Would it make sense to extend the audio bindings, and allow describing both the basic and extended register sets, and let the driver make the decision which one to use?

Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#6 lore raw

Hi Geert

Quoted 11 lines
Quoted 8 lines

According to user reference manual for R-CAR H3 and M3-W SoCs, in order to access busif4 ~ busif7, extended audio dmac registers (PDMASAREn, PDMADAREn, PDMACHCREn)
need to be used, rather than basic audio dmac registers (PDMASARn, PDMADARn, PDMACHCRn)

This patch set updates H3 (= r8a7795) and M3-W (= r8a7796) to use extended audio dmac registers

The same change should be applied for M3-N and RZ/G2M, right?

Quoted 7 lines

R-Car E3 and RZ/G2E already use the extended register set, as they do not have the basic set.

For SoCs having both, this feels a bit like describing software policy, instead of hardware, to me. Would it make sense to extend the audio bindings, and allow describing both the basic and extended register sets, and let the driver make the decision which one to use?

I don't think we need to use basic register.
This means extended register only is very enough.
I'm not sure why datasheet is indicating basic...

Best regards
---
Kuninori Morimoto

author
#7 lore raw

Hi Geert

Quoted 14 lines · Kuninori Morimoto

Hi Geert

Quoted 11 lines
Quoted 8 lines

According to user reference manual for R-CAR H3 and M3-W SoCs, in order to access busif4 ~ busif7, extended audio dmac registers (PDMASAREn, PDMADAREn, PDMACHCREn)
need to be used, rather than basic audio dmac registers (PDMASARn, PDMADARn, PDMACHCRn)

This patch set updates H3 (= r8a7795) and M3-W (= r8a7796) to use extended audio dmac registers

The same change should be applied for M3-N and RZ/G2M, right?

Currently only H3 and M3-W support to use busif other than busif0,
I feel currently it's only necessary to use extended audio dmac register for these SoCs

Quoted 12 lines
Quoted 7 lines

R-Car E3 and RZ/G2E already use the extended register set, as they do not have the basic set.

For SoCs having both, this feels a bit like describing software policy, instead of hardware, to me. Would it make sense to extend the audio bindings, and allow describing both the basic and extended register sets, and let the driver make the decision which one to use?

I don't think we need to use basic register.
This means extended register only is very enough.
I'm not sure why datasheet is indicating basic...

Extended audio dmac registers covers all function of basic ones, so there is no need to use basic registers

Thanks,
Jiada

Quoted 4 lines

Best regards
---
Kuninori Morimoto

#8 lore raw
Quoted 30 lines · jiada

Hi Geert

Quoted 14 lines · Kuninori Morimoto

Hi Geert

Quoted 11 lines
Quoted 8 lines

According to user reference manual for R-CAR H3 and M3-W SoCs, in order to access busif4 ~ busif7, extended audio dmac registers (PDMASAREn, PDMADAREn, PDMACHCREn)
need to be used, rather than basic audio dmac registers (PDMASARn, PDMADARn, PDMACHCRn)

This patch set updates H3 (= r8a7795) and M3-W (= r8a7796) to use extended audio dmac registers

The same change should be applied for M3-N and RZ/G2M, right?

Currently only H3 and M3-W support to use busif other than busif0, I feel currently it's only necessary to use extended audio dmac register for these SoCs

Quoted 8 lines
Quoted 7 lines

R-Car E3 and RZ/G2E already use the extended register set, as they do not have the basic set.

For SoCs having both, this feels a bit like describing software policy, instead of hardware, to me. Would it make sense to extend the audio bindings, and allow describing both the basic and extended register sets, and let the driver make the decision which one to use?

Quoted 6 lines
Quoted 4 lines

I don't think we need to use basic register.
This means extended register only is very enough.
I'm not sure why datasheet is indicating basic...

Extended audio dmac registers covers all function of basic ones, so there is no need to use basic registers

This still sounds a lot like a policy decision that should be made by the driver based on a fuller description of the hardware in DT.