1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Andreas Färber
6 #include "meson-gxbb.dtsi"
7 #include <dt-bindings/sound/meson-aiu.h>
10 compatible = "tronsmart,vega-s95", "amlogic,meson-gxbb";
18 stdout-path = "serial0:115200n8";
21 spdif_dit: audio-codec-0 {
22 #sound-dai-cells = <0>;
23 compatible = "linux,spdif-dit";
24 sound-name-prefix = "DIT";
28 compatible = "gpio-leds";
31 label = "vega-s95:blue:on";
32 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
38 usb_pwr: regulator-usb-pwrs {
39 compatible = "regulator-fixed";
41 regulator-name = "USB_PWR";
43 regulator-min-microvolt = <5000000>;
44 regulator-max-microvolt = <5000000>;
46 gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
50 vddio_boot: regulator-vddio-boot {
51 compatible = "regulator-fixed";
52 regulator-name = "VDDIO_BOOT";
53 regulator-min-microvolt = <1800000>;
54 regulator-max-microvolt = <1800000>;
57 vddao_3v3: regulator-vddao-3v3 {
58 compatible = "regulator-fixed";
59 regulator-name = "VDDAO_3V3";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
64 vddio_ao18: regulator-vddio-ao18 {
65 compatible = "regulator-fixed";
66 regulator-name = "VDDIO_AO18";
67 regulator-min-microvolt = <1800000>;
68 regulator-max-microvolt = <1800000>;
71 vcc_3v3: regulator-vcc-3v3 {
72 compatible = "regulator-fixed";
73 regulator-name = "VCC_3V3";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
78 emmc_pwrseq: emmc-pwrseq {
79 compatible = "mmc-pwrseq-emmc";
80 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
84 compatible = "pwm-clock";
86 clock-frequency = <32768>;
87 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
91 compatible = "hdmi-connector";
95 hdmi_connector_in: endpoint {
96 remote-endpoint = <&hdmi_tx_tmds_out>;
101 sdio_pwrseq: sdio-pwrseq {
102 compatible = "mmc-pwrseq-simple";
103 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
105 clock-names = "ext_clock";
109 compatible = "amlogic,gx-sound-card";
111 assigned-clocks = <&clkc CLKID_MPLL0>,
114 assigned-clock-parents = <0>, <0>, <0>;
115 assigned-clock-rates = <294912000>,
120 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
124 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
128 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
133 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
138 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
141 sound-dai = <&spdif_dit>;
146 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
149 sound-dai = <&hdmi_tx>;
157 pinctrl-0 = <&spdif_out_y_pins>;
158 pinctrl-names = "default";
163 pinctrl-0 = <&ao_cec_pins>;
164 pinctrl-names = "default";
165 hdmi-phandle = <&hdmi_tx>;
170 pinctrl-0 = <ð_rgmii_pins>;
171 pinctrl-names = "default";
173 phy-handle = <ð_phy0>;
176 amlogic,tx-delay-ns = <2>;
179 compatible = "snps,dwmac-mdio";
180 #address-cells = <1>;
183 eth_phy0: ethernet-phy@0 {
184 /* Realtek RTL8211F (0x001cc916) */
187 reset-assert-us = <10000>;
188 reset-deassert-us = <80000>;
189 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
191 interrupt-parent = <&gpio_intc>;
192 /* MAC_INTR on GPIOZ_15 */
193 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
200 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
201 pinctrl-names = "default";
205 hdmi_tx_tmds_out: endpoint {
206 remote-endpoint = <&hdmi_connector_in>;
212 pinctrl-0 = <&remote_input_ao_pins>;
213 pinctrl-names = "default";
214 linux,rc-map-name = "rc-vega-s9x";
219 pinctrl-0 = <&pwm_e_pins>;
220 pinctrl-names = "default";
221 clocks = <&clkc CLKID_FCLK_DIV4>;
222 clock-names = "clkin0";
227 vref-supply = <&vddio_ao18>;
230 /* Wireless SDIO Module */
233 pinctrl-0 = <&sdio_pins>;
234 pinctrl-1 = <&sdio_clk_gate_pins>;
235 pinctrl-names = "default", "clk-gate";
236 #address-cells = <1>;
241 max-frequency = <50000000>;
246 /* WiFi firmware requires power to be kept while in suspend */
247 keep-power-in-suspend;
249 mmc-pwrseq = <&sdio_pwrseq>;
251 vmmc-supply = <&vddao_3v3>;
252 vqmmc-supply = <&vddio_boot>;
256 compatible = "brcm,bcm4329-fmac";
263 pinctrl-0 = <&sdcard_pins>;
264 pinctrl-1 = <&sdcard_clk_gate_pins>;
265 pinctrl-names = "default", "clk-gate";
269 max-frequency = <50000000>;
272 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
274 vmmc-supply = <&vddao_3v3>;
275 vqmmc-supply = <&vcc_3v3>;
281 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
282 pinctrl-1 = <&emmc_clk_gate_pins>;
283 pinctrl-names = "default", "clk-gate";
287 max-frequency = <200000000>;
293 mmc-pwrseq = <&emmc_pwrseq>;
294 vmmc-supply = <&vcc_3v3>;
295 vqmmc-supply = <&vddio_boot>;
298 /* This is connected to the Bluetooth module: */
301 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
302 pinctrl-names = "default";
305 compatible = "brcm,bcm43438-bt";
306 shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>;
307 max-speed = <2000000>;
313 /* This UART is brought out to the DB9 connector */
316 pinctrl-0 = <&uart_ao_a_pins>;
317 pinctrl-names = "default";
322 phy-supply = <&usb_pwr>;