xref: /freebsd/sys/contrib/device-tree/src/arm64/amlogic/meson-sm1-a95xf3-air.dts (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 BayLibre SAS. All rights reserved.
4 * Copyright (c) 2020 Christian Hewitt <christianshewitt@gmail.com>
5 */
6
7/dts-v1/;
8
9#include "meson-sm1-ac2xx.dtsi"
10#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
11
12/ {
13	compatible = "cyx,a95xf3-air", "amlogic,sm1";
14	model = "Shenzhen CYX Industrial Co., Ltd A95XF3-AIR";
15
16	sound {
17		compatible = "amlogic,axg-sound-card";
18		model = "A95XF3-AIR";
19		audio-aux-devs = <&tdmout_b>;
20		audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
21				"TDMOUT_B IN 1", "FRDDR_B OUT 1",
22				"TDMOUT_B IN 2", "FRDDR_C OUT 1",
23				"TDM_B Playback", "TDMOUT_B OUT";
24
25		assigned-clocks = <&clkc CLKID_MPLL2>,
26				  <&clkc CLKID_MPLL0>,
27				  <&clkc CLKID_MPLL1>;
28		assigned-clock-parents = <0>, <0>, <0>;
29		assigned-clock-rates = <294912000>,
30				       <270950400>,
31				       <393216000>;
32		status = "okay";
33
34		dai-link-0 {
35			sound-dai = <&frddr_a>;
36		};
37
38		dai-link-1 {
39			sound-dai = <&frddr_b>;
40		};
41
42		dai-link-2 {
43			sound-dai = <&frddr_c>;
44		};
45
46		/* 8ch hdmi interface */
47		dai-link-3 {
48			sound-dai = <&tdmif_b>;
49			dai-format = "i2s";
50			dai-tdm-slot-tx-mask-0 = <1 1>;
51			dai-tdm-slot-tx-mask-1 = <1 1>;
52			dai-tdm-slot-tx-mask-2 = <1 1>;
53			dai-tdm-slot-tx-mask-3 = <1 1>;
54			mclk-fs = <256>;
55
56			codec {
57				sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
58			};
59		};
60
61		/* hdmi glue */
62		dai-link-4 {
63			sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
64
65			codec {
66				sound-dai = <&hdmi_tx>;
67			};
68		};
69	};
70};
71
72&arb {
73	status = "okay";
74};
75
76&clkc_audio {
77	status = "okay";
78};
79
80&ethmac {
81	status = "okay";
82	phy-handle = <&internal_ephy>;
83	phy-mode = "rmii";
84};
85
86&frddr_a {
87	status = "okay";
88};
89
90&frddr_b {
91	status = "okay";
92};
93
94&frddr_c {
95	status = "okay";
96};
97
98&tdmif_b {
99	status = "okay";
100};
101
102&tdmout_b {
103	status = "okay";
104};
105
106&tohdmitx {
107	status = "okay";
108};
109