1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre SAS. All rights reserved.
8 #include "meson-sm1.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,sei610", "amlogic,sm1";
16 model = "SEI Robotics SEI610";
23 mono_dac: audio-codec-0 {
24 compatible = "maxim,max98357a";
25 #sound-dai-cells = <0>;
26 sound-name-prefix = "U16";
27 sdmode-gpios = <&gpio GPIOX_8 GPIO_ACTIVE_HIGH>;
30 dmics: audio-codec-1 {
31 #sound-dai-cells = <0>;
32 compatible = "dmic-codec";
34 wakeup-delay-ms = <50>;
35 sound-name-prefix = "MIC";
39 stdout-path = "serial0:115200n8";
42 emmc_pwrseq: emmc-pwrseq {
43 compatible = "mmc-pwrseq-emmc";
44 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-keys";
53 gpios = <&gpio GPIOH_6 GPIO_ACTIVE_LOW>;
54 interrupt-parent = <&gpio_intc>;
55 interrupts = <IRQID_GPIOH_6 IRQ_TYPE_EDGE_BOTH>;
61 gpios = <&gpio GPIOH_7 GPIO_ACTIVE_LOW>;
62 interrupt-parent = <&gpio_intc>;
63 interrupts = <IRQID_GPIOH_7 IRQ_TYPE_EDGE_BOTH>;
69 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
70 interrupt-parent = <&gpio_intc>;
71 interrupts = <IRQID_GPIOAO_2 IRQ_TYPE_EDGE_BOTH>;
76 linux,code = <SW_MUTE_DEVICE>;
77 linux,input-type = <EV_SW>;
78 gpios = <&gpio_ao GPIOE_2 GPIO_ACTIVE_LOW>;
79 interrupt-parent = <&gpio_intc>;
80 interrupts = <IRQID_GPIOE_2 IRQ_TYPE_EDGE_BOTH>;
85 linux,code = <KEY_POWER>;
86 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
87 interrupt-parent = <&gpio_intc>;
88 interrupts = <IRQID_GPIOAO_3 IRQ_TYPE_EDGE_BOTH>;
93 compatible = "hdmi-connector";
97 hdmi_connector_in: endpoint {
98 remote-endpoint = <&hdmi_tx_tmds_out>;
104 compatible = "gpio-leds";
107 label = "sei610:blue:bt";
108 gpios = <&gpio GPIOC_7 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
109 default-state = "off";
114 compatible = "pwm-leds";
117 label = "sei610:red:power";
118 pwms = <&pwm_AO_ab 0 30518 0>;
119 max-brightness = <255>;
120 linux,default-trigger = "default-on";
126 device_type = "memory";
127 reg = <0x0 0x0 0x0 0x40000000>;
130 ao_5v: regulator-ao_5v {
131 compatible = "regulator-fixed";
132 regulator-name = "AO_5V";
133 regulator-min-microvolt = <5000000>;
134 regulator-max-microvolt = <5000000>;
135 vin-supply = <&dc_in>;
139 dc_in: regulator-dc_in {
140 compatible = "regulator-fixed";
141 regulator-name = "DC_IN";
142 regulator-min-microvolt = <5000000>;
143 regulator-max-microvolt = <5000000>;
147 emmc_1v8: regulator-emmc_1v8 {
148 compatible = "regulator-fixed";
149 regulator-name = "EMMC_1V8";
150 regulator-min-microvolt = <1800000>;
151 regulator-max-microvolt = <1800000>;
152 vin-supply = <&vddao_3v3>;
156 vddao_3v3: regulator-vddao_3v3 {
157 compatible = "regulator-fixed";
158 regulator-name = "VDDAO_3V3";
159 regulator-min-microvolt = <3300000>;
160 regulator-max-microvolt = <3300000>;
161 vin-supply = <&dc_in>;
165 /* Used by Tuner, RGB Led & IR Emitter LED array */
166 vddao_3v3_t: regulator-vddao_3v3_t {
167 compatible = "regulator-fixed";
168 regulator-name = "VDDAO_3V3_T";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
171 vin-supply = <&vddao_3v3>;
172 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
176 vddcpu: regulator-vddcpu {
178 * SY8120B1ABC DC/DC Regulator.
180 compatible = "pwm-regulator";
182 regulator-name = "VDDCPU";
183 regulator-min-microvolt = <690000>;
184 regulator-max-microvolt = <1050000>;
186 pwm-supply = <&dc_in>;
188 pwms = <&pwm_AO_cd 1 1500 0>;
189 pwm-dutycycle-range = <100 0>;
195 vddio_ao1v8: regulator-vddio_ao1v8 {
196 compatible = "regulator-fixed";
197 regulator-name = "VDDIO_AO1V8";
198 regulator-min-microvolt = <1800000>;
199 regulator-max-microvolt = <1800000>;
200 vin-supply = <&vddao_3v3>;
204 sdio_pwrseq: sdio-pwrseq {
205 compatible = "mmc-pwrseq-simple";
206 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
208 clock-names = "ext_clock";
212 compatible = "amlogic,axg-sound-card";
214 audio-aux-devs = <&tdmout_a>, <&tdmout_b>,
215 <&tdmin_a>, <&tdmin_b>;
216 audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0",
217 "TDMOUT_A IN 1", "FRDDR_B OUT 0",
218 "TDMOUT_A IN 2", "FRDDR_C OUT 0",
219 "TDM_A Playback", "TDMOUT_A OUT",
220 "TDMOUT_B IN 0", "FRDDR_A OUT 1",
221 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
222 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
223 "TDM_B Playback", "TDMOUT_B OUT",
224 "TODDR_A IN 4", "PDM Capture",
225 "TODDR_B IN 4", "PDM Capture",
226 "TODDR_C IN 4", "PDM Capture",
227 "TDMIN_A IN 0", "TDM_A Capture",
228 "TDMIN_A IN 3", "TDM_A Loopback",
229 "TDMIN_B IN 0", "TDM_A Capture",
230 "TDMIN_B IN 3", "TDM_A Loopback",
231 "TDMIN_A IN 1", "TDM_B Capture",
232 "TDMIN_A IN 4", "TDM_B Loopback",
233 "TDMIN_B IN 1", "TDM_B Capture",
234 "TDMIN_B IN 4", "TDM_B Loopback",
235 "TODDR_A IN 0", "TDMIN_A OUT",
236 "TODDR_B IN 0", "TDMIN_A OUT",
237 "TODDR_C IN 0", "TDMIN_A OUT",
238 "TODDR_A IN 1", "TDMIN_B OUT",
239 "TODDR_B IN 1", "TDMIN_B OUT",
240 "TODDR_C IN 1", "TDMIN_B OUT";
242 assigned-clocks = <&clkc CLKID_MPLL2>,
245 assigned-clock-parents = <0>, <0>, <0>;
246 assigned-clock-rates = <294912000>,
251 sound-dai = <&frddr_a>;
255 sound-dai = <&frddr_b>;
259 sound-dai = <&frddr_c>;
263 sound-dai = <&toddr_a>;
267 sound-dai = <&toddr_b>;
271 sound-dai = <&toddr_c>;
274 /* internal speaker interface */
276 sound-dai = <&tdmif_a>;
278 dai-tdm-slot-tx-mask-0 = <1 1>;
282 sound-dai = <&mono_dac>;
286 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>;
290 /* 8ch hdmi interface */
292 sound-dai = <&tdmif_b>;
294 dai-tdm-slot-tx-mask-0 = <1 1>;
295 dai-tdm-slot-tx-mask-1 = <1 1>;
296 dai-tdm-slot-tx-mask-2 = <1 1>;
297 dai-tdm-slot-tx-mask-3 = <1 1>;
301 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
305 /* internal digital mics */
310 sound-dai = <&dmics>;
316 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
319 sound-dai = <&hdmi_tx>;
325 compatible = "pwm-clock";
327 clock-frequency = <32768>;
328 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
337 pinctrl-0 = <&cec_ao_a_h_pins>;
338 pinctrl-names = "default";
340 hdmi-phandle = <&hdmi_tx>;
344 pinctrl-0 = <&cec_ao_b_h_pins>;
345 pinctrl-names = "default";
347 hdmi-phandle = <&hdmi_tx>;
355 cpu-supply = <&vddcpu>;
356 operating-points-v2 = <&cpu_opp_table>;
357 clocks = <&clkc CLKID_CPU_CLK>;
358 clock-latency = <50000>;
362 cpu-supply = <&vddcpu>;
363 operating-points-v2 = <&cpu_opp_table>;
364 clocks = <&clkc CLKID_CPU1_CLK>;
365 clock-latency = <50000>;
369 cpu-supply = <&vddcpu>;
370 operating-points-v2 = <&cpu_opp_table>;
371 clocks = <&clkc CLKID_CPU2_CLK>;
372 clock-latency = <50000>;
376 cpu-supply = <&vddcpu>;
377 operating-points-v2 = <&cpu_opp_table>;
378 clocks = <&clkc CLKID_CPU3_CLK>;
379 clock-latency = <50000>;
384 phy-handle = <&internal_ephy>;
402 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
403 pinctrl-names = "default";
407 hdmi_tx_tmds_out: endpoint {
408 remote-endpoint = <&hdmi_connector_in>;
414 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
415 pinctrl-names = "default";
420 pinctrl-0 = <&remote_input_ao_pins>;
421 pinctrl-names = "default";
425 pinctrl-0 = <&pdm_din0_z_pins>, <&pdm_dclk_z_pins>;
426 pinctrl-names = "default";
432 pinctrl-0 = <&pwm_ao_a_pins>;
433 pinctrl-names = "default";
435 clock-names = "clkin0";
439 pinctrl-0 = <&pwm_ao_d_e_pins>;
440 pinctrl-names = "default";
442 clock-names = "clkin1";
448 pinctrl-0 = <&pwm_e_pins>;
449 pinctrl-names = "default";
451 clock-names = "clkin0";
456 vref-supply = <&vddio_ao1v8>;
462 pinctrl-0 = <&sdio_pins>;
463 pinctrl-1 = <&sdio_clk_gate_pins>;
464 pinctrl-names = "default", "clk-gate";
465 #address-cells = <1>;
471 max-frequency = <100000000>;
476 /* WiFi firmware requires power to be kept while in suspend */
477 keep-power-in-suspend;
479 mmc-pwrseq = <&sdio_pwrseq>;
481 vmmc-supply = <&vddao_3v3>;
482 vqmmc-supply = <&vddio_ao1v8>;
486 compatible = "brcm,bcm4329-fmac";
493 pinctrl-0 = <&sdcard_c_pins>;
494 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
495 pinctrl-names = "default", "clk-gate";
499 max-frequency = <50000000>;
502 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
503 vmmc-supply = <&vddao_3v3>;
504 vqmmc-supply = <&vddao_3v3>;
510 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
511 pinctrl-1 = <&emmc_clk_gate_pins>;
512 pinctrl-names = "default", "clk-gate";
518 max-frequency = <200000000>;
522 mmc-pwrseq = <&emmc_pwrseq>;
523 vmmc-supply = <&vddao_3v3>;
524 vqmmc-supply = <&emmc_1v8>;
528 pinctrl-0 = <&tdm_a_dout0_pins>, <&tdm_a_fs_pins>, <&tdm_a_sclk_pins>;
529 pinctrl-names = "default";
532 assigned-clocks = <&clkc_audio AUD_CLKID_TDM_SCLK_PAD0>,
533 <&clkc_audio AUD_CLKID_TDM_LRCLK_PAD0>;
534 assigned-clock-parents = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
535 <&clkc_audio AUD_CLKID_MST_A_LRCLK>;
536 assigned-clock-rates = <0>, <0>;
577 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
578 pinctrl-names = "default";
582 compatible = "brcm,bcm43438-bt";
583 interrupt-parent = <&gpio_intc>;
584 interrupts = <IRQID_GPIOX_18 IRQ_TYPE_LEVEL_HIGH>;
585 interrupt-names = "host-wakeup";
586 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
587 max-speed = <2000000>;
590 vbat-supply = <&vddao_3v3>;
591 vddio-supply = <&vddio_ao1v8>;
595 /* Exposed via the on-board USB to Serial FT232RL IC */
598 pinctrl-0 = <&uart_ao_a_pins>;
599 pinctrl-names = "default";