1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
8 #include "meson-axg.dtsi"
9 #include <dt-bindings/input/input.h>
12 compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg";
13 model = "Amlogic Meson AXG S400 Development Board";
16 compatible = "adc-keys";
17 io-channels = <&saradc 0>;
18 io-channel-names = "buttons";
19 keyup-threshold-microvolt = <1800000>;
23 linux,code = <KEY_NEXT>;
24 press-threshold-microvolt = <1116000>; /* 62% */
29 linux,code = <KEY_PREVIOUS>;
30 press-threshold-microvolt = <900000>; /* 50% */
35 linux,code = <KEY_WLAN>;
36 press-threshold-microvolt = <684000>; /* 38% */
41 linux,code = <KEY_VOLUMEUP>;
42 press-threshold-microvolt = <468000>; /* 26% */
46 label = "Volume Down";
47 linux,code = <KEY_VOLUMEDOWN>;
48 press-threshold-microvolt = <252000>; /* 14% */
53 linux,code = <KEY_VOICECOMMAND>;
54 press-threshold-microvolt = <0>; /* 0% */
63 main_12v: regulator-main_12v {
64 compatible = "regulator-fixed";
65 regulator-name = "12V";
66 regulator-min-microvolt = <12000000>;
67 regulator-max-microvolt = <12000000>;
70 vddio_boot: regulator-vddio_boot {
71 compatible = "regulator-fixed";
72 regulator-name = "VDDIO_BOOT";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
77 vddao_3v3: regulator-vddao_3v3 {
78 compatible = "regulator-fixed";
79 regulator-name = "VDDAO_3V3";
80 regulator-min-microvolt = <3300000>;
81 regulator-max-microvolt = <3300000>;
84 vddio_ao18: regulator-vddio_ao18 {
85 compatible = "regulator-fixed";
86 regulator-name = "VDDIO_AO18";
87 regulator-min-microvolt = <1800000>;
88 regulator-max-microvolt = <1800000>;
91 vcc_3v3: regulator-vcc_3v3 {
92 compatible = "regulator-fixed";
93 regulator-name = "VCC_3V3";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
98 emmc_pwrseq: emmc-pwrseq {
99 compatible = "mmc-pwrseq-emmc";
100 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
103 sdio_pwrseq: sdio-pwrseq {
104 compatible = "mmc-pwrseq-simple";
105 reset-gpios = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
107 clock-names = "ext_clock";
111 compatible = "pwm-clock";
113 clock-frequency = <32768>;
114 pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */
118 compatible = "gpio-leds";
121 label = "speaker:aled1";
122 gpios = <&gpio_speaker 7 0>;
126 label = "speaker:aled2";
127 gpios = <&gpio_speaker 6 0>;
131 label = "speaker:aled3";
132 gpios = <&gpio_speaker 5 0>;
136 label = "speaker:aled4";
137 gpios = <&gpio_speaker 4 0>;
141 label = "speaker:aled5";
142 gpios = <&gpio_speaker 3 0>;
146 label = "speaker:aled6";
147 gpios = <&gpio_speaker 2 0>;
154 pinctrl-0 = <ð_rgmii_y_pins>;
155 pinctrl-names = "default";
156 phy-handle = <ð_phy0>;
160 compatible = "snps,dwmac-mdio";
161 #address-cells = <1>;
164 eth_phy0: ethernet-phy@0 {
165 /* Realtek RTL8211F (0x001cc916) */
174 pinctrl-0 = <&uart_a_pins>;
175 pinctrl-names = "default";
180 pinctrl-0 = <&uart_ao_a_pins>;
181 pinctrl-names = "default";
186 pinctrl-0 = <&remote_input_ao_pins>;
187 pinctrl-names = "default";
192 pinctrl-0 = <&i2c1_z_pins>;
193 pinctrl-names = "default";
195 speaker_amp1: audio-codec@1b {
196 compatible = "ti,tas5707";
198 reset-gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>;
199 #sound-dai-cells = <0>;
200 AVDD-supply = <&vcc_3v3>;
201 DVDD-supply = <&vcc_3v3>;
202 PVDD_A-supply = <&main_12v>;
203 PVDD_B-supply = <&main_12v>;
204 PVDD_C-supply = <&main_12v>;
205 PVDD_D-supply = <&main_12v>;
211 pinctrl-0 = <&i2c_ao_sck_10_pins>, <&i2c_ao_sda_11_pins>;
212 pinctrl-names = "default";
214 gpio_speaker: gpio-controller@1f {
215 compatible = "nxp,pca9557";
219 vcc-supply = <&vddao_3v3>;
225 pinctrl-0 = <&pwm_a_x20_pins>;
226 pinctrl-names = "default";
232 pinctrl-0 = <&emmc_pins>;
233 pinctrl-1 = <&emmc_clk_gate_pins>;
234 pinctrl-names = "default", "clk-gate";
239 max-frequency = <180000000>;
245 vmmc-supply = <&vcc_3v3>;
246 vqmmc-supply = <&vddio_boot>;
252 #address-cells = <1>;
255 pinctrl-0 = <&sdio_pins>;
256 pinctrl-1 = <&sdio_clk_gate_pins>;
257 pinctrl-names = "default", "clk-gate";
261 max-frequency = <100000000>;
265 mmc-pwrseq = <&sdio_pwrseq>;
267 vmmc-supply = <&vddao_3v3>;
268 vqmmc-supply = <&vddio_boot>;
272 compatible = "brcm,bcm4329-fmac";
278 vref-supply = <&vddio_ao18>;