orangepi-5-plus: add auto thermal control enable hdmi tx (#2896)

Co-authored-by: Liangbin Lian <1129525450@qq.com>
This commit is contained in:
桐话 2026-03-03 18:17:30 +08:00 committed by GitHub
parent d9059442a9
commit a336fb2789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,7 @@
#include <dt-bindings/leds/common.h> #include <dt-bindings/leds/common.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/rockchip.h> #include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/soc/rockchip,vop2.h>
#include <dt-bindings/usb/pd.h> #include <dt-bindings/usb/pd.h>
#include <rockchip/rk3588.dtsi> #include <rockchip/rk3588.dtsi>
#include "rk3588-rk806-single.dtsi" #include "rk3588-rk806-single.dtsi"
@ -86,7 +87,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&blue_led_pin>; pinctrl-0 = <&blue_led_pin>;
blue_led: led { blue_led: blue-led {
color = <LED_COLOR_ID_BLUE>; color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_INDICATOR; function = LED_FUNCTION_INDICATOR;
function-enumerator = <1>; function-enumerator = <1>;
@ -95,9 +96,20 @@
}; };
}; };
hdmi0-con {
compatible = "hdmi-connector";
type = "a";
port {
hdmi0_con_in: endpoint {
remote-endpoint = <&hdmi0_out_con>;
};
};
};
fan: pwm-fan { fan: pwm-fan {
compatible = "pwm-fan"; compatible = "pwm-fan";
cooling-levels = <0 70 75 80 100>; cooling-levels = <0 120 150 180 210 240 255>;
fan-supply = <&vcc5v0_sys>; fan-supply = <&vcc5v0_sys>;
pwms = <&pwm3 0 50000 0>; pwms = <&pwm3 0 50000 0>;
#cooling-cells = <2>; #cooling-cells = <2>;
@ -106,7 +118,7 @@
pwm-leds { pwm-leds {
compatible = "pwm-leds"; compatible = "pwm-leds";
green_led: led { green_led: green-led {
color = <LED_COLOR_ID_GREEN>; color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR; function = LED_FUNCTION_INDICATOR;
function-enumerator = <2>; function-enumerator = <2>;
@ -115,6 +127,13 @@
}; };
}; };
rfkill-wlan {
compatible = "rfkill-gpio";
label = "rfkill-pcie-wlan";
radio-type = "wlan";
shutdown-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
};
sound { sound {
compatible = "simple-audio-card"; compatible = "simple-audio-card";
pinctrl-names = "default"; pinctrl-names = "default";
@ -281,6 +300,31 @@
&gpu { &gpu {
mali-supply = <&vdd_gpu_s0>; mali-supply = <&vdd_gpu_s0>;
power-off-delay-ms = <20>;
status = "okay";
};
&hdmi0 {
status = "okay";
};
&hdmi0_in {
hdmi0_in_vp0: endpoint {
remote-endpoint = <&vp0_out_hdmi0>;
};
};
&hdmi0_out {
hdmi0_out_con: endpoint {
remote-endpoint = <&hdmi0_con_in>;
};
};
&hdmi0_sound {
status = "okay";
};
&hdptxphy0 {
status = "okay"; status = "okay";
}; };
@ -331,7 +375,7 @@
pinctrl-0 = <&i2c1m2_xfer>; pinctrl-0 = <&i2c1m2_xfer>;
status = "okay"; status = "okay";
vdd_npu_s0: vdd_npu_mem_s0: rk8602@42 { vdd_npu_s0: vdd_npu_mem_s0: regulator@42 {
compatible = "rockchip,rk8602"; compatible = "rockchip,rk8602";
reg = <0x42>; reg = <0x42>;
fcs,suspend-voltage-selector = <1>; fcs,suspend-voltage-selector = <1>;
@ -492,6 +536,36 @@
status = "okay"; status = "okay";
}; };
&package_thermal {
polling-delay = <1000>;
trips {
package_fan0: package-fan0 {
temperature = <55000>;
hysteresis = <2000>;
type = "active";
};
package_fan1: package-fan1 {
temperature = <65000>;
hysteresis = <2000>;
type = "active";
};
};
cooling-maps {
map0 {
trip = <&package_fan0>;
cooling-device = <&fan THERMAL_NO_LIMIT 1>;
};
map1 {
trip = <&package_fan1>;
cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
};
};
};
&pinctrl { &pinctrl {
hym8563 { hym8563 {
hym8563_int: hym8563-int { hym8563_int: hym8563-int {
@ -1029,6 +1103,21 @@
status = "okay"; status = "okay";
}; };
&vop_mmu {
status = "okay";
};
&vop {
status = "okay";
};
&vp0 {
vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
reg = <ROCKCHIP_VOP2_EP_HDMI0>;
remote-endpoint = <&hdmi0_in_vp0>;
};
};
&rknpu { &rknpu {
rknpu-supply = <&vdd_npu_s0>; rknpu-supply = <&vdd_npu_s0>;
mem-supply = <&vdd_npu_mem_s0>; mem-supply = <&vdd_npu_mem_s0>;