2 * Copyright (c) 2017 BayLibre, SAS.
3 * Author: Neil Armstrong <narmstrong@baylibre.com>
4 * Author: Jerome Brunet <jbrunet@baylibre.com>
6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
11 #include <dt-bindings/input/input.h>
13 #include "meson-gxl-s905x.dtsi"
16 compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl";
17 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 vcc_3v3: regulator-vcc_3v3 {
76 compatible = "regulator-fixed";
77 regulator-name = "VCC_3V3";
78 regulator-min-microvolt = <3300000>;
79 regulator-max-microvolt = <3300000>;
82 vcc_card: regulator-vcc-card {
83 compatible = "regulator-gpio";
85 regulator-name = "VCC_CARD";
86 regulator-min-microvolt = <1800000>;
87 regulator-max-microvolt = <3300000>;
89 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
95 regulator-settling-time-up-us = <200>;
96 regulator-settling-time-down-us = <50000>;
99 vddio_boot: regulator-vddio_boot {
100 compatible = "regulator-fixed";
101 regulator-name = "VDDIO_BOOT";
102 regulator-min-microvolt = <3300000>;
103 regulator-max-microvolt = <3300000>;
109 pinctrl-0 = <&ao_cec_pins>;
110 pinctrl-names = "default";
111 hdmi-phandle = <&hdmi_tx>;
115 cvbs_vdac_out: endpoint {
116 remote-endpoint = <&cvbs_connector_in>;
126 pinctrl-0 = <&remote_input_ao_pins>;
127 pinctrl-names = "default";
132 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
133 pinctrl-names = "default";
137 hdmi_tx_tmds_out: endpoint {
138 remote-endpoint = <&hdmi_connector_in>;
143 gpio-line-names = "UART TX",
146 "SDCard Voltage Switch",
151 "9J3 Switch HDMI CEC/7J1 Header Pin11",
156 gpio-line-names = /* Bank GPIOZ */
157 "", "", "", "", "", "", "",
158 "", "", "", "", "", "", "",
159 "Eth Link LED", "Eth Activity LED",
161 "HDMI HPD", "HDMI SDA", "HDMI SCL",
162 "HDMI_5V_EN", "9J1 Header Pin2",
169 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
170 "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
171 "eMMC Clk", "eMMC Reset", "eMMC CMD",
172 "ALT BOOT MODE", "", "", "", "eMMC Data Strobe",
174 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
175 "SDCard D3", "SDCard D2", "SDCard Det",
177 "", "", "", "", "", "", "", "", "", "", "", "",
178 "", "", "", "", "", "", "", "", "", "", "", "",
179 "Green LED", "VCCK Enable",
180 "7J1 Header Pin27", "7J1 Header Pin28",
181 "VCCK Regulator", "VDDEE Regulator",
183 "7J1 Header Pin22", "7J1 Header Pin26",
184 "7J1 Header Pin36", "7J1 Header Pin38",
185 "7J1 Header Pin40", "7J1 Header Pin37",
186 "7J1 Header Pin33", "7J1 Header Pin35",
187 "7J1 Header Pin19", "7J1 Header Pin21",
188 "7J1 Header Pin24", "7J1 Header Pin23",
189 "7J1 Header Pin8", "7J1 Header Pin10",
190 "7J1 Header Pin16", "7J1 Header Pin18",
191 "7J1 Header Pin32", "7J1 Header Pin29",
194 "7J1 Header Pin7", "",
202 pinctrl-0 = <&sdcard_pins>;
203 pinctrl-1 = <&sdcard_clk_gate_pins>;
204 pinctrl-names = "default", "clk-gate";
208 max-frequency = <100000000>;
211 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
214 vmmc-supply = <&vcc_3v3>;
215 vqmmc-supply = <&vcc_card>;
221 pinctrl-0 = <&emmc_pins>;
222 pinctrl-1 = <&emmc_clk_gate_pins>;
223 pinctrl-names = "default", "clk-gate";
228 max-frequency = <50000000>;
231 mmc-pwrseq = <&emmc_pwrseq>;
232 vmmc-supply = <&vcc_3v3>;
233 vqmmc-supply = <&vddio_boot>;
238 pinctrl-0 = <&uart_ao_a_pins>;
239 pinctrl-names = "default";