diff options
author | Katsuhiro Suzuki <katsuhiro@katsuster.net> | 2018-09-17 21:26:33 +0900 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2018-09-22 22:51:15 +0200 |
commit | e007e4e0d87649cae4359a9776d2e14b67dd7187 (patch) | |
tree | 72aa060f2c567cf7ed1dc6014dbf2015e08edf10 /arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | |
parent | arm64: dts: rockchip: Fix microSD in rk3399 sapphire board (diff) | |
download | linux-dev-e007e4e0d87649cae4359a9776d2e14b67dd7187.tar.xz linux-dev-e007e4e0d87649cae4359a9776d2e14b67dd7187.zip |
arm64: dts: rockchip: add spdif sound node for rock64
This patch adds sound card node for rock64. Currently we can support
S/PDIF only. It seems the lack of codec driver of rk3328 to enable
analog audio out.
Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3328-rock64.dts')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts index 5852061e497b..9ee4f57557f3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts @@ -62,6 +62,23 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; }; + + sound { + compatible = "audio-graph-card"; + label = "rockchip,rk3328"; + dais = <&spdif_p0>; + }; + + spdif-dit { + compatible = "linux,spdif-dit"; + #sound-dai-cells = <0>; + + port { + dit_p0_0: endpoint { + remote-endpoint = <&spdif_p0_0>; + }; + }; + }; }; &cpu0 { @@ -261,6 +278,18 @@ status = "okay"; }; +&spdif { + pinctrl-0 = <&spdifm0_tx>; + status = "okay"; + #sound-dai-cells = <0>; + + spdif_p0: port { + spdif_p0_0: endpoint { + remote-endpoint = <&dit_p0_0>; + }; + }; +}; + &tsadc { rockchip,hw-tshut-mode = <0>; rockchip,hw-tshut-polarity = <0>; |