]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / arch / arm64 / boot / dts / amlogic / meson-gx-p23x-q20x.dtsi
CommitLineData
da47515e
NA
1/*
2 * Copyright (c) 2016 Endless Computers, Inc.
3 * Author: Carlo Caione <carlo@endlessm.com>
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
bb51b535
NA
44/* Common DTSI for same Amlogic Q200/Q201 and P230/P231 boards using either
45 * the pin-compatible S912 (GXM) or S905D (GXL) SoCs.
46 */
da47515e
NA
47
48/ {
49 aliases {
50 serial0 = &uart_AO;
51 };
52
53 chosen {
54 stdout-path = "serial0:115200n8";
55 };
56
57 memory@0 {
58 device_type = "memory";
59 reg = <0x0 0x0 0x0 0x80000000>;
60 };
1d92bc89
NA
61
62 vddio_boot: regulator-vddio_boot {
63 compatible = "regulator-fixed";
64 regulator-name = "VDDIO_BOOT";
65 regulator-min-microvolt = <1800000>;
66 regulator-max-microvolt = <1800000>;
67 };
68
69 vddao_3v3: regulator-vddao_3v3 {
70 compatible = "regulator-fixed";
71 regulator-name = "VDDAO_3V3";
72 regulator-min-microvolt = <3300000>;
73 regulator-max-microvolt = <3300000>;
74 };
75
76 vcc_3v3: regulator-vcc_3v3 {
77 compatible = "regulator-fixed";
78 regulator-name = "VCC_3V3";
79 regulator-min-microvolt = <3300000>;
80 regulator-max-microvolt = <3300000>;
81 };
82
83 emmc_pwrseq: emmc-pwrseq {
84 compatible = "mmc-pwrseq-emmc";
85 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
86 };
87
88 wifi32k: wifi32k {
89 compatible = "pwm-clock";
90 #clock-cells = <0>;
91 clock-frequency = <32768>;
92 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
93 };
94
95 sdio_pwrseq: sdio-pwrseq {
96 compatible = "mmc-pwrseq-simple";
97 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
98 clocks = <&wifi32k>;
99 clock-names = "ext_clock";
100 };
6939db7e
NA
101
102 cvbs-connector {
103 compatible = "composite-video-connector";
104
105 port {
106 cvbs_connector_in: endpoint {
107 remote-endpoint = <&cvbs_vdac_out>;
108 };
109 };
110 };
111
112 hdmi-connector {
113 compatible = "hdmi-connector";
114 type = "a";
115
116 port {
117 hdmi_connector_in: endpoint {
118 remote-endpoint = <&hdmi_tx_tmds_out>;
119 };
120 };
121 };
da47515e
NA
122};
123
b16c71c9
NA
124&cec_AO {
125 status = "okay";
126 pinctrl-0 = <&ao_cec_pins>;
127 pinctrl-names = "default";
128 hdmi-phandle = <&hdmi_tx>;
129};
130
d5463d25
AF
131&cvbs_vdac_port {
132 cvbs_vdac_out: endpoint {
133 remote-endpoint = <&cvbs_connector_in>;
134 };
135};
136
137&ethmac {
da47515e 138 status = "okay";
d5463d25
AF
139};
140
141&hdmi_tx {
142 status = "okay";
143 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
c67fe414 144 pinctrl-names = "default";
da47515e 145};
1d92bc89 146
d5463d25
AF
147&hdmi_tx_tmds_port {
148 hdmi_tx_tmds_out: endpoint {
149 remote-endpoint = <&hdmi_connector_in>;
150 };
151};
152
72093fac
NA
153&ir {
154 status = "okay";
155 pinctrl-0 = <&remote_input_ao_pins>;
156 pinctrl-names = "default";
157};
158
d5463d25
AF
159&pwm_ef {
160 status = "okay";
161 pinctrl-0 = <&pwm_e_pins>;
162 pinctrl-names = "default";
163 clocks = <&clkc CLKID_FCLK_DIV4>;
164 clock-names = "clkin0";
165};
166
1d92bc89
NA
167/* Wireless SDIO Module */
168&sd_emmc_a {
169 status = "okay";
170 pinctrl-0 = <&sdio_pins>;
67e7607f
JB
171 pinctrl-1 = <&sdio_clk_gate_pins>;
172 pinctrl-names = "default", "clk-gate";
1d92bc89
NA
173 #address-cells = <1>;
174 #size-cells = <0>;
175
176 bus-width = <4>;
177 cap-sd-highspeed;
178 max-frequency = <100000000>;
179
180 non-removable;
181 disable-wp;
182
183 mmc-pwrseq = <&sdio_pwrseq>;
184
185 vmmc-supply = <&vddao_3v3>;
186 vqmmc-supply = <&vddio_boot>;
187
b77b40ba 188 brcmf: wifi@1 {
1d92bc89
NA
189 reg = <1>;
190 compatible = "brcm,bcm4329-fmac";
191 };
192};
193
194/* SD card */
195&sd_emmc_b {
196 status = "okay";
197 pinctrl-0 = <&sdcard_pins>;
67e7607f
JB
198 pinctrl-1 = <&sdcard_clk_gate_pins>;
199 pinctrl-names = "default", "clk-gate";
1d92bc89
NA
200
201 bus-width = <4>;
202 cap-sd-highspeed;
203 max-frequency = <100000000>;
204 disable-wp;
205
206 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
207 cd-inverted;
208
209 vmmc-supply = <&vddao_3v3>;
210 vqmmc-supply = <&vddio_boot>;
211};
212
213/* eMMC */
214&sd_emmc_c {
215 status = "okay";
216 pinctrl-0 = <&emmc_pins>;
67e7607f
JB
217 pinctrl-1 = <&emmc_clk_gate_pins>;
218 pinctrl-names = "default", "clk-gate";
1d92bc89
NA
219
220 bus-width = <8>;
1d92bc89
NA
221 cap-mmc-highspeed;
222 max-frequency = <200000000>;
223 non-removable;
224 disable-wp;
225 mmc-ddr-1_8v;
226 mmc-hs200-1_8v;
227
228 mmc-pwrseq = <&emmc_pwrseq>;
229 vmmc-supply = <&vcc_3v3>;
230 vqmmc-supply = <&vddio_boot>;
231};
232
d5463d25
AF
233/* This UART is brought out to the DB9 connector */
234&uart_AO {
6939db7e 235 status = "okay";
d5463d25 236 pinctrl-0 = <&uart_ao_a_pins>;
6939db7e
NA
237 pinctrl-names = "default";
238};