0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2016 BayLibre, Inc.
0004 * Author: Neil Armstrong <narmstrong@baylibre.com>
0005 */
0006
0007 /dts-v1/;
0008
0009 #include "meson-gxbb-wetek.dtsi"
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/sound/meson-aiu.h>
0012
0013 / {
0014 compatible = "wetek,play2", "amlogic,meson-gxbb";
0015 model = "WeTek Play 2";
0016
0017 spdif_dit: audio-codec-0 {
0018 #sound-dai-cells = <0>;
0019 compatible = "linux,spdif-dit";
0020 status = "okay";
0021 sound-name-prefix = "DIT";
0022 };
0023
0024 leds {
0025 led-wifi {
0026 label = "wetek-play:wifi-status";
0027 gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>;
0028 default-state = "off";
0029 };
0030
0031 led-ethernet {
0032 label = "wetek-play:ethernet-status";
0033 gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>;
0034 default-state = "off";
0035 };
0036 };
0037
0038 gpio-keys-polled {
0039 compatible = "gpio-keys-polled";
0040 poll-interval = <100>;
0041
0042 button {
0043 label = "reset";
0044 linux,code = <KEY_RESTART>;
0045 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
0046 };
0047 };
0048
0049 sound {
0050 compatible = "amlogic,gx-sound-card";
0051 model = "WETEK-PLAY2";
0052 assigned-clocks = <&clkc CLKID_MPLL0>,
0053 <&clkc CLKID_MPLL1>,
0054 <&clkc CLKID_MPLL2>;
0055 assigned-clock-parents = <0>, <0>, <0>;
0056 assigned-clock-rates = <294912000>,
0057 <270950400>,
0058 <393216000>;
0059 status = "okay";
0060
0061 dai-link-0 {
0062 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
0063 };
0064
0065 dai-link-1 {
0066 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
0067 };
0068
0069 dai-link-2 {
0070 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
0071 dai-format = "i2s";
0072 mclk-fs = <256>;
0073
0074 codec-0 {
0075 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
0076 };
0077 };
0078
0079 dai-link-3 {
0080 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
0081
0082 codec-0 {
0083 sound-dai = <&spdif_dit>;
0084 };
0085 };
0086
0087 dai-link-4 {
0088 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
0089
0090 codec-0 {
0091 sound-dai = <&hdmi_tx>;
0092 };
0093 };
0094 };
0095 };
0096
0097 &aiu {
0098 status = "okay";
0099 pinctrl-0 = <&spdif_out_y_pins>;
0100 pinctrl-names = "default";
0101 };
0102
0103 &i2c_A {
0104 status = "okay";
0105 pinctrl-0 = <&i2c_a_pins>;
0106 pinctrl-names = "default";
0107 };
0108
0109 &usb1_phy {
0110 status = "okay";
0111 };
0112
0113 &usb1 {
0114 status = "okay";
0115 };
0116
0117 &ir {
0118 linux,rc-map-name = "rc-wetek-play2";
0119 };