Merge branches 'pm-cpufreq', 'pm-sleep' and 'pm-em'
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / allwinner / sun50i-h6-tanix-tx6.dts
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 #include "sun50i-h6-cpu-opp.dtsi"
8
9 #include <dt-bindings/gpio/gpio.h>
10
11 / {
12         model = "Tanix TX6";
13         compatible = "oranth,tanix-tx6", "allwinner,sun50i-h6";
14
15         aliases {
16                 serial0 = &uart0;
17         };
18
19         chosen {
20                 stdout-path = "serial0:115200n8";
21         };
22
23         connector {
24                 compatible = "hdmi-connector";
25                 ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
26                 type = "a";
27
28                 port {
29                         hdmi_con_in: endpoint {
30                                 remote-endpoint = <&hdmi_out_con>;
31                         };
32                 };
33         };
34
35         reg_vcc1v8: regulator-vcc1v8 {
36                 compatible = "regulator-fixed";
37                 regulator-name = "vcc1v8";
38                 regulator-min-microvolt = <1800000>;
39                 regulator-max-microvolt = <1800000>;
40         };
41
42         reg_vcc3v3: regulator-vcc3v3 {
43                 compatible = "regulator-fixed";
44                 regulator-name = "vcc3v3";
45                 regulator-min-microvolt = <3300000>;
46                 regulator-max-microvolt = <3300000>;
47         };
48
49         reg_vdd_cpu_gpu: regulator-vdd-cpu-gpu {
50                 compatible = "regulator-fixed";
51                 regulator-name = "vdd-cpu-gpu";
52                 regulator-min-microvolt = <1135000>;
53                 regulator-max-microvolt = <1135000>;
54         };
55 };
56
57 &cpu0 {
58         cpu-supply = <&reg_vdd_cpu_gpu>;
59 };
60
61 &de {
62         status = "okay";
63 };
64
65 &dwc3 {
66         status = "okay";
67 };
68
69 &ehci0 {
70         status = "okay";
71 };
72
73 &ehci3 {
74         status = "okay";
75 };
76
77 &gpu {
78         mali-supply = <&reg_vdd_cpu_gpu>;
79         status = "okay";
80 };
81
82 &hdmi {
83         status = "okay";
84 };
85
86 &hdmi_out {
87         hdmi_out_con: endpoint {
88                 remote-endpoint = <&hdmi_con_in>;
89         };
90 };
91
92 &mmc0 {
93         pinctrl-names = "default";
94         pinctrl-0 = <&mmc0_pins>;
95         vmmc-supply = <&reg_vcc3v3>;
96         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
97         bus-width = <4>;
98         status = "okay";
99 };
100
101 &mmc2 {
102         vmmc-supply = <&reg_vcc3v3>;
103         vqmmc-supply = <&reg_vcc1v8>;
104         bus-width = <8>;
105         non-removable;
106         cap-mmc-hw-reset;
107         mmc-hs200-1_8v;
108         status = "okay";
109 };
110
111 &ohci0 {
112         status = "okay";
113 };
114
115 &ohci3 {
116         status = "okay";
117 };
118
119 &pio {
120         vcc-pc-supply = <&reg_vcc1v8>;
121         vcc-pd-supply = <&reg_vcc3v3>;
122         vcc-pg-supply = <&reg_vcc1v8>;
123 };
124
125 &r_ir {
126         linux,rc-map-name = "rc-tanix-tx5max";
127         status = "okay";
128 };
129
130 &uart0 {
131         pinctrl-names = "default";
132         pinctrl-0 = <&uart0_ph_pins>;
133         status = "okay";
134 };
135
136 &usb2otg {
137         dr_mode = "host";
138         status = "okay";
139 };
140
141 &usb2phy {
142         status = "okay";
143 };
144
145 &usb3phy {
146         status = "okay";
147 };