1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Andreas Färber
4 * Copyright (c) 2016 BayLibre, Inc.
5 * Author: Neil Armstrong <narmstrong@kernel.org>
10 #include "meson-gxbb.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/sound/meson-aiu.h>
16 compatible = "nexbox,a95x", "amlogic,meson-gxbb";
17 model = "NEXBOX A95X";
25 stdout-path = "serial0:115200n8";
29 device_type = "memory";
30 reg = <0x0 0x0 0x0 0x40000000>;
34 compatible = "gpio-leds";
36 label = "a95x:system-status";
37 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "heartbeat";
39 default-state = "off";
44 compatible = "gpio-keys-polled";
45 poll-interval = <100>;
49 linux,code = <KEY_RESTART>;
50 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
54 usb_pwr: regulator-usb-pwrs {
55 compatible = "regulator-fixed";
57 regulator-name = "USB_PWR";
59 regulator-min-microvolt = <5000000>;
60 regulator-max-microvolt = <5000000>;
62 gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
66 vddio_card: gpio-regulator {
67 compatible = "regulator-gpio";
69 regulator-name = "VDDIO_CARD";
70 regulator-min-microvolt = <1800000>;
71 regulator-max-microvolt = <3300000>;
73 gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
76 /* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */
81 vddio_boot: regulator-vddio_boot {
82 compatible = "regulator-fixed";
83 regulator-name = "VDDIO_BOOT";
84 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <1800000>;
88 vddao_3v3: regulator-vddao_3v3 {
89 compatible = "regulator-fixed";
90 regulator-name = "VDDAO_3V3";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
95 vcc_3v3: regulator-vcc_3v3 {
96 compatible = "regulator-fixed";
97 regulator-name = "VCC_3V3";
98 regulator-min-microvolt = <3300000>;
99 regulator-max-microvolt = <3300000>;
102 emmc_pwrseq: emmc-pwrseq {
103 compatible = "mmc-pwrseq-emmc";
104 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
108 compatible = "pwm-clock";
110 clock-frequency = <32768>;
111 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
114 sdio_pwrseq: sdio-pwrseq {
115 compatible = "mmc-pwrseq-simple";
116 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
118 clock-names = "ext_clock";
122 compatible = "composite-video-connector";
125 cvbs_connector_in: endpoint {
126 remote-endpoint = <&cvbs_vdac_out>;
132 compatible = "hdmi-connector";
136 hdmi_connector_in: endpoint {
137 remote-endpoint = <&hdmi_tx_tmds_out>;
143 compatible = "amlogic,gx-sound-card";
144 model = "NEXBOX-A95X";
145 assigned-clocks = <&clkc CLKID_MPLL0>,
148 assigned-clock-parents = <0>, <0>, <0>;
149 assigned-clock-rates = <294912000>,
154 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
158 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
163 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
168 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
171 sound-dai = <&hdmi_tx>;
182 cvbs_vdac_out: endpoint {
183 remote-endpoint = <&cvbs_connector_in>;
189 pinctrl-0 = <&ao_cec_pins>;
190 pinctrl-names = "default";
191 hdmi-phandle = <&hdmi_tx>;
196 pinctrl-0 = <ð_rmii_pins>;
197 pinctrl-names = "default";
199 phy-handle = <ð_phy0>;
203 compatible = "snps,dwmac-mdio";
204 #address-cells = <1>;
207 eth_phy0: ethernet-phy@0 {
208 /* IC Plus IP101GR (0x02430c54) */
211 reset-assert-us = <10000>;
212 reset-deassert-us = <10000>;
213 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
220 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
221 pinctrl-names = "default";
225 hdmi_tx_tmds_out: endpoint {
226 remote-endpoint = <&hdmi_connector_in>;
232 pinctrl-0 = <&remote_input_ao_pins>;
233 pinctrl-names = "default";
238 pinctrl-0 = <&pwm_e_pins>;
239 pinctrl-names = "default";
240 clocks = <&clkc CLKID_FCLK_DIV4>;
241 clock-names = "clkin0";
244 /* Wireless SDIO Module */
247 pinctrl-0 = <&sdio_pins>;
248 pinctrl-1 = <&sdio_clk_gate_pins>;
249 pinctrl-names = "default", "clk-gate";
250 #address-cells = <1>;
255 max-frequency = <100000000>;
260 /* WiFi firmware requires power to be kept while in suspend */
261 keep-power-in-suspend;
263 mmc-pwrseq = <&sdio_pwrseq>;
265 vmmc-supply = <&vddao_3v3>;
266 vqmmc-supply = <&vddio_boot>;
272 pinctrl-0 = <&sdcard_pins>;
273 pinctrl-1 = <&sdcard_clk_gate_pins>;
274 pinctrl-names = "default", "clk-gate";
278 max-frequency = <50000000>;
281 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
283 vmmc-supply = <&vddao_3v3>;
284 vqmmc-supply = <&vddio_card>;
290 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
291 pinctrl-1 = <&emmc_clk_gate_pins>;
292 pinctrl-names = "default", "clk-gate";
296 max-frequency = <200000000>;
302 mmc-pwrseq = <&emmc_pwrseq>;
303 vmmc-supply = <&vcc_3v3>;
304 vqmmc-supply = <&vddio_boot>;
309 pinctrl-0 = <&uart_ao_a_pins>;
310 pinctrl-names = "default";
315 phy-supply = <&usb_pwr>;