From 2ca7b7c5c1ddab3aa104f4fbca022c397d4d58fd Mon Sep 17 00:00:00 2001 From: Kasin Li Date: Sat, 6 Mar 2021 10:54:15 +0800 Subject: [PATCH] ARM: dts: msm: Add hgsl support in 6155 6155 have no doorbell, but ifence still works. Change-Id: I598e5b215a7bc1186d1a9fb7547a118069c261ae --- bindings/soc/qcom/hgsl.txt | 2 ++ qcom/sa6155p-vm.dtsi | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/bindings/soc/qcom/hgsl.txt b/bindings/soc/qcom/hgsl.txt index 4b608005b5ce..cbbed4be17de 100644 --- a/bindings/soc/qcom/hgsl.txt +++ b/bindings/soc/qcom/hgsl.txt @@ -12,6 +12,7 @@ Required properties: reg_doorbell_idx: address of GMUAO_DOORBELL_IDX Optional properties: +- db-off: Disable Doorbell feature but keep hgsl for ifence service - qcom,glb-db-senders : Point to possible nodes of HGSL TCSR sender. The user will select which sender to use. The driver will use TCSR compute signal to send signal to GPU. @@ -25,6 +26,7 @@ Example: reg = <0x2c00000 0x8>, <0x2c8f000 0x4>; reg-names = "hgsl_reg_hwinf", "hgsl_reg_gmucx"; + db-off = <0>; qcom,glb-db-senders = <&hgsl_tcsr_sender0 &hgsl_tcsr_sender1>; qcom,glb-db-receivers = <&hgsl_tcsr_receiver0 &hgsl_tcsr_receiver1>; }; diff --git a/qcom/sa6155p-vm.dtsi b/qcom/sa6155p-vm.dtsi index e00c1fdc6f3d..fa56ad422a9a 100644 --- a/qcom/sa6155p-vm.dtsi +++ b/qcom/sa6155p-vm.dtsi @@ -236,6 +236,13 @@ interrupt-parent = <&intc>; interrupt-controller; }; + + msm_gpu_hyp: qcom,hgsl { + compatible = "qcom,hgsl"; + + /* 6155 have no Doorbell, only keep ifence */ + db-off = <1>; + }; }; ®ulator {