summaryrefslogtreecommitdiff
path: root/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
blob: a3f9d6f2256659039b45c5e270fc8be674347666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
 * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved.
 */

#include "sg2042.dtsi"

/ {
	model = "Milk-V Pioneer";
	compatible = "milkv,pioneer", "sophgo,sg2042";

	chosen {
		stdout-path = "serial0";
	};
};

&cgi_main {
	clock-frequency = <25000000>;
};

&cgi_dpll0 {
	clock-frequency = <25000000>;
};

&cgi_dpll1 {
	clock-frequency = <25000000>;
};

&emmc {
	bus-width = <4>;
	no-sdio;
	no-sd;
	non-removable;
	wp-inverted;
	status = "okay";
};

&i2c1 {
	status = "okay";

	mcu: syscon@17 {
		compatible = "sophgo,sg2042-hwmon-mcu";
		reg = <0x17>;
		#thermal-sensor-cells = <1>;
	};
};

&sd {
	bus-width = <4>;
	no-sdio;
	no-mmc;
	wp-inverted;
	status = "okay";
};

&uart0 {
	status = "okay";
};

/ {
	thermal-zones {
		soc-thermal {
			polling-delay-passive = <1000>;
			polling-delay = <1000>;
			thermal-sensors = <&mcu 0>;

			trips {
				soc_active1: soc-active1 {
					temperature = <30000>;
					hysteresis = <8000>;
					type = "active";
				};

				soc_active2: soc-active2 {
					temperature = <58000>;
					hysteresis = <12000>;
					type = "active";
				};

				soc_active3: soc-active3 {
					temperature = <70000>;
					hysteresis = <10000>;
					type = "active";
				};

				soc_hot: soc-hot {
					temperature = <80000>;
					hysteresis = <5000>;
					type = "hot";
				};
			};
		};

		board-thermal {
			polling-delay-passive = <1000>;
			polling-delay = <1000>;
			thermal-sensors = <&mcu 1>;

			trips {
				board_active: board-active {
					temperature = <75000>;
					hysteresis = <8000>;
					type = "active";
				};
			};
		};
	};
};