blob: def5fc2c20c03e2a3443cf9b58b43510a9c7097d [file] [log] [blame]
[
{
type: "ShutdownWatcher",
name: "shutdown_watcher",
},
{
type: "SystemShutdownHandler",
name: "sys_shutdown",
config: {
shutdown_timeout_s: 3600,
},
dependencies: {
shutdown_watcher_node: "shutdown_watcher",
},
},
{
type: "CrashReportHandler",
name: "crash_handler",
},
{
type: "TemperatureHandler",
name: "temperature_soc_pll",
config: {
driver_path: "/dev/sys/platform/05:06:39/pll-temp-sensor/aml-trip-device",
cache_duration_ms: 50,
},
},
{
type: "PlatformMetrics",
name: "platform_metrics",
config: {
cpu_temperature_poll_interval_s: 1,
throttle_debounce_timeout_s: 60,
},
dependencies: {
cpu_temperature_handler_node: "temperature_soc_pll",
crash_report_handler_node: "crash_handler",
},
},
{
type: "ThermalStateHandler",
name: "thermal_state_handler",
config: {
enable_cpu_thermal_state_connector: false,
enable_client_state_connector: true,
},
// platform_metrics are disabled for this node.
},
{
// Calculates thermal load used to trigger fan throttling. The reboot threshold
// is much less than that of thermal_policy and is not expected to be reached.
type: "ThermalLoadDriver",
name: "thermal_load_driver",
config: {
temperature_input_configs: [
{
temperature_handler_node_name: "temperature_soc_pll",
onset_temperature_c: 80.0,
reboot_temperature_c: 105.0,
poll_interval_s: 1,
filter_time_constant_s: 5,
},
],
},
dependencies: {
system_shutdown_node: "sys_shutdown",
thermal_load_notify_nodes: [
"thermal_state_handler",
],
temperature_handler_node_names: [
"temperature_soc_pll",
],
platform_metrics_node: "platform_metrics",
},
},
]