From 49dc21c9c99a8ea43fe82efddee60b87dc17b200 Mon Sep 17 00:00:00 2001 From: Peng Wang Date: Thu, 5 Nov 2020 10:01:56 +0800 Subject: [PATCH] dt-bindings: msm: Add document for fan driver on RB5 Add property 'qcom,pwr-enable-gpio' to control fan on QRB5165 with pm8150l gpio 10. Change-Id: I2c169ac0ba80f67b80367596ae6f0cab9ad9b111 --- bindings/soc/qcom/qcom,rb5-fan-controller.txt | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bindings/soc/qcom/qcom,rb5-fan-controller.txt diff --git a/bindings/soc/qcom/qcom,rb5-fan-controller.txt b/bindings/soc/qcom/qcom,rb5-fan-controller.txt new file mode 100644 index 000000000000..388b9570e2ff --- /dev/null +++ b/bindings/soc/qcom/qcom,rb5-fan-controller.txt @@ -0,0 +1,24 @@ +Qualcomm Technologies, Inc. QRB5165 Fan Controller Driver + +This binding describes the QRB5165 Fan Controller Driver, it controls +fan with pm8150l gpio 10. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,rb5_fan_controller" + +- qcom,pwr-enable-gpio: + Usage: required + Value type: + Definition: the gpio to enable fan pwr + +Example: + + rb5_fan_controller { + compatible = "qcom,rb5_fan_controller"; + qcom,pwr-enable-gpio = <&pm8150l_gpios 10 0x0>; + pinctrl-name = "default"; + pinctrl-0 = <&rb5_fan_controller_pin_init>; + status = "ok"; + };