blob: f2c098143594413619df877f861ce2bb86cdaf21 [file] [log] [blame]
Christian Hewitt9ff62aa2019-12-11 13:20:53 +04001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 */
6
7/dts-v1/;
8
9#include "meson-sm1.dtsi"
10#include "meson-khadas-vim3.dtsi"
Neil Armstrongfc85ec52020-09-21 09:34:12 +020011#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
Christian Hewitt9ff62aa2019-12-11 13:20:53 +040012
13/ {
14 compatible = "khadas,vim3l", "amlogic,sm1";
15 model = "Khadas VIM3L";
16
17 vddcpu: regulator-vddcpu {
18 /*
19 * Silergy SY8030DEC Regulator.
20 */
21 compatible = "pwm-regulator";
22
23 regulator-name = "VDDCPU";
24 regulator-min-microvolt = <690000>;
25 regulator-max-microvolt = <1050000>;
26
27 vin-supply = <&vsys_3v3>;
28
29 pwms = <&pwm_AO_cd 1 1250 0>;
30 pwm-dutycycle-range = <100 0>;
31
32 regulator-boot-on;
33 regulator-always-on;
34 };
Neil Armstrong425d9d52021-09-17 09:37:00 +020035
36 sound {
37 model = "G12B-KHADAS-VIM3L";
38 audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0",
39 "TDMOUT_A IN 1", "FRDDR_B OUT 0",
40 "TDMOUT_A IN 2", "FRDDR_C OUT 0",
41 "TDM_A Playback", "TDMOUT_A OUT",
42 "TDMIN_A IN 0", "TDM_A Capture",
43 "TDMIN_A IN 13", "TDM_A Loopback",
44 "TODDR_A IN 0", "TDMIN_A OUT",
45 "TODDR_B IN 0", "TDMIN_A OUT",
46 "TODDR_C IN 0", "TDMIN_A OUT";
47 };
Neil Armstrongfc85ec52020-09-21 09:34:12 +020048};
49
Christian Hewitt9ff62aa2019-12-11 13:20:53 +040050&cpu0 {
51 cpu-supply = <&vddcpu>;
52 operating-points-v2 = <&cpu_opp_table>;
53 clocks = <&clkc CLKID_CPU_CLK>;
54 clock-latency = <50000>;
55};
56
57&cpu1 {
58 cpu-supply = <&vddcpu>;
59 operating-points-v2 = <&cpu_opp_table>;
60 clocks = <&clkc CLKID_CPU1_CLK>;
61 clock-latency = <50000>;
62};
63
64&cpu2 {
65 cpu-supply = <&vddcpu>;
66 operating-points-v2 = <&cpu_opp_table>;
67 clocks = <&clkc CLKID_CPU2_CLK>;
68 clock-latency = <50000>;
69};
70
71&cpu3 {
72 cpu-supply = <&vddcpu>;
73 operating-points-v2 = <&cpu_opp_table>;
74 clocks = <&clkc CLKID_CPU3_CLK>;
75 clock-latency = <50000>;
76};
77
78&pwm_AO_cd {
79 pinctrl-0 = <&pwm_ao_d_e_pins>;
80 pinctrl-names = "default";
81 clocks = <&xtal>;
82 clock-names = "clkin1";
83 status = "okay";
84};
85
86/*
87 * The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential
88 * lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between
Neil Armstrong2d18c8c2020-04-20 15:44:41 +020089 * an USB3.0 Type A connector and a M.2 Key M slot.
90 * The PHY driving these differential lines is shared between
91 * the USB3.0 controller and the PCIe Controller, thus only
92 * a single controller can use it.
Christian Hewitt9ff62aa2019-12-11 13:20:53 +040093 * If the MCU is configured to mux the PCIe/USB3.0 differential lines
94 * to the M.2 Key M slot, uncomment the following block to disable
95 * USB3.0 from the USB Complex and enable the PCIe controller.
96 * The End User is not expected to uncomment the following except for
97 * testing purposes, but instead rely on the firmware/bootloader to
98 * update these nodes accordingly if PCIe mode is selected by the MCU.
99 */
Christian Hewitt9ff62aa2019-12-11 13:20:53 +0400100/*
101&pcie {
102 status = "okay";
103};
104
105&usb {
106 phys = <&usb2_phy0>, <&usb2_phy1>;
107 phy-names = "usb2-phy0", "usb2-phy1";
108};
109 */
Neil Armstrongfc85ec52020-09-21 09:34:12 +0200110
Neil Armstrong425d9d52021-09-17 09:37:00 +0200111&sd_emmc_a {
112 sd-uhs-sdr50;
113};