Enable SPDIF on the Beelink X2
Subsystems (2)
cover Enable SPDIF on the Beelink X2
From: Marcus Cooper <[email protected]>
Hi All,
here is the patchset required to get SPDIF working on the Beelink X2 which is a H3 based STB.
BR,
CK
Marcus Cooper (3):
ARM: dts: sun8i-h3: Add SPDIF TX pin to the H3
ARM: dts: sun8i-h3: Add the SPDIF block to the H3
ARM: dts: sun8i-h3: Add SPDIF to the Beelink X2
arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 24 ++++++++++++++++++++++++ arch/arm/boot/dts/sun8i-h3.dtsi | 18 ++++++++++++++++++ 2 files changed, 42 insertions(+)
Signature · 1 line
2.11.0
PATCH 1/3 ARM: dts: sun8i-h3: Add SPDIF TX pin to the H3
From: Marcus Cooper <[email protected]>
Add the SPDIF TX pin to the H3 dtsi.
--- arch/arm/boot/dts/sun8i-h3.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/sun8i-h3.dtsi +5 -0
@@ -375,6 +375,11 @@ bias-pull-up; }; + spdif_tx_pins_a: spdif at 0 { + pins = "PA17"; + function = "spdif"; + }; + spi0_pins: spi0 { pins = "PC0", "PC1", "PC2", "PC3"; function = "spi0";
Signature · 1 line
2.11.0
PATCH 2/3 ARM: dts: sun8i-h3: Add the SPDIF block to the H3
In reply to codekipper at gmail.comFrom: Marcus Cooper <[email protected]>
Add the SPDIF transceiver controller block to the H3 dtsi.
--- arch/arm/boot/dts/sun8i-h3.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+)
arch/arm/boot/dts/sun8i-h3.dtsi +13 -0
@@ -462,6 +462,19 @@ interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; }; + spdif: spdif at 01c21000 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun8i-h3-spdif"; + reg = <0x01c21000 0x400>; + interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; + resets = <&ccu RST_BUS_SPDIF>; + clock-names = "apb", "spdif"; + dmas = <&dma 2>; + dma-names = "tx"; + status = "disabled"; + }; + pwm: pwm at 01c21400 { compatible = "allwinner,sun8i-h3-pwm"; reg = <0x01c21400 0x8>;
Signature · 1 line
2.11.0
PATCH 3/3 ARM: dts: sun8i-h3: Add SPDIF to the Beelink X2
In reply to codekipper at gmail.comFrom: Marcus Cooper <[email protected]>
Enable the S/PDIF transmitter that is present on the Beelink X2 STB.
--- arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/sun8i-h3-beelink-x2.dts +24 -0
@@ -81,6 +81,24 @@ compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */ }; + + sound_spdif { + compatible = "simple-audio-card"; + simple-audio-card,name = "On-board SPDIF"; + + simple-audio-card,cpu { + sound-dai = <&spdif>; + }; + + simple-audio-card,codec { + sound-dai = <&spdif_out>; + }; + }; + + spdif_out: spdif-out { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + }; }; &ehci1 {
@@ -124,6 +142,12 @@ status = "okay"; }; +&spdif { + pinctrl-names = "default"; + pinctrl-0 = <&spdif_tx_pins_a>; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
Signature · 1 line
2.11.0
cover Enable SPDIF on the Beelink X2
In reply to codekipper at gmail.comQuoted 9 lines · codekipper at gmail.com
From: Marcus Cooper <[email protected]>
Hi All,
here is the patchset required to get SPDIF working on the Beelink X2 which is a H3 based STB.
BR,
CK
Merged all three, but this could have been in your earlier patch for that board.
Thanks,
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170127/0f157ba3/attachment-0001.sig>