1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre SAS. All rights reserved.
8 #include "meson-g12a.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/meson-g12a-gpio.h>
12 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
15 compatible = "seirobotics,sei510", "amlogic,g12a";
16 model = "SEI Robotics SEI510";
19 compatible = "adc-keys";
20 io-channels = <&saradc 0>;
21 io-channel-names = "buttons";
22 keyup-threshold-microvolt = <1800000>;
26 linux,code = <KEY_POWER>;
27 press-threshold-microvolt = <1700000>;
36 mono_dac: audio-codec-0 {
37 compatible = "maxim,max98357a";
38 #sound-dai-cells = <0>;
39 sound-name-prefix = "U16";
40 sdmode-gpios = <&gpio GPIOX_8 GPIO_ACTIVE_HIGH>;
43 dmics: audio-codec-1 {
44 #sound-dai-cells = <0>;
45 compatible = "dmic-codec";
47 wakeup-delay-ms = <50>;
49 sound-name-prefix = "MIC";
53 stdout-path = "serial0:115200n8";
57 compatible = "composite-video-connector";
60 cvbs_connector_in: endpoint {
61 remote-endpoint = <&cvbs_vdac_out>;
66 emmc_pwrseq: emmc-pwrseq {
67 compatible = "mmc-pwrseq-emmc";
68 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
72 compatible = "hdmi-connector";
76 hdmi_connector_in: endpoint {
77 remote-endpoint = <&hdmi_tx_tmds_out>;
83 device_type = "memory";
84 reg = <0x0 0x0 0x0 0x40000000>;
87 ao_5v: regulator-ao_5v {
88 compatible = "regulator-fixed";
89 regulator-name = "AO_5V";
90 regulator-min-microvolt = <5000000>;
91 regulator-max-microvolt = <5000000>;
92 vin-supply = <&dc_in>;
96 dc_in: regulator-dc_in {
97 compatible = "regulator-fixed";
98 regulator-name = "DC_IN";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
104 emmc_1v8: regulator-emmc_1v8 {
105 compatible = "regulator-fixed";
106 regulator-name = "EMMC_1V8";
107 regulator-min-microvolt = <1800000>;
108 regulator-max-microvolt = <1800000>;
109 vin-supply = <&vddao_3v3>;
113 vddao_3v3: regulator-vddao_3v3 {
114 compatible = "regulator-fixed";
115 regulator-name = "VDDAO_3V3";
116 regulator-min-microvolt = <3300000>;
117 regulator-max-microvolt = <3300000>;
118 vin-supply = <&dc_in>;
122 vddao_3v3_t: regultor-vddao_3v3_t {
123 compatible = "regulator-fixed";
124 regulator-name = "VDDAO_3V3_T";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 vin-supply = <&vddao_3v3>;
128 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
132 vddcpu: regulator-vddcpu {
134 * SY8120B1ABC DC/DC Regulator.
136 compatible = "pwm-regulator";
138 regulator-name = "VDDCPU";
139 regulator-min-microvolt = <721000>;
140 regulator-max-microvolt = <1022000>;
142 vin-supply = <&dc_in>;
144 pwms = <&pwm_AO_cd 1 1250 0>;
145 pwm-dutycycle-range = <100 0>;
151 vddio_ao1v8: regulator-vddio_ao1v8 {
152 compatible = "regulator-fixed";
153 regulator-name = "VDDIO_AO1V8";
154 regulator-min-microvolt = <1800000>;
155 regulator-max-microvolt = <1800000>;
156 vin-supply = <&vddao_3v3>;
161 /* TEE Reserved Memory */
162 bl32_reserved: bl32@5000000 {
163 reg = <0x0 0x05300000 0x0 0x2000000>;
168 sdio_pwrseq: sdio-pwrseq {
169 compatible = "mmc-pwrseq-simple";
170 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
172 clock-names = "ext_clock";
176 compatible = "pwm-clock";
178 clock-frequency = <32768>;
179 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
183 compatible = "amlogic,axg-sound-card";
184 model = "G12A-SEI510";
185 audio-aux-devs = <&tdmout_a>, <&tdmout_b>,
186 <&tdmin_a>, <&tdmin_b>;
187 audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0",
188 "TDMOUT_A IN 1", "FRDDR_B OUT 0",
189 "TDMOUT_A IN 2", "FRDDR_C OUT 0",
190 "TDM_A Playback", "TDMOUT_A OUT",
191 "TDMOUT_B IN 0", "FRDDR_A OUT 1",
192 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
193 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
194 "TDM_B Playback", "TDMOUT_B OUT",
195 "TODDR_A IN 4", "PDM Capture",
196 "TODDR_B IN 4", "PDM Capture",
197 "TODDR_C IN 4", "PDM Capture",
198 "TDMIN_A IN 0", "TDM_A Capture",
199 "TDMIN_A IN 3", "TDM_A Loopback",
200 "TDMIN_B IN 0", "TDM_A Capture",
201 "TDMIN_B IN 3", "TDM_A Loopback",
202 "TDMIN_A IN 1", "TDM_B Capture",
203 "TDMIN_A IN 4", "TDM_B Loopback",
204 "TDMIN_B IN 1", "TDM_B Capture",
205 "TDMIN_B IN 4", "TDM_B Loopback",
206 "TODDR_A IN 0", "TDMIN_A OUT",
207 "TODDR_B IN 0", "TDMIN_A OUT",
208 "TODDR_C IN 0", "TDMIN_A OUT",
209 "TODDR_A IN 1", "TDMIN_B OUT",
210 "TODDR_B IN 1", "TDMIN_B OUT",
211 "TODDR_C IN 1", "TDMIN_B OUT";
213 assigned-clocks = <&clkc CLKID_MPLL2>,
216 assigned-clock-parents = <0>, <0>, <0>;
217 assigned-clock-rates = <294912000>,
223 sound-dai = <&frddr_a>;
227 sound-dai = <&frddr_b>;
231 sound-dai = <&frddr_c>;
235 sound-dai = <&toddr_a>;
239 sound-dai = <&toddr_b>;
243 sound-dai = <&toddr_c>;
246 /* internal speaker interface */
248 sound-dai = <&tdmif_a>;
250 dai-tdm-slot-tx-mask-0 = <1 1>;
254 sound-dai = <&mono_dac>;
258 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>;
262 /* 8ch hdmi interface */
264 sound-dai = <&tdmif_b>;
266 dai-tdm-slot-tx-mask-0 = <1 1>;
267 dai-tdm-slot-tx-mask-1 = <1 1>;
268 dai-tdm-slot-tx-mask-2 = <1 1>;
269 dai-tdm-slot-tx-mask-3 = <1 1>;
273 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
277 /* internal digital mics */
282 sound-dai = <&dmics>;
288 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
291 sound-dai = <&hdmi_tx>;
302 pinctrl-0 = <&cec_ao_a_h_pins>;
303 pinctrl-names = "default";
305 hdmi-phandle = <&hdmi_tx>;
309 pinctrl-0 = <&cec_ao_b_h_pins>;
310 pinctrl-names = "default";
312 hdmi-phandle = <&hdmi_tx>;
320 cpu-supply = <&vddcpu>;
321 operating-points-v2 = <&cpu_opp_table>;
322 clocks = <&clkc CLKID_CPU_CLK>;
323 clock-latency = <50000>;
327 cpu-supply = <&vddcpu>;
328 operating-points-v2 = <&cpu_opp_table>;
329 clocks = <&clkc CLKID_CPU_CLK>;
330 clock-latency = <50000>;
334 cpu-supply = <&vddcpu>;
335 operating-points-v2 = <&cpu_opp_table>;
336 clocks = <&clkc CLKID_CPU_CLK>;
337 clock-latency = <50000>;
341 cpu-supply = <&vddcpu>;
342 operating-points-v2 = <&cpu_opp_table>;
343 clocks = <&clkc CLKID_CPU_CLK>;
344 clock-latency = <50000>;
348 cvbs_vdac_out: endpoint {
349 remote-endpoint = <&cvbs_connector_in>;
355 phy-handle = <&internal_ephy>;
373 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
374 pinctrl-names = "default";
378 hdmi_tx_tmds_out: endpoint {
379 remote-endpoint = <&hdmi_connector_in>;
385 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
386 pinctrl-names = "default";
391 pinctrl-0 = <&remote_input_ao_pins>;
392 pinctrl-names = "default";
396 pinctrl-0 = <&pwm_ao_d_e_pins>;
397 pinctrl-names = "default";
399 clock-names = "clkin1";
405 pinctrl-0 = <&pwm_e_pins>;
406 pinctrl-names = "default";
408 clock-names = "clkin0";
412 pinctrl-0 = <&pdm_din0_z_pins>, <&pdm_din1_z_pins>,
413 <&pdm_din2_z_pins>, <&pdm_din3_z_pins>,
415 pinctrl-names = "default";
421 vref-supply = <&vddio_ao1v8>;
427 pinctrl-0 = <&sdio_pins>;
428 pinctrl-1 = <&sdio_clk_gate_pins>;
429 pinctrl-names = "default", "clk-gate";
430 #address-cells = <1>;
436 max-frequency = <100000000>;
441 /* WiFi firmware requires power to be kept while in suspend */
442 keep-power-in-suspend;
444 mmc-pwrseq = <&sdio_pwrseq>;
446 vmmc-supply = <&vddao_3v3>;
447 vqmmc-supply = <&vddio_ao1v8>;
451 compatible = "brcm,bcm4329-fmac";
458 pinctrl-0 = <&sdcard_c_pins>;
459 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
460 pinctrl-names = "default", "clk-gate";
464 max-frequency = <50000000>;
467 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
468 vmmc-supply = <&vddao_3v3>;
469 vqmmc-supply = <&vddao_3v3>;
475 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
476 pinctrl-1 = <&emmc_clk_gate_pins>;
477 pinctrl-names = "default", "clk-gate";
483 max-frequency = <200000000>;
487 mmc-pwrseq = <&emmc_pwrseq>;
488 vmmc-supply = <&vddao_3v3>;
489 vqmmc-supply = <&emmc_1v8>;
493 pinctrl-0 = <&tdm_a_dout0_pins>, <&tdm_a_fs_pins>, <&tdm_a_sclk_pins>;
494 pinctrl-names = "default";
497 assigned-clocks = <&clkc_audio AUD_CLKID_TDM_SCLK_PAD0>,
498 <&clkc_audio AUD_CLKID_TDM_LRCLK_PAD0>;
499 assigned-clock-parents = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
500 <&clkc_audio AUD_CLKID_MST_A_LRCLK>;
501 assigned-clock-rates = <0>, <0>;
542 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
543 pinctrl-names = "default";
547 compatible = "brcm,bcm43438-bt";
548 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
549 max-speed = <2000000>;
552 vbat-supply = <&vddao_3v3>;
553 vddio-supply = <&vddio_ao1v8>;
559 pinctrl-0 = <&uart_ao_a_pins>;
560 pinctrl-names = "default";