Debian Codegraph @

arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts

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