public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved
@ 2024-01-11 16:58 Neil Armstrong
  2024-01-11 16:58 ` [PATCH 1/2] arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio Neil Armstrong
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Neil Armstrong @ 2024-01-11 16:58 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Neil Armstrong,
	Georgi Djakov

The TLMM gpio74 is also used to communicate with the secure NFC
on-board module, some variants of the SM8650 QRD & MTP boards requires
this GPIO to be dedicated to the secure firmware and set reserved
in order to successfully initialize the TLMM GPIOs from HLOS (Linux).
On the other boards this GPIO is unused so it's still safe to mark
the GPIO as reserved.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Neil Armstrong (2):
      arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio
      arm64: dts: qcom: sm8650-mtp: add gpio74 as reserved gpio

 arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 2 +-
 arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
base-commit: bffdfd2e7e63175ae261131a620f809d946cf9a7
change-id: 20240111-topic-sm8650-upstream-qrd-fix-gpio-reserved-1c3d56c2d3e8

Best regards,
-- 
Neil Armstrong <neil.armstrong@linaro.org>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio
  2024-01-11 16:58 [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved Neil Armstrong
@ 2024-01-11 16:58 ` Neil Armstrong
  2024-01-11 16:59   ` Konrad Dybcio
  2024-01-11 16:58 ` [PATCH 2/2] arm64: dts: qcom: sm8650-mtp: " Neil Armstrong
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Neil Armstrong @ 2024-01-11 16:58 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Neil Armstrong,
	Georgi Djakov

The TLMM gpio74 is also used to communicate with the secure NFC
on-board module, some variants of the SM8650-QRD board requires
this GPIO to be dedicated to the secure firmware and set reserved
in order to successfully initialize the TLMM GPIOs from HLOS (Linux).
On the other boards this GPIO is unused so it's still safe to mark
the GPIO as reserved.

