The Allwinner V3s/V3 SoCs feature quite a few peripherals that have good
driver support but yet are nowhere to be found in the SoCs dts.
This patchset adds the DMA controller, the relevant DMA properties for all
peripherals supporting DMA, the integrated analog codec and - for the
Allwinner V3 SoC - also the I2S interface.
I've included all of those changes in one patchset since they do all
depend on addition of the DMA controller.
All changes have been tested in a recent project of mine using a Sochip S3
(a rebranded Allwinner V3) and are confirmed working.
This is v2 of this patchset.
Cheers,
Tobias
Changelog:
v2:
- add v3/v3s specific compatible strings
- fix v3s audio codec analog frontend compatible
- fix an I2S -> I2C typo
Tobias Schramm (7):
ARM: dts: sun8i: v3s: add DMA controller to v3s dts
ARM: dts: sun8i: v3s: add DMA properties to peripherals supporting DMA
ARM: dts: sun8i: v3s: add analog codec and frontend to v3s dts
ASoC: dt-bindings: sun8i-a23-codec-analog: add compatible for
Allwinner V3
ARM: dts: sun8i: V3: add codec analog frontend to V3 dts
dt-bindings: sound: sun4i-i2s: add Allwinner V3 I2S compatible
ARM: dts: sun8i: V3: add I2S interface to V3 dts
.../sound/allwinner,sun4i-a10-i2s.yaml | 3 ++
.../allwinner,sun8i-a23-codec-analog.yaml | 9 +++--
arch/arm/boot/dts/sun8i-v3.dtsi | 31 +++++++++++++++
arch/arm/boot/dts/sun8i-v3s.dtsi | 39 +++++++++++++++++++
4 files changed, 79 insertions(+), 3 deletions(-)
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
The Allwinner V3s and V3 feature a DMA controller.
This commit adds it to the V3s dtsi.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
arch/arm/boot/dts/sun8i-v3s.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
This commit adds DMA properties to all peripherals supporting DMA on the
Allwinner V3s, enabling accelerated data transfer to them.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
arch/arm/boot/dts/sun8i-v3s.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
The Allwinner V3s and V3 SoCs feature an integrated analog audio codec.
Additionally both have an analog frontend with mixers and amplifiers for
the codec.
This commit adds both, the analog codec and its frontend to the V3s dtsi.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
arch/arm/boot/dts/sun8i-v3s.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
The I2S peripheral of the Allwinner V3 SoC is compatible with the one
found in the Allwinner H3 SoC.
This patch adds a compatible string for it.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
.../devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml | 3 +++
1 file changed, 3 insertions(+)
The analog codec frontend of the Allwinner V3 is compatible with the
analog codec frontend used on the Allwinner H3.
This patch adds a compatible string for the analog codec frontend on the
Allwinner V3 SoC.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
.../bindings/sound/allwinner,sun8i-a23-codec-analog.yaml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
@@ -12,12 +12,15 @@ maintainers:properties:compatible:-enum:+oneOf:# FIXME: This is documented in the PRCM binding, but needs to be# migrated here at some point# - allwinner,sun8i-a23-codec-analog--allwinner,sun8i-h3-codec-analog--allwinner,sun8i-v3s-codec-analog+-const:allwinner,sun8i-h3-codec-analog+-items:+-const:allwinner,sun8i-v3-codec-analog+-const:allwinner,sun8i-h3-codec-analog+-const:allwinner,sun8i-v3s-codec-analogreg:maxItems:1
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
The Allwinner V3 SoC has a different analog codec frontend than the V3s
SoC. The frontend used on the V3 SoC is compatible with the on used in
the Allwinner H3 SoC.
This patch adds the corresponding node to the Allwinner V3 dtsi.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
arch/arm/boot/dts/sun8i-v3.dtsi | 5 +++++
1 file changed, 5 insertions(+)
The Allwinner V3 SoC features an I2S interface. The I2S peripheral is
identical to that in the Allwinner H3 SoC.
This commit adds it to the Allwinner V3 dts.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
arch/arm/boot/dts/sun8i-v3.dtsi | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
From: Andre Przywara <andre.przywara@arm.com> Date: 2021-05-14 07:08:05
On Fri, 14 May 2021 01:30:19 +0200
Tobias Schramm [off-list ref] wrote:
This commit adds DMA properties to all peripherals supporting DMA on the
Allwinner V3s, enabling accelerated data transfer to them.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
DMA channels match the manual.
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Cheers,
Andre
From: Rob Herring <robh@kernel.org> Date: 2021-05-14 13:07:13
On Fri, 14 May 2021 01:30:21 +0200, Tobias Schramm wrote:
The analog codec frontend of the Allwinner V3 is compatible with the
analog codec frontend used on the Allwinner H3.
This patch adds a compatible string for the analog codec frontend on the
Allwinner V3 SoC.
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
.../bindings/sound/allwinner,sun8i-a23-codec-analog.yaml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
./Documentation/devicetree/bindings/sound/allwinner,sun8i-a23-codec-analog.yaml:21:9: [warning] wrong indentation: expected 10 but found 8 (indentation)
dtschema/dtc warnings/errors:
See https://patchwork.ozlabs.org/patch/1478254
This check can fail if there are any dependencies. The base for a patch
series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel