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