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>
15 compatible = "nexbox,a95x", "amlogic,meson-gxbb";
16 model = "NEXBOX A95X";
24 stdout-path = "serial0:115200n8";
28 device_type = "memory";
29 reg = <0x0 0x0 0x0 0x40000000>;
33 compatible = "gpio-leds";
35 label = "a95x:system-status";
36 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "heartbeat";
38 default-state = "off";
43 compatible = "gpio-keys-polled";
46 poll-interval = <100>;
50 linux,code = <KEY_RESTART>;
51 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
55 usb_pwr: regulator-usb-pwrs {
56 compatible = "regulator-fixed";
58 regulator-name = "USB_PWR";
60 regulator-min-microvolt = <5000000>;
61 regulator-max-microvolt = <5000000>;
63 gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
67 vddio_card: gpio-regulator {
68 compatible = "regulator-gpio";
70 regulator-name = "VDDIO_CARD";
71 regulator-min-microvolt = <1800000>;
72 regulator-max-microvolt = <3300000>;
74 gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
77 /* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */
82 vddio_boot: regulator-vddio_boot {
83 compatible = "regulator-fixed";
84 regulator-name = "VDDIO_BOOT";
85 regulator-min-microvolt = <1800000>;
86 regulator-max-microvolt = <1800000>;
89 vddao_3v3: regulator-vddao_3v3 {
90 compatible = "regulator-fixed";
91 regulator-name = "VDDAO_3V3";
92 regulator-min-microvolt = <3300000>;
93 regulator-max-microvolt = <3300000>;
96 vcc_3v3: regulator-vcc_3v3 {
97 compatible = "regulator-fixed";
98 regulator-name = "VCC_3V3";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
103 emmc_pwrseq: emmc-pwrseq {
104 compatible = "mmc-pwrseq-emmc";
105 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
109 compatible = "pwm-clock";
111 clock-frequency = <32768>;
112 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
115 sdio_pwrseq: sdio-pwrseq {
116 compatible = "mmc-pwrseq-simple";
117 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
119 clock-names = "ext_clock";
123 compatible = "composite-video-connector";
126 cvbs_connector_in: endpoint {
127 remote-endpoint = <&cvbs_vdac_out>;
133 compatible = "hdmi-connector";
137 hdmi_connector_in: endpoint {
138 remote-endpoint = <&hdmi_tx_tmds_out>;
145 cvbs_vdac_out: endpoint {
146 remote-endpoint = <&cvbs_connector_in>;
152 pinctrl-0 = <&ao_cec_pins>;
153 pinctrl-names = "default";
154 hdmi-phandle = <&hdmi_tx>;
159 pinctrl-0 = <ð_rmii_pins>;
160 pinctrl-names = "default";
162 phy-handle = <ð_phy0>;
166 compatible = "snps,dwmac-mdio";
167 #address-cells = <1>;
170 eth_phy0: ethernet-phy@0 {
171 /* IC Plus IP101GR (0x02430c54) */
174 reset-assert-us = <10000>;
175 reset-deassert-us = <10000>;
176 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
183 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
184 pinctrl-names = "default";
188 hdmi_tx_tmds_out: endpoint {
189 remote-endpoint = <&hdmi_connector_in>;
195 pinctrl-0 = <&remote_input_ao_pins>;
196 pinctrl-names = "default";
201 pinctrl-0 = <&pwm_e_pins>;
202 pinctrl-names = "default";
203 clocks = <&clkc CLKID_FCLK_DIV4>;
204 clock-names = "clkin0";
207 /* Wireless SDIO Module */
210 pinctrl-0 = <&sdio_pins>;
211 pinctrl-1 = <&sdio_clk_gate_pins>;
212 pinctrl-names = "default", "clk-gate";
213 #address-cells = <1>;
218 max-frequency = <100000000>;
223 /* WiFi firmware requires power to be kept while in suspend */
224 keep-power-in-suspend;
226 mmc-pwrseq = <&sdio_pwrseq>;
228 vmmc-supply = <&vddao_3v3>;
229 vqmmc-supply = <&vddio_boot>;
235 pinctrl-0 = <&sdcard_pins>;
236 pinctrl-1 = <&sdcard_clk_gate_pins>;
237 pinctrl-names = "default", "clk-gate";
241 max-frequency = <50000000>;
244 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
246 vmmc-supply = <&vddao_3v3>;
247 vqmmc-supply = <&vddio_card>;
253 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
254 pinctrl-1 = <&emmc_clk_gate_pins>;
255 pinctrl-names = "default", "clk-gate";
259 max-frequency = <200000000>;
265 mmc-pwrseq = <&emmc_pwrseq>;
266 vmmc-supply = <&vcc_3v3>;
267 vqmmc-supply = <&vddio_boot>;
272 pinctrl-0 = <&uart_ao_a_pins>;
273 pinctrl-names = "default";
278 phy-supply = <&usb_pwr>;