* [PATCH 1/6] clk: sunxi-ng: a83t: Fix PLL lock status register offset
[not found] ` <20170522062552.19026-1-wens-jdAy2FN1RRM@public.gmane.org>
@ 2017-05-22 6:25 ` Chen-Yu Tsai
[not found] ` <20170522062552.19026-2-wens-jdAy2FN1RRM@public.gmane.org>
2017-05-22 6:25 ` [PATCH 2/6] clk: sunxi-ng: a83t: Fix audio PLL divider offset Chen-Yu Tsai
` (4 subsequent siblings)
5 siblings, 1 reply; 19+ messages in thread
From: Chen-Yu Tsai @ 2017-05-22 6:25 UTC (permalink / raw)
To: Linus Walleij, Maxime Ripard
Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
The offset for the PLL lock status register was incorrectly set to
0x208, which actually points to an unused register. The correct
register offset is 0x20c.
Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
---
drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
index 4a201a7e03b8..a9c5cc87d9d0 100644
--- a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
@@ -28,7 +28,7 @@
#include "ccu-sun8i-a83t.h"
-#define CCU_SUN8I_A83T_LOCK_REG 0x208
+#define CCU_SUN8I_A83T_LOCK_REG 0x20c
/*
* The CPU PLLs are actually NP clocks, with P being /1 or /4. However
--
2.11.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 2/6] clk: sunxi-ng: a83t: Fix audio PLL divider offset
[not found] ` <20170522062552.19026-1-wens-jdAy2FN1RRM@public.gmane.org>
2017-05-22 6:25 ` [PATCH 1/6] clk: sunxi-ng: a83t: Fix PLL lock status register offset Chen-Yu Tsai
@ 2017-05-22 6:25 ` Chen-Yu Tsai
[not found] ` <20170522062552.19026-3-wens-jdAy2FN1RRM@public.gmane.org>
2017-05-22 6:25 ` [PATCH 3/6] pinctrl: sunxi: Fix SPDIF function name for A83T Chen-Yu Tsai
` (3 subsequent siblings)
5 siblings, 1 reply; 19+ messages in thread
From: Chen-Yu Tsai @ 2017-05-22 6:25 UTC (permalink / raw)
To: Linus Walleij, Maxime Ripard
Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
The divider of the audio PLL has an offset of 1.
Fix this in the driver.
Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
---
drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
index a9c5cc87d9d0..947f9f6e05d2 100644
--- a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
@@ -80,7 +80,7 @@ static struct ccu_nm pll_audio_clk = {
.enable = BIT(31),
.lock = BIT(2),
.n = _SUNXI_CCU_MULT_OFFSET_MIN_MAX(8, 8, 0, 12, 0),
- .m = _SUNXI_CCU_DIV_OFFSET(0, 6, 0),
+ .m = _SUNXI_CCU_DIV(0, 6),
.common = {
.reg = SUN8I_A83T_PLL_AUDIO_REG,
.lock_reg = CCU_SUN8I_A83T_LOCK_REG,
--
2.11.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 3/6] pinctrl: sunxi: Fix SPDIF function name for A83T
[not found] ` <20170522062552.19026-1-wens-jdAy2FN1RRM@public.gmane.org>
2017-05-22 6:25 ` [PATCH 1/6] clk: sunxi-ng: a83t: Fix PLL lock status register offset Chen-Yu Tsai
2017-05-22 6:25 ` [PATCH 2/6] clk: sunxi-ng: a83t: Fix audio PLL divider offset Chen-Yu Tsai
@ 2017-05-22 6:25 ` Chen-Yu Tsai
[not found] ` <20170522062552.19026-4-wens-jdAy2FN1RRM@public.gmane.org>
2017-05-22 6:25 ` [PATCH 4/6] ARM: sun8i: a83t: Add device node for DMA controller Chen-Yu Tsai
` (2 subsequent siblings)
5 siblings, 1 reply; 19+ messages in thread
From: Chen-Yu Tsai @ 2017-05-22 6:25 UTC (permalink / raw)
To: Linus Walleij, Maxime Ripard
Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
We use well known standard names for functions that have name, such as
I2C, SPI, SPDIF, etc..
Fix the function name of SPDIF, which was named OWA (One Wire Audio)
based on Allwinner datasheets.
Fixes: 4730f33f0d82 ("pinctrl: sunxi: add allwinner A83T PIO controller
support")
Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
---
drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c b/drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c
index 9aec1d2232dd..6624499eae72 100644
--- a/drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c
@@ -394,7 +394,7 @@ static const struct sunxi_desc_pin sun8i_a83t_pins[] = {
SUNXI_PIN(SUNXI_PINCTRL_PIN(E, 18),
SUNXI_FUNCTION(0x0, "gpio_in"),
SUNXI_FUNCTION(0x1, "gpio_out"),
- SUNXI_FUNCTION(0x3, "owa")), /* DOUT */
+ SUNXI_FUNCTION(0x3, "spdif")), /* DOUT */
SUNXI_PIN(SUNXI_PINCTRL_PIN(E, 19),
SUNXI_FUNCTION(0x0, "gpio_in"),
SUNXI_FUNCTION(0x1, "gpio_out")),
--
2.11.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 4/6] ARM: sun8i: a83t: Add device node for DMA controller
[not found] ` <20170522062552.19026-1-wens-jdAy2FN1RRM@public.gmane.org>
` (2 preceding siblings ...)
2017-05-22 6:25 ` [PATCH 3/6] pinctrl: sunxi: Fix SPDIF function name for A83T Chen-Yu Tsai
@ 2017-05-22 6:25 ` Chen-Yu Tsai
2017-05-22 7:18 ` [linux-sunxi] " Code Kipper
[not found] ` <20170522062552.19026-5-wens-jdAy2FN1RRM@public.gmane.org>
2017-05-22 6:25 ` [PATCH 5/6] ARM: sun8i: a83t: Add device node for SPDIF transmitter Chen-Yu Tsai
2017-05-22 6:25 ` [PATCH 6/6] ARM: sun8i: a83t: cubietruck-plus: Enable SPDIF output Chen-Yu Tsai
5 siblings, 2 replies; 19+ messages in thread
From: Chen-Yu Tsai @ 2017-05-22 6:25 UTC (permalink / raw)
To: Linus Walleij, Maxime Ripard
Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
The A83T SoC has a DMA controller that supports 8 DMA channels
to and from various peripherals.
Add a device node for it.
Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
---
arch/arm/boot/dts/sun8i-a83t.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index e12dd7170b8f..47196feda26b 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -163,6 +163,15 @@
#size-cells = <1>;
ranges;
+ dma: dma-controller@1c02000 {
+ compatible = "allwinner,sun8i-a83t-dma";
+ reg = <0x01c02000 0x1000>;
+ interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu 21>;
+ resets = <&ccu 7>;
+ #dma-cells = <1>;
+ };
+
ccu: clock@1c20000 {
compatible = "allwinner,sun8i-a83t-ccu";
reg = <0x01c20000 0x400>;
--
2.11.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [linux-sunxi] [PATCH 4/6] ARM: sun8i: a83t: Add device node for DMA controller
2017-05-22 6:25 ` [PATCH 4/6] ARM: sun8i: a83t: Add device node for DMA controller Chen-Yu Tsai
@ 2017-05-22 7:18 ` Code Kipper
[not found] ` <CAEKpxB=daPuD0YNToTiEzcD0VAUjVen0nTDY0BhkLfQzcLFoTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-22 7:24 ` [linux-sunxi] " Maxime Ripard
[not found] ` <20170522062552.19026-5-wens-jdAy2FN1RRM@public.gmane.org>
1 sibling, 2 replies; 19+ messages in thread
From: Code Kipper @ 2017-05-22 7:18 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Linus Walleij, Maxime Ripard, devicetree, linux-arm-kernel,
linux-gpio, linux-sunxi
On 22 May 2017 at 08:25, Chen-Yu Tsai <wens@csie.org> wrote:
> The A83T SoC has a DMA controller that supports 8 DMA channels
> to and from various peripherals.
>
> Add a device node for it.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
> ---
> arch/arm/boot/dts/sun8i-a83t.dtsi | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
> index e12dd7170b8f..47196feda26b 100644
> --- a/arch/arm/boot/dts/sun8i-a83t.dtsi
> +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
> @@ -163,6 +163,15 @@
> #size-cells = <1>;
> ranges;
>
> + dma: dma-controller@1c02000 {
> + compatible = "allwinner,sun8i-a83t-dma";
> + reg = <0x01c02000 0x1000>;
> + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&ccu 21>;
> + resets = <&ccu 7>;
Hi Wens,
these should be ccu defines, otherwise everything else looks great.
Great Work,
CK
> + #dma-cells = <1>;
> + };
> +
> ccu: clock@1c20000 {
> compatible = "allwinner,sun8i-a83t-ccu";
> reg = <0x01c20000 0x400>;
> --
> 2.11.0
>
> --
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 19+ messages in thread
[parent not found: <CAEKpxB=daPuD0YNToTiEzcD0VAUjVen0nTDY0BhkLfQzcLFoTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 4/6] ARM: sun8i: a83t: Add device node for DMA controller
[not found] ` <CAEKpxB=daPuD0YNToTiEzcD0VAUjVen0nTDY0BhkLfQzcLFoTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-05-22 7:20 ` Chen-Yu Tsai
0 siblings, 0 replies; 19+ messages in thread
From: Chen-Yu Tsai @ 2017-05-22 7:20 UTC (permalink / raw)
To: Code Kipper
Cc: Chen-Yu Tsai, Linus Walleij, Maxime Ripard, devicetree,
linux-arm-kernel,
linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi
On Mon, May 22, 2017 at 3:18 PM, Code Kipper <codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On 22 May 2017 at 08:25, Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> wrote:
>> The A83T SoC has a DMA controller that supports 8 DMA channels
>> to and from various peripherals.
>>
>> Add a device node for it.
>>
>> Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
>> ---
>> arch/arm/boot/dts/sun8i-a83t.dtsi | 9 +++++++++
>> 1 file changed, 9 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
>> index e12dd7170b8f..47196feda26b 100644
>> --- a/arch/arm/boot/dts/sun8i-a83t.dtsi
>> +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
>> @@ -163,6 +163,15 @@
>> #size-cells = <1>;
>> ranges;
>>
>> + dma: dma-controller@1c02000 {
>> + compatible = "allwinner,sun8i-a83t-dma";
>> + reg = <0x01c02000 0x1000>;
>> + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
>> + clocks = <&ccu 21>;
>> + resets = <&ccu 7>;
> Hi Wens,
> these should be ccu defines, otherwise everything else looks great.
Correct. Since the CCU bindings was just introduced, I'm saving all the macros
for v4.13-rc2.
ChenYu
> Great Work,
> CK
>> + #dma-cells = <1>;
>> + };
>> +
>> ccu: clock@1c20000 {
>> compatible = "allwinner,sun8i-a83t-ccu";
>> reg = <0x01c20000 0x400>;
>> --
>> 2.11.0
>>
>> --
>> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [linux-sunxi] [PATCH 4/6] ARM: sun8i: a83t: Add device node for DMA controller
2017-05-22 7:18 ` [linux-sunxi] " Code Kipper
[not found] ` <CAEKpxB=daPuD0YNToTiEzcD0VAUjVen0nTDY0BhkLfQzcLFoTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-05-22 7:24 ` Maxime Ripard
1 sibling, 0 replies; 19+ messages in thread
From: Maxime Ripard @ 2017-05-22 7:24 UTC (permalink / raw)
To: Code Kipper
Cc: Chen-Yu Tsai, Linus Walleij, devicetree, linux-arm-kernel,
linux-gpio, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]
Hi Markus,
On Mon, May 22, 2017 at 09:18:49AM +0200, Code Kipper wrote:
> On 22 May 2017 at 08:25, Chen-Yu Tsai <wens@csie.org> wrote:
> > The A83T SoC has a DMA controller that supports 8 DMA channels
> > to and from various peripherals.
> >
> > Add a device node for it.
> >
> > Signed-off-by: Chen-Yu Tsai <wens@csie.org>
> > ---
> > arch/arm/boot/dts/sun8i-a83t.dtsi | 9 +++++++++
> > 1 file changed, 9 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
> > index e12dd7170b8f..47196feda26b 100644
> > --- a/arch/arm/boot/dts/sun8i-a83t.dtsi
> > +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
> > @@ -163,6 +163,15 @@
> > #size-cells = <1>;
> > ranges;
> >
> > + dma: dma-controller@1c02000 {
> > + compatible = "allwinner,sun8i-a83t-dma";
> > + reg = <0x01c02000 0x1000>;
> > + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
> > + clocks = <&ccu 21>;
> > + resets = <&ccu 7>;
>
> these should be ccu defines, otherwise everything else looks great.
In general, yes. In this particular case however, this is made on
purpose, since Chen-Yu just introduced those defines that are part of
a commit that will go in a different tree.
We will switch to the defines once it reaches Linus' tree.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
[parent not found: <20170522062552.19026-5-wens-jdAy2FN1RRM@public.gmane.org>]
* Re: [PATCH 4/6] ARM: sun8i: a83t: Add device node for DMA controller
[not found] ` <20170522062552.19026-5-wens-jdAy2FN1RRM@public.gmane.org>
@ 2017-05-22 7:23 ` Maxime Ripard
0 siblings, 0 replies; 19+ messages in thread
From: Maxime Ripard @ 2017-05-22 7:23 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Linus Walleij, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
On Mon, May 22, 2017 at 02:25:50PM +0800, Chen-Yu Tsai wrote:
> The A83T SoC has a DMA controller that supports 8 DMA channels
> to and from various peripherals.
>
> Add a device node for it.
>
> Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Applied, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 5/6] ARM: sun8i: a83t: Add device node for SPDIF transmitter
[not found] ` <20170522062552.19026-1-wens-jdAy2FN1RRM@public.gmane.org>
` (3 preceding siblings ...)
2017-05-22 6:25 ` [PATCH 4/6] ARM: sun8i: a83t: Add device node for DMA controller Chen-Yu Tsai
@ 2017-05-22 6:25 ` Chen-Yu Tsai
[not found] ` <20170522062552.19026-6-wens-jdAy2FN1RRM@public.gmane.org>
2017-05-22 6:25 ` [PATCH 6/6] ARM: sun8i: a83t: cubietruck-plus: Enable SPDIF output Chen-Yu Tsai
5 siblings, 1 reply; 19+ messages in thread
From: Chen-Yu Tsai @ 2017-05-22 6:25 UTC (permalink / raw)
To: Linus Walleij, Maxime Ripard
Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
The A83T SoC has an SPDIF transmitter block. According to the vendor
BSP kernel, it is compatible with the one found on the H3 SoC.
Add a device node and pinmux setting for it.
Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
---
arch/arm/boot/dts/sun8i-a83t.dtsi | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index 47196feda26b..1dc4cfe81534 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -202,6 +202,11 @@
bias-pull-up;
};
+ spdif_tx_pin: spdif-tx-pin {
+ pins = "PE18";
+ function = "spdif";
+ };
+
uart0_pb_pins: uart0-pb-pins {
pins = "PB9", "PB10";
function = "uart0";
@@ -228,6 +233,22 @@
clocks = <&osc24M>;
};
+ spdif: spdif@1c21000 {
+ #sound-dai-cells = <0>;
+ compatible = "allwinner,sun8i-a83t-spdif",
+ "allwinner,sun8i-h3-spdif";
+ reg = <0x01c21000 0x400>;
+ interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu 44>, <&ccu 76>;
+ resets = <&ccu 32>;
+ clock-names = "apb", "spdif";
+ dmas = <&dma 2>;
+ dma-names = "tx";
+ pinctrl-names = "default";
+ pinctrl-0 = <&spdif_tx_pin>;
+ status = "disabled";
+ };
+
uart0: serial@01c28000 {
compatible = "snps,dw-apb-uart";
reg = <0x01c28000 0x400>;
--
2.11.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 6/6] ARM: sun8i: a83t: cubietruck-plus: Enable SPDIF output
[not found] ` <20170522062552.19026-1-wens-jdAy2FN1RRM@public.gmane.org>
` (4 preceding siblings ...)
2017-05-22 6:25 ` [PATCH 5/6] ARM: sun8i: a83t: Add device node for SPDIF transmitter Chen-Yu Tsai
@ 2017-05-22 6:25 ` Chen-Yu Tsai
[not found] ` <20170522062552.19026-7-wens-jdAy2FN1RRM@public.gmane.org>
5 siblings, 1 reply; 19+ messages in thread
From: Chen-Yu Tsai @ 2017-05-22 6:25 UTC (permalink / raw)
To: Linus Walleij, Maxime Ripard
Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
The Cubietruck Plus has an optical SPDIF out connector.
Enable SPDIF audio output for this board.
Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
---
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
index 9e10cc6f39d4..cff33454fc24 100644
--- a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
@@ -82,6 +82,28 @@
gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */
};
};
+
+ sound {
+ 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";
+ };
+};
+
+&spdif {
+ status = "okay";
};
&uart0 {
--
2.11.0
^ permalink raw reply related [flat|nested] 19+ messages in thread