1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2016 BayLibre, Inc. 4 * Author: Neil Armstrong <narmstrong@baylibre.com> 5 */ 6 7/dts-v1/; 8 9#include "meson-gxbb-wetek.dtsi" 10#include <dt-bindings/input/input.h> 11#include <dt-bindings/sound/meson-aiu.h> 12 13/ { 14 compatible = "wetek,play2", "amlogic,meson-gxbb"; 15 model = "WeTek Play 2"; 16 17 spdif_dit: audio-codec-0 { 18 #sound-dai-cells = <0>; 19 compatible = "linux,spdif-dit"; 20 status = "okay"; 21 sound-name-prefix = "DIT"; 22 }; 23 24 leds { 25 led-wifi { 26 label = "wetek-play:wifi-status"; 27 gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>; 28 default-state = "off"; 29 }; 30 31 led-ethernet { 32 label = "wetek-play:ethernet-status"; 33 gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>; 34 default-state = "off"; 35 }; 36 }; 37 38 gpio-keys-polled { 39 compatible = "gpio-keys-polled"; 40 poll-interval = <100>; 41 42 button { 43 label = "reset"; 44 linux,code = <KEY_RESTART>; 45 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>; 46 }; 47 }; 48 49 sound { 50 compatible = "amlogic,gx-sound-card"; 51 model = "WETEK-PLAY2"; 52 assigned-clocks = <&clkc CLKID_MPLL0>, 53 <&clkc CLKID_MPLL1>, 54 <&clkc CLKID_MPLL2>; 55 assigned-clock-parents = <0>, <0>, <0>; 56 assigned-clock-rates = <294912000>, 57 <270950400>, 58 <393216000>; 59 60 dai-link-0 { 61 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; 62 }; 63 64 dai-link-1 { 65 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; 66 }; 67 68 dai-link-2 { 69 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; 70 dai-format = "i2s"; 71 mclk-fs = <256>; 72 73 codec-0 { 74 sound-dai = <&aiu AIU_HDMI CTRL_I2S>; 75 }; 76 }; 77 78 dai-link-3 { 79 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; 80 81 codec-0 { 82 sound-dai = <&spdif_dit>; 83 }; 84 }; 85 86 dai-link-4 { 87 sound-dai = <&aiu AIU_HDMI CTRL_OUT>; 88 89 codec-0 { 90 sound-dai = <&hdmi_tx>; 91 }; 92 }; 93 }; 94}; 95 96&aiu { 97 status = "okay"; 98 pinctrl-0 = <&spdif_out_y_pins>; 99 pinctrl-names = "default"; 100}; 101 102&i2c_A { 103 status = "okay"; 104 pinctrl-0 = <&i2c_a_pins>; 105 pinctrl-names = "default"; 106}; 107 108&usb1_phy { 109 status = "okay"; 110}; 111 112&usb1 { 113 status = "okay"; 114}; 115 116&ir { 117 linux,rc-map-name = "rc-wetek-play2"; 118}; 119