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";
42 poll-interval = <100>;
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
52 compatible = "amlogic,gx-sound-card";
53 model = "GXBB-WETEK-PLAY2";
54 assigned-clocks = <&clkc CLKID_MPLL0>,
57 assigned-clock-parents = <0>, <0>, <0>;
58 assigned-clock-rates = <294912000>,
64 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
68 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
72 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
77 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
82 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
85 sound-dai = <&spdif_dit>;
90 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
93 sound-dai = <&hdmi_tx>;
101 pinctrl-0 = <&spdif_out_y_pins>;
102 pinctrl-names = "default";
107 pinctrl-0 = <&i2c_a_pins>;
108 pinctrl-names = "default";
120 linux,rc-map-name = "rc-wetek-play2";