From 79fa362a2944c56c2545cf822533b48046e3a0a2 Mon Sep 17 00:00:00 2001 From: Yuanfang Zhang Date: Wed, 3 Apr 2024 18:03:57 +0800 Subject: [PATCH] ARM: dts: msm: add GPIO CTI trigger support on sun Add GPIO CTI trigger configuration on sun. Change-Id: I68b66be1ada16cda36a77f5dc61746ed974afe09 Signed-off-by: Yuanfang Zhang --- qcom/sun-coresight.dtsi | 4 ++++ qcom/sun-pinctrl.dtsi | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/qcom/sun-coresight.dtsi b/qcom/sun-coresight.dtsi index 5ef76214..4aca458d 100644 --- a/qcom/sun-coresight.dtsi +++ b/qcom/sun-coresight.dtsi @@ -5528,6 +5528,10 @@ qcom,extended_cti; clocks = <&aoss_qmp>; clock-names = "apb_pclk"; + + qcom,cti-gpio-trigout = <16>; + pinctrl-names = "cti-trigout-pctrl"; + pinctrl-0 = <&trigout_a>; }; swao_cti: cti@10b00000 { diff --git a/qcom/sun-pinctrl.dtsi b/qcom/sun-pinctrl.dtsi index bb1e63b0..5559cabb 100644 --- a/qcom/sun-pinctrl.dtsi +++ b/qcom/sun-pinctrl.dtsi @@ -105,6 +105,19 @@ }; }; + trigout_a: trigout_a { + mux { + pins = "gpio73"; + function = "qdss_cti"; + }; + + config { + pins = "gpio78"; + drive-strength = <2>; + bias-disable; + }; + }; + i2s0_sd0 { i2s0_sd0_sleep: i2s0_sd0_sleep { mux {