1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016-2017 Andreas Färber
7 * Copyright (c) 2016 BayLibre, SAS.
8 * Author: Neil Armstrong <narmstrong@baylibre.com>
10 * Copyright (c) 2016 Endless Computers, Inc.
11 * Author: Carlo Caione <carlo@endlessm.com>
16 #include "meson-gxm.dtsi"
17 #include <dt-bindings/sound/meson-aiu.h>
20 compatible = "kingnovel,r-box-pro", "amlogic,s912", "amlogic,meson-gxm";
29 stdout-path = "serial0:115200n8";
33 device_type = "memory";
34 reg = <0x0 0x0 0x0 0x80000000>; /* 2 GiB or 3 GiB */
37 spdif_dit: audio-codec-0 {
38 #sound-dai-cells = <0>;
39 compatible = "linux,spdif-dit";
41 sound-name-prefix = "DIT";
45 compatible = "gpio-leds";
48 label = "rbox-pro:blue:on";
49 gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
54 label = "rbox-pro:red:standby";
55 gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
57 retain-state-suspended;
62 vddio_boot: regulator-vddio-boot {
63 compatible = "regulator-fixed";
64 regulator-name = "VDDIO_BOOT";
65 regulator-min-microvolt = <1800000>;
66 regulator-max-microvolt = <1800000>;
69 vddao_3v3: regulator-vddao-3v3 {
70 compatible = "regulator-fixed";
71 regulator-name = "VDDAO_3V3";
72 regulator-min-microvolt = <3300000>;
73 regulator-max-microvolt = <3300000>;
76 vcc_3v3: regulator-vcc-3v3 {
77 compatible = "regulator-fixed";
78 regulator-name = "VCC_3V3";
79 regulator-min-microvolt = <3300000>;
80 regulator-max-microvolt = <3300000>;
83 emmc_pwrseq: emmc-pwrseq {
84 compatible = "mmc-pwrseq-emmc";
85 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
89 compatible = "pwm-clock";
91 clock-frequency = <32768>;
92 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
95 sdio_pwrseq: sdio-pwrseq {
96 compatible = "mmc-pwrseq-simple";
97 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
99 clock-names = "ext_clock";
103 compatible = "amlogic,gx-sound-card";
105 assigned-clocks = <&clkc CLKID_MPLL0>,
108 assigned-clock-parents = <0>, <0>, <0>;
109 assigned-clock-rates = <294912000>,
115 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
119 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
123 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
128 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
133 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
136 sound-dai = <&spdif_dit>;
141 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
144 sound-dai = <&hdmi_tx>;
152 pinctrl-0 = <&spdif_out_h_pins>;
153 pinctrl-names = "default";
159 pinctrl-0 = <ð_pins>;
160 pinctrl-names = "default";
162 /* Select external PHY by default */
163 phy-handle = <&external_phy>;
165 amlogic,tx-delay-ns = <2>;
167 /* External PHY is in RGMII */
172 external_phy: ethernet-phy@0 {
173 /* Realtek RTL8211F (0x001cc916) */
177 reset-assert-us = <10000>;
178 reset-deassert-us = <80000>;
179 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
185 pinctrl-0 = <&remote_input_ao_pins>;
186 pinctrl-names = "default";
191 pinctrl-0 = <&pwm_e_pins>;
192 pinctrl-names = "default";
193 clocks = <&clkc CLKID_FCLK_DIV4>;
194 clock-names = "clkin0";
197 /* Wireless SDIO Module */
200 pinctrl-0 = <&sdio_pins>;
201 pinctrl-names = "default";
202 #address-cells = <1>;
207 max-frequency = <50000000>;
212 /* WiFi firmware requires power to be kept while in suspend */
213 keep-power-in-suspend;
215 mmc-pwrseq = <&sdio_pwrseq>;
217 vmmc-supply = <&vddao_3v3>;
218 vqmmc-supply = <&vddio_boot>;
222 compatible = "brcm,bcm4329-fmac";
229 pinctrl-0 = <&sdcard_pins>;
230 pinctrl-names = "default";
234 max-frequency = <50000000>;
237 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
239 vmmc-supply = <&vddao_3v3>;
240 vqmmc-supply = <&vddio_boot>;
246 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
247 pinctrl-names = "default";
251 max-frequency = <200000000>;
257 mmc-pwrseq = <&emmc_pwrseq>;
258 vmmc-supply = <&vcc_3v3>;
259 vqmmc-supply = <&vddio_boot>;
264 pinctrl-0 = <&uart_ao_a_pins>;
265 pinctrl-names = "default";