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		assigned-clocks = <&clkc CLKID_MPLL0>,
20				  <&clkc CLKID_MPLL1>,
21				  <&clkc CLKID_MPLL2>;
22		assigned-clock-parents = <0>, <0>, <0>;
23		assigned-clock-rates = <294912000>,
24				       <270950400>,
25				       <393216000>;
26
27		dai-link-0 {
28			sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
29		};
30
31		dai-link-1 {
32			sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
33			dai-format = "i2s";
34			mclk-fs = <256>;
35
36			codec-0 {
37				sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
38			};
39		};
40
41		dai-link-2 {
42			sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
43
44			codec-0 {
45				sound-dai = <&hdmi_tx>;
46			};
47		};
48	};
49};
50
51&aiu {
52	status = "okay";
53};
54
55&ir {
56	linux,rc-map-name = "rc-wetek-hub";
57};
58