xref: /freebsd/sys/contrib/device-tree/src/arm64/amlogic/meson-sm1-khadas-vim3l.dts (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (c) 2019 BayLibre, SAS
4c66ec88fSEmmanuel Vadot * Author: Neil Armstrong <narmstrong@baylibre.com>
5c66ec88fSEmmanuel Vadot */
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadot/dts-v1/;
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadot#include "meson-sm1.dtsi"
10c66ec88fSEmmanuel Vadot#include "meson-khadas-vim3.dtsi"
11c66ec88fSEmmanuel Vadot#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadot/ {
14c66ec88fSEmmanuel Vadot	compatible = "khadas,vim3l", "amlogic,sm1";
15c66ec88fSEmmanuel Vadot	model = "Khadas VIM3L";
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot	vddcpu: regulator-vddcpu {
18c66ec88fSEmmanuel Vadot		/*
19c66ec88fSEmmanuel Vadot		 * Silergy SY8030DEC Regulator.
20c66ec88fSEmmanuel Vadot		 */
21c66ec88fSEmmanuel Vadot		compatible = "pwm-regulator";
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot		regulator-name = "VDDCPU";
24c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <690000>;
25c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <1050000>;
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot		vin-supply = <&vsys_3v3>;
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot		pwms = <&pwm_AO_cd 1 1250 0>;
30c66ec88fSEmmanuel Vadot		pwm-dutycycle-range = <100 0>;
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot		regulator-boot-on;
33c66ec88fSEmmanuel Vadot		regulator-always-on;
34c66ec88fSEmmanuel Vadot	};
35c66ec88fSEmmanuel Vadot};
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot&cpu0 {
38c66ec88fSEmmanuel Vadot	cpu-supply = <&vddcpu>;
39c66ec88fSEmmanuel Vadot	operating-points-v2 = <&cpu_opp_table>;
40c66ec88fSEmmanuel Vadot	clocks = <&clkc CLKID_CPU_CLK>;
41c66ec88fSEmmanuel Vadot	clock-latency = <50000>;
42c66ec88fSEmmanuel Vadot};
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot&cpu1 {
45c66ec88fSEmmanuel Vadot	cpu-supply = <&vddcpu>;
46c66ec88fSEmmanuel Vadot	operating-points-v2 = <&cpu_opp_table>;
47c66ec88fSEmmanuel Vadot	clocks = <&clkc CLKID_CPU1_CLK>;
48c66ec88fSEmmanuel Vadot	clock-latency = <50000>;
49c66ec88fSEmmanuel Vadot};
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot&cpu2 {
52c66ec88fSEmmanuel Vadot	cpu-supply = <&vddcpu>;
53c66ec88fSEmmanuel Vadot	operating-points-v2 = <&cpu_opp_table>;
54c66ec88fSEmmanuel Vadot	clocks = <&clkc CLKID_CPU2_CLK>;
55c66ec88fSEmmanuel Vadot	clock-latency = <50000>;
56c66ec88fSEmmanuel Vadot};
57c66ec88fSEmmanuel Vadot
58c66ec88fSEmmanuel Vadot&cpu3 {
59c66ec88fSEmmanuel Vadot	cpu-supply = <&vddcpu>;
60c66ec88fSEmmanuel Vadot	operating-points-v2 = <&cpu_opp_table>;
61c66ec88fSEmmanuel Vadot	clocks = <&clkc CLKID_CPU3_CLK>;
62c66ec88fSEmmanuel Vadot	clock-latency = <50000>;
63c66ec88fSEmmanuel Vadot};
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot&pwm_AO_cd {
66c66ec88fSEmmanuel Vadot	pinctrl-0 = <&pwm_ao_d_e_pins>;
67c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
68c66ec88fSEmmanuel Vadot	clocks = <&xtal>;
69c66ec88fSEmmanuel Vadot	clock-names = "clkin1";
70c66ec88fSEmmanuel Vadot	status = "okay";
71c66ec88fSEmmanuel Vadot};
72c66ec88fSEmmanuel Vadot
73c66ec88fSEmmanuel Vadot/*
74c66ec88fSEmmanuel Vadot * The VIM3 on-board  MCU can mux the PCIe/USB3.0 shared differential
75c66ec88fSEmmanuel Vadot * lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between
76c66ec88fSEmmanuel Vadot * an USB3.0 Type A connector and a M.2 Key M slot.
77c66ec88fSEmmanuel Vadot * The PHY driving these differential lines is shared between
78c66ec88fSEmmanuel Vadot * the USB3.0 controller and the PCIe Controller, thus only
79c66ec88fSEmmanuel Vadot * a single controller can use it.
80c66ec88fSEmmanuel Vadot * If the MCU is configured to mux the PCIe/USB3.0 differential lines
81c66ec88fSEmmanuel Vadot * to the M.2 Key M slot, uncomment the following block to disable
82c66ec88fSEmmanuel Vadot * USB3.0 from the USB Complex and enable the PCIe controller.
83c66ec88fSEmmanuel Vadot * The End User is not expected to uncomment the following except for
84c66ec88fSEmmanuel Vadot * testing purposes, but instead rely on the firmware/bootloader to
85c66ec88fSEmmanuel Vadot * update these nodes accordingly if PCIe mode is selected by the MCU.
86c66ec88fSEmmanuel Vadot */
87c66ec88fSEmmanuel Vadot/*
88c66ec88fSEmmanuel Vadot&pcie {
89c66ec88fSEmmanuel Vadot	status = "okay";
90c66ec88fSEmmanuel Vadot};
91c66ec88fSEmmanuel Vadot
92c66ec88fSEmmanuel Vadot&usb {
93c66ec88fSEmmanuel Vadot	phys = <&usb2_phy0>, <&usb2_phy1>;
94c66ec88fSEmmanuel Vadot	phy-names = "usb2-phy0", "usb2-phy1";
95c66ec88fSEmmanuel Vadot};
96c66ec88fSEmmanuel Vadot */
97c66ec88fSEmmanuel Vadot
98*5def4c47SEmmanuel Vadot&sd_emmc_a {
99*5def4c47SEmmanuel Vadot	sd-uhs-sdr50;
100*5def4c47SEmmanuel Vadot};
101