1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 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-s905x.dtsi"
16 compatible = "libretech,aml-s905x-cc", "amlogic,s905x",
18 model = "Libre Computer AML-S905X-CC";
26 stdout-path = "serial0:115200n8";
30 compatible = "composite-video-connector";
33 cvbs_connector_in: endpoint {
34 remote-endpoint = <&cvbs_vdac_out>;
39 emmc_pwrseq: emmc-pwrseq {
40 compatible = "mmc-pwrseq-emmc";
41 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
45 compatible = "hdmi-connector";
49 hdmi_connector_in: endpoint {
50 remote-endpoint = <&hdmi_tx_tmds_out>;
56 compatible = "gpio-leds";
59 label = "librecomputer:system-status";
60 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
66 label = "librecomputer:blue";
67 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
68 linux,default-trigger = "heartbeat";
73 device_type = "memory";
74 reg = <0x0 0x0 0x0 0x80000000>;
77 hdmi_5v: regulator-hdmi-5v {
78 compatible = "regulator-fixed";
80 regulator-name = "HDMI_5V";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
84 gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
89 vcc_3v3: regulator-vcc_3v3 {
90 compatible = "regulator-fixed";
91 regulator-name = "VCC_3V3";
92 regulator-min-microvolt = <3300000>;
93 regulator-max-microvolt = <3300000>;
96 vcc_card: regulator-vcc-card {
97 compatible = "regulator-gpio";
99 regulator-name = "VCC_CARD";
100 regulator-min-microvolt = <1800000>;
101 regulator-max-microvolt = <3300000>;
103 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
106 states = <3300000 0>,
109 regulator-settling-time-up-us = <200>;
110 regulator-settling-time-down-us = <50000>;
113 vddio_ao18: regulator-vddio_ao18 {
114 compatible = "regulator-fixed";
115 regulator-name = "VDDIO_AO18";
116 regulator-min-microvolt = <1800000>;
117 regulator-max-microvolt = <1800000>;
120 /* This is provided by LDOs on the eMMC daugther card */
121 vddio_boot: regulator-vddio_boot {
122 compatible = "regulator-fixed";
123 regulator-name = "VDDIO_BOOT";
124 regulator-min-microvolt = <1800000>;
125 regulator-max-microvolt = <1800000>;
126 vin-supply = <&vcc_3v3>;
130 compatible = "amlogic,gx-sound-card";
131 model = "GXL-LIBRETECH-S905X-CC";
132 assigned-clocks = <&clkc CLKID_MPLL0>,
135 assigned-clock-parents = <0>, <0>, <0>;
136 assigned-clock-rates = <294912000>,
142 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
146 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
151 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
156 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
159 sound-dai = <&hdmi_tx>;
171 pinctrl-0 = <&ao_cec_pins>;
172 pinctrl-names = "default";
173 hdmi-phandle = <&hdmi_tx>;
177 cvbs_vdac_out: endpoint {
178 remote-endpoint = <&cvbs_connector_in>;
187 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>;
188 pinctrl-names = "default";
193 pinctrl-0 = <&remote_input_ao_pins>;
194 pinctrl-names = "default";
199 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
200 pinctrl-names = "default";
201 hdmi-supply = <&hdmi_5v>;
205 hdmi_tx_tmds_out: endpoint {
206 remote-endpoint = <&hdmi_connector_in>;
211 gpio-line-names = "UART TX",
214 "SDCard Voltage Switch",
219 "9J3 Switch HDMI CEC/7J1 Header Pin11",
226 gpio-line-names = /* Bank GPIOZ */
227 "", "", "", "", "", "", "",
228 "", "", "", "", "", "", "",
229 "Eth Link LED", "Eth Activity LED",
231 "HDMI HPD", "HDMI SDA", "HDMI SCL",
232 "HDMI_5V_EN", "9J1 Header Pin2",
239 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
240 "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
241 "eMMC Clk", "eMMC Reset", "eMMC CMD",
242 "ALT BOOT MODE", "", "", "", "eMMC Data Strobe",
244 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
245 "SDCard D3", "SDCard D2", "SDCard Det",
247 "", "", "", "", "", "", "", "", "", "", "", "",
248 "", "", "", "", "", "", "", "", "", "", "", "",
249 "Green LED", "VCCK Enable",
250 "7J1 Header Pin27", "7J1 Header Pin28",
251 "VCCK Regulator", "VDDEE Regulator",
253 "7J1 Header Pin22", "7J1 Header Pin26",
254 "7J1 Header Pin36", "7J1 Header Pin38",
255 "7J1 Header Pin40", "7J1 Header Pin37",
256 "7J1 Header Pin33", "7J1 Header Pin35",
257 "7J1 Header Pin19", "7J1 Header Pin21",
258 "7J1 Header Pin24", "7J1 Header Pin23",
259 "7J1 Header Pin8", "7J1 Header Pin10",
260 "7J1 Header Pin16", "7J1 Header Pin18",
261 "7J1 Header Pin32", "7J1 Header Pin29",
264 "7J1 Header Pin7", "";
269 vref-supply = <&vddio_ao18>;
275 pinctrl-0 = <&sdcard_pins>;
276 pinctrl-1 = <&sdcard_clk_gate_pins>;
277 pinctrl-names = "default", "clk-gate";
281 max-frequency = <50000000>;
284 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
286 vmmc-supply = <&vcc_3v3>;
287 vqmmc-supply = <&vcc_card>;
293 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
294 pinctrl-1 = <&emmc_clk_gate_pins>;
295 pinctrl-names = "default", "clk-gate";
301 max-frequency = <200000000>;
304 mmc-pwrseq = <&emmc_pwrseq>;
305 vmmc-supply = <&vcc_3v3>;
306 vqmmc-supply = <&vddio_boot>;
311 pinctrl-0 = <&uart_ao_a_pins>;
312 pinctrl-names = "default";
322 * even though the schematics don't show it:
323 * HDMI_5V is also used as supply for the USB VBUS.
325 phy-supply = <&hdmi_5v>;