mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-25 20:50:05 +07:00
cd21c54ad9
Currently the default thermal values for the rk3399-rock960 board is inherited from the generic definition in rk3399.dtsi. In order to ensure the rock960 has more room for througput before being capped by the thermal framework and is correctly supported by the IPA governor, let's define the power values and the right trip points for better performances: - sustainable power is tested to be 1550mW - increase the first mitigation point to 75°C in order to get better performances - the first trip point is 65°C in order to let the IPA to collect enough data for the PID regulation when it reaches 75°C - restrict the cooling device to the big CPUs as the little CPUs contribution to the heating effect can be considered negligible The intelligent power allocator PID coefficient to be set in sysfs are: k_d: 0 k_po: 79 k_i: 10 k_pu: 50 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
181 lines
3.1 KiB
Plaintext
181 lines
3.1 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2018 Linaro Ltd.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "rk3399-rock960.dtsi"
|
|
|
|
/ {
|
|
model = "96boards Rock960";
|
|
compatible = "vamrs,rock960", "rockchip,rk3399";
|
|
|
|
chosen {
|
|
stdout-path = "serial2:1500000n8";
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>,
|
|
<&user_led4>, <&wlan_led>, <&bt_led>;
|
|
|
|
user_led1 {
|
|
label = "green:user1";
|
|
gpios = <&gpio4 RK_PC2 0>;
|
|
linux,default-trigger = "heartbeat";
|
|
};
|
|
|
|
user_led2 {
|
|
label = "green:user2";
|
|
gpios = <&gpio4 RK_PC6 0>;
|
|
linux,default-trigger = "mmc0";
|
|
};
|
|
|
|
user_led3 {
|
|
label = "green:user3";
|
|
gpios = <&gpio4 RK_PD0 0>;
|
|
linux,default-trigger = "mmc1";
|
|
};
|
|
|
|
user_led4 {
|
|
label = "green:user4";
|
|
gpios = <&gpio4 RK_PD4 0>;
|
|
panic-indicator;
|
|
linux,default-trigger = "none";
|
|
};
|
|
|
|
wlan_active_led {
|
|
label = "yellow:wlan";
|
|
gpios = <&gpio4 RK_PD5 0>;
|
|
linux,default-trigger = "phy0tx";
|
|
default-state = "off";
|
|
};
|
|
|
|
bt_active_led {
|
|
label = "blue:bt";
|
|
gpios = <&gpio4 RK_PD6 0>;
|
|
linux,default-trigger = "hci0-power";
|
|
default-state = "off";
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
&pcie0 {
|
|
ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
&pinctrl {
|
|
leds {
|
|
user_led1: user_led1 {
|
|
rockchip,pins =
|
|
<4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
user_led2: user_led2 {
|
|
rockchip,pins =
|
|
<4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
user_led3: user_led3 {
|
|
rockchip,pins =
|
|
<4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
user_led4: user_led4 {
|
|
rockchip,pins =
|
|
<4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
wlan_led: wlan_led {
|
|
rockchip,pins =
|
|
<4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
bt_led: bt_led {
|
|
rockchip,pins =
|
|
<4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
pcie {
|
|
pcie_drv: pcie-drv {
|
|
rockchip,pins =
|
|
<2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
usb2 {
|
|
host_vbus_drv: host-vbus-drv {
|
|
rockchip,pins =
|
|
<4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
/* On Low speed expansion (LS-SPI0) */
|
|
status = "okay";
|
|
};
|
|
|
|
&spi4 {
|
|
/* On High speed expansion (HS-SPI1) */
|
|
status = "okay";
|
|
};
|
|
|
|
&thermal_zones {
|
|
cpu_thermal: cpu {
|
|
polling-delay-passive = <100>;
|
|
polling-delay = <1000>;
|
|
thermal-sensors = <&tsadc 0>;
|
|
sustainable-power = <1550>;
|
|
|
|
trips {
|
|
cpu_alert0: cpu_alert0 {
|
|
temperature = <65000>;
|
|
hysteresis = <2000>;
|
|
type = "passive";
|
|
};
|
|
|
|
cpu_alert1: cpu_alert1 {
|
|
temperature = <75000>;
|
|
hysteresis = <2000>;
|
|
type = "passive";
|
|
};
|
|
|
|
cpu_crit: cpu_crit {
|
|
temperature = <95000>;
|
|
hysteresis = <2000>;
|
|
type = "critical";
|
|
};
|
|
};
|
|
|
|
cooling-maps {
|
|
map0 {
|
|
|
|
trip = <&cpu_alert1>;
|
|
cooling-device =
|
|
<&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
|
<&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&usbdrd_dwc3_0 {
|
|
dr_mode = "otg";
|
|
};
|
|
|
|
&usbdrd_dwc3_1 {
|
|
dr_mode = "host";
|
|
};
|
|
|
|
&vcc3v3_pcie {
|
|
gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
&vcc5v0_host {
|
|
gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
|
|
};
|