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 = "azw,gtking", "amlogic,g12b";
15 model = "Beelink GT-King Pro";
18 compatible = "gpio-keys-polled";
21 poll-interval = <100>;
25 linux,code = <KEY_POWER>;
26 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
31 compatible = "gpio-leds";
34 label = "power:white";
35 gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
41 compatible = "amlogic,axg-sound-card";
42 model = "G12B-GTKING-PRO";
43 audio-aux-devs = <&tdmout_b>;
44 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
45 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
46 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
47 "TDM_B Playback", "TDMOUT_B OUT";
49 assigned-clocks = <&clkc CLKID_MPLL2>,
52 assigned-clock-parents = <0>, <0>, <0>;
53 assigned-clock-rates = <294912000>,
59 sound-dai = <&frddr_a>;
63 sound-dai = <&frddr_b>;
67 sound-dai = <&frddr_c>;
70 /* 8ch hdmi interface */
72 sound-dai = <&tdmif_b>;
74 dai-tdm-slot-tx-mask-0 = <1 1>;
75 dai-tdm-slot-tx-mask-1 = <1 1>;
76 dai-tdm-slot-tx-mask-2 = <1 1>;
77 dai-tdm-slot-tx-mask-3 = <1 1>;
81 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
86 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
89 sound-dai = <&hdmi_tx>;