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,cc", "amlogic,s905x", "amlogic,meson-gxl";
16 model = "Libre Computer Board AML-S905X-CC";
24 stdout-path = "serial0:115200n8";
28 compatible = "composite-video-connector";
31 cvbs_connector_in: endpoint {
32 remote-endpoint = <&cvbs_vdac_out>;
37 emmc_pwrseq: emmc-pwrseq {
38 compatible = "mmc-pwrseq-emmc";
39 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
43 compatible = "hdmi-connector";
47 hdmi_connector_in: endpoint {
48 remote-endpoint = <&hdmi_tx_tmds_out>;
54 compatible = "gpio-leds";
57 label = "librecomputer:system-status";
58 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
64 label = "librecomputer:blue";
65 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
66 linux,default-trigger = "heartbeat";
71 device_type = "memory";
72 reg = <0x0 0x0 0x0 0x80000000>;
75 hdmi_5v: regulator-hdmi-5v {
76 compatible = "regulator-fixed";
78 regulator-name = "HDMI_5V";
79 regulator-min-microvolt = <5000000>;
80 regulator-max-microvolt = <5000000>;
82 gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
87 vcc_3v3: regulator-vcc_3v3 {
88 compatible = "regulator-fixed";
89 regulator-name = "VCC_3V3";
90 regulator-min-microvolt = <3300000>;
91 regulator-max-microvolt = <3300000>;
94 vcc_card: regulator-vcc-card {
95 compatible = "regulator-gpio";
97 regulator-name = "VCC_CARD";
98 regulator-min-microvolt = <1800000>;
99 regulator-max-microvolt = <3300000>;
101 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
104 states = <3300000 0>,
107 regulator-settling-time-up-us = <200>;
108 regulator-settling-time-down-us = <50000>;
111 vddio_ao18: regulator-vddio_ao18 {
112 compatible = "regulator-fixed";
113 regulator-name = "VDDIO_AO18";
114 regulator-min-microvolt = <1800000>;
115 regulator-max-microvolt = <1800000>;
118 /* This is provided by LDOs on the eMMC daugther card */
119 vddio_boot: regulator-vddio_boot {
120 compatible = "regulator-fixed";
121 regulator-name = "VDDIO_BOOT";
122 regulator-min-microvolt = <1800000>;
123 regulator-max-microvolt = <1800000>;
124 vin-supply = <&vcc_3v3>;
130 pinctrl-0 = <&ao_cec_pins>;
131 pinctrl-names = "default";
132 hdmi-phandle = <&hdmi_tx>;
136 cvbs_vdac_out: endpoint {
137 remote-endpoint = <&cvbs_connector_in>;
146 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>;
147 pinctrl-names = "default";
152 pinctrl-0 = <&remote_input_ao_pins>;
153 pinctrl-names = "default";
158 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
159 pinctrl-names = "default";
160 hdmi-supply = <&hdmi_5v>;
164 hdmi_tx_tmds_out: endpoint {
165 remote-endpoint = <&hdmi_connector_in>;
170 gpio-line-names = "UART TX",
173 "SDCard Voltage Switch",
178 "9J3 Switch HDMI CEC/7J1 Header Pin11",
185 gpio-line-names = /* Bank GPIOZ */
186 "", "", "", "", "", "", "",
187 "", "", "", "", "", "", "",
188 "Eth Link LED", "Eth Activity LED",
190 "HDMI HPD", "HDMI SDA", "HDMI SCL",
191 "HDMI_5V_EN", "9J1 Header Pin2",
198 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
199 "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
200 "eMMC Clk", "eMMC Reset", "eMMC CMD",
201 "ALT BOOT MODE", "", "", "", "eMMC Data Strobe",
203 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
204 "SDCard D3", "SDCard D2", "SDCard Det",
206 "", "", "", "", "", "", "", "", "", "", "", "",
207 "", "", "", "", "", "", "", "", "", "", "", "",
208 "Green LED", "VCCK Enable",
209 "7J1 Header Pin27", "7J1 Header Pin28",
210 "VCCK Regulator", "VDDEE Regulator",
212 "7J1 Header Pin22", "7J1 Header Pin26",
213 "7J1 Header Pin36", "7J1 Header Pin38",
214 "7J1 Header Pin40", "7J1 Header Pin37",
215 "7J1 Header Pin33", "7J1 Header Pin35",
216 "7J1 Header Pin19", "7J1 Header Pin21",
217 "7J1 Header Pin24", "7J1 Header Pin23",
218 "7J1 Header Pin8", "7J1 Header Pin10",
219 "7J1 Header Pin16", "7J1 Header Pin18",
220 "7J1 Header Pin32", "7J1 Header Pin29",
223 "7J1 Header Pin7", "";
228 vref-supply = <&vddio_ao18>;
234 pinctrl-0 = <&sdcard_pins>;
235 pinctrl-1 = <&sdcard_clk_gate_pins>;
236 pinctrl-names = "default", "clk-gate";
240 max-frequency = <50000000>;
243 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
245 vmmc-supply = <&vcc_3v3>;
246 vqmmc-supply = <&vcc_card>;
252 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
253 pinctrl-1 = <&emmc_clk_gate_pins>;
254 pinctrl-names = "default", "clk-gate";
260 max-frequency = <200000000>;
263 mmc-pwrseq = <&emmc_pwrseq>;
264 vmmc-supply = <&vcc_3v3>;
265 vqmmc-supply = <&vddio_boot>;
270 pinctrl-0 = <&uart_ao_a_pins>;
271 pinctrl-names = "default";
280 * even though the schematics don't show it:
281 * HDMI_5V is also used as supply for the USB VBUS.
283 phy-supply = <&hdmi_5v>;