1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 BayLibre, SAS.
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
6 * Copyright (c) 2016 Endless Computers, Inc.
7 * Author: Carlo Caione <carlo@endlessm.com>
12 #include "meson-gxm.dtsi"
13 #include <dt-bindings/sound/meson-aiu.h>
16 compatible = "nexbox,a1", "amlogic,s912", "amlogic,meson-gxm";
25 stdout-path = "serial0:115200n8";
28 spdif_dit: audio-codec-0 {
29 #sound-dai-cells = <0>;
30 compatible = "linux,spdif-dit";
31 sound-name-prefix = "DIT";
35 device_type = "memory";
36 reg = <0x0 0x0 0x0 0x80000000>;
39 vddio_boot: regulator-vddio-boot {
40 compatible = "regulator-fixed";
41 regulator-name = "VDDIO_BOOT";
42 regulator-min-microvolt = <1800000>;
43 regulator-max-microvolt = <1800000>;
46 vddao_3v3: regulator-vddao-3v3 {
47 compatible = "regulator-fixed";
48 regulator-name = "VDDAO_3V3";
49 regulator-min-microvolt = <3300000>;
50 regulator-max-microvolt = <3300000>;
53 vcc_3v3: regulator-vcc-3v3 {
54 compatible = "regulator-fixed";
55 regulator-name = "VCC_3V3";
56 regulator-min-microvolt = <3300000>;
57 regulator-max-microvolt = <3300000>;
60 emmc_pwrseq: emmc-pwrseq {
61 compatible = "mmc-pwrseq-emmc";
62 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
66 compatible = "composite-video-connector";
69 cvbs_connector_in: endpoint {
70 remote-endpoint = <&cvbs_vdac_out>;
76 compatible = "hdmi-connector";
80 hdmi_connector_in: endpoint {
81 remote-endpoint = <&hdmi_tx_tmds_out>;
87 compatible = "amlogic,gx-sound-card";
89 assigned-clocks = <&clkc CLKID_MPLL0>,
92 assigned-clock-parents = <0>, <0>, <0>;
93 assigned-clock-rates = <294912000>,
98 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
102 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
106 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
111 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
116 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
119 sound-dai = <&spdif_dit>;
124 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
127 sound-dai = <&hdmi_tx>;
135 pinctrl-0 = <&spdif_out_h_pins>;
136 pinctrl-names = "default";
141 pinctrl-0 = <&ao_cec_pins>;
142 pinctrl-names = "default";
143 hdmi-phandle = <&hdmi_tx>;
147 cvbs_vdac_out: endpoint {
148 remote-endpoint = <&cvbs_connector_in>;
155 pinctrl-0 = <ð_pins>;
156 pinctrl-names = "default";
158 /* Select external PHY by default */
159 phy-handle = <&external_phy>;
161 amlogic,tx-delay-ns = <2>;
163 /* External PHY is in RGMII */
168 external_phy: ethernet-phy@0 {
169 /* Realtek RTL8211F (0x001cc916) */
173 reset-assert-us = <10000>;
174 reset-deassert-us = <80000>;
175 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
181 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
182 pinctrl-names = "default";
186 hdmi_tx_tmds_out: endpoint {
187 remote-endpoint = <&hdmi_connector_in>;
193 pinctrl-0 = <&remote_input_ao_pins>;
194 pinctrl-names = "default";
200 pinctrl-0 = <&sdcard_pins>;
201 pinctrl-1 = <&sdcard_clk_gate_pins>;
202 pinctrl-names = "default", "clk-gate";
206 max-frequency = <50000000>;
209 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
211 vmmc-supply = <&vddao_3v3>;
212 vqmmc-supply = <&vddio_boot>;
218 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
219 pinctrl-1 = <&emmc_clk_gate_pins>;
220 pinctrl-names = "default", "clk-gate";
224 max-frequency = <200000000>;
230 mmc-pwrseq = <&emmc_pwrseq>;
231 vmmc-supply = <&vcc_3v3>;
232 vqmmc-supply = <&vddio_boot>;
237 pinctrl-0 = <&uart_ao_a_pins>;
238 pinctrl-names = "default";