From f2262a7f97076091228746688ddea894895dff88 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Wed, 22 Apr 2020 15:00:01 -0700 Subject: [PATCH] dt-bindings: thermal: pe_sensor: Add Policy Engine sensor Register Policy Engine recommendations as sensor with thermal framework. Thermal framework can mitigate cooling devices for the recommendations from policy engine sensor. Change-Id: Ic401b438098d9336a14d90af61e45b319601141d --- bindings/thermal/qcom-pe-sensor.txt | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 bindings/thermal/qcom-pe-sensor.txt diff --git a/bindings/thermal/qcom-pe-sensor.txt b/bindings/thermal/qcom-pe-sensor.txt new file mode 100644 index 000000000000..85bb0e9aeafb --- /dev/null +++ b/bindings/thermal/qcom-pe-sensor.txt @@ -0,0 +1,41 @@ +Policy Engine(PE) recommendation as sensor. + +The QTI Policy Engine sensor device will register the policy engine +recommendation with thermal framework as a sensor. This will enable +to provide configuration to mitigate cooling devices when a recommendation +is sent from Policy Engine hardware. The recommendations are mitigation +levels based on CX operating level. + +There can be multiple Policy Engine hardwares for different rails. + +Properties: + +- compatible: + Usage: required + Value type: + Definition: should be "qcom,policy-engine" + +- reg: + Usage: required + Value type: + Definition: RDPM_PE base address. + +- #thermal-sensor-cells: + Usage: required + Value type: + Definition: Must be 0. See thermal.txt for description. + +- interrupts: + Usage: required + Value type: + Definition: Policy Engine master interrupt. + + +Example: + +cx_rdpm_pe@0x00635000 { + compatible = "qcom,policy-engine"; + #thermal-sensor-cells = <0>; + reg = <0x00635000 0x1000>; + interrupts = ; +};