]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/sun8i-t3-cqa3t-bv3.dts
Merge tag 'mips_fixes_5.1_1' into mips-next
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / sun8i-t3-cqa3t-bv3.dts
CommitLineData
382744d3
HZ
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
4 * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
5 * Copyright (C) 2018 Hao Zhang <hao5781286@gmail.com>
6 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
16 *
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * Or, alternatively,
23 *
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
31 * conditions:
32 *
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
35 *
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
44 */
45
46/dts-v1/;
47#include "sun8i-r40.dtsi"
48
49#include <dt-bindings/gpio/gpio.h>
50
51/ {
52 model = "t3-cqa3t-bv3";
53 compatible = "qihua,t3-cqa3t-bv3", "allwinner,sun8i-t3",
54 "allwinner,sun8i-r40";
55
56 aliases {
57 serial0 = &uart0;
58 };
59
60 chosen {
61 stdout-path = "serial0:115200n8";
62 };
63
64 connector {
65 compatible = "hdmi-connector";
66 type = "a";
67
68 port {
69 hdmi_con_in: endpoint {
70 remote-endpoint = <&hdmi_out_con>;
71 };
72 };
73 };
74
75 reg_vcc5v0: vcc5v0 {
76 compatible = "regulator-fixed";
77 regulator-name = "vcc5v0";
78 regulator-min-microvolt = <5000000>;
79 regulator-max-microvolt = <5000000>;
80 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */
81 enable-active-high;
82 };
83};
84
85&ahci {
86 ahci-supply = <&reg_dldo4>;
87 phy-supply = <&reg_eldo3>;
88 status = "okay";
89};
90
91&de {
92 status = "okay";
93};
94
95&ehci1 {
96 status = "okay";
97};
98
99&ehci2 {
100 status = "okay";
101};
102
103&hdmi {
104 status = "okay";
105};
106
107&hdmi_out {
108 hdmi_out_con: endpoint {
109 remote-endpoint = <&hdmi_con_in>;
110 };
111};
112
113&i2c0 {
114 status = "okay";
115
116 axp22x: pmic@34 {
117 compatible = "x-powers,axp221";
118 reg = <0x34>;
119 interrupt-parent = <&nmi_intc>;
120 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
121 };
122};
123
124#include "axp22x.dtsi"
125
126&mmc0 {
127 vmmc-supply = <&reg_dcdc1>;
128 bus-width = <4>;
129 cd-gpios = <&pio 7 15 GPIO_ACTIVE_LOW>; /* PH15 */
130 status = "okay";
131};
132
133&mmc2 {
134 vmmc-supply = <&reg_dcdc1>;
135 vqmmc-supply = <&reg_dcdc1>;
136 bus-width = <8>;
137 non-removable;
138 status = "okay";
139};
140
141&ohci1 {
142 status = "okay";
143};
144
145&ohci2 {
146 status = "okay";
147};
148
149&reg_aldo2 {
150 regulator-always-on;
151 regulator-min-microvolt = <2500000>;
152 regulator-max-microvolt = <2500000>;
153 regulator-name = "vcc-pa";
154};
155
156&reg_aldo3 {
157 regulator-always-on;
158 regulator-min-microvolt = <2700000>;
159 regulator-max-microvolt = <3300000>;
160 regulator-name = "avcc";
161};
162
163&reg_dcdc1 {
164 regulator-always-on;
165 regulator-min-microvolt = <3000000>;
166 regulator-max-microvolt = <3000000>;
167 regulator-name = "vcc-3v0";
168};
169
170&reg_dcdc2 {
171 regulator-always-on;
172 regulator-min-microvolt = <1000000>;
173 regulator-max-microvolt = <1300000>;
174 regulator-name = "vdd-cpu";
175};
176
177&reg_dcdc3 {
178 regulator-always-on;
179 regulator-min-microvolt = <1000000>;
180 regulator-max-microvolt = <1300000>;
181 regulator-name = "vdd-sys";
182};
183
184&reg_dcdc5 {
185 regulator-always-on;
186 regulator-min-microvolt = <1500000>;
187 regulator-max-microvolt = <1500000>;
188 regulator-name = "vcc-dram";
189};
190
191&reg_dldo1 {
192 regulator-always-on;
193 regulator-min-microvolt = <3300000>;
194 regulator-max-microvolt = <3300000>;
195 regulator-name = "vcc-pg";
196};
197
198&reg_dldo3 {
199 regulator-always-on;
200 regulator-min-microvolt = <3300000>;
201 regulator-max-microvolt = <3300000>;
202 regulator-name = "vcc-dldo3";
203};
204
205&reg_eldo3 {
206 regulator-always-on;
207 regulator-min-microvolt = <2800000>;
208 regulator-max-microvolt = <2800000>;
209 regulator-name = "vcc-pe";
210};
211
212&tcon_tv0 {
213 status = "okay";
214};
215
216&uart0 {
217 pinctrl-names = "default";
218 pinctrl-0 = <&uart0_pb_pins>;
219 status = "okay";
220};
221
222&usbphy {
223 usb1_vbus-supply = <&reg_vcc5v0>;
224 usb2_vbus-supply = <&reg_vcc5v0>;
225 status = "okay";
226};