xref: /freebsd/sys/contrib/device-tree/src/arm/allwinner/sun7i-a20-icnova-a20-adb4006.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2// Copyright (C) 2023 In-Circuit GmbH
3
4/dts-v1/;
5
6#include "sun7i-a20-icnova-a20.dtsi"
7
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/leds/common.h>
10
11/ {
12	model = "In-Circuit ICnova A20 ADB4006";
13	compatible = "incircuit,icnova-a20-adb4006", "incircuit,icnova-a20",
14		     "allwinner,sun7i-a20";
15
16	aliases {
17		serial0 = &uart0;
18	};
19
20	chosen {
21		stdout-path = "serial0:115200n8";
22	};
23
24	hdmi-connector {
25		compatible = "hdmi-connector";
26		type = "a";
27
28		port {
29			hdmi_con_in: endpoint {
30				remote-endpoint = <&hdmi_out_con>;
31			};
32		};
33	};
34
35	leds {
36		compatible = "gpio-leds";
37
38		led-0 {
39			function = LED_FUNCTION_POWER;
40			color = <LED_COLOR_ID_YELLOW>;
41			gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* PH21 */
42			default-state = "on";
43		};
44
45		led-1 {
46			function = LED_FUNCTION_HEARTBEAT;
47			color = <LED_COLOR_ID_RED>;
48			gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; /* PH20 */
49			linux,default-trigger = "heartbeat";
50		};
51	};
52};
53
54&ahci {
55	target-supply = <&reg_ahci_5v>;
56	status = "okay";
57};
58
59&codec {
60	status = "okay";
61};
62
63&de {
64	status = "okay";
65};
66
67&ehci0 {
68	status = "okay";
69};
70
71&ehci1 {
72	status = "okay";
73};
74
75&hdmi {
76	status = "okay";
77};
78
79&hdmi_out {
80	hdmi_out_con: endpoint {
81		remote-endpoint = <&hdmi_con_in>;
82	};
83};
84
85&mmc0 {
86	vmmc-supply = <&reg_vcc3v3>;
87	bus-width = <4>;
88	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
89	status = "okay";
90};
91
92&ohci0 {
93	status = "okay";
94};
95
96&ohci1 {
97	status = "okay";
98};
99
100&otg_sram {
101	status = "okay";
102};
103
104&reg_ahci_5v {
105	status = "okay";
106};
107
108&ac_power_supply {
109	status = "okay";
110};
111
112&reg_usb1_vbus {
113	status = "okay";
114};
115
116&reg_usb2_vbus {
117	status = "okay";
118};
119
120&uart0 {
121	pinctrl-names = "default";
122	pinctrl-0 = <&uart0_pb_pins>;
123	status = "okay";
124};
125
126&usb_otg {
127	dr_mode = "otg";
128	status = "okay";
129};
130
131&usbphy {
132	usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
133	usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
134	usb1_vbus-supply = <&reg_usb1_vbus>;
135	usb2_vbus-supply = <&reg_usb2_vbus>;
136	status = "okay";
137};
138