From 9b84959f5fbeeba2e43252bfabd22f8cc77d9b81 Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Fri, 11 Nov 2022 12:36:29 +0530 Subject: [PATCH] dt-bindings: thermal: Add AOP pmic sensor driver bindings Add bindings for the qti aop pmic sensor driver. Change-Id: I58ff96b66517d82fe1f5cfda01932fdac2b56157 --- bindings/thermal/qti-aop-pmic-sensor.txt | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 bindings/thermal/qti-aop-pmic-sensor.txt diff --git a/bindings/thermal/qti-aop-pmic-sensor.txt b/bindings/thermal/qti-aop-pmic-sensor.txt new file mode 100644 index 00000000..5176d2a6 --- /dev/null +++ b/bindings/thermal/qti-aop-pmic-sensor.txt @@ -0,0 +1,62 @@ +=================================================================== +QTI AOP pmic sensor driver +=================================================================== + +QTI AOP pmic sensor driver will be used to give external data of pmic rails like temperature, voltage, etc. +This driver reads the required external data from MSGRAM which is updated by +communicating to RPMH via QMP. + +Properties: +- compatible: + Usage: required + Value type: + Definition: must be "qcom,aop-pmic-sensor" + + QTI AOP pmic sensor driver properties: +-qcom,dbu-id: + Usage: required + Value type: + Definition: Unique ID for a particular pmic. + +-qcom,type: + Usage: required + Value type: + Definition: It will be 1 and 0. 1 is identifier for voltage and 0 is for temperature. + +Example: + aop_pmic_sensor: aop-pmic-sensor@c3f03d8 { + compatible = "qcom,aop-pmic-sensor"; + reg = <0x0c3f03d8 0x28>; + mboxes = <&qmp_aop 0>; + #thermal-sensor-cells = <1>; + + mss-temp { + qcom,dbu-id = <1>; + qcom,type = <0>; + }; + + mx-temp { + qcom,dbu-id = <2>; + qcom,type = <0>; + }; + + cx-temp { + qcom,dbu-id = <3>; + qcom,type = <0>; + }; + + mss-volt { + qcom,dbu-id = <1>; + qcom,type = <1>; + }; + + mx-volt { + qcom,dbu-id = <2>; + qcom,type = <1>; + }; + + cx-volt { + qcom,dbu-id = <3>; + qcom,type = <1>; + }; + }; \ No newline at end of file