184943d6fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 OR MIT 284943d6fSEmmanuel Vadot/* 384943d6fSEmmanuel Vadot * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved. 484943d6fSEmmanuel Vadot */ 584943d6fSEmmanuel Vadot 684943d6fSEmmanuel Vadot#include "sg2042.dtsi" 784943d6fSEmmanuel Vadot 884943d6fSEmmanuel Vadot/ { 984943d6fSEmmanuel Vadot model = "Milk-V Pioneer"; 1084943d6fSEmmanuel Vadot compatible = "milkv,pioneer", "sophgo,sg2042"; 1184943d6fSEmmanuel Vadot 1284943d6fSEmmanuel Vadot chosen { 1384943d6fSEmmanuel Vadot stdout-path = "serial0"; 1484943d6fSEmmanuel Vadot }; 1584943d6fSEmmanuel Vadot}; 1684943d6fSEmmanuel Vadot 170e8011faSEmmanuel Vadot&cgi_main { 180e8011faSEmmanuel Vadot clock-frequency = <25000000>; 190e8011faSEmmanuel Vadot}; 200e8011faSEmmanuel Vadot 210e8011faSEmmanuel Vadot&cgi_dpll0 { 220e8011faSEmmanuel Vadot clock-frequency = <25000000>; 230e8011faSEmmanuel Vadot}; 240e8011faSEmmanuel Vadot 250e8011faSEmmanuel Vadot&cgi_dpll1 { 260e8011faSEmmanuel Vadot clock-frequency = <25000000>; 270e8011faSEmmanuel Vadot}; 280e8011faSEmmanuel Vadot 29*b2d2a78aSEmmanuel Vadot&emmc { 30*b2d2a78aSEmmanuel Vadot bus-width = <4>; 31*b2d2a78aSEmmanuel Vadot no-sdio; 32*b2d2a78aSEmmanuel Vadot no-sd; 33*b2d2a78aSEmmanuel Vadot non-removable; 34*b2d2a78aSEmmanuel Vadot wp-inverted; 35*b2d2a78aSEmmanuel Vadot status = "okay"; 36*b2d2a78aSEmmanuel Vadot}; 37*b2d2a78aSEmmanuel Vadot 38*b2d2a78aSEmmanuel Vadot&i2c1 { 39*b2d2a78aSEmmanuel Vadot status = "okay"; 40*b2d2a78aSEmmanuel Vadot 41*b2d2a78aSEmmanuel Vadot mcu: syscon@17 { 42*b2d2a78aSEmmanuel Vadot compatible = "sophgo,sg2042-hwmon-mcu"; 43*b2d2a78aSEmmanuel Vadot reg = <0x17>; 44*b2d2a78aSEmmanuel Vadot #thermal-sensor-cells = <1>; 45*b2d2a78aSEmmanuel Vadot }; 46*b2d2a78aSEmmanuel Vadot}; 47*b2d2a78aSEmmanuel Vadot 48*b2d2a78aSEmmanuel Vadot&sd { 49*b2d2a78aSEmmanuel Vadot bus-width = <4>; 50*b2d2a78aSEmmanuel Vadot no-sdio; 51*b2d2a78aSEmmanuel Vadot no-mmc; 52*b2d2a78aSEmmanuel Vadot wp-inverted; 53*b2d2a78aSEmmanuel Vadot status = "okay"; 54*b2d2a78aSEmmanuel Vadot}; 55*b2d2a78aSEmmanuel Vadot 5684943d6fSEmmanuel Vadot&uart0 { 5784943d6fSEmmanuel Vadot status = "okay"; 5884943d6fSEmmanuel Vadot}; 59*b2d2a78aSEmmanuel Vadot 60*b2d2a78aSEmmanuel Vadot/ { 61*b2d2a78aSEmmanuel Vadot thermal-zones { 62*b2d2a78aSEmmanuel Vadot soc-thermal { 63*b2d2a78aSEmmanuel Vadot polling-delay-passive = <1000>; 64*b2d2a78aSEmmanuel Vadot polling-delay = <1000>; 65*b2d2a78aSEmmanuel Vadot thermal-sensors = <&mcu 0>; 66*b2d2a78aSEmmanuel Vadot 67*b2d2a78aSEmmanuel Vadot trips { 68*b2d2a78aSEmmanuel Vadot soc_active1: soc-active1 { 69*b2d2a78aSEmmanuel Vadot temperature = <30000>; 70*b2d2a78aSEmmanuel Vadot hysteresis = <8000>; 71*b2d2a78aSEmmanuel Vadot type = "active"; 72*b2d2a78aSEmmanuel Vadot }; 73*b2d2a78aSEmmanuel Vadot 74*b2d2a78aSEmmanuel Vadot soc_active2: soc-active2 { 75*b2d2a78aSEmmanuel Vadot temperature = <58000>; 76*b2d2a78aSEmmanuel Vadot hysteresis = <12000>; 77*b2d2a78aSEmmanuel Vadot type = "active"; 78*b2d2a78aSEmmanuel Vadot }; 79*b2d2a78aSEmmanuel Vadot 80*b2d2a78aSEmmanuel Vadot soc_active3: soc-active3 { 81*b2d2a78aSEmmanuel Vadot temperature = <70000>; 82*b2d2a78aSEmmanuel Vadot hysteresis = <10000>; 83*b2d2a78aSEmmanuel Vadot type = "active"; 84*b2d2a78aSEmmanuel Vadot }; 85*b2d2a78aSEmmanuel Vadot 86*b2d2a78aSEmmanuel Vadot soc_hot: soc-hot { 87*b2d2a78aSEmmanuel Vadot temperature = <80000>; 88*b2d2a78aSEmmanuel Vadot hysteresis = <5000>; 89*b2d2a78aSEmmanuel Vadot type = "hot"; 90*b2d2a78aSEmmanuel Vadot }; 91*b2d2a78aSEmmanuel Vadot }; 92*b2d2a78aSEmmanuel Vadot }; 93*b2d2a78aSEmmanuel Vadot 94*b2d2a78aSEmmanuel Vadot board-thermal { 95*b2d2a78aSEmmanuel Vadot polling-delay-passive = <1000>; 96*b2d2a78aSEmmanuel Vadot polling-delay = <1000>; 97*b2d2a78aSEmmanuel Vadot thermal-sensors = <&mcu 1>; 98*b2d2a78aSEmmanuel Vadot 99*b2d2a78aSEmmanuel Vadot trips { 100*b2d2a78aSEmmanuel Vadot board_active: board-active { 101*b2d2a78aSEmmanuel Vadot temperature = <75000>; 102*b2d2a78aSEmmanuel Vadot hysteresis = <8000>; 103*b2d2a78aSEmmanuel Vadot type = "active"; 104*b2d2a78aSEmmanuel Vadot }; 105*b2d2a78aSEmmanuel Vadot }; 106*b2d2a78aSEmmanuel Vadot }; 107*b2d2a78aSEmmanuel Vadot }; 108*b2d2a78aSEmmanuel Vadot}; 109