From 7b45ef9bb609db436deb0c6240a235e553fb67ef Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Thu, 26 Mar 2020 17:01:31 -0700 Subject: [PATCH 1/2] bindings: pmic-glink: add protection domain restart (PDR) support Add "qcom,protection-domain" for PMIC Glink device so that it can register for PDR notifications from a service available under the specified path in a remote subsystem. Upon a state transition, it can be delivered to its clients if they've registered for it. Change-Id: I1ceb0b9400c83e9132ea22ca9fbb4ad3b6c3b33c --- bindings/soc/qcom/qcom,pmic-glink.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/soc/qcom/qcom,pmic-glink.txt b/bindings/soc/qcom/qcom,pmic-glink.txt index bc4400659c3e..648f69bc5d29 100644 --- a/bindings/soc/qcom/qcom,pmic-glink.txt +++ b/bindings/soc/qcom/qcom,pmic-glink.txt @@ -22,6 +22,13 @@ remote subsystem (e.g. DSP) over Glink channel. notifications should be handled and state transitions be sent to the clients. +- qcom,protection-domain: + Usage: optional + Value type: + Definition: should be the protection domain service name and path name + for which notifications should be handled and state + transitions be sent to the clients. + 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. @@ -50,6 +57,7 @@ after the PMIC Glink device initializes. compatible = "qcom,pmic-glink"; qcom,pmic-glink-channel = "PMIC_RTR_ADSP_APPS"; qcom,subsys-name = "adsp"; + qcom,protection-domain = "tms/servreg", "msm/adsp/charger_pd"; qcom,batt_chg { compatible = "qcom,battery-charger"; From 314935c2499ad7f0df052a96925bc81d20db74fa Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Thu, 26 Mar 2020 17:03:54 -0700 Subject: [PATCH 2/2] ARM: dts: msm: add PDR support for PMIC Glink on Lahaina Add "qcom,protection-domain" to PMIC Glink device so that it can handle protection domain restart (PDR) notifications and pass the state transitions to its clients on Lahaina platforms. Change-Id: I3e28aa91b47db375819aaf1d67215ff4f7003603 --- qcom/lahaina.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index 405aa12f267e..b050be3f49bf 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -3791,6 +3791,7 @@ compatible = "qcom,pmic-glink"; qcom,pmic-glink-channel = "PMIC_RTR_ADSP_APPS"; qcom,subsys-name = "adsp"; + qcom,protection-domain = "tms/servreg", "msm/adsp/charger_pd"; battery_charger: qcom,battery_charger { compatible = "qcom,battery-charger";