All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets
@ 2022-07-04 14:35 Robert Marko
  2022-07-04 14:35 ` [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI Robert Marko
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Robert Marko @ 2022-07-04 14:35 UTC (permalink / raw)
  To: ulf.hansson, robh+dt, krzysztof.kozlowski+dt, agross,
	bjorn.andersson, konrad.dybcio, bhupesh.sharma, linux-mmc,
	devicetree, linux-kernel, linux-arm-msm
  Cc: Robert Marko

Commit "mmc: sdhci-msm: Reset GCC_SDCC_BCR register for SDHC" added
support for utilizing a hardware reset and parsing it from DT, however
the bindings were not updated along with it.

So, document the usage of "resets" property with the limit of only one
item.

Signed-off-by: Robert Marko <robimarko@gmail.com>
---
 Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
index 31a3ce208e1a..ca8814a80443 100644
--- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
+++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
@@ -116,6 +116,9 @@ properties:
     description:
       Should specify pin control groups used for this controller.
 
+  resets:
+    maxItems: 1
+
   qcom,ddr-config:
     $ref: /schemas/types.yaml#/definitions/uint32
     description: platform specific settings for DDR_CONFIG reg.
-- 
2.36.1


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

* [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI
  2022-07-04 14:35 [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets Robert Marko
@ 2022-07-04 14:35 ` Robert Marko
  2022-07-04 15:42   ` Krzysztof Kozlowski
                     ` (2 more replies)
  2022-07-04 15:42 ` [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets Krzysztof Kozlowski
  2022-07-12 11:09 ` Ulf Hansson
  2 siblings, 3 replies; 7+ messages in thread
From: Robert Marko @ 2022-07-04 14:35 UTC (permalink / raw)
  To: ulf.hansson, robh+dt, krzysztof.kozlowski+dt, agross,
	bjorn.andersson, konrad.dybcio, bhupesh.sharma, linux-mmc,
	devicetree, linux-kernel, linux-arm-msm
  Cc: Robert Marko

Add reset to SDHCI controller so it can be reset to avoid timeout issues
after software reset due to bootloader set configuration.

Signed-off-by: Robert Marko <robimarko@gmail.com>
---
 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
