2018-02-27 18:30:33 +07:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2016-02-09 08:27:49 +07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Andreas Färber
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "meson-gxbb.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "tronsmart,vega-s95", "amlogic,meson-gxbb";
|
|
|
|
|
2016-03-25 01:05:12 +07:00
|
|
|
aliases {
|
|
|
|
serial0 = &uart_AO;
|
2018-01-17 17:56:27 +07:00
|
|
|
ethernet0 = ðmac;
|
2016-03-25 01:05:12 +07:00
|
|
|
};
|
|
|
|
|
2016-02-09 08:27:49 +07:00
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
2016-09-11 20:41:11 +07:00
|
|
|
|
2017-01-17 08:17:53 +07:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
blue {
|
|
|
|
label = "vega-s95:blue:on";
|
|
|
|
gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
|
|
|
|
default-state = "on";
|
|
|
|
panic-indicator;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-11 20:41:11 +07:00
|
|
|
usb_vbus: regulator-usb0-vbus {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
|
|
|
|
regulator-name = "USB0_VBUS";
|
|
|
|
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
|
|
|
|
gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
|
|
|
|
enable-active-high;
|
|
|
|
};
|
|
|
|
|
2016-11-12 20:07:19 +07:00
|
|
|
vcc_3v3: regulator-vcc_3v3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC_3V3";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_1v8: regulator-vcc_1v8 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC_1V8";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
emmc_pwrseq: emmc-pwrseq {
|
|
|
|
compatible = "mmc-pwrseq-emmc";
|
|
|
|
reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wifi32k: wifi32k {
|
|
|
|
compatible = "pwm-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <32768>;
|
|
|
|
pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
|
|
|
|
};
|
|
|
|
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
|
|
compatible = "mmc-pwrseq-simple";
|
|
|
|
reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>,
|
|
|
|
<&gpio GPIOX_20 GPIO_ACTIVE_LOW>;
|
|
|
|
clocks = <&wifi32k>;
|
|
|
|
clock-names = "ext_clock";
|
|
|
|
};
|
2016-02-09 08:27:49 +07:00
|
|
|
};
|
|
|
|
|
2016-09-05 01:29:03 +07:00
|
|
|
ðmac {
|
|
|
|
status = "okay";
|
2016-10-07 21:59:15 +07:00
|
|
|
pinctrl-0 = <ð_rgmii_pins>;
|
2016-09-05 01:29:03 +07:00
|
|
|
pinctrl-names = "default";
|
2017-02-20 04:41:43 +07:00
|
|
|
|
|
|
|
phy-handle = <ð_phy0>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
|
2017-02-20 04:41:48 +07:00
|
|
|
amlogic,tx-delay-ns = <2>;
|
|
|
|
|
2017-02-20 04:41:43 +07:00
|
|
|
snps,reset-gpio = <&gpio GPIOZ_14 0>;
|
|
|
|
snps,reset-delays-us = <0 10000 1000000>;
|
|
|
|
snps,reset-active-low;
|
|
|
|
|
|
|
|
mdio {
|
|
|
|
compatible = "snps,dwmac-mdio";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
eth_phy0: ethernet-phy@0 {
|
|
|
|
/* Realtek RTL8211F (0x001cc916) */
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
2016-09-05 01:29:03 +07:00
|
|
|
};
|
2016-09-11 20:41:11 +07:00
|
|
|
|
2017-05-13 21:33:31 +07:00
|
|
|
&ir {
|
2016-09-11 20:41:11 +07:00
|
|
|
status = "okay";
|
2017-05-13 21:33:31 +07:00
|
|
|
pinctrl-0 = <&remote_input_ao_pins>;
|
|
|
|
pinctrl-names = "default";
|
2016-09-11 20:41:11 +07:00
|
|
|
};
|
|
|
|
|
2017-05-13 21:33:31 +07:00
|
|
|
&pwm_ef {
|
2016-09-11 20:41:11 +07:00
|
|
|
status = "okay";
|
2017-05-13 21:33:31 +07:00
|
|
|
pinctrl-0 = <&pwm_e_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
clocks = <&clkc CLKID_FCLK_DIV4>;
|
|
|
|
clock-names = "clkin0";
|
2016-09-11 20:41:11 +07:00
|
|
|
};
|
2016-11-12 20:07:19 +07:00
|
|
|
|
|
|
|
/* Wireless SDIO Module */
|
|
|
|
&sd_emmc_a {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&sdio_pins &sdio_irq_pins>;
|
2017-08-31 20:52:20 +07:00
|
|
|
pinctrl-1 = <&sdio_clk_gate_pins>;
|
|
|
|
pinctrl-names = "default", "clk-gate";
|
2016-11-12 20:07:19 +07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
bus-width = <4>;
|
|
|
|
cap-sd-highspeed;
|
|
|
|
max-frequency = <100000000>;
|
|
|
|
|
|
|
|
non-removable;
|
|
|
|
disable-wp;
|
|
|
|
|
|
|
|
mmc-pwrseq = <&sdio_pwrseq>;
|
|
|
|
|
|
|
|
vmmc-supply = <&vcc_3v3>;
|
|
|
|
vqmmc-supply = <&vcc_1v8>;
|
|
|
|
|
2017-05-13 21:33:22 +07:00
|
|
|
brcmf: wifi@1 {
|
2016-11-12 20:07:19 +07:00
|
|
|
reg = <1>;
|
|
|
|
compatible = "brcm,bcm4329-fmac";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* SD card */
|
|
|
|
&sd_emmc_b {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&sdcard_pins>;
|
2017-08-31 20:52:20 +07:00
|
|
|
pinctrl-1 = <&sdcard_clk_gate_pins>;
|
|
|
|
pinctrl-names = "default", "clk-gate";
|
2016-11-12 20:07:19 +07:00
|
|
|
|
|
|
|
bus-width = <4>;
|
|
|
|
cap-sd-highspeed;
|
|
|
|
max-frequency = <100000000>;
|
|
|
|
disable-wp;
|
|
|
|
|
|
|
|
cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
|
|
|
|
cd-inverted;
|
|
|
|
|
|
|
|
vmmc-supply = <&vcc_3v3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* eMMC */
|
|
|
|
&sd_emmc_c {
|
|
|
|
status = "okay";
|
2017-10-03 22:24:42 +07:00
|
|
|
pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
|
2017-08-31 20:52:20 +07:00
|
|
|
pinctrl-1 = <&emmc_clk_gate_pins>;
|
|
|
|
pinctrl-names = "default", "clk-gate";
|
2016-11-12 20:07:19 +07:00
|
|
|
|
|
|
|
bus-width = <8>;
|
|
|
|
cap-mmc-highspeed;
|
|
|
|
max-frequency = <200000000>;
|
|
|
|
non-removable;
|
|
|
|
disable-wp;
|
|
|
|
mmc-ddr-1_8v;
|
|
|
|
mmc-hs200-1_8v;
|
|
|
|
|
|
|
|
mmc-pwrseq = <&emmc_pwrseq>;
|
|
|
|
vmmc-supply = <&vcc_3v3>;
|
|
|
|
vmmcq-sumpply = <&vcc_1v8>;
|
|
|
|
};
|
|
|
|
|
2017-05-13 21:33:31 +07:00
|
|
|
&uart_AO {
|
2016-11-12 20:07:19 +07:00
|
|
|
status = "okay";
|
2017-05-13 21:33:31 +07:00
|
|
|
pinctrl-0 = <&uart_ao_a_pins>;
|
2016-11-12 20:07:19 +07:00
|
|
|
pinctrl-names = "default";
|
2017-05-13 21:33:31 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&usb0_phy {
|
|
|
|
status = "okay";
|
|
|
|
phy-supply = <&usb_vbus>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1 {
|
|
|
|
status = "okay";
|
2016-11-12 20:07:19 +07:00
|
|
|
};
|