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 Technology CC";
23 stdout-path = "serial0:115200n8";
27 compatible = "composite-video-connector";
30 cvbs_connector_in: endpoint {
31 remote-endpoint = <&cvbs_vdac_out>;
36 emmc_pwrseq: emmc-pwrseq {
37 compatible = "mmc-pwrseq-emmc";
38 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
42 compatible = "hdmi-connector";
46 hdmi_connector_in: endpoint {
47 remote-endpoint = <&hdmi_tx_tmds_out>;
53 compatible = "gpio-leds";
56 label = "librecomputer:system-status";
57 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
63 label = "librecomputer:blue";
64 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
65 linux,default-trigger = "heartbeat";
70 device_type = "memory";
71 reg = <0x0 0x0 0x0 0x80000000>;
74 hdmi_5v: regulator-hdmi-5v {
75 compatible = "regulator-fixed";
77 regulator-name = "HDMI_5V";
78 regulator-min-microvolt = <5000000>;
79 regulator-max-microvolt = <5000000>;
81 gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
86 vcc_3v3: regulator-vcc_3v3 {
87 compatible = "regulator-fixed";
88 regulator-name = "VCC_3V3";
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
93 vcc_card: regulator-vcc-card {
94 compatible = "regulator-gpio";
96 regulator-name = "VCC_CARD";
97 regulator-min-microvolt = <1800000>;
98 regulator-max-microvolt = <3300000>;
100 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
103 states = <3300000 0>,
106 regulator-settling-time-up-us = <200>;
107 regulator-settling-time-down-us = <50000>;
110 vddio_ao18: regulator-vddio_ao18 {
111 compatible = "regulator-fixed";
112 regulator-name = "VDDIO_AO18";
113 regulator-min-microvolt = <1800000>;
114 regulator-max-microvolt = <1800000>;
117 vddio_boot: regulator-vddio_boot {
118 compatible = "regulator-fixed";
119 regulator-name = "VDDIO_BOOT";
120 regulator-min-microvolt = <3300000>;
121 regulator-max-microvolt = <3300000>;
127 pinctrl-0 = <&ao_cec_pins>;
128 pinctrl-names = "default";
129 hdmi-phandle = <&hdmi_tx>;
133 cvbs_vdac_out: endpoint {
134 remote-endpoint = <&cvbs_connector_in>;
143 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>;
144 pinctrl-names = "default";
149 pinctrl-0 = <&remote_input_ao_pins>;
150 pinctrl-names = "default";
155 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
156 pinctrl-names = "default";
160 hdmi_tx_tmds_out: endpoint {
161 remote-endpoint = <&hdmi_connector_in>;
166 gpio-line-names = "UART TX",
169 "SDCard Voltage Switch",
174 "9J3 Switch HDMI CEC/7J1 Header Pin11",
181 gpio-line-names = /* Bank GPIOZ */
182 "", "", "", "", "", "", "",
183 "", "", "", "", "", "", "",
184 "Eth Link LED", "Eth Activity LED",
186 "HDMI HPD", "HDMI SDA", "HDMI SCL",
187 "HDMI_5V_EN", "9J1 Header Pin2",
194 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
195 "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
196 "eMMC Clk", "eMMC Reset", "eMMC CMD",
197 "ALT BOOT MODE", "", "", "", "eMMC Data Strobe",
199 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
200 "SDCard D3", "SDCard D2", "SDCard Det",
202 "", "", "", "", "", "", "", "", "", "", "", "",
203 "", "", "", "", "", "", "", "", "", "", "", "",
204 "Green LED", "VCCK Enable",
205 "7J1 Header Pin27", "7J1 Header Pin28",
206 "VCCK Regulator", "VDDEE Regulator",
208 "7J1 Header Pin22", "7J1 Header Pin26",
209 "7J1 Header Pin36", "7J1 Header Pin38",
210 "7J1 Header Pin40", "7J1 Header Pin37",
211 "7J1 Header Pin33", "7J1 Header Pin35",
212 "7J1 Header Pin19", "7J1 Header Pin21",
213 "7J1 Header Pin24", "7J1 Header Pin23",
214 "7J1 Header Pin8", "7J1 Header Pin10",
215 "7J1 Header Pin16", "7J1 Header Pin18",
216 "7J1 Header Pin32", "7J1 Header Pin29",
219 "7J1 Header Pin7", "";
224 vref-supply = <&vddio_ao18>;
230 pinctrl-0 = <&sdcard_pins>;
231 pinctrl-1 = <&sdcard_clk_gate_pins>;
232 pinctrl-names = "default", "clk-gate";
239 max-frequency = <100000000>;
242 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
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";
259 max-frequency = <50000000>;
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";