From 672405ce89b79e671032c1bf3a8596af643efa87 Mon Sep 17 00:00:00 2001 From: Christina Oliveira Date: Tue, 30 Jan 2024 14:14:50 -0800 Subject: [PATCH] ARM: dts: msm: enable hw-fences in display driver for Sun Enable the use of hw-fences as the preferred synchronization primitives in the display driver for Sun target. Change-Id: I6f7d769f0a9002d27e68bac55095a3958587e47b Signed-off-by: Christina Oliveira --- bindings/sde.txt | 5 +++++ display/sun-sde.dtsi | 2 ++ 2 files changed, 7 insertions(+) diff --git a/bindings/sde.txt b/bindings/sde.txt index 6ceef390..48cba952 100644 --- a/bindings/sde.txt +++ b/bindings/sde.txt @@ -103,6 +103,10 @@ Optional properties: -- qcom,supply-pre-off-sleep: time to sleep (ms) before turning off -- qcom,supply-post-off-sleep: time to sleep (ms) after turning off - qcom,sde-hw-version: A u32 value indicates the MDSS hw version +- qcom,hw-fence-sw-version: A u32 value to indicate the hw fencing version. If set to a value + greather than zero, driver will attempt to enable the feature (if + supported by the HW). Otherwise, if this value is not set or set + to zero, feature will remain disabled. - qcom,sde-sspp-src-size: A u32 value indicates the address range for each sspp. - qcom,sde-mixer-size: A u32 value indicates the address range for each mixer. - qcom,sde-ctl-size: A u32 value indicates the address range for each ctl. @@ -718,6 +722,7 @@ Example: #power-domain-cells = <0>; qcom,sde-hw-version = <0x70000000>; + qcom,hw-fence-sw-version = <0x1>; qcom,sde-emulated-env; qcom,sde-off = <0x1000>; qcom,sde-ctl-off = <0x00002000 0x00002200 0x00002400 diff --git a/display/sun-sde.dtsi b/display/sun-sde.dtsi index 18c83c8e..8188c462 100644 --- a/display/sun-sde.dtsi +++ b/display/sun-sde.dtsi @@ -219,6 +219,8 @@ clock-rate = <0 0 575000000 575000000 19200000 575000000>; clock-max-rate = <0 0 575000000 575000000 19200000 575000000>; + qcom,hw-fence-sw-version = <0x1>; + vdd-supply = <&disp_cc_mdss_core_gdsc>; mmcx-supply = <&VDD_MMCX_LEVEL>;