index ddafc7de6c5f..d685ca1969a3 100644
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
@@ -482,6 +482,7 @@ sdhc_1: mmc@7824900 {
 				 <&gcc GCC_SDCC1_APPS_CLK>,
 				 <&xo>;
 			clock-names = "iface", "core", "xo";
+			resets = <&gcc GCC_SDCC1_BCR>;
 			max-frequency = <384000000>;
 			mmc-ddr-1_8v;
 			mmc-hs200-1_8v;
-- 
2.36.1


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

* Re: [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets
  2022-07-04 14:35 [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets Robert Marko
  2022-07-04 14:35 ` [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI Robert Marko
@ 2022-07-04 15:42 ` Krzysztof Kozlowski
  2022-07-12 11:09 ` Ulf Hansson
  2 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-04 15:42 UTC (permalink / raw)
  To: Robert Marko, ulf.hansson, robh+dt, krzysztof.kozlowski+dt,
	agross, bjorn.andersson, konrad.dybcio, bhupesh.sharma,
	linux-mmc, devicetree, linux-kernel, linux-arm-msm

On 04/07/2022 16:35, Robert Marko wrote:
> Commit "mmc: sdhci-msm: Reset GCC_SDCC_BCR register for SDHC" added
> support for utilizing a hardware reset and parsing it from DT, however
> the bindings were not updated along with it.
> 
> So, document the usage of "resets" property with the limit of only one
> item.
> 
> Signed-off-by: Robert Marko <robimarko@gmail.com>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

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

* Re: [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI
  2022-07-04 14:35 ` [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI Robert Marko
@ 2022-07-04 15:42   ` Krzysztof Kozlowski
  2022-07-04 17:25   ` Konrad Dybcio
  2022-07-07  2:31   ` (subset) " Bjorn Andersson
  2 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-04 15:42 UTC (permalink / raw)
  To: Robert Marko, ulf.hansson, robh+dt, krzysztof.kozlowski+dt,
	agross, bjorn.andersson, konrad.dybcio, bhupesh.sharma,
	linux-mmc, devicetree, linux-kernel, linux-arm-msm

On 04/07/2022 16:35, Robert Marko wrote:
> Add reset to SDHCI controller so it can be reset to avoid timeout issues
> after software reset due to bootloader set configuration.
> 
> Signed-off-by: Robert Marko <robimarko@gmail.com>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

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

* Re: [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI
  2022-07-04 14:35 ` [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI Robert Marko
  2022-07-04 15:42   ` Krzysztof Kozlowski
@ 2022-07-04 17:25   ` Konrad Dybcio
  2022-07-07  2:31   ` (subset) " Bjorn Andersson
  2 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2022-07-04 17:25 UTC (permalink / raw)
  To: Robert Marko, ulf.hansson, robh+dt, krzysztof.kozlowski+dt,
	agross, bjorn.andersson, bhupesh.sharma, linux-mmc, devicetree,
	linux-kernel, linux-arm-msm



On 4.07.2022 16:35, Robert Marko wrote:
> Add reset to SDHCI controller so it can be reset to avoid timeout issues
> after software reset due to bootloader set configuration.
> 
> Signed-off-by: Robert Marko <robimarko@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>

Konrad

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

* Re: (subset) [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI
  2022-07-04 14:35 ` [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI Robert Marko
  2022-07-04 15:42   ` Krzysztof Kozlowski
  2022-07-04 17:25   ` Konrad Dybcio
@ 2022-07-07  2:31   ` Bjorn Andersson
  2 siblings, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2022-07-07  2:31 UTC (permalink / raw)
  To: linux-arm-msm, bhupesh.sharma, krzysztof.kozlowski+dt,
	konrad.dybcio, Robert Marko, robh+dt, agross, devicetree,
	linux-mmc, ulf.hansson, linux-kernel

On Mon, 4 Jul 2022 16:35:54 +0200, Robert Marko wrote:
> Add reset to SDHCI controller so it can be reset to avoid timeout issues
> after software reset due to bootloader set configuration.
> 
> 

Applied, thanks!

[2/2] arm64: dts: ipq8074: add reset to SDHCI
      commit: 730d55d861c63647df3cc9f77904a01c6719201b

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

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

* Re: [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets
  2022-07-04 14:35 [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets Robert Marko
  2022-07-04 14:35 ` [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI Robert Marko
  2022-07-04 15:42 ` [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets Krzysztof Kozlowski
@ 2022-07-12 11:09 ` Ulf Hansson
  2 siblings, 0 replies; 7+ messages in thread
From: Ulf Hansson @ 2022-07-12 11:09 UTC (permalink / raw)
  To: Robert Marko
  Cc: robh+dt, krzysztof.kozlowski+dt, agross, bjorn.andersson,
	konrad.dybcio, bhupesh.sharma, linux-mmc, devicetree,
	linux-kernel, linux-arm-msm

On Mon, 4 Jul 2022 at 16:35, Robert Marko <robimarko@gmail.com> wrote:
>
> Commit "mmc: sdhci-msm: Reset GCC_SDCC_BCR register for SDHC" added
> support for utilizing a hardware reset and parsing it from DT, however
> the bindings were not updated along with it.
>
> So, document the usage of "resets" property with the limit of only one
> item.
>
> Signed-off-by: Robert Marko <robimarko@gmail.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> index 31a3ce208e1a..ca8814a80443 100644
> --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
> @@ -116,6 +116,9 @@ properties:
>      description:
>        Should specify pin control groups used for this controller.
>
> +  resets:
> +    maxItems: 1
> +
>    qcom,ddr-config:
>      $ref: /schemas/types.yaml#/definitions/uint32
>      description: platform specific settings for DDR_CONFIG reg.
> --
> 2.36.1
>

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

end of thread, other threads:[~2022-07-12 11:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04 14:35 [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets Robert Marko
2022-07-04 14:35 ` [PATCH v2 2/2] arm64: dts: ipq8074: add reset to SDHCI Robert Marko
2022-07-04 15:42   ` Krzysztof Kozlowski
2022-07-04 17:25   ` Konrad Dybcio
2022-07-07  2:31   ` (subset) " Bjorn Andersson
2022-07-04 15:42 ` [PATCH v2 1/2] dt-bindings: mmc: sdhci-msm: document resets Krzysztof Kozlowski
2022-07-12 11:09 ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.