mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 04:59:05 +00:00
Merge "dt-bindings: thermal: sdpm: Add SDPM clock monitor bindings"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
bbb7605743
41
bindings/thermal/qcom-pe-sensor.txt
Normal file
41
bindings/thermal/qcom-pe-sensor.txt
Normal file
@@ -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: <string>
|
||||
Definition: should be "qcom,policy-engine"
|
||||
|
||||
- reg:
|
||||
Usage: required
|
||||
Value type: <u32>
|
||||
Definition: RDPM_PE base address.
|
||||
|
||||
- #thermal-sensor-cells:
|
||||
Usage: required
|
||||
Value type: <integer>
|
||||
Definition: Must be 0. See thermal.txt for description.
|
||||
|
||||
- interrupts:
|
||||
Usage: required
|
||||
Value type: <prop-encoded-array>
|
||||
Definition: Policy Engine master interrupt.
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
cx_rdpm_pe@0x00635000 {
|
||||
compatible = "qcom,policy-engine";
|
||||
#thermal-sensor-cells = <0>;
|
||||
reg = <0x00635000 0x1000>;
|
||||
interrupts = <GIC_SPI 243 IRQ_TYPE_EDGE_RISING>;
|
||||
};
|
||||
57
bindings/thermal/qcom-sdpm.txt
Normal file
57
bindings/thermal/qcom-sdpm.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
Simple Digital Power Meter(SDPM) clock monitoring.
|
||||
|
||||
SDPM is used to monitor the operating frequency of different clocks and based
|
||||
on operating levels of different clients, the Policy Engine will recommend a
|
||||
new max operating level. The SDPM driver will register with the clock
|
||||
framework for rate change notification of different clocks. These clock rate
|
||||
will be updated to SDPM.
|
||||
|
||||
Properties:
|
||||
|
||||
- compatible:
|
||||
Usage: required
|
||||
Value type: <string>
|
||||
Definition: should be "qcom,sdpm"
|
||||
|
||||
- reg:
|
||||
Usage: required
|
||||
Value type: <u32>
|
||||
Definition: RDPM base address.
|
||||
|
||||
- clocks:
|
||||
Usage: required
|
||||
Value type: <prop-encoded-array>
|
||||
Definition: A List of phandle and clock specifier pairs as listed
|
||||
in clock-names property.
|
||||
|
||||
- clock-names:
|
||||
Usage: required
|
||||
Value type: <stringlist>
|
||||
Definition: List of clock names matching the clock order mentioned in
|
||||
the clocks property.
|
||||
- cpu:
|
||||
Usage: optional
|
||||
Value type: <CPU phandle>
|
||||
Definition: The CPU for which the clock changes should be monitored.
|
||||
|
||||
- csr-id:
|
||||
Usage: required
|
||||
Value type: <array of u32>
|
||||
Definition: Array of CSR ID matching the clock order mentioned in the
|
||||
clocks property. The last ID can be the CSR
|
||||
corresponding to the CPU that needs to be monitored.
|
||||
|
||||
Example:
|
||||
|
||||
cx_sdpm@0x00634000 {
|
||||
compatible = "qcom,sdpm";
|
||||
reg = <0x00634000 0x1000>;
|
||||
clock-names = "cam_cc", "compo_aux";
|
||||
clocks = <&clock_camcc CAM_CC_IPE_0_CLK_SRC>,
|
||||
<&clk_m_a2_div1 CLK_M_COMPO_AUX>;
|
||||
cpu = <&CPU7>;
|
||||
csr-id = <5 7 4>;
|
||||
//CSR 5 <=> cam_cc
|
||||
//CSR 7 <=> compo_aux
|
||||
//CSR 4 <=> CPU7
|
||||
};
|
||||
Reference in New Issue
Block a user