[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241205-trickster-rebate-d5e64bc29992@spud>
Date: Thu, 5 Dec 2024 17:45:52 +0000
From: Conor Dooley <conor@...nel.org>
To: Dharma Balasubiramani <dharma.b@...rochip.com>
Cc: Ulf Hansson <ulf.hansson@...aro.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Claudiu Beznea <claudiu.beznea@...on.dev>,
Aubin Constans <aubin.constans@...rochip.com>,
linux-mmc@...r.kernel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dt-bindings: mmc: atmel,hsmci: Convert to json schema
On Thu, Dec 05, 2024 at 03:27:02PM +0530, Dharma Balasubiramani wrote:
> +patternProperties:
> + "^slot@[0-9]+$":
> + type: object
> + description: A slot node representing an MMC, SD, or SDIO slot.
> +
> + allOf:
> + - $ref: mmc-controller.yaml
> +
> + properties:
> + reg:
> + description: Slot ID.
> + minimum: 0
> +
> + bus-width:
> + description: Number of data lines connected to the controller.
> + enum: [1, 4, 8]
> +
> + cd-gpios:
> + description: GPIO used for card detection.
> +
> + cd-inverted:
> + type: boolean
This type conflicts with mmc-controller.yaml, it's a flag there.
> + description: Inverts the value of the card detection GPIO.
> +
> + wp-gpios:
> + description: GPIO used for write protection.
> +
> + required:
> + - reg
> + - bus-width
> +
> + unevaluatedProperties: false
Do you mean additionalProperties: false here? You listed properties
contained in mmc-controller.yaml which makes it seem like you're
restricting to this subset rather than allowing all properties - but you
need additionalProperties: false to do that.
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists