From: Krzysztof Kozlowski <krzk@kernel.org>
To: Chintan Vankar <c-vankar@ti.com>,
Thorsten Blum <thorsten.blum@linux.dev>,
Andrew Davis <afd@ti.com>, Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Rob Herring <robh@kernel.org>, Peter Rosin <peda@axentia.se>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
s-vadapalli@ti.com, vigneshr@ti.com, nm@ti.com,
danishanwar@ti.com
Subject: Re: [PATCH 1/2] devicetree: bindings: mux: reg-mux: Add support for new property 'mux-reg-masks-state'
Date: Thu, 5 Jun 2025 08:46:57 +0200 [thread overview]
Message-ID: <01538054-c50f-4dc3-ac2a-37b594940e6e@kernel.org> (raw)
In-Reply-To: <20250605063422.3813260-2-c-vankar@ti.com>
On 05/06/2025 08:34, Chintan Vankar wrote:
> The DT binding for reg-mux currenly requires specifying register offset
> and masks in the "mux-reg-masks" property, while corresponding register
> values are defined in the "idle-states" property. This approach imposes a
> constraint where "mux-reg-masks" and "idle-states" must remain
> synchroniszed, adding complexity when configuring specific registers or a
Typo
> set of registers with large memory spaces.
>
> Add support of a new property "mux-reg-masks-state" to remove this
> constraint, allowing offset, mask and value to be specified together as a
> tuple.
>
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching. For bindings, the preferred subjects are
explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
> Signed-off-by: Chintan Vankar <c-vankar@ti.com>
> ---
> .../devicetree/bindings/mux/reg-mux.yaml | 32 +++++++++++++++++--
> 1 file changed, 30 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mux/reg-mux.yaml b/Documentation/devicetree/bindings/mux/reg-mux.yaml
> index dc4be092fc2f..b029e2f28df0 100644
> --- a/Documentation/devicetree/bindings/mux/reg-mux.yaml
> +++ b/Documentation/devicetree/bindings/mux/reg-mux.yaml
> @@ -32,11 +32,39 @@ properties:
> - description: pre-shifted bitfield mask
> description: Each entry pair describes a single mux control.
>
> - idle-states: true
> + idle-states:
> + description: Each entry describes mux register state.
> +
> + mux-reg-masks-state:
> + $ref: /schemas/types.yaml#/definitions/uint32-matrix
> + items:
> + items:
> + - description: register offset
> + - description: pre-shifted bitfield mask
> + - description: register value to be set
> + description: This property is an extension of mux-reg-masks which
How one is supposed to use both (since this is extension)?
> + allows specifying register offset, mask and register
> + value to be set.
Anyway, this is getting too complex (next will be
mux-reg-masks-enable-state and mux-reg-masks-foo-state), just define
your own device schema.
> +
> +allOf:
> + - oneOf:
> + - required: [mux-reg-masks]
> + - required: [mux-reg-masks-state]
So not an extension but replacement?
> +
> + - if:
> + required: [mux-reg-masks-state]
> + then:
> + not:
> + required: [idle-states]
You cannot un-require a field. Where was it made required?
> +
> + - if:
> + required: [mux-reg-masks]
> + then:
> + properties:
> + idle-states: true
This is no-op. I have no clue what you wanted to express here.
>
> required:
> - compatible
> - - mux-reg-masks
> - '#mux-control-cells'
>
> additionalProperties: false
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-06-05 6:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-05 6:34 [PATCH 0/2] Add support for new property 'mux-reg-masks-state' for mmio mux Chintan Vankar
2025-06-05 6:34 ` [PATCH 1/2] devicetree: bindings: mux: reg-mux: Add support for new property 'mux-reg-masks-state' Chintan Vankar
2025-06-05 6:46 ` Krzysztof Kozlowski [this message]
2025-06-25 18:48 ` Rob Herring
2025-06-05 6:34 ` [PATCH 2/2] mux: mmio: Extend mmio-mux driver to configure mux with mux-reg-masks-state Chintan Vankar
2025-06-05 6:36 ` Krzysztof Kozlowski
2025-06-05 6:41 ` Chintan Vankar
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=01538054-c50f-4dc3-ac2a-37b594940e6e@kernel.org \
--to=krzk@kernel.org \
--cc=afd@ti.com \
--cc=c-vankar@ti.com \
--cc=conor+dt@kernel.org \
--cc=danishanwar@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nm@ti.com \
--cc=peda@axentia.se \
--cc=robh@kernel.org \
--cc=s-vadapalli@ti.com \
--cc=thorsten.blum@linux.dev \
--cc=vigneshr@ti.com \
/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
all inboxes | Powered by JetHome®