arm64: dts: allwinner: h6: tanix-tx6: Add PIO power supplies
[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 &ohci0 {
102         status = "okay";
103 };
104
105 &ohci3 {
106         status = "okay";
107 };
108
109 &pio {
110         vcc-pc-supply = <&reg_vcc1v8>;
111         vcc-pd-supply = <&reg_vcc3v3>;
112         vcc-pg-supply = <&reg_vcc1v8>;
113 };
114
115 &r_ir {
116         linux,rc-map-name = "rc-tanix-tx5max";
117         status = "okay";
118 };
119
120 &uart0 {
121         pinctrl-names = "default";
122         pinctrl-0 = <&uart0_ph_pins>;
123         status = "okay";
124 };
125
126 &usb2otg {
127         dr_mode = "host";
128         status = "okay";
129 };
130
131 &usb2phy {
132         status = "okay";
133 };
134
135 &usb3phy {
136         status = "okay";
137 };