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 27*8cc087a1SEmmanuel Vadot pwm-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 }; 355956d97fSEmmanuel Vadot 365956d97fSEmmanuel Vadot sound { 375956d97fSEmmanuel Vadot model = "G12B-KHADAS-VIM3L"; 385956d97fSEmmanuel Vadot audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0", 395956d97fSEmmanuel Vadot "TDMOUT_A IN 1", "FRDDR_B OUT 0", 405956d97fSEmmanuel Vadot "TDMOUT_A IN 2", "FRDDR_C OUT 0", 415956d97fSEmmanuel Vadot "TDM_A Playback", "TDMOUT_A OUT", 425956d97fSEmmanuel Vadot "TDMIN_A IN 0", "TDM_A Capture", 435956d97fSEmmanuel Vadot "TDMIN_A IN 13", "TDM_A Loopback", 445956d97fSEmmanuel Vadot "TODDR_A IN 0", "TDMIN_A OUT", 455956d97fSEmmanuel Vadot "TODDR_B IN 0", "TDMIN_A OUT", 465956d97fSEmmanuel Vadot "TODDR_C IN 0", "TDMIN_A OUT"; 475956d97fSEmmanuel Vadot }; 48c66ec88fSEmmanuel Vadot}; 49c66ec88fSEmmanuel Vadot 50c66ec88fSEmmanuel Vadot&cpu0 { 51c66ec88fSEmmanuel Vadot cpu-supply = <&vddcpu>; 52c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 53c66ec88fSEmmanuel Vadot clocks = <&clkc CLKID_CPU_CLK>; 54c66ec88fSEmmanuel Vadot clock-latency = <50000>; 55c66ec88fSEmmanuel Vadot}; 56c66ec88fSEmmanuel Vadot 57c66ec88fSEmmanuel Vadot&cpu1 { 58c66ec88fSEmmanuel Vadot cpu-supply = <&vddcpu>; 59c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 60c66ec88fSEmmanuel Vadot clocks = <&clkc CLKID_CPU1_CLK>; 61c66ec88fSEmmanuel Vadot clock-latency = <50000>; 62c66ec88fSEmmanuel Vadot}; 63c66ec88fSEmmanuel Vadot 64c66ec88fSEmmanuel Vadot&cpu2 { 65c66ec88fSEmmanuel Vadot cpu-supply = <&vddcpu>; 66c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 67c66ec88fSEmmanuel Vadot clocks = <&clkc CLKID_CPU2_CLK>; 68c66ec88fSEmmanuel Vadot clock-latency = <50000>; 69c66ec88fSEmmanuel Vadot}; 70c66ec88fSEmmanuel Vadot 71c66ec88fSEmmanuel Vadot&cpu3 { 72c66ec88fSEmmanuel Vadot cpu-supply = <&vddcpu>; 73c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 74c66ec88fSEmmanuel Vadot clocks = <&clkc CLKID_CPU3_CLK>; 75c66ec88fSEmmanuel Vadot clock-latency = <50000>; 76c66ec88fSEmmanuel Vadot}; 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel Vadot&pwm_AO_cd { 79c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwm_ao_d_e_pins>; 80c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 81c66ec88fSEmmanuel Vadot clocks = <&xtal>; 82c66ec88fSEmmanuel Vadot clock-names = "clkin1"; 83c66ec88fSEmmanuel Vadot status = "okay"; 84c66ec88fSEmmanuel Vadot}; 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadot/* 87c66ec88fSEmmanuel Vadot * The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential 88c66ec88fSEmmanuel Vadot * lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between 89c66ec88fSEmmanuel Vadot * an USB3.0 Type A connector and a M.2 Key M slot. 90c66ec88fSEmmanuel Vadot * The PHY driving these differential lines is shared between 91c66ec88fSEmmanuel Vadot * the USB3.0 controller and the PCIe Controller, thus only 92c66ec88fSEmmanuel Vadot * a single controller can use it. 93c66ec88fSEmmanuel Vadot * If the MCU is configured to mux the PCIe/USB3.0 differential lines 94c66ec88fSEmmanuel Vadot * to the M.2 Key M slot, uncomment the following block to disable 95c66ec88fSEmmanuel Vadot * USB3.0 from the USB Complex and enable the PCIe controller. 96c66ec88fSEmmanuel Vadot * The End User is not expected to uncomment the following except for 97c66ec88fSEmmanuel Vadot * testing purposes, but instead rely on the firmware/bootloader to 98c66ec88fSEmmanuel Vadot * update these nodes accordingly if PCIe mode is selected by the MCU. 99c66ec88fSEmmanuel Vadot */ 100c66ec88fSEmmanuel Vadot/* 101c66ec88fSEmmanuel Vadot&pcie { 102c66ec88fSEmmanuel Vadot status = "okay"; 103c66ec88fSEmmanuel Vadot}; 104c66ec88fSEmmanuel Vadot 105c66ec88fSEmmanuel Vadot&usb { 106c66ec88fSEmmanuel Vadot phys = <&usb2_phy0>, <&usb2_phy1>; 107c66ec88fSEmmanuel Vadot phy-names = "usb2-phy0", "usb2-phy1"; 108c66ec88fSEmmanuel Vadot}; 109c66ec88fSEmmanuel Vadot */ 110c66ec88fSEmmanuel Vadot 1115def4c47SEmmanuel Vadot&sd_emmc_a { 1125def4c47SEmmanuel Vadot sd-uhs-sdr50; 1135def4c47SEmmanuel Vadot}; 114