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";
32 sound-name-prefix = "DIT";
36 device_type = "memory";
37 reg = <0x0 0x0 0x0 0x80000000>;
40 vddio_boot: regulator-vddio-boot {
41 compatible = "regulator-fixed";
42 regulator-name = "VDDIO_BOOT";
43 regulator-min-microvolt = <1800000>;
44 regulator-max-microvolt = <1800000>;
47 vddao_3v3: regulator-vddao-3v3 {
48 compatible = "regulator-fixed";
49 regulator-name = "VDDAO_3V3";
50 regulator-min-microvolt = <3300000>;
51 regulator-max-microvolt = <3300000>;
54 vcc_3v3: regulator-vcc-3v3 {
55 compatible = "regulator-fixed";
56 regulator-name = "VCC_3V3";
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
61 emmc_pwrseq: emmc-pwrseq {
62 compatible = "mmc-pwrseq-emmc";
63 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
67 compatible = "composite-video-connector";
70 cvbs_connector_in: endpoint {
71 remote-endpoint = <&cvbs_vdac_out>;
77 compatible = "hdmi-connector";
81 hdmi_connector_in: endpoint {
82 remote-endpoint = <&hdmi_tx_tmds_out>;
88 compatible = "amlogic,gx-sound-card";
90 assigned-clocks = <&clkc CLKID_MPLL0>,
93 assigned-clock-parents = <0>, <0>, <0>;
94 assigned-clock-rates = <294912000>,
99 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
103 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
107 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
112 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
117 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
120 sound-dai = <&spdif_dit>;
125 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
128 sound-dai = <&hdmi_tx>;
136 pinctrl-0 = <&spdif_out_h_pins>;
137 pinctrl-names = "default";
142 pinctrl-0 = <&ao_cec_pins>;
143 pinctrl-names = "default";
144 hdmi-phandle = <&hdmi_tx>;
148 cvbs_vdac_out: endpoint {
149 remote-endpoint = <&cvbs_connector_in>;
156 pinctrl-0 = <ð_pins>;
157 pinctrl-names = "default";
159 /* Select external PHY by default */
160 phy-handle = <&external_phy>;
162 amlogic,tx-delay-ns = <2>;
164 /* External PHY is in RGMII */
169 external_phy: ethernet-phy@0 {
170 /* Realtek RTL8211F (0x001cc916) */
174 reset-assert-us = <10000>;
175 reset-deassert-us = <80000>;
176 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
182 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
183 pinctrl-names = "default";
187 hdmi_tx_tmds_out: endpoint {
188 remote-endpoint = <&hdmi_connector_in>;
194 pinctrl-0 = <&remote_input_ao_pins>;
195 pinctrl-names = "default";
201 pinctrl-0 = <&sdcard_pins>;
202 pinctrl-1 = <&sdcard_clk_gate_pins>;
203 pinctrl-names = "default", "clk-gate";
207 max-frequency = <50000000>;
210 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
212 vmmc-supply = <&vddao_3v3>;
213 vqmmc-supply = <&vddio_boot>;
219 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
220 pinctrl-1 = <&emmc_clk_gate_pins>;
221 pinctrl-names = "default", "clk-gate";
225 max-frequency = <200000000>;
231 mmc-pwrseq = <&emmc_pwrseq>;
232 vmmc-supply = <&vcc_3v3>;
233 vqmmc-supply = <&vddio_boot>;
238 pinctrl-0 = <&uart_ao_a_pins>;
239 pinctrl-names = "default";