From: Rob Herring <robh@kernel.org>
To: Linus Walleij <linusw@kernel.org>
Cc: "Lee Jones" <lee@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"William Zhang" <william.zhang@broadcom.com>,
"Anand Gore" <anand.gore@broadcom.com>,
"Kursad Oney" <kursad.oney@broadcom.com>,
"Florian Fainelli" <florian.fainelli@broadcom.com>,
"Rafał Miłecki" <rafal@milecki.pl>,
"Broadcom internal kernel review list"
<bcm-kernel-feedback-list@broadcom.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Brian Masney" <bmasney+clk@redhat.com>,
"Jerome Brunet" <jbrunet+clk@baylibre.com>,
"Guenter Roeck" <linux@roeck-us.net>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Jonathan Corbet" <corbet@lwn.net>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Ulf Hansson" <ulfh@kernel.org>,
"Benjamin Larsson" <benjamin.larsson@genexis.eu>,
mfd@lists.linux.dev, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
linux-hwmon@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH v4 2/7] dt-bindings: mfd: Describe the BCM6846 PMC complex
Date: Wed, 11 Nov 2026 11:15:40 -0600 [thread overview]
Message-ID: <20261111171540.GA3718375-robh@kernel.org> (raw)
In-Reply-To: <20261111-xg6846b-bcmbca-xrdp-reset-v4-2-17035a5e8ad2@kernel.org>
On Wed, Nov 11, 2026 at 12:00:43PM +0100, Linus Walleij wrote:
> The third generation Power Management Controller (PMC3) has
> different subdevices.
>
> Identify the parent with the BCM6846-specific "brcm,bcm6846-pmc"
> compatible.
>
> Describe the complex as a simple-mfd with a PMB bus child owning its
> register resource. Include the PMB power, clock and reset controllers and
> PVTMON, with its acquisition clock and reset resources.
>
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---
> .../devicetree/bindings/mfd/brcm,bcm6846-pmc.yaml | 87 ++++++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 88 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm6846-pmc.yaml b/Documentation/devicetree/bindings/mfd/brcm,bcm6846-pmc.yaml
> new file mode 100644
> index 000000000000..6082e30d37ec
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/brcm,bcm6846-pmc.yaml
> @@ -0,0 +1,87 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/brcm,bcm6846-pmc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom BCM6846 Power Management Controller
> +
> +maintainers:
> + - Linus Walleij <linusw@kernel.org>
> +
> +description:
> + The third generation Power Management Controller (PMC3) contains several
> + register banks. This binding describes the Power Management Bus (PMB)
> + interface within Procmon. The PMB child owns its register bank. The parent
> + provides address translation and does not own a register bank.
> +
> +properties:
> + compatible:
> + items:
> + - const: brcm,bcm6846-pmc
> + - const: simple-mfd
> +
> + ranges:
> + maxItems: 1
> +
> + "#address-cells":
> + const: 1
> +
> + "#size-cells":
> + const: 1
> +
> +patternProperties:
> + '^bus@[0-9a-f]+$':
> + $ref: /schemas/soc/bcm/brcm,bcm6846-pmb.yaml#
> + description: PMB configuration, keyhole and address mapping registers
This causes the bus node to be validated twice (once here and once when
applied by compatible). And then because the pmb schema does the same
thing with its child nodes, those will be validated 3 times. Twice I can
live with, 3 times not so much. The fix for all this is either merge the
schemas to 1 file or do:
'^bus@[0-9a-f]+$':
type: object
additionalProperties: true
properties:
compatible:
contains:
const: brcm,bcm6846-pmb
required:
- compatible
That ensures the node contains enough to apply the child schema.
Since there's 3 levels here, you could also do some combination of both.
Rob
next prev parent reply other threads:[~2026-11-11 17:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 11:00 [PATCH v4 0/7] BCMBCA PMB power, clock, reset and hardware monitoring support Linus Walleij
2026-11-11 11:00 ` [PATCH v4 1/7] dt-bindings: soc: Describe the BCM6846 Power Management Bus Linus Walleij
2026-11-11 11:11 ` sashiko-bot
2026-11-11 11:52 ` Linus Walleij
2026-11-11 17:05 ` Rob Herring (Arm)
2026-11-11 11:00 ` [PATCH v4 2/7] dt-bindings: mfd: Describe the BCM6846 PMC complex Linus Walleij
2026-11-11 11:06 ` sashiko-bot
2026-11-11 17:15 ` Rob Herring [this message]
2026-11-11 11:00 ` [PATCH v4 3/7] mfd: bcmbca-pmb: Add a shared BCMBCA PMC3 PMB transport Linus Walleij
2026-11-11 11:09 ` sashiko-bot
2026-11-11 11:00 ` [PATCH v4 4/7] pmdomain: bcm: Add BCMBCA PMB power domains Linus Walleij
2026-11-11 11:08 ` sashiko-bot
2026-11-11 11:00 ` [PATCH v4 5/7] reset: Add BCMBCA block resets through the PMB Linus Walleij
2026-11-11 11:08 ` sashiko-bot
2026-11-11 11:00 ` [PATCH v4 6/7] clk: bcm: Add BCMBCA PMB clocks Linus Walleij
2026-11-11 11:11 ` sashiko-bot
2026-11-11 11:00 ` [PATCH v4 7/7] hwmon: Add Broadcom PMB PVTMON monitoring Linus Walleij
2026-11-11 11:10 ` sashiko-bot
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=20261111171540.GA3718375-robh@kernel.org \
--to=robh@kernel.org \
--cc=anand.gore@broadcom.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=benjamin.larsson@genexis.eu \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=kursad.oney@broadcom.com \
--cc=lee@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mfd@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=rafal@milecki.pl \
--cc=rdunlap@infradead.org \
--cc=sboyd@kernel.org \
--cc=ulfh@kernel.org \
--cc=william.zhang@broadcom.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