1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 * Copyright (c) 2019 Christian Hewitt <christianshewitt@gmail.com>
10 #include "meson-g12b-w400.dtsi"
11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
14 compatible = "ugoos,am6", "amlogic,s922x", "amlogic,g12b";
17 spdif_dit: audio-codec-1 {
18 #sound-dai-cells = <0>;
19 compatible = "linux,spdif-dit";
21 sound-name-prefix = "DIT";
25 compatible = "amlogic,axg-sound-card";
26 model = "G12B-UGOOS-AM6";
27 audio-aux-devs = <&tdmout_b>;
28 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
29 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
30 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
31 "TDM_B Playback", "TDMOUT_B OUT",
32 "SPDIFOUT IN 0", "FRDDR_A OUT 3",
33 "SPDIFOUT IN 1", "FRDDR_B OUT 3",
34 "SPDIFOUT IN 2", "FRDDR_C OUT 3";
36 assigned-clocks = <&clkc CLKID_MPLL2>,
39 assigned-clock-parents = <0>, <0>, <0>;
40 assigned-clock-rates = <294912000>,
46 sound-dai = <&frddr_a>;
50 sound-dai = <&frddr_b>;
54 sound-dai = <&frddr_c>;
57 /* 8ch hdmi interface */
59 sound-dai = <&tdmif_b>;
61 dai-tdm-slot-tx-mask-0 = <1 1>;
62 dai-tdm-slot-tx-mask-1 = <1 1>;
63 dai-tdm-slot-tx-mask-2 = <1 1>;
64 dai-tdm-slot-tx-mask-3 = <1 1>;
68 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
72 /* spdif hdmi or toslink interface */
74 sound-dai = <&spdifout>;
77 sound-dai = <&spdif_dit>;
81 sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_A>;
85 /* spdif hdmi interface */
87 sound-dai = <&spdifout_b>;
90 sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_B>;
96 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
99 sound-dai = <&hdmi_tx>;
126 linux,rc-map-name = "rc-khadas";
130 pinctrl-0 = <&spdif_out_h_pins>;
131 pinctrl-names = "default";
153 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
154 pinctrl-names = "default";
158 compatible = "brcm,bcm43438-bt";
159 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
160 max-speed = <2000000>;
168 pinctrl-0 = <&uart_ao_a_pins>;
169 pinctrl-names = "default";
175 vbus-supply = <&usb_pwr_en>;
179 phy-supply = <&usb1_pow>;
183 phy-supply = <&usb1_pow>;