1/*
2 * Copyright (c) 2017 BayLibre, SAS.
3 * Author: Neil Armstrong <narmstrong@baylibre.com>
4 * Author: Jerome Brunet <jbrunet@baylibre.com>
5 *
6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 */
8
9/dts-v1/;
10
11#include <dt-bindings/input/input.h>
12
13#include "meson-gxl-s905x-p212.dtsi"
14
15/ {
16	compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl";
17	model = "Libre Technology CC";
18
19	cvbs-connector {
20		compatible = "composite-video-connector";
21
22		port {
23			cvbs_connector_in: endpoint {
24				remote-endpoint = <&cvbs_vdac_out>;
25			};
26		};
27	};
28
29	hdmi-connector {
30		compatible = "hdmi-connector";
31		type = "a";
32
33		port {
34			hdmi_connector_in: endpoint {
35				remote-endpoint = <&hdmi_tx_tmds_out>;
36			};
37		};
38	};
39
40	leds {
41		compatible = "gpio-leds";
42
43		system {
44			label = "librecomputer:system-status";
45			gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
46			default-state = "on";
47			panic-indicator;
48		};
49
50		blue {
51			label = "librecomputer:blue";
52			gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
53			linux,default-trigger = "heartbeat";
54		};
55	};
56};
57
58&cvbs_vdac_port {
59	cvbs_vdac_out: endpoint {
60		remote-endpoint = <&cvbs_connector_in>;
61	};
62};
63
64&hdmi_tx {
65	status = "okay";
66	pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
67	pinctrl-names = "default";
68};
69
70&hdmi_tx_tmds_port {
71	hdmi_tx_tmds_out: endpoint {
72		remote-endpoint = <&hdmi_connector_in>;
73	};
74};
75
76/*
77 * The following devices exists but are exposed on the general
78 * purpose GPIO header. End user may well decide to use those pins
79 * for another purpose
80 */
81
82&sd_emmc_a {
83	status = "disabled";
84};
85
86&uart_A {
87	status = "disabled";
88};
89
90&wifi32k {
91	status = "disabled";
92};
93