1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 BayLibre, SAS.
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 * Author: Jerome Brunet <jbrunet@baylibre.com>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/sound/meson-aiu.h>
13 #include "meson-gxl-s805x.dtsi"
16 compatible = "amlogic,p241", "amlogic,s805x", "amlogic,meson-gxl";
17 model = "Amlogic Meson GXL (S805X) P241 Development Board";
25 au2: analog-amplifier {
26 compatible = "simple-audio-amplifier";
27 sound-name-prefix = "AU2";
28 VCC-supply = <&vcc_5v>;
29 enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
33 stdout-path = "serial0:115200n8";
37 compatible = "composite-video-connector";
40 cvbs_connector_in: endpoint {
41 remote-endpoint = <&cvbs_vdac_out>;
46 emmc_pwrseq: emmc-pwrseq {
47 compatible = "mmc-pwrseq-emmc";
48 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
52 compatible = "hdmi-connector";
56 hdmi_connector_in: endpoint {
57 remote-endpoint = <&hdmi_tx_tmds_out>;
63 device_type = "memory";
64 reg = <0x0 0x0 0x0 0x20000000>;
67 vddio_boot: regulator-vddio_boot {
68 compatible = "regulator-fixed";
69 regulator-name = "VDDIO_BOOT";
70 regulator-min-microvolt = <1800000>;
71 regulator-max-microvolt = <1800000>;
74 vddao_3v3: regulator-vddao_3v3 {
75 compatible = "regulator-fixed";
76 regulator-name = "VDDAO_3V3";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
81 vddio_ao18: regulator-vddio_ao18 {
82 compatible = "regulator-fixed";
83 regulator-name = "VDDIO_AO18";
84 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <1800000>;
88 vcc_3v3: regulator-vcc_3v3 {
89 compatible = "regulator-fixed";
90 regulator-name = "VCC_3V3";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
95 vcc_5v: regulator-vcc-5v {
96 compatible = "regulator-fixed";
97 regulator-name = "VCC_5V";
98 regulator-min-microvolt = <5000000>;
99 regulator-max-microvolt = <5000000>;
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 = "amlogic,gx-sound-card";
125 audio-aux-devs = <&au2>;
126 audio-widgets = "Line", "Lineout";
127 audio-routing = "AU2 INL", "ACODEC LOLN",
128 "AU2 INR", "ACODEC LORN",
129 "Lineout", "AU2 OUTL",
130 "Lineout", "AU2 OUTR";
131 assigned-clocks = <&clkc CLKID_MPLL0>,
134 assigned-clock-parents = <0>, <0>, <0>;
135 assigned-clock-rates = <294912000>,
140 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
144 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
149 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
153 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
158 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
161 sound-dai = <&hdmi_tx>;
166 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
169 sound-dai = <&acodec>;
176 AVDD-supply = <&vddio_ao18>;
186 pinctrl-0 = <&ao_cec_pins>;
187 pinctrl-names = "default";
188 hdmi-phandle = <&hdmi_tx>;
192 cvbs_vdac_out: endpoint {
193 remote-endpoint = <&cvbs_connector_in>;
202 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>;
203 pinctrl-names = "default";
208 pinctrl-0 = <&remote_input_ao_pins>;
209 pinctrl-names = "default";
214 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
215 pinctrl-names = "default";
216 hdmi-supply = <&vcc_5v>;
220 hdmi_tx_tmds_out: endpoint {
221 remote-endpoint = <&hdmi_connector_in>;
227 vref-supply = <&vddio_ao18>;
230 /* Wireless SDIO Module */
233 pinctrl-0 = <&sdio_pins>;
234 pinctrl-1 = <&sdio_clk_gate_pins>;
235 pinctrl-names = "default", "clk-gate";
236 #address-cells = <1>;
241 max-frequency = <50000000>;
246 /* WiFi firmware requires power to be kept while in suspend */
247 keep-power-in-suspend;
249 mmc-pwrseq = <&sdio_pwrseq>;
251 vmmc-supply = <&vddao_3v3>;
252 vqmmc-supply = <&vddio_boot>;
258 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
259 pinctrl-1 = <&emmc_clk_gate_pins>;
260 pinctrl-names = "default", "clk-gate";
264 max-frequency = <200000000>;
270 mmc-pwrseq = <&emmc_pwrseq>;
271 vmmc-supply = <&vcc_3v3>;
272 vqmmc-supply = <&vddio_boot>;
277 pinctrl-0 = <&pwm_e_pins>;
278 pinctrl-names = "default";
279 clocks = <&clkc CLKID_FCLK_DIV4>;
280 clock-names = "clkin0";
283 /* This is connected to the Bluetooth module: */
286 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
287 pinctrl-names = "default";
293 pinctrl-0 = <&uart_ao_a_pins>;
294 pinctrl-names = "default";
303 phy-supply = <&vcc_5v>;