Skip to content

Commit 700ab8d

Browse files
superna9999khilman
authored andcommitted
arm64: dts: khadas-vim3: add support for the SM1 based VIM3L
Add the Amlogic SM1 based Khadas VIM3L, sharing all the same features as the G12B based VIM3, but: - a different DVFS support since only a single cluster is available - audio is still not available on SM1 Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Tested-by: Kevin Hilman <[email protected]> Signed-off-by: Kevin Hilman <[email protected]>
1 parent aa08f31 commit 700ab8d

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

arch/arm64/boot/dts/amlogic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q201.dtb
3535
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-rbox-pro.dtb
3636
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb
3737
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb
38+
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2019 BayLibre, SAS
4+
* Author: Neil Armstrong <[email protected]>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "meson-sm1.dtsi"
10+
#include "meson-khadas-vim3.dtsi"
11+
12+
/ {
13+
compatible = "khadas,vim3l", "amlogic,sm1";
14+
model = "Khadas VIM3L";
15+
16+
vddcpu: regulator-vddcpu {
17+
/*
18+
* Silergy SY8030DEC Regulator.
19+
*/
20+
compatible = "pwm-regulator";
21+
22+
regulator-name = "VDDCPU";
23+
regulator-min-microvolt = <690000>;
24+
regulator-max-microvolt = <1050000>;
25+
26+
vin-supply = <&vsys_3v3>;
27+
28+
pwms = <&pwm_AO_cd 1 1250 0>;
29+
pwm-dutycycle-range = <100 0>;
30+
31+
regulator-boot-on;
32+
regulator-always-on;
33+
};
34+
};
35+
36+
&cpu0 {
37+
cpu-supply = <&vddcpu>;
38+
operating-points-v2 = <&cpu_opp_table>;
39+
clocks = <&clkc CLKID_CPU_CLK>;
40+
clock-latency = <50000>;
41+
};
42+
43+
&cpu1 {
44+
cpu-supply = <&vddcpu>;
45+
operating-points-v2 = <&cpu_opp_table>;
46+
clocks = <&clkc CLKID_CPU1_CLK>;
47+
clock-latency = <50000>;
48+
};
49+
50+
&cpu2 {
51+
cpu-supply = <&vddcpu>;
52+
operating-points-v2 = <&cpu_opp_table>;
53+
clocks = <&clkc CLKID_CPU2_CLK>;
54+
clock-latency = <50000>;
55+
};
56+
57+
&cpu3 {
58+
cpu-supply = <&vddcpu>;
59+
operating-points-v2 = <&cpu_opp_table>;
60+
clocks = <&clkc CLKID_CPU3_CLK>;
61+
clock-latency = <50000>;
62+
};
63+
64+
&pwm_AO_cd {
65+
pinctrl-0 = <&pwm_ao_d_e_pins>;
66+
pinctrl-names = "default";
67+
clocks = <&xtal>;
68+
clock-names = "clkin1";
69+
status = "okay";
70+
};

0 commit comments

Comments
 (0)