2019-05-14 14:30:35

by Jerome Brunet

[permalink] [raw]
Subject: [PATCH v2 0/8] arm64: dts: meson: g12a: add audio devices

This patchset adds audio related devices to g12a SoC family.
It adds the clock controller as well as the memory, tdm, spdif
and pdm interfaces.

At this stage, the HDMI and internal audio DAC are still missing.

Notice the use of the pinconf DT property 'drive-strength-microamp'.
Support for this property is not yet merged in meson pinctrl driver but
the DT part as been acked by the DT maintainer [0] so it should be safe
to use.

Changes since v1: [1]
* Had missing axg compatibles for the fifos (one last harmless change ...)
* Fix a few underscores in node names

[0]: https://lkml.kernel.org/r/20190513152451.GA25690@bogus
[1]: https://lkml.kernel.org/r/[email protected]

Jerome Brunet (8):
arm64: dts: meson: g12a: add audio clock controller
arm64: dts: meson: g12a: add audio memory arbitrer
arm64: dts: meson: g12a: add audio fifos
arm64: dts: meson: g12a: add tdm
arm64: dts: meson: g12a: add spdifouts
arm64: dts: meson: g12a: add pdm
arm64: dts: meson: g12a: add spdifin
arm64: dts: meson: g12a: enable hdmi_tx sound dai provider

arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 1233 +++++++++++++++++--
1 file changed, 1142 insertions(+), 91 deletions(-)

--
2.20.1


2019-05-14 14:31:12

by Jerome Brunet

[permalink] [raw]
Subject: [PATCH v2 2/8] arm64: dts: meson: g12a: add audio memory arbitrer

Add the audio DDR memory arbitrer of the g12a SoC family.

Signed-off-by: Jerome Brunet <[email protected]>
---
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
index 09aa024d9f0e..2d5bccad4035 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
@@ -5,6 +5,7 @@

#include <dt-bindings/phy/phy.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/axg-audio-clkc.h>
#include <dt-bindings/clock/g12a-clkc.h>
#include <dt-bindings/clock/g12a-aoclkc.h>
#include <dt-bindings/interrupt-controller/irq.h>
@@ -707,6 +708,14 @@

resets = <&reset RESET_AUDIO>;
};
+
+ arb: reset-controller@280 {
+ status = "disabled";
+ compatible = "amlogic,meson-axg-audio-arb";
+ reg = <0x0 0x280 0x0 0x4>;
+ #reset-cells = <1>;
+ clocks = <&clkc_audio AUD_CLKID_DDR_ARB>;
+ };
};

usb3_pcie_phy: phy@46000 {
--
2.20.1

2019-05-20 21:21:49

by Kevin Hilman

[permalink] [raw]
Subject: Re: [PATCH v2 0/8] arm64: dts: meson: g12a: add audio devices

Jerome Brunet <[email protected]> writes:

> This patchset adds audio related devices to g12a SoC family.
> It adds the clock controller as well as the memory, tdm, spdif
> and pdm interfaces.
>
> At this stage, the HDMI and internal audio DAC are still missing.
>
> Notice the use of the pinconf DT property 'drive-strength-microamp'.
> Support for this property is not yet merged in meson pinctrl driver but
> the DT part as been acked by the DT maintainer [0] so it should be safe
> to use.

Oops, I replied to v1, but I actually queued this v2 series.

Thanks,

Kevin