From 9fdd5165b4479539bfb56e469d6af3ac6c43716a Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Mon, 14 Oct 2019 14:09:50 -0700 Subject: [PATCH] bindings: add support for qcom,pmic-glink The PMIC Glink device provides the interface for clients to communicate over GLink for sending/receiving data to/from charger firmware that runs on a remote subsystem (e.g. ADSP) which supports charging and gauging. Add the bindings for it. Change-Id: Ia4f5ff346ebfa773bc0fe3d0410626ea67e1da31 --- bindings/soc/qcom/qcom,pmic-glink.txt | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 bindings/soc/qcom/qcom,pmic-glink.txt diff --git a/bindings/soc/qcom/qcom,pmic-glink.txt b/bindings/soc/qcom/qcom,pmic-glink.txt new file mode 100644 index 000000000000..afee278fc9a5 --- /dev/null +++ b/bindings/soc/qcom/qcom,pmic-glink.txt @@ -0,0 +1,48 @@ +QTI PMIC Glink binding + +This binding describes the Qualcomm Technologies, Inc. PMIC GLink device. PMIC +Glink handles the communication between different clients (e.g. battery charger, +UCSI PPM) on the Application processor and charger firmware running on the +remote subsystem (e.g. DSP) over Glink channel. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,pmic-glink" + +Refer to Documentation/devicetree/bindings/soc/qcom/qcom,glink.txt for +information on rpmsg device ("qcom,pmic_glink_rpmsg" used in the example below) +that needs to be specified under a glink device. + += SUBNODE + +Each subnode specifies a client of PMIC Glink device that will be instantiated +after the PMIC Glink device initializes. + += EXAMPLE + += PMIC Glink rpmsg device + +&glink_adsp { + ... + qcom,pmic_glink_rpmsg { + qcom,glink-channels = "PMIC_RTR_ADSP_APPS"; + }; + ... +}; + += PMIC Glink device with child subnodes + +&soc { + qcom,pmic_glink { + compatible = "qcom,pmic-glink"; + + qcom,batt_chg { + compatible = "qcom,battery-charger"; + }; + + qcom,ucsi_ppm { + compatible = "qcom,ucsi-ppm"; + }; + }; +};