* [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property
@ 2026-03-05 23:47 Lee Yongjun
2026-03-06 0:03 ` Ray Jui
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Lee Yongjun @ 2026-03-05 23:47 UTC (permalink / raw)
To: ulf.hansson, robh
Cc: krzk+dt, conor+dt, rjui, sbranden, bcm-kernel-feedback-list,
nsaenz, linux-mmc, devicetree, linux-arm-kernel, linux-kernel,
Lee Yongjun
The Broadcom iProc SDHCI controller supports DMA, but its binding
schema does not allow the 'dma-coherent' property.
As a result, dtbs_check reports the following validation errors
on the Northstar2 SoC:
mmc@66420000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
are not allowed ('dma-coherent' was unexpected)
mmc@66430000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
are not allowed ('dma-coherent' was unexpected)
Allow the 'dma-coherent' property in the schema to fix the validation
errors and accurately reflect the hardware capability.
Signed-off-by: Lee Yongjun <jun85566@gmail.com>
---
Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
index 2f63f2cdeb71..579e44843404 100644
--- a/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
+++ b/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
@@ -38,6 +38,8 @@ properties:
type: boolean
description: Specifies that controller should use auto CMD12
+ dma-coherent: true
+
required:
- compatible
- reg
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property
2026-03-05 23:47 [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property Lee Yongjun
@ 2026-03-06 0:03 ` Ray Jui
2026-03-06 8:45 ` Krzysztof Kozlowski
2026-03-06 0:06 ` Florian Fainelli
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Ray Jui @ 2026-03-06 0:03 UTC (permalink / raw)
To: Lee Yongjun
Cc: ulf.hansson, robh, krzk+dt, conor+dt, rjui, sbranden,
bcm-kernel-feedback-list, nsaenz, linux-mmc, devicetree,
linux-arm-kernel, linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 1586 bytes --]
On Thu, Mar 5, 2026 at 3:47 PM Lee Yongjun <jun85566@gmail.com> wrote:
> The Broadcom iProc SDHCI controller supports DMA, but its binding
> schema does not allow the 'dma-coherent' property.
>
> As a result, dtbs_check reports the following validation errors
> on the Northstar2 SoC:
>
> mmc@66420000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> are not allowed ('dma-coherent' was unexpected)
> mmc@66430000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> are not allowed ('dma-coherent' was unexpected)
>
> Allow the 'dma-coherent' property in the schema to fix the validation
> errors and accurately reflect the hardware capability.
>
> Signed-off-by: Lee Yongjun <jun85566@gmail.com>
> ---
> Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
> b/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
> index 2f63f2cdeb71..579e44843404 100644
> --- a/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
> +++ b/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
> @@ -38,6 +38,8 @@ properties:
> type: boolean
> description: Specifies that controller should use auto CMD12
>
> + dma-coherent: true
> +
>
Yeah for Broadcom iProc SDHCI on ARM64 platforms (including NS2), cache
coherent DMA is supported (as opposed to other 32-bit based ARM platforms).
Change looks good to me. Thanks!
> required:
> - compatible
> - reg
> --
> 2.34.1
>
>
[-- Attachment #1.2: Type: text/html, Size: 2278 bytes --]
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5449 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property
2026-03-05 23:47 [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property Lee Yongjun
2026-03-06 0:03 ` Ray Jui
@ 2026-03-06 0:06 ` Florian Fainelli
2026-03-06 1:21 ` Rob Herring (Arm)
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2026-03-06 0:06 UTC (permalink / raw)
To: Lee Yongjun, ulf.hansson, robh
Cc: krzk+dt, conor+dt, rjui, sbranden, bcm-kernel-feedback-list,
nsaenz, linux-mmc, devicetree, linux-arm-kernel, linux-kernel
On 3/5/26 15:47, Lee Yongjun wrote:
> The Broadcom iProc SDHCI controller supports DMA, but its binding
> schema does not allow the 'dma-coherent' property.
>
> As a result, dtbs_check reports the following validation errors
> on the Northstar2 SoC:
>
> mmc@66420000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> are not allowed ('dma-coherent' was unexpected)
> mmc@66430000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> are not allowed ('dma-coherent' was unexpected)
>
> Allow the 'dma-coherent' property in the schema to fix the validation
> errors and accurately reflect the hardware capability.
>
> Signed-off-by: Lee Yongjun <jun85566@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property
2026-03-05 23:47 [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property Lee Yongjun
2026-03-06 0:03 ` Ray Jui
2026-03-06 0:06 ` Florian Fainelli
@ 2026-03-06 1:21 ` Rob Herring (Arm)
2026-03-06 8:42 ` Krzysztof Kozlowski
2026-03-06 11:06 ` Lee Yongjun
4 siblings, 0 replies; 8+ messages in thread
From: Rob Herring (Arm) @ 2026-03-06 1:21 UTC (permalink / raw)
To: Lee Yongjun
Cc: bcm-kernel-feedback-list, linux-arm-kernel, rjui, conor+dt,
krzk+dt, sbranden, linux-mmc, ulf.hansson, devicetree, nsaenz,
linux-kernel
On Fri, 06 Mar 2026 08:47:03 +0900, Lee Yongjun wrote:
> The Broadcom iProc SDHCI controller supports DMA, but its binding
> schema does not allow the 'dma-coherent' property.
>
> As a result, dtbs_check reports the following validation errors
> on the Northstar2 SoC:
>
> mmc@66420000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> are not allowed ('dma-coherent' was unexpected)
> mmc@66430000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> are not allowed ('dma-coherent' was unexpected)
>
> Allow the 'dma-coherent' property in the schema to fix the validation
> errors and accurately reflect the hardware capability.
>
> Signed-off-by: Lee Yongjun <jun85566@gmail.com>
> ---
> Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
./Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml:46:3: [error] duplication of key "dma-coherent" in mapping (key-duplicates)
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml: ignoring, error parsing file
./Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml:46:3: found duplicate key "dma-coherent" with value "True" (original value: "True")
make[2]: *** Deleting file 'Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.example.dts'
Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml:46:3: found duplicate key "dma-coherent" with value "True" (original value: "True")
make[2]: *** [Documentation/devicetree/bindings/Makefile:26: Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.example.dts] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/builds/robherring/dt-review-ci/linux/Makefile:1605: dt_binding_check] Error 2
make: *** [Makefile:248: __sub-make] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.kernel.org/project/devicetree/patch/20260305234703.38490-1-jun85566@gmail.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property
2026-03-05 23:47 [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property Lee Yongjun
` (2 preceding siblings ...)
2026-03-06 1:21 ` Rob Herring (Arm)
@ 2026-03-06 8:42 ` Krzysztof Kozlowski
2026-03-06 8:43 ` Krzysztof Kozlowski
2026-03-06 11:06 ` Lee Yongjun
4 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-06 8:42 UTC (permalink / raw)
To: Lee Yongjun
Cc: ulf.hansson, robh, krzk+dt, conor+dt, rjui, sbranden,
bcm-kernel-feedback-list, nsaenz, linux-mmc, devicetree,
linux-arm-kernel, linux-kernel
On Fri, Mar 06, 2026 at 08:47:03AM +0900, Lee Yongjun wrote:
> The Broadcom iProc SDHCI controller supports DMA, but its binding
> schema does not allow the 'dma-coherent' property.
>
> As a result, dtbs_check reports the following validation errors
> on the Northstar2 SoC:
>
> mmc@66420000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> are not allowed ('dma-coherent' was unexpected)
> mmc@66430000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> are not allowed ('dma-coherent' was unexpected)
>
> Allow the 'dma-coherent' property in the schema to fix the validation
> errors and accurately reflect the hardware capability.
So is the hardware capable of coherent DMA or not? Entire commit msg is
silent about this and says how you fix warning without actually telling
us that it is a correct fix.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property
2026-03-06 8:42 ` Krzysztof Kozlowski
@ 2026-03-06 8:43 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-06 8:43 UTC (permalink / raw)
To: Lee Yongjun
Cc: ulf.hansson, robh, krzk+dt, conor+dt, rjui, sbranden,
bcm-kernel-feedback-list, nsaenz, linux-mmc, devicetree,
linux-arm-kernel, linux-kernel
On 06/03/2026 09:42, Krzysztof Kozlowski wrote:
> On Fri, Mar 06, 2026 at 08:47:03AM +0900, Lee Yongjun wrote:
>> The Broadcom iProc SDHCI controller supports DMA, but its binding
>> schema does not allow the 'dma-coherent' property.
>>
>> As a result, dtbs_check reports the following validation errors
>> on the Northstar2 SoC:
>>
>> mmc@66420000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
>> are not allowed ('dma-coherent' was unexpected)
>> mmc@66430000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
>> are not allowed ('dma-coherent' was unexpected)
>>
>> Allow the 'dma-coherent' property in the schema to fix the validation
>> errors and accurately reflect the hardware capability.
>
> So is the hardware capable of coherent DMA or not? Entire commit msg is
> silent about this and says how you fix warning without actually telling
> us that it is a correct fix.
>
Heh, why am I reviewing it, it's obviously non-tested. Code is already
there!
NAK
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property
2026-03-06 0:03 ` Ray Jui
@ 2026-03-06 8:45 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-06 8:45 UTC (permalink / raw)
To: Ray Jui
Cc: Lee Yongjun, ulf.hansson, robh, krzk+dt, conor+dt, rjui, sbranden,
bcm-kernel-feedback-list, nsaenz, linux-mmc, devicetree,
linux-arm-kernel, linux-kernel
On Thu, Mar 05, 2026 at 04:03:48PM -0800, Ray Jui wrote:
> On Thu, Mar 5, 2026 at 3:47 PM Lee Yongjun <jun85566@gmail.com> wrote:
>
> > The Broadcom iProc SDHCI controller supports DMA, but its binding
> > schema does not allow the 'dma-coherent' property.
> >
> > As a result, dtbs_check reports the following validation errors
> > on the Northstar2 SoC:
> >
> > mmc@66420000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> > are not allowed ('dma-coherent' was unexpected)
> > mmc@66430000 (brcm,sdhci-iproc-cygnus): Unevaluated properties
> > are not allowed ('dma-coherent' was unexpected)
> >
> > Allow the 'dma-coherent' property in the schema to fix the validation
> > errors and accurately reflect the hardware capability.
> >
> > Signed-off-by: Lee Yongjun <jun85566@gmail.com>
> > ---
> > Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
> > b/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
> > index 2f63f2cdeb71..579e44843404 100644
> > --- a/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
> > +++ b/Documentation/devicetree/bindings/mmc/brcm,iproc-sdhci.yaml
> > @@ -38,6 +38,8 @@ properties:
> > type: boolean
> > description: Specifies that controller should use auto CMD12
> >
> > + dma-coherent: true
> > +
> >
>
> Yeah for Broadcom iProc SDHCI on ARM64 platforms (including NS2), cache
> coherent DMA is supported (as opposed to other 32-bit based ARM platforms).
>
> Change looks good to me. Thanks!
Just open the file before giving blanket reviews or how are you exactly
reviewing without knowing what is there? This was already fixed and
this patch is obviously wrong.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property
2026-03-05 23:47 [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property Lee Yongjun
` (3 preceding siblings ...)
2026-03-06 8:42 ` Krzysztof Kozlowski
@ 2026-03-06 11:06 ` Lee Yongjun
4 siblings, 0 replies; 8+ messages in thread
From: Lee Yongjun @ 2026-03-06 11:06 UTC (permalink / raw)
To: krzk+dt
Cc: robh, rjui, florian.fainelli, sbranden, bcm-kernel-feedback-list,
nsaenz, ulf.hansson, linux-mmc, devicetree, linux-arm-kernel,
linux-kernel
Dear Krzysztof, Rob, and Ray,
Thank you for the feedback. I've checked the linux-next tree and confirmed
that Rob Herring's patch (commit acb52756e90c) already addresses this issue.
I apologize for the redundant submission. Please disregard this patch.
Best regards,
Lee Yongjun
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-03-06 11:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 23:47 [PATCH] dt-bindings: mmc: brcm,iproc-sdhci: allow dma-coherent property Lee Yongjun
2026-03-06 0:03 ` Ray Jui
2026-03-06 8:45 ` Krzysztof Kozlowski
2026-03-06 0:06 ` Florian Fainelli
2026-03-06 1:21 ` Rob Herring (Arm)
2026-03-06 8:42 ` Krzysztof Kozlowski
2026-03-06 8:43 ` Krzysztof Kozlowski
2026-03-06 11:06 ` Lee Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox