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/leds/common.h>
12 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
15 compatible = "azw,gsking-x", "amlogic,s922x", "amlogic,g12b";
16 model = "Beelink GS-King X";
24 compatible = "gpio-keys-polled";
27 poll-interval = <100>;
31 linux,code = <KEY_POWER>;
32 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
37 compatible = "amlogic,axg-sound-card";
39 audio-aux-devs = <&tdmout_a>;
40 audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 1",
41 "TDMOUT_A IN 1", "FRDDR_B OUT 1",
42 "TDMOUT_A IN 2", "FRDDR_C OUT 1",
43 "TDM_A Playback", "TDMOUT_A OUT";
45 assigned-clocks = <&clkc CLKID_MPLL2>,
48 assigned-clock-parents = <0>, <0>, <0>;
49 assigned-clock-rates = <294912000>,
55 sound-dai = <&frddr_a>;
59 sound-dai = <&frddr_b>;
63 sound-dai = <&frddr_c>;
66 /* 8ch hdmi interface */
68 sound-dai = <&tdmif_a>;
70 dai-tdm-slot-tx-mask-0 = <1 1>;
71 dai-tdm-slot-tx-mask-1 = <1 1>;
72 dai-tdm-slot-tx-mask-2 = <1 1>;
73 dai-tdm-slot-tx-mask-3 = <1 1>;
77 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>;
82 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
85 sound-dai = <&hdmi_tx>;
113 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
114 pinctrl-names = "default";
117 compatible = "nxp,pcf8563";