From 04d95f9068385a2ee841c01d9da6da174f6123ab Mon Sep 17 00:00:00 2001 From: "Tao,Zhang" Date: Wed, 4 Nov 2020 11:53:41 +0800 Subject: [PATCH] ARM: dts: msm: Add cti trig_out gpio for shima Add pinctil setting to cti trig_out gpio and configure trig_out gpio for shima. Change-Id: Ief2bcf78e1c8f423020d5aab1de416cbdfa72f43 --- qcom/shima-coresight.dtsi | 4 ++++ qcom/shima-pinctrl.dtsi | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/qcom/shima-coresight.dtsi b/qcom/shima-coresight.dtsi index 4536aeb7d154..90cccf9a0f3b 100644 --- a/qcom/shima-coresight.dtsi +++ b/qcom/shima-coresight.dtsi @@ -3129,6 +3129,10 @@ clocks = <&aopcc QDSS_CLK>; clock-names = "apb_pclk"; + + qcom,cti-gpio-trigout = <0>; + pinctrl-names = "cti-trigout-pctrl"; + pinctrl-0 = <&trigout_a>; }; cti3: cti@6013000 { diff --git a/qcom/shima-pinctrl.dtsi b/qcom/shima-pinctrl.dtsi index eeb47a49d145..5e2c03340973 100644 --- a/qcom/shima-pinctrl.dtsi +++ b/qcom/shima-pinctrl.dtsi @@ -3109,6 +3109,19 @@ bias-pull-down; }; }; + + trigout_a: trigout_a { + mux { + pins = "gpio14"; + function = "qdss_cti"; + }; + + config { + pins = "gpio14"; + drive-strength = <2>; + bias-disable; + }; + }; }; };