2018-02-27 11:30:33 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2017-10-13 23:13:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Amlogic, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "meson-axg.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg";
|
|
|
|
model = "Amlogic Meson AXG S400 Development Board";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &uart_AO;
|
2018-01-11 02:34:01 +00:00
|
|
|
serial1 = &uart_A;
|
2017-10-13 23:13:13 +00:00
|
|
|
};
|
2018-04-08 11:36:47 +00:00
|
|
|
|
2018-06-28 09:50:53 +00:00
|
|
|
main_12v: regulator-main_12v {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "12V";
|
|
|
|
regulator-min-microvolt = <12000000>;
|
|
|
|
regulator-max-microvolt = <12000000>;
|
|
|
|
};
|
|
|
|
|
2018-04-08 11:36:47 +00:00
|
|
|
vddio_boot: regulator-vddio_boot {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VDDIO_BOOT";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
vddao_3v3: regulator-vddao_3v3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VDDAO_3V3";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
vddio_ao18: regulator-vddio_ao18 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VDDIO_AO18";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_3v3: regulator-vcc_3v3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "VCC_3V3";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
emmc_pwrseq: emmc-pwrseq {
|
|
|
|
compatible = "mmc-pwrseq-emmc";
|
|
|
|
reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2018-05-04 09:45:33 +00:00
|
|
|
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
|
|
compatible = "mmc-pwrseq-simple";
|
|
|
|
reset-gpios = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
|
|
|
|
clocks = <&wifi32k>;
|
|
|
|
clock-names = "ext_clock";
|
|
|
|
};
|
|
|
|
|
|
|
|
wifi32k: wifi32k {
|
|
|
|
compatible = "pwm-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <32768>;
|
|
|
|
pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */
|
|
|
|
};
|
2018-06-28 09:50:52 +00:00
|
|
|
|
|
|
|
speaker-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
aled1 {
|
|
|
|
label = "speaker:aled1";
|
|
|
|
gpios = <&gpio_speaker 7 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
aled2 {
|
|
|
|
label = "speaker:aled2";
|
|
|
|
gpios = <&gpio_speaker 6 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
aled3 {
|
|
|
|
label = "speaker:aled3";
|
|
|
|
gpios = <&gpio_speaker 5 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
aled4 {
|
|
|
|
label = "speaker:aled4";
|
|
|
|
gpios = <&gpio_speaker 4 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
aled5 {
|
|
|
|
label = "speaker:aled5";
|
|
|
|
gpios = <&gpio_speaker 3 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
aled6 {
|
|
|
|
label = "speaker:aled6";
|
|
|
|
gpios = <&gpio_speaker 2 0>;
|
|
|
|
};
|
|
|
|
};
|
2017-10-13 23:13:13 +00:00
|
|
|
};
|
|
|
|
|
2017-12-16 03:55:27 +00:00
|
|
|
ðmac {
|
|
|
|
status = "okay";
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
pinctrl-0 = <ð_rgmii_y_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2018-01-11 02:34:01 +00:00
|
|
|
&uart_A {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&uart_a_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2017-10-13 23:13:13 +00:00
|
|
|
&uart_AO {
|
|
|
|
status = "okay";
|
2018-01-11 02:34:00 +00:00
|
|
|
pinctrl-0 = <&uart_ao_a_pins>;
|
|
|
|
pinctrl-names = "default";
|
2017-10-13 23:13:13 +00:00
|
|
|
};
|
2017-12-15 14:59:06 +00:00
|
|
|
|
|
|
|
&ir {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&remote_input_ao_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
2017-11-20 14:54:15 +00:00
|
|
|
|
|
|
|
&i2c1 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&i2c1_z_pins>;
|
|
|
|
pinctrl-names = "default";
|
2018-06-28 09:50:54 +00:00
|
|
|
|
|
|
|
speaker_amp1: audio-codec@1b {
|
|
|
|
compatible = "ti,tas5707";
|
|
|
|
reg = <0x1b>;
|
|
|
|
reset-gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>;
|
|
|
|
#sound-dai-cells = <0>;
|
|
|
|
AVDD-supply = <&vcc_3v3>;
|
|
|
|
DVDD-supply = <&vcc_3v3>;
|
|
|
|
PVDD_A-supply = <&main_12v>;
|
|
|
|
PVDD_B-supply = <&main_12v>;
|
|
|
|
PVDD_C-supply = <&main_12v>;
|
|
|
|
PVDD_D-supply = <&main_12v>;
|
|
|
|
};
|
2017-11-20 14:54:15 +00:00
|
|
|
};
|
2018-04-08 11:36:47 +00:00
|
|
|
|
2018-05-17 09:31:00 +00:00
|
|
|
&i2c_AO {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&i2c_ao_sck_10_pins>, <&i2c_ao_sda_11_pins>;
|
|
|
|
pinctrl-names = "default";
|
2018-06-28 09:50:52 +00:00
|
|
|
|
|
|
|
gpio_speaker: gpio-controller@1f {
|
|
|
|
compatible = "nxp,pca9557";
|
|
|
|
reg = <0x1f>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
vcc-supply = <&vddao_3v3>;
|
|
|
|
};
|
2018-05-17 09:31:00 +00:00
|
|
|
};
|
|
|
|
|
2018-05-04 09:45:33 +00:00
|
|
|
&pwm_ab {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&pwm_a_x20_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2018-04-08 11:36:47 +00:00
|
|
|
/* emmc storage */
|
|
|
|
&sd_emmc_c {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&emmc_pins>;
|
|
|
|
pinctrl-1 = <&emmc_clk_gate_pins>;
|
|
|
|
pinctrl-names = "default", "clk-gate";
|
|
|
|
|
|
|
|
bus-width = <8>;
|
|
|
|
cap-sd-highspeed;
|
|
|
|
cap-mmc-highspeed;
|
|
|
|
max-frequency = <180000000>;
|
|
|
|
non-removable;
|
|
|
|
disable-wp;
|
|
|
|
mmc-ddr-1_8v;
|
|
|
|
mmc-hs200-1_8v;
|
|
|
|
|
|
|
|
vmmc-supply = <&vcc_3v3>;
|
|
|
|
vqmmc-supply = <&vddio_boot>;
|
|
|
|
};
|
2018-05-04 09:45:33 +00:00
|
|
|
|
|
|
|
/* wifi module */
|
|
|
|
&sd_emmc_b {
|
|
|
|
status = "okay";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
pinctrl-0 = <&sdio_pins>;
|
|
|
|
pinctrl-1 = <&sdio_clk_gate_pins>;
|
|
|
|
pinctrl-names = "default", "clk-gate";
|
|
|
|
|
|
|
|
bus-width = <4>;
|
|
|
|
cap-sd-highspeed;
|
|
|
|
max-frequency = <100000000>;
|
|
|
|
non-removable;
|
|
|
|
disable-wp;
|
|
|
|
|
|
|
|
mmc-pwrseq = <&sdio_pwrseq>;
|
|
|
|
|
|
|
|
vmmc-supply = <&vddao_3v3>;
|
|
|
|
vqmmc-supply = <&vddio_boot>;
|
|
|
|
|
|
|
|
brcmf: wifi@1 {
|
|
|
|
reg = <1>;
|
|
|
|
compatible = "brcm,bcm4329-fmac";
|
|
|
|
};
|
|
|
|
};
|