]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi
Merge tag 'omap-for-v5.0/fixes-rc7-signed' of git://git.kernel.org/pub/scm/linux...
[mirror_ubuntu-eoan-kernel.git] / arch / arm64 / boot / dts / amlogic / meson-gxbb-wetek.dtsi
CommitLineData
fb72c03e
NA
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2016 Andreas Färber
4 * Copyright (c) 2016 BayLibre, Inc.
5 * Author: Kevin Hilman <khilman@kernel.org>
6 */
7
8#include "meson-gxbb.dtsi"
9
10/ {
11 aliases {
12 serial0 = &uart_AO;
13 ethernet0 = &ethmac;
14 };
15
16 chosen {
17 stdout-path = "serial0:115200n8";
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x0 0x0 0x40000000>;
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 system {
29 label = "wetek-play:system-status";
30 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
31 default-state = "on";
32 panic-indicator;
33 };
34 };
35
36 usb_pwr: regulator-usb-pwrs {
37 compatible = "regulator-fixed";
38
39 regulator-name = "USB_PWR";
40
41 regulator-min-microvolt = <5000000>;
42 regulator-max-microvolt = <5000000>;
43
44 gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
45 enable-active-high;
46 };
47
48 vddio_boot: regulator-vddio_boot {
49 compatible = "regulator-fixed";
50 regulator-name = "VDDIO_BOOT";
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <1800000>;
53 };
54
55 vddao_3v3: regulator-vddao_3v3 {
56 compatible = "regulator-fixed";
57 regulator-name = "VDDAO_3V3";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
60 };
61
62 vcc_3v3: regulator-vcc_3v3 {
63 compatible = "regulator-fixed";
64 regulator-name = "VCC_3V3";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
67 };
68
69 emmc_pwrseq: emmc-pwrseq {
70 compatible = "mmc-pwrseq-emmc";
71 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
72 };
73
74 wifi32k: wifi32k {
75 compatible = "pwm-clock";
76 #clock-cells = <0>;
77 clock-frequency = <32768>;
78 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
79 };
80
81 sdio_pwrseq: sdio-pwrseq {
82 compatible = "mmc-pwrseq-simple";
83 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
84 clocks = <&wifi32k>;
85 clock-names = "ext_clock";
86 };
87
88 cvbs-connector {
89 compatible = "composite-video-connector";
90
91 port {
92 cvbs_connector_in: endpoint {
93 remote-endpoint = <&cvbs_vdac_out>;
94 };
95 };
96 };
97
98 hdmi-connector {
99 compatible = "hdmi-connector";
100 type = "a";
101
102 port {
103 hdmi_connector_in: endpoint {
104 remote-endpoint = <&hdmi_tx_tmds_out>;
105 };
106 };
107 };
108};
109
110&cec_AO {
111 status = "okay";
112 pinctrl-0 = <&ao_cec_pins>;
113 pinctrl-names = "default";
114 hdmi-phandle = <&hdmi_tx>;
115};
116
117&cvbs_vdac_port {
118 cvbs_vdac_out: endpoint {
119 remote-endpoint = <&cvbs_connector_in>;
120 };
121};
122
123&ethmac {
124 status = "okay";
125 pinctrl-0 = <&eth_rgmii_pins>;
126 pinctrl-names = "default";
127
128 phy-handle = <&eth_phy0>;
129 phy-mode = "rgmii";
130
131 amlogic,tx-delay-ns = <2>;
132
133 snps,reset-gpio = <&gpio GPIOZ_14 0>;
134 snps,reset-delays-us = <0 10000 1000000>;
135 snps,reset-active-low;
136
137 mdio {
138 compatible = "snps,dwmac-mdio";
139 #address-cells = <1>;
140 #size-cells = <0>;
141
142 eth_phy0: ethernet-phy@0 {
143 /* Realtek RTL8211F (0x001cc916) */
144 reg = <0>;
fb72c03e
NA
145 };
146 };
147};
148
149&hdmi_tx {
150 status = "okay";
151 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
152 pinctrl-names = "default";
153};
154
155&hdmi_tx_tmds_port {
156 hdmi_tx_tmds_out: endpoint {
157 remote-endpoint = <&hdmi_connector_in>;
158 };
159};
160
161&ir {
162 status = "okay";
163 pinctrl-0 = <&remote_input_ao_pins>;
164 pinctrl-names = "default";
165};
166
167&pwm_ef {
168 status = "okay";
169 pinctrl-0 = <&pwm_e_pins>;
170 pinctrl-names = "default";
171 clocks = <&clkc CLKID_FCLK_DIV4>;
172 clock-names = "clkin0";
173};
174
175/* Wireless SDIO Module */
176&sd_emmc_a {
177 status = "okay";
178 pinctrl-0 = <&sdio_pins>;
179 pinctrl-1 = <&sdio_clk_gate_pins>;
180 pinctrl-names = "default", "clk-gate";
181 #address-cells = <1>;
182 #size-cells = <0>;
183
184 bus-width = <4>;
185 cap-sd-highspeed;
186 max-frequency = <100000000>;
187
188 non-removable;
189 disable-wp;
190
191 mmc-pwrseq = <&sdio_pwrseq>;
192
193 vmmc-supply = <&vddao_3v3>;
194 vqmmc-supply = <&vddio_boot>;
195
196 brcmf: wifi@1 {
197 reg = <1>;
198 compatible = "brcm,bcm4329-fmac";
199 };
200};
201
202/* SD card */
203&sd_emmc_b {
204 status = "okay";
205 pinctrl-0 = <&sdcard_pins>;
206 pinctrl-1 = <&sdcard_clk_gate_pins>;
207 pinctrl-names = "default", "clk-gate";
208
209 bus-width = <4>;
210 cap-sd-highspeed;
211 max-frequency = <100000000>;
212 disable-wp;
213
f29200c8 214 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
fb72c03e
NA
215
216 vmmc-supply = <&vddao_3v3>;
217 vqmmc-supply = <&vcc_3v3>;
218};
219
220/* eMMC */
221&sd_emmc_c {
222 status = "okay";
223 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
224 pinctrl-1 = <&emmc_clk_gate_pins>;
225 pinctrl-names = "default", "clk-gate";
226
227 bus-width = <8>;
228 cap-mmc-highspeed;
229 max-frequency = <200000000>;
230 non-removable;
231 disable-wp;
232 mmc-ddr-1_8v;
233 mmc-hs200-1_8v;
234
235 mmc-pwrseq = <&emmc_pwrseq>;
236 vmmc-supply = <&vcc_3v3>;
237 vqmmc-supply = <&vddio_boot>;
238};
239
240/* This UART is brought out to the DB9 connector */
241&uart_AO {
242 status = "okay";
243 pinctrl-0 = <&uart_ao_a_pins>;
244 pinctrl-names = "default";
245};
246
247&usb0_phy {
248 status = "okay";
249 phy-supply = <&usb_pwr>;
250};
251
252&usb0 {
253 status = "okay";
254};