* [PATCH 1/3] arm64: dts: meson-axg: add spdifin
2018-12-13 14:36 [PATCH 0/3] arm64: dts: meson-axg: add spdif input Jerome Brunet
@ 2018-12-13 14:36 ` Jerome Brunet
2018-12-13 14:36 ` [PATCH 2/3] arm64: dts: meson-axg: s400: add spdif-dir codec Jerome Brunet
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-12-13 14:36 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: devicetree, linux-amlogic, linux-kernel, Jerome Brunet
Add the SPDIF input device of the axg audio subsystem
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
index fffd55787981..781632bd60ed 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
@@ -1260,6 +1260,18 @@
status = "disabled";
};
+ spdifin: audio-controller@400 {
+ compatible = "amlogic,axg-spdifin";
+ reg = <0x0 0x400 0x0 0x30>;
+ #sound-dai-cells = <0>;
+ sound-name-prefix = "SPDIFIN";
+ interrupts = <GIC_SPI 87 IRQ_TYPE_EDGE_RISING>;
+ clocks = <&clkc_audio AUD_CLKID_SPDIFIN>,
+ <&clkc_audio AUD_CLKID_SPDIFIN_CLK>;
+ clock-names = "pclk", "refclk";
+ status = "disabled";
+ };
+
spdifout: audio-controller@480 {
compatible = "amlogic,axg-spdifout";
reg = <0x0 0x480 0x0 0x50>;
--
2.19.2
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] arm64: dts: meson-axg: s400: add spdif-dir codec
2018-12-13 14:36 [PATCH 0/3] arm64: dts: meson-axg: add spdif input Jerome Brunet
2018-12-13 14:36 ` [PATCH 1/3] arm64: dts: meson-axg: add spdifin Jerome Brunet
@ 2018-12-13 14:36 ` Jerome Brunet
2018-12-13 14:36 ` [PATCH 3/3] arm64: dts: meson-axg: s400: add spdifin to the sound card Jerome Brunet
2019-01-11 0:43 ` [PATCH 0/3] arm64: dts: meson-axg: add spdif input Kevin Hilman
3 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-12-13 14:36 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: devicetree, linux-amlogic, linux-kernel, Jerome Brunet
Add the SPDIF capture codec to the axg s400 board
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
index af2f2619bbc1..2f622a0b599a 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
@@ -95,6 +95,13 @@
sound-name-prefix = "MIC";
};
+ spdif_dir: audio-codec-4 {
+ #sound-dai-cells = <0>;
+ compatible = "linux,spdif-dir";
+ status = "okay";
+ sound-name-prefix = "DIR";
+ };
+
emmc_pwrseq: emmc-pwrseq {
compatible = "mmc-pwrseq-emmc";
reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
--
2.19.2
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] arm64: dts: meson-axg: s400: add spdifin to the sound card
2018-12-13 14:36 [PATCH 0/3] arm64: dts: meson-axg: add spdif input Jerome Brunet
2018-12-13 14:36 ` [PATCH 1/3] arm64: dts: meson-axg: add spdifin Jerome Brunet
2018-12-13 14:36 ` [PATCH 2/3] arm64: dts: meson-axg: s400: add spdif-dir codec Jerome Brunet
@ 2018-12-13 14:36 ` Jerome Brunet
2019-01-11 0:43 ` [PATCH 0/3] arm64: dts: meson-axg: add spdif input Kevin Hilman
3 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-12-13 14:36 UTC (permalink / raw)
To: Kevin Hilman, Carlo Caione
Cc: devicetree, linux-amlogic, linux-kernel, Jerome Brunet
Enable spdif input device on the S400 and add it to the card
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
index 2f622a0b599a..c8b531ce5c63 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
@@ -256,6 +256,9 @@
"TODDR_A IN 2", "TDMIN_C OUT",
"TODDR_B IN 2", "TDMIN_C OUT",
"TODDR_C IN 2", "TDMIN_C OUT",
+ "TODDR_A IN 3", "SPDIFIN Capture",
+ "TODDR_B IN 3", "SPDIFIN Capture",
+ "TODDR_C IN 3", "SPDIFIN Capture",
"TODDR_A IN 4", "PDM Capture",
"TODDR_B IN 4", "PDM Capture",
"TODDR_C IN 4", "PDM Capture",
@@ -333,6 +336,14 @@
};
dai-link-8 {
+ sound-dai = <&spdifin>;
+
+ codec {
+ sound-dai = <&spdif_dir>;
+ };
+ };
+
+ dai-link-9 {
sound-dai = <&pdm>;
codec {
@@ -489,6 +500,12 @@
vqmmc-supply = <&vddio_boot>;
};
+&spdifin {
+ pinctrl-0 = <&spdif_in_a19_pins>;
+ pinctrl-names = "default";
+ status = "okay";
+};
+
&spdifout {
pinctrl-0 = <&spdif_out_a20_pins>;
pinctrl-names = "default";
--
2.19.2
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] arm64: dts: meson-axg: add spdif input
2018-12-13 14:36 [PATCH 0/3] arm64: dts: meson-axg: add spdif input Jerome Brunet
` (2 preceding siblings ...)
2018-12-13 14:36 ` [PATCH 3/3] arm64: dts: meson-axg: s400: add spdifin to the sound card Jerome Brunet
@ 2019-01-11 0:43 ` Kevin Hilman
3 siblings, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2019-01-11 0:43 UTC (permalink / raw)
To: Jerome Brunet, Carlo Caione
Cc: devicetree, linux-amlogic, linux-kernel, Jerome Brunet
Jerome Brunet <jbrunet@baylibre.com> writes:
> This patchset adds spdif input support to the axg SoC family and the
> s400 reference design.
>
> Kevin, ASoC support for this spdif input (including the binding doc) just
> got merged in the ASoC tree [0]. Until the related patches hit mainline,
> you may get a warning about using undocumented bindings.
>
> [0]: https://lkml.kernel.org/r/20181213120843.876CB11254D1@debutante.sirena.org.uk
Queued for v5.1 (branch: v5.1/dt64)
Kevin
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 5+ messages in thread