linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mmc: Add missing description for clk_in/out_sd1
@ 2020-08-24  8:25 Michal Simek
  2020-08-25  4:58 ` Manish Narani
  2020-08-25  9:38 ` Ulf Hansson
  0 siblings, 2 replies; 3+ messages in thread
From: Michal Simek @ 2020-08-24  8:25 UTC (permalink / raw)
  To: linux-kernel, monstr, michal.simek, git, manish.narani
  Cc: Adrian Hunter, Rob Herring, Ulf Hansson, Wan Ahmad Zainie,
	devicetree, linux-mmc

The commit a8fdb80f4d47 ("arm64: zynqmp: Add ZynqMP SDHCI compatible
string") added clock-output-names for both SDHCIs before DT binding yaml
conversion. But only clk_in/out_sd0 clock names have been covered by
DT binding which ends up with dt yaml checking warnings as:
From schema: .../Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
... mmc@ff170000: clock-output-names:0: 'clk_out_sd0' was expected
... mmc@ff170000: clock-output-names:1: 'clk_in_sd0' was expected

Fixes: 16ecd8f33c6e ("dt-bindings: mmc: convert arasan sdhci bindings to yaml")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 .../devicetree/bindings/mmc/arasan,sdhci.yaml          | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml b/Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
index 5887c917d480..58fe9d02a781 100644
--- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
+++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
@@ -30,9 +30,13 @@ allOf:
     then:
       properties:
         clock-output-names:
-          items:
-            - const: clk_out_sd0
-            - const: clk_in_sd0
+          oneOf:
+            - items:
+              - const: clk_out_sd0
+              - const: clk_in_sd0
+            - items:
+              - const: clk_out_sd1
+              - const: clk_in_sd1
 
 properties:
   compatible:
-- 
2.28.0


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

* RE: [PATCH] dt-bindings: mmc: Add missing description for clk_in/out_sd1
  2020-08-24  8:25 [PATCH] dt-bindings: mmc: Add missing description for clk_in/out_sd1 Michal Simek
@ 2020-08-25  4:58 ` Manish Narani
  2020-08-25  9:38 ` Ulf Hansson
  1 sibling, 0 replies; 3+ messages in thread
From: Manish Narani @ 2020-08-25  4:58 UTC (permalink / raw)
  To: Michal Simek, linux-kernel, monstr, Michal Simek, git
  Cc: Adrian Hunter, Rob Herring, Ulf Hansson, Wan Ahmad Zainie,
	devicetree, linux-mmc



> -----Original Message-----
> From: Michal Simek <monstr@monstr.eu> On Behalf Of Michal Simek
> Sent: Monday, August 24, 2020 1:55 PM
> To: linux-kernel@vger.kernel.org; monstr@monstr.eu; Michal Simek
> <michals@xilinx.com>; git <git@xilinx.com>; Manish Narani
> <MNARANI@xilinx.com>
> Cc: Adrian Hunter <adrian.hunter@intel.com>; Rob Herring
> <robh+dt@kernel.org>; Ulf Hansson <ulf.hansson@linaro.org>; Wan Ahmad
> Zainie <wan.ahmad.zainie.wan.mohamad@intel.com>;
> devicetree@vger.kernel.org; linux-mmc@vger.kernel.org
> Subject: [PATCH] dt-bindings: mmc: Add missing description for clk_in/out_sd1
> 
> The commit a8fdb80f4d47 ("arm64: zynqmp: Add ZynqMP SDHCI compatible
> string") added clock-output-names for both SDHCIs before DT binding yaml
> conversion. But only clk_in/out_sd0 clock names have been covered by
> DT binding which ends up with dt yaml checking warnings as:
> From schema: .../Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
> ... mmc@ff170000: clock-output-names:0: 'clk_out_sd0' was expected
> ... mmc@ff170000: clock-output-names:1: 'clk_in_sd0' was expected
> 
> Fixes: 16ecd8f33c6e ("dt-bindings: mmc: convert arasan sdhci bindings to yaml")
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Reviewed-by: Manish Narani <manish.narani@xilinx.com>



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

* Re: [PATCH] dt-bindings: mmc: Add missing description for clk_in/out_sd1
  2020-08-24  8:25 [PATCH] dt-bindings: mmc: Add missing description for clk_in/out_sd1 Michal Simek
  2020-08-25  4:58 ` Manish Narani
@ 2020-08-25  9:38 ` Ulf Hansson
  1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2020-08-25  9:38 UTC (permalink / raw)
  To: Michal Simek
  Cc: Linux Kernel Mailing List, Michal Simek, git, Manish Narani,
	Adrian Hunter, Rob Herring, Wan Ahmad Zainie, DTML, linux-mmc

On Mon, 24 Aug 2020 at 10:25, Michal Simek <michal.simek@xilinx.com> wrote:
>
> The commit a8fdb80f4d47 ("arm64: zynqmp: Add ZynqMP SDHCI compatible
> string") added clock-output-names for both SDHCIs before DT binding yaml
> conversion. But only clk_in/out_sd0 clock names have been covered by
> DT binding which ends up with dt yaml checking warnings as:
> From schema: .../Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
> ... mmc@ff170000: clock-output-names:0: 'clk_out_sd0' was expected
> ... mmc@ff170000: clock-output-names:1: 'clk_in_sd0' was expected
>
> Fixes: 16ecd8f33c6e ("dt-bindings: mmc: convert arasan sdhci bindings to yaml")
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Applied for fixes, thanks!

Kind regards
Uffe


> ---
>
>  .../devicetree/bindings/mmc/arasan,sdhci.yaml          | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml b/Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
> index 5887c917d480..58fe9d02a781 100644
> --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
> +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml
> @@ -30,9 +30,13 @@ allOf:
>      then:
>        properties:
>          clock-output-names:
> -          items:
> -            - const: clk_out_sd0
> -            - const: clk_in_sd0
> +          oneOf:
> +            - items:
> +              - const: clk_out_sd0
> +              - const: clk_in_sd0
> +            - items:
> +              - const: clk_out_sd1
> +              - const: clk_in_sd1
>
>  properties:
>    compatible:
> --
> 2.28.0
>

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

end of thread, other threads:[~2020-08-25  9:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24  8:25 [PATCH] dt-bindings: mmc: Add missing description for clk_in/out_sd1 Michal Simek
2020-08-25  4:58 ` Manish Narani
2020-08-25  9:38 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).