Debian Codegraph @

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2018 BayLibre, SAS.
4 * Author: Neil Armstrong <[email protected]>
5 * Author: Jerome Brunet <[email protected]>
6 */
7
8 /dts-v1/;
9
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/sound/meson-aiu.h>
12
13 #include "meson-gxl-s805x.dtsi"
14
15 / {
16 compatible = "amlogic,p241", "amlogic,s805x", "amlogic,meson-gxl";
17 model = "Amlogic Meson GXL (S805X) P241 Development Board";
18
19 aliases {
20 serial0 = &uart_AO;
21 serial1 = &uart_A;
22 ethernet0 = &ethmac;
23 };
24
25 au2: analog-amplifier {
26 compatible = "simple-audio-amplifier";
27 sound-name-prefix = "AU2";
28 VCC-supply = <&vcc_5v>;
29 enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
30 };
31
32 chosen {
33 stdout-path = "serial0:115200n8";
34 };
35
36 cvbs-connector {
37 compatible = "composite-video-connector";
38
39 port {
40 cvbs_connector_in: endpoint {
41 remote-endpoint = <&cvbs_vdac_out>;
42 };
43 };
44 };
45
46 emmc_pwrseq: emmc-pwrseq {
47 compatible = "mmc-pwrseq-emmc";
48 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
49 };
50
51 hdmi-connector {
52 compatible = "hdmi-connector";
53 type = "a";
54
55 port {
56 hdmi_connector_in: endpoint {
57 remote-endpoint = <&hdmi_tx_tmds_out>;
58 };
59 };
60 };
61
62 memory@0 {
63 device_type = "memory";
64 reg = <0x0 0x0 0x0 0x20000000>;
65 };
66
67 vddio_boot: regulator-vddio-boot {
68 compatible = "regulator-fixed";
69 regulator-name = "VDDIO_BOOT";
70 regulator-min-microvolt = <1800000>;
71 regulator-max-microvolt = <1800000>;
72 };
73
74 vddao_3v3: regulator-vddao-3v3 {
75 compatible = "regulator-fixed";
76 regulator-name = "VDDAO_3V3";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
79 };
80
81 vddio_ao18: regulator-vddio-ao18 {
82 compatible = "regulator-fixed";
83 regulator-name = "VDDIO_AO18";
84 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <1800000>;
86 };
87
88 vcc_3v3: regulator-vcc-3v3 {
89 compatible = "regulator-fixed";
90 regulator-name = "VCC_3V3";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
93 };
94
95 vcc_5v: regulator-vcc-5v {
96 compatible = "regulator-fixed";
97 regulator-name = "VCC_5V";
98 regulator-min-microvolt = <5000000>;
99 regulator-max-microvolt = <5000000>;
100 };
101
102
103 emmc_pwrseq: emmc-pwrseq {
104 compatible = "mmc-pwrseq-emmc";
105 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
106 };
107
108 wifi32k: wifi32k {
109 compatible = "pwm-clock";
110 #clock-cells = <0>;
111 clock-frequency = <32768>;
112 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
113 };
114
115 sdio_pwrseq: sdio-pwrseq {
116 compatible = "mmc-pwrseq-simple";
117 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
118 clocks = <&wifi32k>;
119 clock-names = "ext_clock";
120 };
121
122 sound {
123 compatible = "amlogic,gx-sound-card";
124 model = "GXL-P241";
125 audio-aux-devs = <&au2>;
126 audio-widgets = "Line", "Lineout";
127 audio-routing = "AU2 INL", "ACODEC LOLN",
128 "AU2 INR", "ACODEC LORN",
129 "Lineout", "AU2 OUTL",
130 "Lineout", "AU2 OUTR";
131 clocks = <&clkc CLKID_MPLL0>,
132 <&clkc CLKID_MPLL1>,
133 <&clkc CLKID_MPLL2>;
134
135 assigned-clocks = <&clkc CLKID_MPLL0>,
136 <&clkc CLKID_MPLL1>,
137 <&clkc CLKID_MPLL2>;
138 assigned-clock-rates = <294912000>,
139 <270950400>,
140 <393216000>;
141
142 dai-link-0 {
143 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
144 };
145
146 dai-link-1 {
147 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
148 dai-format = "i2s";
149 mclk-fs = <256>;
150
151 codec-0 {
152 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
153 };
154
155 codec-1 {
156 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
157 };
158 };
159
160 dai-link-2 {
161 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
162
163 codec-0 {
164 sound-dai = <&hdmi_tx>;
165 };
166 };
167
168 dai-link-3 {
169 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
170
171 codec-0 {
172 sound-dai = <&acodec>;
173 };
174 };
175 };
176 };
177
178 &acodec {
179 AVDD-supply = <&vddio_ao18>;
180 status = "okay";
181 };
182
183 &aiu {
184 status = "okay";
185 };
186
187 &cec_AO {
188 status = "okay";
189 pinctrl-0 = <&ao_cec_pins>;
190 pinctrl-names = "default";
191 hdmi-phandle = <&hdmi_tx>;
192 };
193
194 &cvbs_vdac_port {
195 cvbs_vdac_out: endpoint {
196 remote-endpoint = <&cvbs_connector_in>;
197 };
198 };
199
200 &ethmac {
201 status = "okay";
202 };
203
204 &internal_phy {
205 pinctrl-0 = <&eth_link_led_pins>, <&eth_act_led_pins>;
206 pinctrl-names = "default";
207 };
208
209 &ir {
210 status = "okay";
211 pinctrl-0 = <&remote_input_ao_pins>;
212 pinctrl-names = "default";
213 };
214
215 &hdmi_tx {
216 status = "okay";
217 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
218 pinctrl-names = "default";
219 hdmi-supply = <&vcc_5v>;
220 };
221
222 &hdmi_tx_tmds_port {
223 hdmi_tx_tmds_out: endpoint {
224 remote-endpoint = <&hdmi_connector_in>;
225 };
226 };
227
228 &saradc {
229 status = "okay";
230 vref-supply = <&vddio_ao18>;
231 };
232
233 /* Wireless SDIO Module */
234 &sd_emmc_a {
235 status = "okay";
236 pinctrl-0 = <&sdio_pins>;
237 pinctrl-1 = <&sdio_clk_gate_pins>;
238 pinctrl-names = "default", "clk-gate";
239 #address-cells = <1>;
240 #size-cells = <0>;
241
242 bus-width = <4>;
243 cap-sd-highspeed;
244 max-frequency = <50000000>;
245
246 non-removable;
247 disable-wp;
248
249 /* WiFi firmware requires power to be kept while in suspend */
250 keep-power-in-suspend;
251
252 mmc-pwrseq = <&sdio_pwrseq>;
253
254 vmmc-supply = <&vddao_3v3>;
255 vqmmc-supply = <&vddio_boot>;
256 };
257
258 /* eMMC */
259 &sd_emmc_c {
260 status = "okay";
261 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
262 pinctrl-1 = <&emmc_clk_gate_pins>;
263 pinctrl-names = "default", "clk-gate";
264
265 bus-width = <8>;
266 cap-mmc-highspeed;
267 max-frequency = <200000000>;
268 non-removable;
269 disable-wp;
270 mmc-ddr-1_8v;
271 mmc-hs200-1_8v;
272
273 mmc-pwrseq = <&emmc_pwrseq>;
274 vmmc-supply = <&vcc_3v3>;
275 vqmmc-supply = <&vddio_boot>;
276 };
277
278 &pwm_ef {
279 status = "okay";
280 pinctrl-0 = <&pwm_e_pins>;
281 pinctrl-names = "default";
282 };
283
284 /* This is connected to the Bluetooth module: */
285 &uart_A {
286 status = "okay";
287 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
288 pinctrl-names = "default";
289 uart-has-rtscts;
290 };
291
292 &uart_AO {
293 status = "okay";
294 pinctrl-0 = <&uart_ao_a_pins>;
295 pinctrl-names = "default";
296 };
297
298 &usb {
299 status = "okay";
300 dr_mode = "host";
301 };
302
303 &usb2_phy0 {
304 phy-supply = <&vcc_5v>;
305 };