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/gpio.h>
10 #include <dt-bindings/gpio/meson-g12a-gpio.h>
11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
14 compatible = "amediatech,x96-max", "amlogic,g12a";
15 model = "Shenzhen Amediatech Technology Co., Ltd X96 Max";
22 spdif_dit: audio-codec-1 {
23 #sound-dai-cells = <0>;
24 compatible = "linux,spdif-dit";
26 sound-name-prefix = "DIT";
30 stdout-path = "serial0:115200n8";
33 device_type = "memory";
34 reg = <0x0 0x0 0x0 0x40000000>;
38 compatible = "composite-video-connector";
41 cvbs_connector_in: endpoint {
42 remote-endpoint = <&cvbs_vdac_out>;
48 compatible = "hdmi-connector";
52 hdmi_connector_in: endpoint {
53 remote-endpoint = <&hdmi_tx_tmds_out>;
58 emmc_pwrseq: emmc-pwrseq {
59 compatible = "mmc-pwrseq-emmc";
60 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
63 sdio_pwrseq: sdio-pwrseq {
64 compatible = "mmc-pwrseq-simple";
65 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
67 clock-names = "ext_clock";
70 flash_1v8: regulator-flash_1v8 {
71 compatible = "regulator-fixed";
72 regulator-name = "FLASH_1V8";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
75 vin-supply = <&vcc_3v3>;
79 dc_in: regulator-dc_in {
80 compatible = "regulator-fixed";
81 regulator-name = "DC_IN";
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
87 vcc_1v8: regulator-vcc_1v8 {
88 compatible = "regulator-fixed";
89 regulator-name = "VCC_1V8";
90 regulator-min-microvolt = <1800000>;
91 regulator-max-microvolt = <1800000>;
92 vin-supply = <&vcc_3v3>;
96 vcc_3v3: regulator-vcc_3v3 {
97 compatible = "regulator-fixed";
98 regulator-name = "VCC_3V3";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
101 vin-supply = <&vddao_3v3>;
103 /* FIXME: actually controlled by VDDCPU_B_EN */
106 vcc_5v: regulator-vcc_5v {
107 compatible = "regulator-fixed";
108 regulator-name = "VCC_5V";
109 regulator-min-microvolt = <5000000>;
110 regulator-max-microvolt = <5000000>;
111 vin-supply = <&dc_in>;
113 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
116 vddao_1v8: regulator-vddao_1v8 {
117 compatible = "regulator-fixed";
118 regulator-name = "VDDAO_1V8";
119 regulator-min-microvolt = <1800000>;
120 regulator-max-microvolt = <1800000>;
121 vin-supply = <&vddao_3v3>;
125 vddao_3v3: regulator-vddao_3v3 {
126 compatible = "regulator-fixed";
127 regulator-name = "VDDAO_3V3";
128 regulator-min-microvolt = <3300000>;
129 regulator-max-microvolt = <3300000>;
130 vin-supply = <&dc_in>;
134 vddcpu: regulator-vddcpu {
135 compatible = "pwm-regulator";
137 regulator-name = "VDDCPU";
138 regulator-min-microvolt = <721000>;
139 regulator-max-microvolt = <1022000>;
141 pwm-supply = <&dc_in>;
143 pwms = <&pwm_AO_cd 1 1250 0>;
144 pwm-dutycycle-range = <100 0>;
151 compatible = "amlogic,axg-sound-card";
153 audio-aux-devs = <&tdmout_b>;
154 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
155 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
156 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
157 "TDM_B Playback", "TDMOUT_B OUT",
158 "SPDIFOUT_A IN 0", "FRDDR_A OUT 3",
159 "SPDIFOUT_A IN 1", "FRDDR_B OUT 3",
160 "SPDIFOUT_A IN 2", "FRDDR_C OUT 3";
162 assigned-clocks = <&clkc CLKID_MPLL2>,
165 assigned-clock-parents = <0>, <0>, <0>;
166 assigned-clock-rates = <294912000>,
171 sound-dai = <&frddr_a>;
175 sound-dai = <&frddr_b>;
179 sound-dai = <&frddr_c>;
182 /* 8ch hdmi interface */
184 sound-dai = <&tdmif_b>;
186 dai-tdm-slot-tx-mask-0 = <1 1>;
187 dai-tdm-slot-tx-mask-1 = <1 1>;
188 dai-tdm-slot-tx-mask-2 = <1 1>;
189 dai-tdm-slot-tx-mask-3 = <1 1>;
193 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
197 /* spdif hdmi or toslink interface */
199 sound-dai = <&spdifout_a>;
202 sound-dai = <&spdif_dit>;
206 sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_A>;
210 /* spdif hdmi interface */
212 sound-dai = <&spdifout_b>;
215 sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_B>;
221 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
224 sound-dai = <&hdmi_tx>;
230 compatible = "pwm-clock";
232 clock-frequency = <32768>;
233 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
242 pinctrl-0 = <&cec_ao_a_h_pins>;
243 pinctrl-names = "default";
245 hdmi-phandle = <&hdmi_tx>;
249 pinctrl-0 = <&cec_ao_b_h_pins>;
250 pinctrl-names = "default";
252 hdmi-phandle = <&hdmi_tx>;
260 cpu-supply = <&vddcpu>;
261 operating-points-v2 = <&cpu_opp_table>;
262 clocks = <&clkc CLKID_CPU_CLK>;
263 clock-latency = <50000>;
267 cpu-supply = <&vddcpu>;
268 operating-points-v2 = <&cpu_opp_table>;
269 clocks = <&clkc CLKID_CPU_CLK>;
270 clock-latency = <50000>;
274 cpu-supply = <&vddcpu>;
275 operating-points-v2 = <&cpu_opp_table>;
276 clocks = <&clkc CLKID_CPU_CLK>;
277 clock-latency = <50000>;
281 cpu-supply = <&vddcpu>;
282 operating-points-v2 = <&cpu_opp_table>;
283 clocks = <&clkc CLKID_CPU_CLK>;
284 clock-latency = <50000>;
288 cvbs_vdac_out: endpoint {
289 remote-endpoint = <&cvbs_connector_in>;
307 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
308 pinctrl-names = "default";
309 hdmi-supply = <&vcc_5v>;
313 hdmi_tx_tmds_out: endpoint {
314 remote-endpoint = <&hdmi_connector_in>;
320 pinctrl-0 = <&remote_input_ao_pins>;
321 pinctrl-names = "default";
322 linux,rc-map-name = "rc-x96max";
326 pinctrl-0 = <&pwm_ao_d_e_pins>;
327 pinctrl-names = "default";
329 clock-names = "clkin1";
334 external_phy: ethernet-phy@0 {
335 /* Realtek RTL8211F (0x001cc916) */
340 reset-assert-us = <10000>;
341 reset-deassert-us = <80000>;
342 reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
344 interrupt-parent = <&gpio_intc>;
345 /* MAC_INTR on GPIOZ_14 */
346 interrupts = <IRQID_GPIOZ_14 IRQ_TYPE_LEVEL_LOW>;
351 pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
352 pinctrl-names = "default";
355 phy-handle = <&external_phy>;
356 amlogic,tx-delay-ns = <2>;
361 pinctrl-0 = <&pwm_e_pins>;
362 pinctrl-names = "default";
364 clock-names = "clkin0";
369 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
370 pinctrl-names = "default";
374 compatible = "brcm,bcm43438-bt";
375 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
376 max-speed = <2000000>;
384 pinctrl-0 = <&uart_ao_a_pins>;
385 pinctrl-names = "default";
396 pinctrl-0 = <&sdio_pins>;
397 pinctrl-1 = <&sdio_clk_gate_pins>;
398 pinctrl-names = "default", "clk-gate";
399 #address-cells = <1>;
405 max-frequency = <100000000>;
410 /* WiFi firmware requires power to be kept while in suspend */
411 keep-power-in-suspend;
413 mmc-pwrseq = <&sdio_pwrseq>;
415 vmmc-supply = <&vddao_3v3>;
416 vqmmc-supply = <&vddao_1v8>;
420 compatible = "brcm,bcm4329-fmac";
427 pinctrl-0 = <&sdcard_c_pins>;
428 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
429 pinctrl-names = "default", "clk-gate";
433 max-frequency = <100000000>;
436 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
437 vmmc-supply = <&vddao_3v3>;
438 vqmmc-supply = <&vddao_3v3>;
444 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
445 pinctrl-1 = <&emmc_clk_gate_pins>;
446 pinctrl-names = "default", "clk-gate";
450 max-frequency = <100000000>;
454 mmc-pwrseq = <&emmc_pwrseq>;
455 vmmc-supply = <&vcc_3v3>;
456 vqmmc-supply = <&flash_1v8>;
460 pinctrl-0 = <&spdif_out_h_pins>;
461 pinctrl-names = "default";