public inbox for linux-arm-msm@vger.kernel.org
 help / color / mirror / Atom feed
From: Kathiravan T <kathirav@codeaurora.org>
To: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>,
	linux-arm-msm@vger.kernel.org, Baruch Siach <baruch@tkos.co.il>,
	Sricharan R <sricharan@codeaurora.org>,
	arajkuma@codeaurora.org, speriaka@codeaurora.org,
	sivaprak@codeaurora.org, jason <jason@wallystech.com>,
	linus.walleij@linaro.org
Subject: Re: External data abort on ipq6018 gpio # 20 ~ offset 0x14000 any ideas ?
Date: Mon, 03 Jan 2022 11:17:27 +0530	[thread overview]
Message-ID: <2de144430c1acf7e0743adde7055926c@codeaurora.org> (raw)
In-Reply-To: <731e9571-5414-1c00-b6e4-a5316d287506@nexus-software.ie>

On 2022-01-01 21:17, Bryan O'Donoghue wrote:
> On 31/12/2021 21:18, Bjorn Andersson wrote:
>> Unfortunately I don't know how to determine the list of protected 
>> GPIOs,
>> other than trial and error.
>> 
>> But once you have the list, you can use "gpio-reserved-ranges" (a 
>> series
>> of offset, count pairs) in the TLMM DT node to mark off these gpios as
>> reserved.
> 
> Ah nice, worked first time.
> 
> gpio-reserved-ranges = <20 4>;


You want to protect only one GPIO right? I understand that it should be 
just <20 1>. Isn't the case?

You are using a CP01-C4 variant(#define CPU_IPQ6005 453, machid 
0x8030003). In this variant alone, GPIO20 is protected by TZ for some of 
its operation since there is no PMIC. In other variants of IPQ6018, you 
shouldn't be seeing this issue.

> 
> Well I guess its good to know there's no more esoteric explanation
> than "trustzone made it explode" - it only seems to be the one GPIO
> too, quite what use there is for TZ in this GPIO
> 
> PINGROUP(20, pwm20, atest_char2, _, _, _, _, _, _, _)
> 
> is anybody's guess.
> 
> Good enough for my purposes.
> 
> Thanks !
> 
> ---
> bod

-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a 
member of Code Aurora Forum, hosted by The Linux Foundation

  reply	other threads:[~2022-01-03  5:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-31 17:05 External data abort on ipq6018 gpio # 20 ~ offset 0x14000 any ideas ? Bryan O'Donoghue
2021-12-31 21:18 ` Bjorn Andersson
2022-01-01  8:02   ` Linus Walleij
2022-01-01 15:47   ` Bryan O'Donoghue
2022-01-03  5:47     ` Kathiravan T [this message]
2022-01-05  1:22       ` Bryan O'Donoghue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2de144430c1acf7e0743adde7055926c@codeaurora.org \
    --to=kathirav@codeaurora.org \
    --cc=arajkuma@codeaurora.org \
    --cc=baruch@tkos.co.il \
    --cc=bjorn.andersson@linaro.org \
    --cc=jason@wallystech.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=pure.logic@nexus-software.ie \
    --cc=sivaprak@codeaurora.org \
    --cc=speriaka@codeaurora.org \
    --cc=sricharan@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox