1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 BayLibre SAS. All rights reserved.
8 #include "meson-g12a.dtsi"
9 #include <dt-bindings/gpio/meson-g12a-gpio.h>
10 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
13 compatible = "radxa,zero", "amlogic,g12a";
21 stdout-path = "serial0:115200n8";
25 device_type = "memory";
26 reg = <0x0 0x0 0x0 0x40000000>;
31 compatible = "composite-video-connector";
34 cvbs_connector_in: endpoint {
35 remote-endpoint = <&cvbs_vdac_out>;
41 compatible = "hdmi-connector";
45 hdmi_connector_in: endpoint {
46 remote-endpoint = <&hdmi_tx_tmds_out>;
51 emmc_pwrseq: emmc-pwrseq {
52 compatible = "mmc-pwrseq-emmc";
53 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
56 sdio_pwrseq: sdio-pwrseq {
57 compatible = "mmc-pwrseq-simple";
58 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
60 clock-names = "ext_clock";
63 ao_5v: regulator-ao_5v {
64 compatible = "regulator-fixed";
65 regulator-name = "AO_5V";
66 regulator-min-microvolt = <5000000>;
67 regulator-max-microvolt = <5000000>;
71 vcc_1v8: regulator-vcc_1v8 {
72 compatible = "regulator-fixed";
73 regulator-name = "VCC_1V8";
74 regulator-min-microvolt = <1800000>;
75 regulator-max-microvolt = <1800000>;
76 vin-supply = <&vcc_3v3>;
80 vcc_3v3: regulator-vcc_3v3 {
81 compatible = "regulator-fixed";
82 regulator-name = "VCC_3V3";
83 regulator-min-microvolt = <3300000>;
84 regulator-max-microvolt = <3300000>;
85 vin-supply = <&vddao_3v3>;
89 hdmi_pw: regulator-hdmi_pw {
90 compatible = "regulator-fixed";
91 regulator-name = "HDMI_PW";
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
94 vin-supply = <&ao_5v>;
98 vddao_1v8: regulator-vddao_1v8 {
99 compatible = "regulator-fixed";
100 regulator-name = "VDDAO_1V8";
101 regulator-min-microvolt = <1800000>;
102 regulator-max-microvolt = <1800000>;
103 vin-supply = <&vddao_3v3>;
107 vddao_3v3: regulator-vddao_3v3 {
108 compatible = "regulator-fixed";
109 regulator-name = "VDDAO_3V3";
110 regulator-min-microvolt = <3300000>;
111 regulator-max-microvolt = <3300000>;
112 vin-supply = <&ao_5v>;
116 vddcpu: regulator-vddcpu {
117 compatible = "pwm-regulator";
119 regulator-name = "VDDCPU";
120 regulator-min-microvolt = <721000>;
121 regulator-max-microvolt = <1022000>;
123 vin-supply = <&ao_5v>;
125 pwms = <&pwm_AO_cd 1 1250 0>;
126 pwm-dutycycle-range = <100 0>;
133 compatible = "amlogic,axg-sound-card";
134 model = "RADXA-ZERO";
135 audio-aux-devs = <&tdmout_b>;
136 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
137 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
138 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
139 "TDM_B Playback", "TDMOUT_B OUT";
141 assigned-clocks = <&clkc CLKID_MPLL2>,
144 assigned-clock-parents = <0>, <0>, <0>;
145 assigned-clock-rates = <294912000>,
151 sound-dai = <&frddr_a>;
155 sound-dai = <&frddr_b>;
159 sound-dai = <&frddr_c>;
162 /* 8ch hdmi interface */
164 sound-dai = <&tdmif_b>;
166 dai-tdm-slot-tx-mask-0 = <1 1>;
167 dai-tdm-slot-tx-mask-1 = <1 1>;
168 dai-tdm-slot-tx-mask-2 = <1 1>;
169 dai-tdm-slot-tx-mask-3 = <1 1>;
173 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
178 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
181 sound-dai = <&hdmi_tx>;
187 compatible = "pwm-clock";
189 clock-frequency = <32768>;
190 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
199 pinctrl-0 = <&cec_ao_a_h_pins>;
200 pinctrl-names = "default";
202 hdmi-phandle = <&hdmi_tx>;
206 pinctrl-0 = <&cec_ao_b_h_pins>;
207 pinctrl-names = "default";
209 hdmi-phandle = <&hdmi_tx>;
217 cpu-supply = <&vddcpu>;
218 operating-points-v2 = <&cpu_opp_table>;
219 clocks = <&clkc CLKID_CPU_CLK>;
220 clock-latency = <50000>;
224 cpu-supply = <&vddcpu>;
225 operating-points-v2 = <&cpu_opp_table>;
226 clocks = <&clkc CLKID_CPU_CLK>;
227 clock-latency = <50000>;
231 cpu-supply = <&vddcpu>;
232 operating-points-v2 = <&cpu_opp_table>;
233 clocks = <&clkc CLKID_CPU_CLK>;
234 clock-latency = <50000>;
238 cpu-supply = <&vddcpu>;
239 operating-points-v2 = <&cpu_opp_table>;
240 clocks = <&clkc CLKID_CPU_CLK>;
241 clock-latency = <50000>;
245 cvbs_vdac_out: endpoint {
246 remote-endpoint = <&cvbs_connector_in>;
264 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
265 pinctrl-names = "default";
266 hdmi-supply = <&hdmi_pw>;
270 hdmi_tx_tmds_out: endpoint {
271 remote-endpoint = <&hdmi_connector_in>;
277 pinctrl-0 = <&remote_input_ao_pins>;
278 pinctrl-names = "default";
282 pinctrl-0 = <&pwm_ao_d_e_pins>;
283 pinctrl-names = "default";
285 clock-names = "clkin1";
291 pinctrl-0 = <&pwm_e_pins>;
292 pinctrl-names = "default";
294 clock-names = "clkin0";
299 vref-supply = <&vddao_1v8>;
305 pinctrl-0 = <&sdio_pins>;
306 pinctrl-1 = <&sdio_clk_gate_pins>;
307 pinctrl-names = "default", "clk-gate";
308 #address-cells = <1>;
314 max-frequency = <100000000>;
319 /* WiFi firmware requires power to be kept while in suspend */
320 keep-power-in-suspend;
322 mmc-pwrseq = <&sdio_pwrseq>;
324 vmmc-supply = <&vddao_3v3>;
325 vqmmc-supply = <&vddao_1v8>;
329 compatible = "brcm,bcm4329-fmac";
336 pinctrl-0 = <&sdcard_c_pins>;
337 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
338 pinctrl-names = "default", "clk-gate";
342 max-frequency = <100000000>;
345 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
346 vmmc-supply = <&vddao_3v3>;
347 vqmmc-supply = <&vddao_3v3>;
353 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
354 pinctrl-1 = <&emmc_clk_gate_pins>;
355 pinctrl-names = "default", "clk-gate";
361 max-frequency = <200000000>;
364 mmc-pwrseq = <&emmc_pwrseq>;
365 vmmc-supply = <&vcc_3v3>;
366 vqmmc-supply = <&vcc_1v8>;
383 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
384 pinctrl-names = "default";
388 compatible = "brcm,bcm43438-bt";
389 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
390 max-speed = <2000000>;
398 pinctrl-0 = <&uart_ao_a_pins>;
399 pinctrl-names = "default";