1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 BayLibre, Inc.
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
9 #include "meson-gxbb-wetek.dtsi"
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/sound/meson-aiu.h>
14 compatible = "wetek,play2", "amlogic,meson-gxbb";
15 model = "WeTek Play 2";
17 spdif_dit: audio-codec-0 {
18 #sound-dai-cells = <0>;
19 compatible = "linux,spdif-dit";
21 sound-name-prefix = "DIT";
26 label = "wetek-play:wifi-status";
27 gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>;
28 default-state = "off";
32 label = "wetek-play:ethernet-status";
33 gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>;
34 default-state = "off";
39 compatible = "gpio-keys-polled";
40 poll-interval = <100>;
44 linux,code = <KEY_RESTART>;
45 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
50 compatible = "amlogic,gx-sound-card";
51 model = "WETEK-PLAY2";
52 assigned-clocks = <&clkc CLKID_MPLL0>,
55 assigned-clock-parents = <0>, <0>, <0>;
56 assigned-clock-rates = <294912000>,
61 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
65 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
69 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
74 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
79 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
82 sound-dai = <&spdif_dit>;
87 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
90 sound-dai = <&hdmi_tx>;
98 pinctrl-0 = <&spdif_out_y_pins>;
99 pinctrl-names = "default";
104 pinctrl-0 = <&i2c_a_pins>;
105 pinctrl-names = "default";
117 linux,rc-map-name = "rc-wetek-play2";