1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2019 BayLibre SAS.
4 * Author: Jerome Brunet <jbrunet@baylibre.com>
7 /* Libretech Amlogic GX PC form factor - AKA: Tartiflette */
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
14 compatible = "adc-keys";
15 io-channels = <&saradc 0>;
16 io-channel-names = "buttons";
17 keyup-threshold-microvolt = <1800000>;
21 linux,code = <KEY_VENDOR>;
22 press-threshold-microvolt = <1300000>;
33 stdout-path = "serial0:115200n8";
37 compatible = "composite-video-connector";
41 cvbs_connector_in: endpoint {
42 remote-endpoint = <&cvbs_vdac_out>;
47 emmc_pwrseq: emmc-pwrseq {
48 compatible = "mmc-pwrseq-emmc";
49 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
53 compatible = "hdmi-connector";
57 hdmi_connector_in: endpoint {
58 remote-endpoint = <&hdmi_tx_tmds_out>;
64 compatible = "gpio-keys-polled";
65 poll-interval = <100>;
69 linux,code = <KEY_POWER>;
70 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
75 device_type = "memory";
76 reg = <0x0 0x0 0x0 0x80000000>;
79 ao_5v: regulator-ao_5v {
80 compatible = "regulator-fixed";
81 regulator-name = "AO_5V";
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
84 vin-supply = <&dc_in>;
88 dc_in: regulator-dc_in {
89 compatible = "regulator-fixed";
90 regulator-name = "DC_IN";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
97 compatible = "gpio-leds";
100 color = <LED_COLOR_ID_GREEN>;
101 function = LED_FUNCTION_DISK_ACTIVITY;
102 gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
103 linux,default-trigger = "disk-activity";
107 color = <LED_COLOR_ID_BLUE>;
108 function = LED_FUNCTION_STATUS;
109 gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>;
110 linux,default-trigger = "heartbeat";
115 vcc_card: regulator-vcc_card {
116 compatible = "regulator-fixed";
117 regulator-name = "VCC_CARD";
118 regulator-min-microvolt = <3300000>;
119 regulator-max-microvolt = <3300000>;
120 vin-supply = <&vddio_ao3v3>;
122 gpio = <&gpio GPIODV_4 GPIO_ACTIVE_HIGH>;
126 vcc5v: regulator-vcc5v {
127 compatible = "regulator-fixed";
128 regulator-name = "VCC5V";
129 regulator-min-microvolt = <5000000>;
130 regulator-max-microvolt = <5000000>;
131 vin-supply = <&ao_5v>;
133 gpio = <&gpio GPIOH_3 GPIO_OPEN_DRAIN>;
136 vddio_ao18: regulator-vddio_ao18 {
137 compatible = "regulator-fixed";
138 regulator-name = "VDDIO_AO18";
139 regulator-min-microvolt = <1800000>;
140 regulator-max-microvolt = <1800000>;
141 vin-supply = <&ao_5v>;
145 vddio_ao3v3: regulator-vddio_ao3v3 {
146 compatible = "regulator-fixed";
147 regulator-name = "VDDIO_AO3V3";
148 regulator-min-microvolt = <3300000>;
149 regulator-max-microvolt = <3300000>;
150 vin-supply = <&ao_5v>;
154 vddio_boot: regulator-vddio_boot {
155 compatible = "regulator-fixed";
156 regulator-name = "VDDIO_BOOT";
157 regulator-min-microvolt = <1800000>;
158 regulator-max-microvolt = <1800000>;
159 vin-supply = <&vddio_ao3v3>;
163 vddio_card: regulator-vddio-card {
164 compatible = "regulator-gpio";
165 regulator-name = "VDDIO_CARD";
166 regulator-min-microvolt = <1800000>;
167 regulator-max-microvolt = <3300000>;
169 gpios = <&gpio GPIODV_5 GPIO_ACTIVE_HIGH>;
172 states = <3300000 0>,
175 regulator-settling-time-up-us = <200>;
176 regulator-settling-time-down-us = <50000>;
181 pinctrl-0 = <&ao_cec_pins>;
182 pinctrl-names = "default";
183 hdmi-phandle = <&hdmi_tx>;
188 cvbs_vdac_out: endpoint {
189 remote-endpoint = <&cvbs_connector_in>;
194 pinctrl-0 = <ð_pins>, <ð_phy_irq_pins>;
195 pinctrl-names = "default";
196 phy-handle = <&external_phy>;
197 amlogic,tx-delay-ns = <2>;
203 external_phy: ethernet-phy@0 {
206 reset-assert-us = <10000>;
207 reset-deassert-us = <30000>;
208 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
209 interrupt-parent = <&gpio_intc>;
210 interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
216 * Make sure the reset pin of the usb HUB is driven high to take
219 usb1_rst_pins: usb1_rst_irq {
222 function = "gpio_periphs";
228 /* Make sure the phy irq pin is properly configured as input */
229 eth_phy_irq_pins: eth_phy_irq {
232 function = "gpio_periphs";
240 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
241 pinctrl-names = "default";
242 hdmi-supply = <&vcc5v>;
247 hdmi_tx_tmds_out: endpoint {
248 remote-endpoint = <&hdmi_connector_in>;
253 pinctrl-0 = <&remote_input_ao_pins>;
254 pinctrl-names = "default";
259 pinctrl-0 = <&i2c_c_dv18_pins>;
260 pinctrl-names = "default";
265 compatible = "nxp,pcf8563";
267 clock-output-names = "rtc_clkout";
272 pinctrl-0 = <&pwm_ao_a_3_pins>;
273 pinctrl-names = "default";
274 clocks = <&clkc CLKID_FCLK_DIV4>;
275 clock-names = "clkin0";
280 pinctrl-0 = <&pwm_b_pins>;
281 pinctrl-names = "default";
282 clocks = <&clkc CLKID_FCLK_DIV4>;
283 clock-names = "clkin0";
288 pinctrl-0 = <&pwm_e_pins>, <&pwm_f_clk_pins>;
289 pinctrl-names = "default";
290 clocks = <&clkc CLKID_FCLK_DIV4>;
291 clock-names = "clkin0";
296 vref-supply = <&vddio_ao18>;
302 pinctrl-0 = <&sdcard_pins>;
303 pinctrl-1 = <&sdcard_clk_gate_pins>;
304 pinctrl-names = "default", "clk-gate";
312 max-frequency = <200000000>;
315 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
317 vmmc-supply = <&vcc_card>;
318 vqmmc-supply = <&vddio_card>;
325 pinctrl-0 = <&emmc_pins>;
326 pinctrl-1 = <&emmc_clk_gate_pins>;
327 pinctrl-names = "default", "clk-gate";
333 max-frequency = <200000000>;
336 mmc-pwrseq = <&emmc_pwrseq>;
337 vmmc-supply = <&vddio_ao3v3>;
338 vqmmc-supply = <&vddio_boot>;
344 pinctrl-0 = <&nor_pins>;
345 pinctrl-names = "default";
348 gd25lq128: spi-flash@0 {
349 compatible = "jedec,spi-nor";
350 #address-cells = <1>;
353 spi-max-frequency = <12000000>;
358 pinctrl-0 = <&uart_ao_a_pins>;
359 pinctrl-names = "default";
368 pinctrl-0 = <&usb1_rst_pins>;
369 pinctrl-names = "default";
370 phy-supply = <&vcc5v>;
374 phy-supply = <&vcc5v>;