Fixes: a834911d50c1 ("arm64: dts: qcom: sm8650: add initial SM8650 QRD dts")
Reported-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts
index 592a67a47c78..b9151c2ddf2e 100644
--- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts
+++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts
@@ -659,7 +659,7 @@ touchscreen@0 {
 
 &tlmm {
 	/* Reserved I/Os for NFC */
-	gpio-reserved-ranges = <32 8>;
+	gpio-reserved-ranges = <32 8>, <74 1>;
 
 	bt_default: bt-default-state {
 		bt-en-pins {

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] arm64: dts: qcom: sm8650-mtp: add gpio74 as reserved gpio
  2024-01-11 16:58 [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved Neil Armstrong
  2024-01-11 16:58 ` [PATCH 1/2] arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio Neil Armstrong
@ 2024-01-11 16:58 ` Neil Armstrong
  2024-01-11 17:00   ` Konrad Dybcio
  2024-01-11 18:39   ` Georgi Djakov
  2024-01-11 19:55 ` [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved Elliot Berman
  2024-01-28 18:13 ` Bjorn Andersson
  3 siblings, 2 replies; 8+ messages in thread
From: Neil Armstrong @ 2024-01-11 16:58 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Neil Armstrong,
	Georgi Djakov

The TLMM gpio74 is also used to communicate with the secure NFC
on-board module, some variants of the SM8650-MTP board requires
this GPIO to be dedicated to the secure firmware and set reserved
in order to successfully initialize the TLMM GPIOs from HLOS (Linux).
On the other boards this GPIO is unused so it's still safe to mark
the GPIO as reserved.

Fixes: 6fbdb3c1fac7 ("arm64: dts: qcom: sm8650: add initial SM8650 MTP dts")
Reported-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts
index 9d916edb1c73..be133a3d5cbe 100644
--- a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts
@@ -622,7 +622,7 @@ right_spkr: speaker@0,1 {
 
 &tlmm {
 	/* Reserved I/Os for NFC */
-	gpio-reserved-ranges = <32 8>;
+	gpio-reserved-ranges = <32 8>, <74 1>;
 
 	disp0_reset_n_active: disp0-reset-n-active-state {
 		pins = "gpio133";

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio
  2024-01-11 16:58 ` [PATCH 1/2] arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio Neil Armstrong
@ 2024-01-11 16:59   ` Konrad Dybcio
  0 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2024-01-11 16:59 UTC (permalink / raw)
  To: Neil Armstrong, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Georgi Djakov



On 1/11/24 17:58, Neil Armstrong wrote:
> The TLMM gpio74 is also used to communicate with the secure NFC
> on-board module, some variants of the SM8650-QRD board requires
> this GPIO to be dedicated to the secure firmware and set reserved
> in order to successfully initialize the TLMM GPIOs from HLOS (Linux).
> On the other boards this GPIO is unused so it's still safe to mark
> the GPIO as reserved.
> 
> Fixes: a834911d50c1 ("arm64: dts: qcom: sm8650: add initial SM8650 QRD dts")
> Reported-by: Georgi Djakov <djakov@kernel.org>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: sm8650-mtp: add gpio74 as reserved gpio
  2024-01-11 16:58 ` [PATCH 2/2] arm64: dts: qcom: sm8650-mtp: " Neil Armstrong
@ 2024-01-11 17:00   ` Konrad Dybcio
  2024-01-11 18:39   ` Georgi Djakov
  1 sibling, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2024-01-11 17:00 UTC (permalink / raw)
  To: Neil Armstrong, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Georgi Djakov



On 1/11/24 17:58, Neil Armstrong wrote:
> The TLMM gpio74 is also used to communicate with the secure NFC
> on-board module, some variants of the SM8650-MTP board requires
> this GPIO to be dedicated to the secure firmware and set reserved
> in order to successfully initialize the TLMM GPIOs from HLOS (Linux).
> On the other boards this GPIO is unused so it's still safe to mark
> the GPIO as reserved.
> 
> Fixes: 6fbdb3c1fac7 ("arm64: dts: qcom: sm8650: add initial SM8650 MTP dts")
> Reported-by: Georgi Djakov <djakov@kernel.org>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: sm8650-mtp: add gpio74 as reserved gpio
  2024-01-11 16:58 ` [PATCH 2/2] arm64: dts: qcom: sm8650-mtp: " Neil Armstrong
  2024-01-11 17:00   ` Konrad Dybcio
@ 2024-01-11 18:39   ` Georgi Djakov
  1 sibling, 0 replies; 8+ messages in thread
From: Georgi Djakov @ 2024-01-11 18:39 UTC (permalink / raw)
  To: Neil Armstrong, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Georgi Djakov

On 1/11/2024 6:58 PM, Neil Armstrong wrote:
> The TLMM gpio74 is also used to communicate with the secure NFC
> on-board module, some variants of the SM8650-MTP board requires
> this GPIO to be dedicated to the secure firmware and set reserved
> in order to successfully initialize the TLMM GPIOs from HLOS (Linux).
> On the other boards this GPIO is unused so it's still safe to mark
> the GPIO as reserved.
> 
> Fixes: 6fbdb3c1fac7 ("arm64: dts: qcom: sm8650: add initial SM8650 MTP dts")
> Reported-by: Georgi Djakov <djakov@kernel.org>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>

The SM8650-MTP board boots successfully with this patch. Thanks Neil!

Tested-by: Georgi Djakov <quic_c_gdjako@quicinc.com>

> ---
>  arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts
> index 9d916edb1c73..be133a3d5cbe 100644
> --- a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts
> @@ -622,7 +622,7 @@ right_spkr: speaker@0,1 {
>  
>  &tlmm {
>  	/* Reserved I/Os for NFC */
> -	gpio-reserved-ranges = <32 8>;
> +	gpio-reserved-ranges = <32 8>, <74 1>;
>  
>  	disp0_reset_n_active: disp0-reset-n-active-state {
>  		pins = "gpio133";
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved
  2024-01-11 16:58 [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved Neil Armstrong
  2024-01-11 16:58 ` [PATCH 1/2] arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio Neil Armstrong
  2024-01-11 16:58 ` [PATCH 2/2] arm64: dts: qcom: sm8650-mtp: " Neil Armstrong
@ 2024-01-11 19:55 ` Elliot Berman
  2024-01-28 18:13 ` Bjorn Andersson
  3 siblings, 0 replies; 8+ messages in thread
From: Elliot Berman @ 2024-01-11 19:55 UTC (permalink / raw)
  To: Neil Armstrong, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Georgi Djakov



On 1/11/2024 8:58 AM, Neil Armstrong wrote:
> The TLMM gpio74 is also used to communicate with the secure NFC
> on-board module, some variants of the SM8650 QRD & MTP boards requires
> this GPIO to be dedicated to the secure firmware and set reserved
> in order to successfully initialize the TLMM GPIOs from HLOS (Linux).
> On the other boards this GPIO is unused so it's still safe to mark
> the GPIO as reserved.
> 
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>

Double checked these and no others currently are also reserved.

Reviewed-by: Elliot Berman <quic_eberman@quicinc.com>

> ---
> Neil Armstrong (2):
>       arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio
>       arm64: dts: qcom: sm8650-mtp: add gpio74 as reserved gpio
> 
>  arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 2 +-
>  arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> ---
> base-commit: bffdfd2e7e63175ae261131a620f809d946cf9a7
> change-id: 20240111-topic-sm8650-upstream-qrd-fix-gpio-reserved-1c3d56c2d3e8
> 
> Best regards,

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved
  2024-01-11 16:58 [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved Neil Armstrong
                   ` (2 preceding siblings ...)
  2024-01-11 19:55 ` [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved Elliot Berman
@ 2024-01-28 18:13 ` Bjorn Andersson
  3 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2024-01-28 18:13 UTC (permalink / raw)
  To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Neil Armstrong
  Cc: linux-arm-msm, devicetree, linux-kernel, Georgi Djakov


On Thu, 11 Jan 2024 17:58:48 +0100, Neil Armstrong wrote:
> The TLMM gpio74 is also used to communicate with the secure NFC
> on-board module, some variants of the SM8650 QRD & MTP boards requires
> this GPIO to be dedicated to the secure firmware and set reserved
> in order to successfully initialize the TLMM GPIOs from HLOS (Linux).
> On the other boards this GPIO is unused so it's still safe to mark
> the GPIO as reserved.
> 
> [...]

Applied, thanks!

[1/2] arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio
      commit: 361bb7c961403173be109d8892f3c23096dc098d
[2/2] arm64: dts: qcom: sm8650-mtp: add gpio74 as reserved gpio
      commit: df77288f7e3accf246785c53cd5f117fc5d81611

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-01-28 18:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-11 16:58 [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved Neil Armstrong
2024-01-11 16:58 ` [PATCH 1/2] arm64: dts: qcom: sm8650-qrd: add gpio74 as reserved gpio Neil Armstrong
2024-01-11 16:59   ` Konrad Dybcio
2024-01-11 16:58 ` [PATCH 2/2] arm64: dts: qcom: sm8650-mtp: " Neil Armstrong
2024-01-11 17:00   ` Konrad Dybcio
2024-01-11 18:39   ` Georgi Djakov
2024-01-11 19:55 ` [PATCH 0/2] arm64: dts: qcom: sm8650: mark gpio74 as reserved Elliot Berman
2024-01-28 18:13 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox