xref: /linux/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts (revision c7546e2c3cb739a3c1a2f5acaf9bb629d401afe5)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2016 BayLibre, Inc.
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 */
6
7/dts-v1/;
8
9#include "meson-gxbb-wetek.dtsi"
10#include <dt-bindings/sound/meson-aiu.h>
11
12/ {
13	compatible = "wetek,hub", "amlogic,meson-gxbb";
14	model = "WeTek Hub";
15
16	sound {
17		compatible = "amlogic,gx-sound-card";
18		model = "WETEK-HUB";
19		clocks = <&clkc CLKID_MPLL0>,
20			 <&clkc CLKID_MPLL1>,
21			 <&clkc CLKID_MPLL2>;
22
23		assigned-clocks = <&clkc CLKID_MPLL0>,
24				  <&clkc CLKID_MPLL1>,
25				  <&clkc CLKID_MPLL2>;
26		assigned-clock-parents = <0>, <0>, <0>;
27		assigned-clock-rates = <294912000>,
28				       <270950400>,
29				       <393216000>;
30
31		dai-link-0 {
32			sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
33		};
34
35		dai-link-1 {
36			sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
37			dai-format = "i2s";
38			mclk-fs = <256>;
39
40			codec-0 {
41				sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
42			};
43		};
44
45		dai-link-2 {
46			sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
47
48			codec-0 {
49				sound-dai = <&hdmi_tx>;
50			};
51		};
52	};
53};
54
55&aiu {
56	status = "okay";
57};
58
59&ir {
60	linux,rc-map-name = "rc-wetek-hub";
61};
62