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>
12 #include "meson-gxl-s905x.dtsi"
15 compatible = "libretech,aml-s905x-cc", "amlogic,s905x",
17 model = "Libre Computer AML-S905X-CC";
25 stdout-path = "serial0:115200n8";
29 compatible = "composite-video-connector";
32 cvbs_connector_in: endpoint {
33 remote-endpoint = <&cvbs_vdac_out>;
38 emmc_pwrseq: emmc-pwrseq {
39 compatible = "mmc-pwrseq-emmc";
40 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
44 compatible = "hdmi-connector";
48 hdmi_connector_in: endpoint {
49 remote-endpoint = <&hdmi_tx_tmds_out>;
55 compatible = "gpio-leds";
58 label = "librecomputer:system-status";
59 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
65 label = "librecomputer:blue";
66 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
67 linux,default-trigger = "heartbeat";
72 device_type = "memory";
73 reg = <0x0 0x0 0x0 0x80000000>;
76 hdmi_5v: regulator-hdmi-5v {
77 compatible = "regulator-fixed";
79 regulator-name = "HDMI_5V";
80 regulator-min-microvolt = <5000000>;
81 regulator-max-microvolt = <5000000>;
83 gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
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_card: regulator-vcc-card {
96 compatible = "regulator-gpio";
98 regulator-name = "VCC_CARD";
99 regulator-min-microvolt = <1800000>;
100 regulator-max-microvolt = <3300000>;
102 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
105 states = <3300000 0>,
108 regulator-settling-time-up-us = <200>;
109 regulator-settling-time-down-us = <50000>;
112 vddio_ao18: regulator-vddio_ao18 {
113 compatible = "regulator-fixed";
114 regulator-name = "VDDIO_AO18";
115 regulator-min-microvolt = <1800000>;
116 regulator-max-microvolt = <1800000>;
119 /* This is provided by LDOs on the eMMC daugther card */
120 vddio_boot: regulator-vddio_boot {
121 compatible = "regulator-fixed";
122 regulator-name = "VDDIO_BOOT";
123 regulator-min-microvolt = <1800000>;
124 regulator-max-microvolt = <1800000>;
125 vin-supply = <&vcc_3v3>;
131 pinctrl-0 = <&ao_cec_pins>;
132 pinctrl-names = "default";
133 hdmi-phandle = <&hdmi_tx>;
137 cvbs_vdac_out: endpoint {
138 remote-endpoint = <&cvbs_connector_in>;
147 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>;
148 pinctrl-names = "default";
153 pinctrl-0 = <&remote_input_ao_pins>;
154 pinctrl-names = "default";
159 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
160 pinctrl-names = "default";
161 hdmi-supply = <&hdmi_5v>;
165 hdmi_tx_tmds_out: endpoint {
166 remote-endpoint = <&hdmi_connector_in>;
171 gpio-line-names = "UART TX",
174 "SDCard Voltage Switch",
179 "9J3 Switch HDMI CEC/7J1 Header Pin11",
186 gpio-line-names = /* Bank GPIOZ */
187 "", "", "", "", "", "", "",
188 "", "", "", "", "", "", "",
189 "Eth Link LED", "Eth Activity LED",
191 "HDMI HPD", "HDMI SDA", "HDMI SCL",
192 "HDMI_5V_EN", "9J1 Header Pin2",
199 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
200 "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
201 "eMMC Clk", "eMMC Reset", "eMMC CMD",
202 "ALT BOOT MODE", "", "", "", "eMMC Data Strobe",
204 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
205 "SDCard D3", "SDCard D2", "SDCard Det",
207 "", "", "", "", "", "", "", "", "", "", "", "",
208 "", "", "", "", "", "", "", "", "", "", "", "",
209 "Green LED", "VCCK Enable",
210 "7J1 Header Pin27", "7J1 Header Pin28",
211 "VCCK Regulator", "VDDEE Regulator",
213 "7J1 Header Pin22", "7J1 Header Pin26",
214 "7J1 Header Pin36", "7J1 Header Pin38",
215 "7J1 Header Pin40", "7J1 Header Pin37",
216 "7J1 Header Pin33", "7J1 Header Pin35",
217 "7J1 Header Pin19", "7J1 Header Pin21",
218 "7J1 Header Pin24", "7J1 Header Pin23",
219 "7J1 Header Pin8", "7J1 Header Pin10",
220 "7J1 Header Pin16", "7J1 Header Pin18",
221 "7J1 Header Pin32", "7J1 Header Pin29",
224 "7J1 Header Pin7", "";
229 vref-supply = <&vddio_ao18>;
235 pinctrl-0 = <&sdcard_pins>;
236 pinctrl-1 = <&sdcard_clk_gate_pins>;
237 pinctrl-names = "default", "clk-gate";
241 max-frequency = <50000000>;
244 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
246 vmmc-supply = <&vcc_3v3>;
247 vqmmc-supply = <&vcc_card>;
253 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
254 pinctrl-1 = <&emmc_clk_gate_pins>;
255 pinctrl-names = "default", "clk-gate";
261 max-frequency = <200000000>;
264 mmc-pwrseq = <&emmc_pwrseq>;
265 vmmc-supply = <&vcc_3v3>;
266 vqmmc-supply = <&vddio_boot>;
271 pinctrl-0 = <&uart_ao_a_pins>;
272 pinctrl-names = "default";
281 * even though the schematics don't show it:
282 * HDMI_5V is also used as supply for the USB VBUS.
284 phy-supply = <&hdmi_5v>;