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>;
36 sound-name-prefix = "MIC";
40 stdout-path = "serial0:115200n8";
43 emmc_pwrseq: emmc-pwrseq {
44 compatible = "mmc-pwrseq-emmc";
45 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-keys";
54 gpios = <&gpio GPIOH_6 GPIO_ACTIVE_LOW>;
55 interrupt-parent = <&gpio_intc>;
56 interrupts = <34 IRQ_TYPE_EDGE_BOTH>;
62 gpios = <&gpio GPIOH_7 GPIO_ACTIVE_LOW>;
63 interrupt-parent = <&gpio_intc>;
64 interrupts = <35 IRQ_TYPE_EDGE_BOTH>;
70 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
71 interrupt-parent = <&gpio_intc>;
72 interrupts = <2 IRQ_TYPE_EDGE_BOTH>;
77 linux,code = <SW_MUTE_DEVICE>;
78 linux,input-type = <EV_SW>;
79 gpios = <&gpio_ao GPIOE_2 GPIO_ACTIVE_LOW>;
80 interrupt-parent = <&gpio_intc>;
81 interrupts = <99 IRQ_TYPE_EDGE_BOTH>;
86 linux,code = <KEY_POWER>;
87 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
88 interrupt-parent = <&gpio_intc>;
89 interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
94 compatible = "hdmi-connector";
98 hdmi_connector_in: endpoint {
99 remote-endpoint = <&hdmi_tx_tmds_out>;
105 compatible = "gpio-leds";
108 label = "sei610:blue:bt";
109 gpios = <&gpio GPIOC_7 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
110 default-state = "off";
115 compatible = "pwm-leds";
118 label = "sei610:red:power";
119 pwms = <&pwm_AO_ab 0 30518 0>;
120 max-brightness = <255>;
121 linux,default-trigger = "default-on";
127 device_type = "memory";
128 reg = <0x0 0x0 0x0 0x40000000>;
131 ao_5v: regulator-ao_5v {
132 compatible = "regulator-fixed";
133 regulator-name = "AO_5V";
134 regulator-min-microvolt = <5000000>;
135 regulator-max-microvolt = <5000000>;
136 vin-supply = <&dc_in>;
140 dc_in: regulator-dc_in {
141 compatible = "regulator-fixed";
142 regulator-name = "DC_IN";
143 regulator-min-microvolt = <5000000>;
144 regulator-max-microvolt = <5000000>;
148 emmc_1v8: regulator-emmc_1v8 {
149 compatible = "regulator-fixed";
150 regulator-name = "EMMC_1V8";
151 regulator-min-microvolt = <1800000>;
152 regulator-max-microvolt = <1800000>;
153 vin-supply = <&vddao_3v3>;
157 vddao_3v3: regulator-vddao_3v3 {
158 compatible = "regulator-fixed";
159 regulator-name = "VDDAO_3V3";
160 regulator-min-microvolt = <3300000>;
161 regulator-max-microvolt = <3300000>;
162 vin-supply = <&dc_in>;
166 /* Used by Tuner, RGB Led & IR Emitter LED array */
167 vddao_3v3_t: regulator-vddao_3v3_t {
168 compatible = "regulator-fixed";
169 regulator-name = "VDDAO_3V3_T";
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
172 vin-supply = <&vddao_3v3>;
173 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
177 vddcpu: regulator-vddcpu {
179 * SY8120B1ABC DC/DC Regulator.
181 compatible = "pwm-regulator";
183 regulator-name = "VDDCPU";
184 regulator-min-microvolt = <690000>;
185 regulator-max-microvolt = <1050000>;
187 pwm-supply = <&dc_in>;
189 pwms = <&pwm_AO_cd 1 1500 0>;
190 pwm-dutycycle-range = <100 0>;
196 vddio_ao1v8: regulator-vddio_ao1v8 {
197 compatible = "regulator-fixed";
198 regulator-name = "VDDIO_AO1V8";
199 regulator-min-microvolt = <1800000>;
200 regulator-max-microvolt = <1800000>;
201 vin-supply = <&vddao_3v3>;
205 sdio_pwrseq: sdio-pwrseq {
206 compatible = "mmc-pwrseq-simple";
207 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
209 clock-names = "ext_clock";
213 compatible = "amlogic,axg-sound-card";
215 audio-aux-devs = <&tdmout_a>, <&tdmout_b>,
216 <&tdmin_a>, <&tdmin_b>;
217 audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0",
218 "TDMOUT_A IN 1", "FRDDR_B OUT 0",
219 "TDMOUT_A IN 2", "FRDDR_C OUT 0",
220 "TDM_A Playback", "TDMOUT_A OUT",
221 "TDMOUT_B IN 0", "FRDDR_A OUT 1",
222 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
223 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
224 "TDM_B Playback", "TDMOUT_B OUT",
225 "TODDR_A IN 4", "PDM Capture",
226 "TODDR_B IN 4", "PDM Capture",
227 "TODDR_C IN 4", "PDM Capture",
228 "TDMIN_A IN 0", "TDM_A Capture",
229 "TDMIN_A IN 3", "TDM_A Loopback",
230 "TDMIN_B IN 0", "TDM_A Capture",
231 "TDMIN_B IN 3", "TDM_A Loopback",
232 "TDMIN_A IN 1", "TDM_B Capture",
233 "TDMIN_A IN 4", "TDM_B Loopback",
234 "TDMIN_B IN 1", "TDM_B Capture",
235 "TDMIN_B IN 4", "TDM_B Loopback",
236 "TODDR_A IN 0", "TDMIN_A OUT",
237 "TODDR_B IN 0", "TDMIN_A OUT",
238 "TODDR_C IN 0", "TDMIN_A OUT",
239 "TODDR_A IN 1", "TDMIN_B OUT",
240 "TODDR_B IN 1", "TDMIN_B OUT",
241 "TODDR_C IN 1", "TDMIN_B OUT";
243 assigned-clocks = <&clkc CLKID_MPLL2>,
246 assigned-clock-parents = <0>, <0>, <0>;
247 assigned-clock-rates = <294912000>,
253 sound-dai = <&frddr_a>;
257 sound-dai = <&frddr_b>;
261 sound-dai = <&frddr_c>;
265 sound-dai = <&toddr_a>;
269 sound-dai = <&toddr_b>;
273 sound-dai = <&toddr_c>;
276 /* internal speaker interface */
278 sound-dai = <&tdmif_a>;
280 dai-tdm-slot-tx-mask-0 = <1 1>;
284 sound-dai = <&mono_dac>;
288 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>;
292 /* 8ch hdmi interface */
294 sound-dai = <&tdmif_b>;
296 dai-tdm-slot-tx-mask-0 = <1 1>;
297 dai-tdm-slot-tx-mask-1 = <1 1>;
298 dai-tdm-slot-tx-mask-2 = <1 1>;
299 dai-tdm-slot-tx-mask-3 = <1 1>;
303 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
307 /* internal digital mics */
312 sound-dai = <&dmics>;
318 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
321 sound-dai = <&hdmi_tx>;
327 compatible = "pwm-clock";
329 clock-frequency = <32768>;
330 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
339 pinctrl-0 = <&cec_ao_a_h_pins>;
340 pinctrl-names = "default";
342 hdmi-phandle = <&hdmi_tx>;
346 pinctrl-0 = <&cec_ao_b_h_pins>;
347 pinctrl-names = "default";
349 hdmi-phandle = <&hdmi_tx>;
357 cpu-supply = <&vddcpu>;
358 operating-points-v2 = <&cpu_opp_table>;
359 clocks = <&clkc CLKID_CPU_CLK>;
360 clock-latency = <50000>;
364 cpu-supply = <&vddcpu>;
365 operating-points-v2 = <&cpu_opp_table>;
366 clocks = <&clkc CLKID_CPU1_CLK>;
367 clock-latency = <50000>;
371 cpu-supply = <&vddcpu>;
372 operating-points-v2 = <&cpu_opp_table>;
373 clocks = <&clkc CLKID_CPU2_CLK>;
374 clock-latency = <50000>;
378 cpu-supply = <&vddcpu>;
379 operating-points-v2 = <&cpu_opp_table>;
380 clocks = <&clkc CLKID_CPU3_CLK>;
381 clock-latency = <50000>;
386 phy-handle = <&internal_ephy>;
404 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
405 pinctrl-names = "default";
409 hdmi_tx_tmds_out: endpoint {
410 remote-endpoint = <&hdmi_connector_in>;
416 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
417 pinctrl-names = "default";
422 pinctrl-0 = <&remote_input_ao_pins>;
423 pinctrl-names = "default";
427 pinctrl-0 = <&pdm_din0_z_pins>, <&pdm_dclk_z_pins>;
428 pinctrl-names = "default";
434 pinctrl-0 = <&pwm_ao_a_pins>;
435 pinctrl-names = "default";
437 clock-names = "clkin0";
441 pinctrl-0 = <&pwm_ao_d_e_pins>;
442 pinctrl-names = "default";
444 clock-names = "clkin1";
450 pinctrl-0 = <&pwm_e_pins>;
451 pinctrl-names = "default";
453 clock-names = "clkin0";
458 vref-supply = <&vddio_ao1v8>;
464 pinctrl-0 = <&sdio_pins>;
465 pinctrl-1 = <&sdio_clk_gate_pins>;
466 pinctrl-names = "default", "clk-gate";
467 #address-cells = <1>;
473 max-frequency = <100000000>;
478 /* WiFi firmware requires power to be kept while in suspend */
479 keep-power-in-suspend;
481 mmc-pwrseq = <&sdio_pwrseq>;
483 vmmc-supply = <&vddao_3v3>;
484 vqmmc-supply = <&vddio_ao1v8>;
488 compatible = "brcm,bcm4329-fmac";
495 pinctrl-0 = <&sdcard_c_pins>;
496 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
497 pinctrl-names = "default", "clk-gate";
501 max-frequency = <50000000>;
504 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
505 vmmc-supply = <&vddao_3v3>;
506 vqmmc-supply = <&vddao_3v3>;
512 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
513 pinctrl-1 = <&emmc_clk_gate_pins>;
514 pinctrl-names = "default", "clk-gate";
520 max-frequency = <200000000>;
524 mmc-pwrseq = <&emmc_pwrseq>;
525 vmmc-supply = <&vddao_3v3>;
526 vqmmc-supply = <&emmc_1v8>;
530 pinctrl-0 = <&tdm_a_dout0_pins>, <&tdm_a_fs_pins>, <&tdm_a_sclk_pins>;
531 pinctrl-names = "default";
534 assigned-clocks = <&clkc_audio AUD_CLKID_TDM_SCLK_PAD0>,
535 <&clkc_audio AUD_CLKID_TDM_LRCLK_PAD0>;
536 assigned-clock-parents = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
537 <&clkc_audio AUD_CLKID_MST_A_LRCLK>;
538 assigned-clock-rates = <0>, <0>;
579 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
580 pinctrl-names = "default";
584 compatible = "brcm,bcm43438-bt";
585 interrupt-parent = <&gpio_intc>;
586 interrupts = <95 IRQ_TYPE_LEVEL_HIGH>;
587 interrupt-names = "host-wakeup";
588 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
589 max-speed = <2000000>;
592 vbat-supply = <&vddao_3v3>;
593 vddio-supply = <&vddio_ao1v8>;
597 /* Exposed via the on-board USB to Serial FT232RL IC */
600 pinctrl-0 = <&uart_ao_a_pins>;
601 pinctrl-names = "default";