1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (c) 2019 Jernej Skrabec <jernej.skrabec@siol.net>
3
4/dts-v1/;
5
6#include "sun50i-h6.dtsi"
7
8#include <dt-bindings/gpio/gpio.h>
9
10/ {
11	model = "Tanix TX6";
12	compatible = "oranth,tanix-tx6", "allwinner,sun50i-h6";
13
14	aliases {
15		serial0 = &uart0;
16	};
17
18	chosen {
19		stdout-path = "serial0:115200n8";
20	};
21
22	connector {
23		compatible = "hdmi-connector";
24		ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
25		type = "a";
26
27		port {
28			hdmi_con_in: endpoint {
29				remote-endpoint = <&hdmi_out_con>;
30			};
31		};
32	};
33
34	reg_vcc3v3: vcc3v3 {
35		compatible = "regulator-fixed";
36		regulator-name = "vcc3v3";
37		regulator-min-microvolt = <3300000>;
38		regulator-max-microvolt = <3300000>;
39	};
40};
41
42&de {
43	status = "okay";
44};
45
46&dwc3 {
47	status = "okay";
48};
49
50&ehci0 {
51	status = "okay";
52};
53
54&ehci3 {
55	status = "okay";
56};
57
58&gpu {
59	status = "okay";
60};
61
62&hdmi {
63	status = "okay";
64};
65
66&hdmi_out {
67	hdmi_out_con: endpoint {
68		remote-endpoint = <&hdmi_con_in>;
69	};
70};
71
72&mmc0 {
73	pinctrl-names = "default";
74	pinctrl-0 = <&mmc0_pins>;
75	vmmc-supply = <&reg_vcc3v3>;
76	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
77	bus-width = <4>;
78	status = "okay";
79};
80
81&ohci0 {
82	status = "okay";
83};
84
85&ohci3 {
86	status = "okay";
87};
88
89&r_ir {
90	linux,rc-map-name = "rc-tanix-tx5max";
91	status = "okay";
92};
93
94&uart0 {
95	pinctrl-names = "default";
96	pinctrl-0 = <&uart0_ph_pins>;
97	status = "okay";
98};
99
100&usb2otg {
101	dr_mode = "host";
102	status = "okay";
103};
104
105&usb2phy {
106	status = "okay";
107};
108
109&usb3phy {
110	status = "okay";
111};
112