public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Charan Pedumuru <charan.pedumuru@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Peter Griffin <peter.griffin@linaro.org>,
	linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: mmc: st,sdhci: convert to DT schema
Date: Thu, 23 Apr 2026 20:56:39 +0530	[thread overview]
Message-ID: <4cbda428-ba64-434a-836d-9356980326ea@gmail.com> (raw)
In-Reply-To: <20260416-merciful-bug-of-fantasy-f08d00@quoll>



On 16-04-2026 14:48, Krzysztof Kozlowski wrote:
> On Thu, Apr 09, 2026 at 07:43:16AM +0000, Charan Pedumuru wrote:
>> +properties:
>> +  compatible:
>> +    oneOf:
>> +      - const: st,sdhci
>> +      - items:
>> +          - const: st,sdhci-stih407
>> +          - const: st,sdhci
>> +
>> +  reg:
>> +    minItems: 1
>> +    maxItems: 2
> 
> replace maxItems with a list with description

maxItems is required, dt_check fails without it and I can add the description.

> 
>> +
>> +  reg-names:
>> +    minItems: 1
>> +    maxItems: 2
>> +    items:
>> +      enum:
> 
> List order is not flexible. The only flexibility is presence of top-mmc-delay

Okay.

> 
>> +        - mmc
>> +        - top-mmc-delay
>> +
>> +  clocks:
>> +    minItems: 1
>> +    maxItems: 2
>> +
>> +  clock-names:
>> +    minItems: 1
>> +    maxItems: 2
>> +    items:
>> +      enum:
> 
> Same here

Yeah, I will define them as const

> 
>> +        - mmc
>> +        - icn
>> +
>> +  interrupts:
>> +    maxItems: 1
>> +
>> +  interrupt-names:
>> +    const: mmcirq
>> +
>> +  pinctrl-names:
>> +    const: default
> 
> Drop

Okay.

> 
>> +
>> +  resets:
>> +    maxItems: 1
>> +    description: Phandle to reset line of host controller.
> 
> Drop description

Sure.

> 
>> +
>> +  vqmmc-supply:
>> +    description: Regulator supplying I/O voltage (Vcc/Vdd for SD/eMMC).
>> +
>> +  non-removable:
>> +    type: boolean
>> +    description:
>> +      Indicates a non-removable device (e.g., eMMC). Also used for mmcss config.
>> +
>> +  bus-width:
>> +    description: Number of data lines.
>> +    enum: [1, 4, 8]
>> +
>> +  max-frequency:
>> +    enum: [50000000, 100000000, 200000000]
>> +    default: 50000000
>> +    description:
>> +      Maximum bus frequency. Used to configure CCONFIG3 in mmcss.
>> +
>> +  sd-uhs-sdr50:
>> +    type: boolean
>> +
>> +  sd-uhs-sdr104:
>> +    type: boolean
>> +
>> +  sd-uhs-ddr50:
>> +    type: boolean
> 
> No, drop all above. Look how MMC bindings are written.

Okay.

> 
>> +
>> +required:
>> +  - compatible
>> +  - reg
>> +  - clocks
>> +  - clock-names
>> +  - interrupts
>> +  - interrupt-names
>> +  - pinctrl-names
>> +
> 
> Missing allOf with $ref to mmc-controller

Okay, then in that case I need to change the name of the node.

> 
>> +additionalProperties: false
>> +
>> +examples:
>> +  - |
>> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
>> +    #include <dt-bindings/clock/stih407-clks.h>
>> +    sdhci@9060000 {
> 
> Wrong name. Look at other examples. You might need to fix DTS.

Sure, I will send a cleanup patch replacing the sdhci node name to mmc for these compatibles in a separate patch.

> 
> Best regards,
> Krzysztof
> 

-- 
Best Regards,
Charan.


  reply	other threads:[~2026-04-23 15:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-09  7:43 [PATCH] dt-bindings: mmc: st,sdhci: convert to DT schema Charan Pedumuru
2026-04-16  9:18 ` Krzysztof Kozlowski
2026-04-23 15:26   ` Charan Pedumuru [this message]
2026-04-23 17:23     ` Krzysztof Kozlowski

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=4cbda428-ba64-434a-836d-9356980326ea@gmail.com \
    --to=charan.pedumuru@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=robh@kernel.org \
    --cc=ulf.hansson@linaro.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