2018-12-19 00:19:28 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 BayLibre SAS. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "meson-g12a.dtsi"
|
2019-03-25 10:14:48 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
2018-12-19 00:19:28 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "amediatech,x96-max", "amlogic,u200", "amlogic,g12a";
|
|
|
|
model = "Shenzhen Amediatech Technology Co., Ltd X96 Max";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &uart_AO;
|
2019-05-27 13:00:43 +00:00
|
|
|
ethernet0 = ðmac;
|
2018-12-19 00:19:28 +00:00
|
|
|
};
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
memory@0 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x0 0x0 0x40000000>;
|
|
|
|
};
|
2019-03-25 10:14:48 +00:00
|
|
|
|
2019-04-08 09:31:37 +00:00
|
|
|
cvbs-connector {
|
|
|
|
compatible = "composite-video-connector";
|
|
|
|
|
|
|
|
port {
|
|
|
|
cvbs_connector_in: endpoint {
|
|
|
|
remote-endpoint = <&cvbs_vdac_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hdmi-connector {
|
|
|
|
compatible = "hdmi-connector";
|
|
|
|
type = "a";
|
|
|
|
|
|
|
|
port {
|
|
|
|
hdmi_connector_in: endpoint {
|
|
|
|
remote-endpoint = <&hdmi_tx_tmds_out>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-06-07 14:47:33 +00:00
|
|
|
emmc_pwrseq: emmc-pwrseq {
|
|
|
|
compatible = "mmc-pwrseq-emmc";
|
|
|
|
reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2019-03-25 10:14:48 +00:00
|
|
|
flash_1v8: regulator-flash_1v8 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "FLASH_1V8";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
vin-supply = <&vcc_3v3>;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
dc_in: regulator-dc_in {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "DC_IN";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_1v8: regulator-vcc_1v8 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC_1V8";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
vin-supply = <&vcc_3v3>;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_3v3: regulator-vcc_3v3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC_3V3";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
vin-supply = <&vddao_3v3>;
|
|
|
|
regulator-always-on;
|
|
|
|
/* FIXME: actually controlled by VDDCPU_B_EN */
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_5v: regulator-vcc_5v {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC_5V";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
vin-supply = <&dc_in>;
|
|
|
|
|
|
|
|
gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
|
|
|
|
enable-active-low;
|
|
|
|
};
|
|
|
|
|
|
|
|
vddao_1v8: regulator-vddao_1v8 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VDDAO_1V8";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
vin-supply = <&vddao_3v3>;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
vddao_3v3: regulator-vddao_3v3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VDDAO_3V3";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
vin-supply = <&dc_in>;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
2018-12-19 00:19:28 +00:00
|
|
|
};
|
|
|
|
|
2019-04-08 09:31:37 +00:00
|
|
|
&cec_AO {
|
|
|
|
pinctrl-0 = <&cec_ao_a_h_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "disabled";
|
|
|
|
hdmi-phandle = <&hdmi_tx>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&cecb_AO {
|
|
|
|
pinctrl-0 = <&cec_ao_b_h_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
hdmi-phandle = <&hdmi_tx>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&cvbs_vdac_port {
|
|
|
|
cvbs_vdac_out: endpoint {
|
|
|
|
remote-endpoint = <&cvbs_connector_in>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&hdmi_tx {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
hdmi-supply = <&vcc_5v>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&hdmi_tx_tmds_port {
|
|
|
|
hdmi_tx_tmds_out: endpoint {
|
|
|
|
remote-endpoint = <&hdmi_connector_in>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-04-12 10:05:17 +00:00
|
|
|
&ir {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&remote_input_ao_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2019-05-27 13:00:43 +00:00
|
|
|
&ext_mdio {
|
|
|
|
external_phy: ethernet-phy@0 {
|
|
|
|
/* Realtek RTL8211F (0x001cc916) */
|
|
|
|
reg = <0>;
|
|
|
|
max-speed = <1000>;
|
|
|
|
eee-broken-1000t;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðmac {
|
|
|
|
pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
phy-handle = <&external_phy>;
|
|
|
|
amlogic,tx-delay-ns = <2>;
|
|
|
|
snps,reset-gpio = <&gpio GPIOZ_14 0>;
|
|
|
|
snps,reset-delays-us = <0 10000 1000000>;
|
|
|
|
snps,reset-active-low;
|
|
|
|
};
|
|
|
|
|
2019-03-25 10:14:49 +00:00
|
|
|
&uart_A {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
uart-has-rtscts;
|
|
|
|
|
|
|
|
bluetooth {
|
|
|
|
compatible = "brcm,bcm43438-bt";
|
|
|
|
shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-19 00:19:28 +00:00
|
|
|
&uart_AO {
|
|
|
|
status = "okay";
|
2019-03-18 10:04:50 +00:00
|
|
|
pinctrl-0 = <&uart_ao_a_pins>;
|
|
|
|
pinctrl-names = "default";
|
2018-12-19 00:19:28 +00:00
|
|
|
};
|
2019-03-25 10:14:53 +00:00
|
|
|
|
|
|
|
&usb {
|
|
|
|
status = "okay";
|
|
|
|
dr_mode = "host";
|
|
|
|
};
|
2019-06-07 14:47:33 +00:00
|
|
|
|
|
|
|
/* SD card */
|
|
|
|
&sd_emmc_b {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&sdcard_c_pins>;
|
|
|
|
pinctrl-1 = <&sdcard_clk_gate_c_pins>;
|
|
|
|
pinctrl-names = "default", "clk-gate";
|
|
|
|
|
|
|
|
bus-width = <4>;
|
|
|
|
cap-sd-highspeed;
|
|
|
|
max-frequency = <100000000>;
|
|
|
|
disable-wp;
|
|
|
|
|
|
|
|
cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
|
|
|
|
vmmc-supply = <&vddao_3v3>;
|
|
|
|
vqmmc-supply = <&vddao_3v3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* eMMC */
|
|
|
|
&sd_emmc_c {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
|
|
|
|
pinctrl-1 = <&emmc_clk_gate_pins>;
|
|
|
|
pinctrl-names = "default", "clk-gate";
|
|
|
|
|
|
|
|
bus-width = <8>;
|
|
|
|
cap-mmc-highspeed;
|
|
|
|
max-frequency = <100000000>;
|
|
|
|
non-removable;
|
|
|
|
disable-wp;
|
|
|
|
|
|
|
|
mmc-pwrseq = <&emmc_pwrseq>;
|
|
|
|
vmmc-supply = <&vcc_3v3>;
|
|
|
|
vqmmc-supply = <&flash_1v8>;
|
|
|
|
};
|