xref: /linux/scripts/dtc/include-prefixes/riscv/sophgo/sg2042-milkv-pioneer.dts (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
19439a0e8SChen Wang// SPDX-License-Identifier: GPL-2.0 OR MIT
29439a0e8SChen Wang/*
39439a0e8SChen Wang * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved.
49439a0e8SChen Wang */
59439a0e8SChen Wang
69439a0e8SChen Wang#include "sg2042.dtsi"
79439a0e8SChen Wang
89439a0e8SChen Wang/ {
99439a0e8SChen Wang	model = "Milk-V Pioneer";
109439a0e8SChen Wang	compatible = "milkv,pioneer", "sophgo,sg2042";
119439a0e8SChen Wang
129439a0e8SChen Wang	chosen {
139439a0e8SChen Wang		stdout-path = "serial0";
149439a0e8SChen Wang	};
159439a0e8SChen Wang};
169439a0e8SChen Wang
17b1240a39SChen Wang&cgi_main {
18b1240a39SChen Wang	clock-frequency = <25000000>;
19b1240a39SChen Wang};
20b1240a39SChen Wang
21b1240a39SChen Wang&cgi_dpll0 {
22b1240a39SChen Wang	clock-frequency = <25000000>;
23b1240a39SChen Wang};
24b1240a39SChen Wang
25b1240a39SChen Wang&cgi_dpll1 {
26b1240a39SChen Wang	clock-frequency = <25000000>;
27b1240a39SChen Wang};
28b1240a39SChen Wang
29014b839fSChen Wang&emmc {
30014b839fSChen Wang	bus-width = <4>;
31014b839fSChen Wang	no-sdio;
32014b839fSChen Wang	no-sd;
33014b839fSChen Wang	non-removable;
34014b839fSChen Wang	wp-inverted;
35014b839fSChen Wang	status = "okay";
36014b839fSChen Wang};
37014b839fSChen Wang
38*585dcb21SInochi Amaoto&i2c1 {
39*585dcb21SInochi Amaoto	status = "okay";
40*585dcb21SInochi Amaoto
41*585dcb21SInochi Amaoto	mcu: syscon@17 {
42*585dcb21SInochi Amaoto		compatible = "sophgo,sg2042-hwmon-mcu";
43*585dcb21SInochi Amaoto		reg = <0x17>;
44*585dcb21SInochi Amaoto		#thermal-sensor-cells = <1>;
45*585dcb21SInochi Amaoto	};
46*585dcb21SInochi Amaoto};
47*585dcb21SInochi Amaoto
48014b839fSChen Wang&sd {
49014b839fSChen Wang	bus-width = <4>;
50014b839fSChen Wang	no-sdio;
51014b839fSChen Wang	no-mmc;
52014b839fSChen Wang	wp-inverted;
53014b839fSChen Wang	status = "okay";
54014b839fSChen Wang};
55014b839fSChen Wang
569439a0e8SChen Wang&uart0 {
579439a0e8SChen Wang	status = "okay";
589439a0e8SChen Wang};
59*585dcb21SInochi Amaoto
60*585dcb21SInochi Amaoto/ {
61*585dcb21SInochi Amaoto	thermal-zones {
62*585dcb21SInochi Amaoto		soc-thermal {
63*585dcb21SInochi Amaoto			polling-delay-passive = <1000>;
64*585dcb21SInochi Amaoto			polling-delay = <1000>;
65*585dcb21SInochi Amaoto			thermal-sensors = <&mcu 0>;
66*585dcb21SInochi Amaoto
67*585dcb21SInochi Amaoto			trips {
68*585dcb21SInochi Amaoto				soc_active1: soc-active1 {
69*585dcb21SInochi Amaoto					temperature = <30000>;
70*585dcb21SInochi Amaoto					hysteresis = <8000>;
71*585dcb21SInochi Amaoto					type = "active";
72*585dcb21SInochi Amaoto				};
73*585dcb21SInochi Amaoto
74*585dcb21SInochi Amaoto				soc_active2: soc-active2 {
75*585dcb21SInochi Amaoto					temperature = <58000>;
76*585dcb21SInochi Amaoto					hysteresis = <12000>;
77*585dcb21SInochi Amaoto					type = "active";
78*585dcb21SInochi Amaoto				};
79*585dcb21SInochi Amaoto
80*585dcb21SInochi Amaoto				soc_active3: soc-active3 {
81*585dcb21SInochi Amaoto					temperature = <70000>;
82*585dcb21SInochi Amaoto					hysteresis = <10000>;
83*585dcb21SInochi Amaoto					type = "active";
84*585dcb21SInochi Amaoto				};
85*585dcb21SInochi Amaoto
86*585dcb21SInochi Amaoto				soc_hot: soc-hot {
87*585dcb21SInochi Amaoto					temperature = <80000>;
88*585dcb21SInochi Amaoto					hysteresis = <5000>;
89*585dcb21SInochi Amaoto					type = "hot";
90*585dcb21SInochi Amaoto				};
91*585dcb21SInochi Amaoto			};
92*585dcb21SInochi Amaoto		};
93*585dcb21SInochi Amaoto
94*585dcb21SInochi Amaoto		board-thermal {
95*585dcb21SInochi Amaoto			polling-delay-passive = <1000>;
96*585dcb21SInochi Amaoto			polling-delay = <1000>;
97*585dcb21SInochi Amaoto			thermal-sensors = <&mcu 1>;
98*585dcb21SInochi Amaoto
99*585dcb21SInochi Amaoto			trips {
100*585dcb21SInochi Amaoto				board_active: board-active {
101*585dcb21SInochi Amaoto					temperature = <75000>;
102*585dcb21SInochi Amaoto					hysteresis = <8000>;
103*585dcb21SInochi Amaoto					type = "active";
104*585dcb21SInochi Amaoto				};
105*585dcb21SInochi Amaoto			};
106*585dcb21SInochi Amaoto		};
107*585dcb21SInochi Amaoto	};
108*585dcb21SInochi Amaoto};
109