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";
25 dio2133: analog-amplifier {
26 compatible = "simple-audio-amplifier";
27 sound-name-prefix = "AU2";
28 VCC-supply = <&hdmi_5v>;
29 enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
33 stdout-path = "serial0:115200n8";
37 compatible = "composite-video-connector";
40 cvbs_connector_in: endpoint {
41 remote-endpoint = <&cvbs_vdac_out>;
46 emmc_pwrseq: emmc-pwrseq {
47 compatible = "mmc-pwrseq-emmc";
48 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
52 compatible = "hdmi-connector";
56 hdmi_connector_in: endpoint {
57 remote-endpoint = <&hdmi_tx_tmds_out>;
63 compatible = "gpio-leds";
66 label = "librecomputer:system-status";
67 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
73 label = "librecomputer:blue";
74 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
75 linux,default-trigger = "heartbeat";
80 device_type = "memory";
81 reg = <0x0 0x0 0x0 0x80000000>;
84 hdmi_5v: regulator-hdmi-5v {
85 compatible = "regulator-fixed";
87 regulator-name = "HDMI_5V";
88 regulator-min-microvolt = <5000000>;
89 regulator-max-microvolt = <5000000>;
91 gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
96 vcc_3v3: regulator-vcc_3v3 {
97 compatible = "regulator-fixed";
98 regulator-name = "VCC_3V3";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
103 vcc_card: regulator-vcc-card {
104 compatible = "regulator-gpio";
106 regulator-name = "VCC_CARD";
107 regulator-min-microvolt = <1800000>;
108 regulator-max-microvolt = <3300000>;
110 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
113 states = <3300000 0>,
116 regulator-settling-time-up-us = <200>;
117 regulator-settling-time-down-us = <50000>;
120 vddio_ao18: regulator-vddio_ao18 {
121 compatible = "regulator-fixed";
122 regulator-name = "VDDIO_AO18";
123 regulator-min-microvolt = <1800000>;
124 regulator-max-microvolt = <1800000>;
127 /* This is provided by LDOs on the eMMC daugther card */
128 vddio_boot: regulator-vddio_boot {
129 compatible = "regulator-fixed";
130 regulator-name = "VDDIO_BOOT";
131 regulator-min-microvolt = <1800000>;
132 regulator-max-microvolt = <1800000>;
133 vin-supply = <&vcc_3v3>;
137 compatible = "amlogic,gx-sound-card";
138 model = "GXL-LIBRETECH-S905X-CC";
139 audio-aux-devs = <&dio2133>;
140 audio-widgets = "Line", "Lineout";
141 audio-routing = "AU2 INL", "ACODEC LOLN",
142 "AU2 INR", "ACODEC LORN",
143 "Lineout", "AU2 OUTL",
144 "Lineout", "AU2 OUTR";
145 assigned-clocks = <&clkc CLKID_MPLL0>,
148 assigned-clock-parents = <0>, <0>, <0>;
149 assigned-clock-rates = <294912000>,
155 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
159 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
164 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
168 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
173 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
176 sound-dai = <&hdmi_tx>;
181 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
184 sound-dai = <&acodec>;
191 AVDD-supply = <&vddio_ao18>;
201 pinctrl-0 = <&ao_cec_pins>;
202 pinctrl-names = "default";
203 hdmi-phandle = <&hdmi_tx>;
207 cvbs_vdac_out: endpoint {
208 remote-endpoint = <&cvbs_connector_in>;
217 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>;
218 pinctrl-names = "default";
223 pinctrl-0 = <&remote_input_ao_pins>;
224 pinctrl-names = "default";
229 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
230 pinctrl-names = "default";
231 hdmi-supply = <&hdmi_5v>;
235 hdmi_tx_tmds_out: endpoint {
236 remote-endpoint = <&hdmi_connector_in>;
241 gpio-line-names = "UART TX",
244 "SDCard Voltage Switch",
249 "9J3 Switch HDMI CEC/7J1 Header Pin11",
256 gpio-line-names = /* Bank GPIOZ */
257 "", "", "", "", "", "", "",
258 "", "", "", "", "", "", "",
259 "Eth Link LED", "Eth Activity LED",
261 "HDMI HPD", "HDMI SDA", "HDMI SCL",
262 "HDMI_5V_EN", "9J1 Header Pin2",
269 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
270 "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
271 "eMMC Clk", "eMMC Reset", "eMMC CMD",
272 "ALT BOOT MODE", "", "", "", "eMMC Data Strobe",
274 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
275 "SDCard D3", "SDCard D2", "SDCard Det",
277 "", "", "", "", "", "", "", "", "", "", "", "",
278 "", "", "", "", "", "", "", "", "", "", "", "",
279 "Green LED", "VCCK Enable",
280 "7J1 Header Pin27", "7J1 Header Pin28",
281 "VCCK Regulator", "VDDEE Regulator",
283 "7J1 Header Pin22", "7J1 Header Pin26",
284 "7J1 Header Pin36", "7J1 Header Pin38",
285 "7J1 Header Pin40", "7J1 Header Pin37",
286 "7J1 Header Pin33", "7J1 Header Pin35",
287 "7J1 Header Pin19", "7J1 Header Pin21",
288 "7J1 Header Pin24", "7J1 Header Pin23",
289 "7J1 Header Pin8", "7J1 Header Pin10",
290 "7J1 Header Pin16", "7J1 Header Pin18",
291 "7J1 Header Pin32", "7J1 Header Pin29",
294 "7J1 Header Pin7", "";
299 vref-supply = <&vddio_ao18>;
305 pinctrl-0 = <&sdcard_pins>;
306 pinctrl-1 = <&sdcard_clk_gate_pins>;
307 pinctrl-names = "default", "clk-gate";
311 max-frequency = <50000000>;
314 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
316 vmmc-supply = <&vcc_3v3>;
317 vqmmc-supply = <&vcc_card>;
323 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
324 pinctrl-1 = <&emmc_clk_gate_pins>;
325 pinctrl-names = "default", "clk-gate";
331 max-frequency = <200000000>;
334 mmc-pwrseq = <&emmc_pwrseq>;
335 vmmc-supply = <&vcc_3v3>;
336 vqmmc-supply = <&vddio_boot>;
341 pinctrl-0 = <&uart_ao_a_pins>;
342 pinctrl-names = "default";
352 * even though the schematics don't show it:
353 * HDMI_5V is also used as supply for the USB VBUS.
355 phy-supply = <&hdmi_5v>;