1// SPDX-License-Identifier: GPL-2.0 OR MIT 2/* 3 * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved. 4 */ 5 6#include "sg2042.dtsi" 7 8/ { 9 model = "Milk-V Pioneer"; 10 compatible = "milkv,pioneer", "sophgo,sg2042"; 11 12 chosen { 13 stdout-path = "serial0"; 14 }; 15}; 16 17&cgi_main { 18 clock-frequency = <25000000>; 19}; 20 21&cgi_dpll0 { 22 clock-frequency = <25000000>; 23}; 24 25&cgi_dpll1 { 26 clock-frequency = <25000000>; 27}; 28 29&emmc { 30 bus-width = <4>; 31 no-sdio; 32 no-sd; 33 non-removable; 34 wp-inverted; 35 status = "okay"; 36}; 37 38&i2c1 { 39 status = "okay"; 40 41 mcu: syscon@17 { 42 compatible = "sophgo,sg2042-hwmon-mcu"; 43 reg = <0x17>; 44 #thermal-sensor-cells = <1>; 45 }; 46}; 47 48&sd { 49 bus-width = <4>; 50 no-sdio; 51 no-mmc; 52 wp-inverted; 53 status = "okay"; 54}; 55 56&uart0 { 57 status = "okay"; 58}; 59 60/ { 61 thermal-zones { 62 soc-thermal { 63 polling-delay-passive = <1000>; 64 polling-delay = <1000>; 65 thermal-sensors = <&mcu 0>; 66 67 trips { 68 soc_active1: soc-active1 { 69 temperature = <30000>; 70 hysteresis = <8000>; 71 type = "active"; 72 }; 73 74 soc_active2: soc-active2 { 75 temperature = <58000>; 76 hysteresis = <12000>; 77 type = "active"; 78 }; 79 80 soc_active3: soc-active3 { 81 temperature = <70000>; 82 hysteresis = <10000>; 83 type = "active"; 84 }; 85 86 soc_hot: soc-hot { 87 temperature = <80000>; 88 hysteresis = <5000>; 89 type = "hot"; 90 }; 91 }; 92 }; 93 94 board-thermal { 95 polling-delay-passive = <1000>; 96 polling-delay = <1000>; 97 thermal-sensors = <&mcu 1>; 98 99 trips { 100 board_active: board-active { 101 temperature = <75000>; 102 hysteresis = <8000>; 103 type = "active"; 104 }; 105 }; 106 }; 107 }; 108}; 109