1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 * Copyright (c) 2019 Christian Hewitt <christianshewitt@gmail.com>
10 #include "meson-g12b.dtsi"
11 #include "meson-g12b-s922x.dtsi"
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/gpio/meson-g12a-gpio.h>
22 stdout-path = "serial0:115200n8";
26 device_type = "memory";
27 reg = <0x0 0x0 0x0 0x40000000>;
30 emmc_pwrseq: emmc-pwrseq {
31 compatible = "mmc-pwrseq-emmc";
32 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
35 sdio_pwrseq: sdio-pwrseq {
36 compatible = "mmc-pwrseq-simple";
37 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
39 clock-names = "ext_clock";
42 flash_1v8: regulator-flash_1v8 {
43 compatible = "regulator-fixed";
44 regulator-name = "FLASH_1V8";
45 regulator-min-microvolt = <1800000>;
46 regulator-max-microvolt = <1800000>;
47 vin-supply = <&vcc_3v3>;
51 main_12v: regulator-main_12v {
52 compatible = "regulator-fixed";
53 regulator-name = "12V";
54 regulator-min-microvolt = <12000000>;
55 regulator-max-microvolt = <12000000>;
59 vcc_5v: regulator-vcc_5v {
60 compatible = "regulator-fixed";
61 regulator-name = "VCC_5V";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
64 vin-supply = <&main_12v>;
66 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
70 vcc_1v8: regulator-vcc_1v8 {
71 compatible = "regulator-fixed";
72 regulator-name = "VCC_1V8";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
75 vin-supply = <&vcc_3v3>;
79 vcc_3v3: regulator-vcc_3v3 {
80 compatible = "regulator-fixed";
81 regulator-name = "VCC_3V3";
82 regulator-min-microvolt = <3300000>;
83 regulator-max-microvolt = <3300000>;
84 vin-supply = <&vddao_3v3>;
86 /* FIXME: actually controlled by VDDCPU_B_EN */
89 vddcpu_a: regulator-vddcpu-a {
93 compatible = "pwm-regulator";
95 regulator-name = "VDDCPU_A";
96 regulator-min-microvolt = <721000>;
97 regulator-max-microvolt = <1022000>;
99 vin-supply = <&main_12v>;
101 pwms = <&pwm_ab 0 1250 0>;
102 pwm-dutycycle-range = <100 0>;
108 vddcpu_b: regulator-vddcpu-b {
112 compatible = "pwm-regulator";
114 regulator-name = "VDDCPU_B";
115 regulator-min-microvolt = <721000>;
116 regulator-max-microvolt = <1022000>;
118 vin-supply = <&main_12v>;
120 pwms = <&pwm_AO_cd 1 1250 0>;
121 pwm-dutycycle-range = <100 0>;
127 usb1_pow: regulator-usb1-pow {
128 compatible = "regulator-fixed";
129 regulator-name = "USB1_POW";
130 regulator-min-microvolt = <5000000>;
131 regulator-max-microvolt = <5000000>;
132 vin-supply = <&vcc_5v>;
134 /* connected to SY6280A Power Switch */
135 gpio = <&gpio GPIOA_8 GPIO_ACTIVE_HIGH>;
139 usb_pwr_en: regulator-usb-pwr-en {
140 compatible = "regulator-fixed";
141 regulator-name = "USB_PWR_EN";
142 regulator-min-microvolt = <5000000>;
143 regulator-max-microvolt = <5000000>;
144 vin-supply = <&vcc_5v>;
146 /* Connected to USB3 Type-A Port power enable */
147 gpio = <&gpio GPIOAO_7 GPIO_ACTIVE_HIGH>;
151 vddao_1v8: regulator-vddao-1v8 {
152 compatible = "regulator-fixed";
153 regulator-name = "VDDAO_1V8";
154 regulator-min-microvolt = <1800000>;
155 regulator-max-microvolt = <1800000>;
156 vin-supply = <&vddao_3v3>;
160 vddao_3v3: regulator-vddao-3v3 {
161 compatible = "regulator-fixed";
162 regulator-name = "VDDAO_3V3";
163 regulator-min-microvolt = <3300000>;
164 regulator-max-microvolt = <3300000>;
165 vin-supply = <&main_12v>;
170 compatible = "composite-video-connector";
173 cvbs_connector_in: endpoint {
174 remote-endpoint = <&cvbs_vdac_out>;
180 compatible = "hdmi-connector";
184 hdmi_connector_in: endpoint {
185 remote-endpoint = <&hdmi_tx_tmds_out>;
191 compatible = "pwm-clock";
193 clock-frequency = <32768>;
194 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
199 pinctrl-0 = <&cec_ao_a_h_pins>;
200 pinctrl-names = "default";
202 hdmi-phandle = <&hdmi_tx>;
206 pinctrl-0 = <&cec_ao_b_h_pins>;
207 pinctrl-names = "default";
209 hdmi-phandle = <&hdmi_tx>;
213 cpu-supply = <&vddcpu_b>;
214 operating-points-v2 = <&cpu_opp_table_0>;
215 clocks = <&clkc CLKID_CPU_CLK>;
216 clock-latency = <50000>;
220 cpu-supply = <&vddcpu_b>;
221 operating-points-v2 = <&cpu_opp_table_0>;
222 clocks = <&clkc CLKID_CPU_CLK>;
223 clock-latency = <50000>;
227 cpu-supply = <&vddcpu_a>;
228 operating-points-v2 = <&cpub_opp_table_1>;
229 clocks = <&clkc CLKID_CPUB_CLK>;
230 clock-latency = <50000>;
234 cpu-supply = <&vddcpu_a>;
235 operating-points-v2 = <&cpub_opp_table_1>;
236 clocks = <&clkc CLKID_CPUB_CLK>;
237 clock-latency = <50000>;
241 cpu-supply = <&vddcpu_a>;
242 operating-points-v2 = <&cpub_opp_table_1>;
243 clocks = <&clkc CLKID_CPUB_CLK>;
244 clock-latency = <50000>;
248 cpu-supply = <&vddcpu_a>;
249 operating-points-v2 = <&cpub_opp_table_1>;
250 clocks = <&clkc CLKID_CPUB_CLK>;
251 clock-latency = <50000>;
255 cvbs_vdac_out: endpoint {
256 remote-endpoint = <&cvbs_connector_in>;
261 external_phy: ethernet-phy@0 {
262 /* Realtek RTL8211F (0x001cc916) */
266 reset-assert-us = <10000>;
267 reset-deassert-us = <80000>;
268 reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
270 interrupt-parent = <&gpio_intc>;
271 /* MAC_INTR on GPIOZ_14 */
272 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
277 pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
278 pinctrl-names = "default";
281 phy-handle = <&external_phy>;
282 amlogic,tx-delay-ns = <2>;
287 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
288 pinctrl-names = "default";
289 hdmi-supply = <&vcc_5v>;
293 hdmi_tx_tmds_out: endpoint {
294 remote-endpoint = <&hdmi_connector_in>;
300 pinctrl-0 = <&remote_input_ao_pins>;
301 pinctrl-names = "default";
305 pinctrl-0 = <&pwm_a_e_pins>;
306 pinctrl-names = "default";
308 clock-names = "clkin0";
313 pinctrl-0 = <&pwm_ao_d_e_pins>;
314 pinctrl-names = "default";
316 clock-names = "clkin1";
321 pinctrl-0 = <&pwm_e_pins>;
322 pinctrl-names = "default";
324 clock-names = "clkin0";
331 pinctrl-0 = <&sdio_pins>;
332 pinctrl-1 = <&sdio_clk_gate_pins>;
333 pinctrl-names = "default", "clk-gate";
334 #address-cells = <1>;
339 max-frequency = <100000000>;
341 /* WiFi firmware requires power to be kept while in suspend */
342 keep-power-in-suspend;
347 mmc-pwrseq = <&sdio_pwrseq>;
349 vmmc-supply = <&vddao_3v3>;
350 vqmmc-supply = <&vddao_1v8>;
354 compatible = "brcm,bcm4329-fmac";
361 pinctrl-0 = <&sdcard_c_pins>;
362 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
363 pinctrl-names = "default", "clk-gate";
367 max-frequency = <50000000>;
370 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
371 vmmc-supply = <&vddao_3v3>;
372 vqmmc-supply = <&vddao_3v3>;
378 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
379 pinctrl-1 = <&emmc_clk_gate_pins>;
380 pinctrl-names = "default", "clk-gate";
384 max-frequency = <100000000>;
387 mmc-pwrseq = <&emmc_pwrseq>;
388 vmmc-supply = <&vcc_3v3>;
389 vqmmc-supply = <&flash_1v8>;
394 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
395 pinctrl-names = "default";
399 compatible = "brcm,bcm43438-bt";
400 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
401 max-speed = <2000000>;
409 pinctrl-0 = <&uart_ao_a_pins>;
410 pinctrl-names = "default";
416 vbus-supply = <&usb_pwr_en>;
420 phy-supply = <&usb1_pow>;
424 phy-supply = <&usb1_pow>;