1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2020 BayLibre, SAS.
4 * Author: Jerome Brunet <jbrunet@baylibre.com>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/sound/meson-aiu.h>
13 #include "meson-gxl-s905x.dtsi"
16 compatible = "libretech,aml-s905x-cc-v2", "amlogic,s905x",
18 model = "Libre Computer AML-S905X-CC V2";
27 stdout-path = "serial0:115200n8";
30 emmc_pwrseq: emmc-pwrseq {
31 compatible = "mmc-pwrseq-emmc";
32 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
36 compatible = "hdmi-connector";
40 hdmi_connector_in: endpoint {
41 remote-endpoint = <&hdmi_tx_tmds_out>;
47 compatible = "gpio-leds";
50 color = <LED_COLOR_ID_BLUE>;
51 function = LED_FUNCTION_STATUS;
52 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
53 linux,default-trigger = "heartbeat";
58 color = <LED_COLOR_ID_GREEN>;
59 function = LED_FUNCTION_DISK_ACTIVITY;
60 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "disk-activity";
66 device_type = "memory";
67 reg = <0x0 0x0 0x0 0x80000000>;
70 ao_5v: regulator-ao_5v {
71 compatible = "regulator-fixed";
72 regulator-name = "AO_5V";
73 regulator-min-microvolt = <5000000>;
74 regulator-max-microvolt = <5000000>;
75 vin-supply = <&dc_in>;
79 dc_in: regulator-dc_in {
80 compatible = "regulator-fixed";
81 regulator-name = "DC_IN";
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
87 vcck: regulator-vcck {
88 compatible = "regulator-fixed";
89 regulator-name = "VCCK";
90 regulator-min-microvolt = <3300000>;
91 regulator-max-microvolt = <3300000>;
92 vin-supply = <&ao_5v>;
96 vcc_card: regulator-vcc_card {
97 compatible = "regulator-fixed";
98 regulator-name = "VCC_CARD";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
101 vin-supply = <&vddio_ao3v3>;
103 gpio = <&gpio GPIOCLK_1 GPIO_ACTIVE_HIGH>;
107 vcc5v: regulator-vcc5v {
108 compatible = "regulator-fixed";
109 regulator-name = "VCC5V";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
112 vin-supply = <&ao_5v>;
114 gpio = <&gpio GPIOH_3 GPIO_OPEN_DRAIN>;
117 vddio_ao3v3: regulator-vddio_ao3v3 {
118 compatible = "regulator-fixed";
119 regulator-name = "VDDIO_AO3V3";
120 regulator-min-microvolt = <3300000>;
121 regulator-max-microvolt = <3300000>;
122 vin-supply = <&ao_5v>;
126 vddio_card: regulator-vddio-card {
127 compatible = "regulator-gpio";
128 regulator-name = "VDDIO_CARD";
129 regulator-min-microvolt = <1800000>;
130 regulator-max-microvolt = <3300000>;
132 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
135 states = <3300000 0>,
138 regulator-settling-time-up-us = <200>;
139 regulator-settling-time-down-us = <50000>;
142 vddio_ao18: regulator-vddio_ao18 {
143 compatible = "regulator-fixed";
144 regulator-name = "VDDIO_AO18";
145 regulator-min-microvolt = <1800000>;
146 regulator-max-microvolt = <1800000>;
147 vin-supply = <&vddio_ao3v3>;
151 vcc_1v8: regulator-vcc_1v8 {
152 compatible = "regulator-fixed";
153 regulator-name = "VCC 1V8";
154 regulator-min-microvolt = <1800000>;
155 regulator-max-microvolt = <1800000>;
156 vin-supply = <&vddio_ao3v3>;
161 compatible = "amlogic,gx-sound-card";
162 model = "GXL-LIBRETECH-S905X-CC-V2";
163 assigned-clocks = <&clkc CLKID_MPLL0>,
166 assigned-clock-parents = <0>, <0>, <0>;
167 assigned-clock-rates = <294912000>,
173 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
177 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
182 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
187 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
190 sound-dai = <&hdmi_tx>;
202 pinctrl-0 = <&ao_cec_pins>;
203 pinctrl-names = "default";
204 hdmi-phandle = <&hdmi_tx>;
212 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>;
213 pinctrl-names = "default";
218 pinctrl-0 = <&remote_input_ao_pins>;
219 pinctrl-names = "default";
224 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
225 hdmi-supply = <&vcc5v>;
226 pinctrl-names = "default";
230 hdmi_tx_tmds_out: endpoint {
231 remote-endpoint = <&hdmi_connector_in>;
237 vref-supply = <&vddio_ao18>;
242 pinctrl-0 = <&sdcard_pins>;
243 pinctrl-1 = <&sdcard_clk_gate_pins>;
244 pinctrl-names = "default", "clk-gate";
252 max-frequency = <100000000>;
255 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
257 vmmc-supply = <&vcc_card>;
258 vqmmc-supply = <&vddio_card>;
265 pinctrl-0 = <&emmc_pins>;
266 pinctrl-1 = <&emmc_clk_gate_pins>;
267 pinctrl-names = "default", "clk-gate";
272 max-frequency = <200000000>;
275 mmc-pwrseq = <&emmc_pwrseq>;
276 vmmc-supply = <&vddio_ao3v3>;
277 vqmmc-supply = <&vcc_1v8>;
284 pinctrl-0 = <&nor_pins>;
285 pinctrl-names = "default";
287 nor_4u1: spi-flash@0 {
288 #address-cells = <1>;
290 compatible = "jedec,spi-nor";
292 spi-max-frequency = <3000000>;
298 pinctrl-0 = <&uart_ao_a_pins>;
299 pinctrl-names = "default";
308 pinctrl-names = "default";
309 phy-supply = <&vcc5v>;
313 phy-supply = <&vcc5v>;