From: Conor Dooley <conor@kernel.org>
To: James Hilliard <james.hilliard1@gmail.com>
Cc: Lee Jones <lee@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
"Jagielski, Jedrzej" <jedrzej.jagielski@intel.com>,
Andre Przywara <andre.przywara@arm.com>,
Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
linux-sunxi@lists.linux.dev, mfd@lists.linux.dev,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v9 3/4] dt-bindings: mfd: x-powers: Describe AC200 functions
Date: Fri, 4 Sep 2026 16:50:08 +0100 [thread overview]
Message-ID: <20260904-overpass-clumsy-8ccdd5d4ca0e@spud> (raw)
In-Reply-To: <20260903-submit-ac200-mfd-v9-3-6b7ed278989c@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 7120 bytes --]
On Thu, Sep 03, 2026 at 02:09:42PM -0600, James Hilliard wrote:
> From: Jernej Skrabec <jernej.skrabec@gmail.com>
>
> Describe the AC200 audio codec and TV encoder as child nodes of the
> shared I2C register provider. Keep their analog supplies on the function
> consumers and describe the TV encoder display graph and optional bandgap
> calibration cell.
>
> Add the shared interrupt-controller properties and interrupt numbers needed
> by the TV encoder. The Ethernet PHY remains represented on its primary MDIO
> bus and is therefore not an MFD child.
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> .../devicetree/bindings/mfd/x-powers,ac200.yaml | 136 +++++++++++++++++++++
> MAINTAINERS | 1 +
> include/dt-bindings/mfd/x-powers,ac200.h | 13 ++
> 3 files changed, 150 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/x-powers,ac200.yaml b/Documentation/devicetree/bindings/mfd/x-powers,ac200.yaml
> index ca7a910b2c73..935dc07138cb 100644
> --- a/Documentation/devicetree/bindings/mfd/x-powers,ac200.yaml
> +++ b/Documentation/devicetree/bindings/mfd/x-powers,ac200.yaml
> @@ -28,15 +28,114 @@ properties:
> be 24 or 27 MHz, matching the rates encoded by the documented EPHY clock
> selector.
>
> + interrupts:
> + maxItems: 1
> + description:
> + The shared open-drain INTB output for the TV encoder, Ethernet PHY and
> + RTC interrupts.
> +
> + interrupt-controller: true
> +
> + '#interrupt-cells':
> + const: 1
> + description:
> + The interrupt number, as defined in
> + include/dt-bindings/mfd/x-powers,ac200.h.
> +
> + codec:
> + type: object
> + $ref: /schemas/sound/dai-common.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + compatible:
> + const: x-powers,ac200-codec
> +
> + '#sound-dai-cells':
> + const: 0
> +
> + ac-ldoin-supply:
> + description: The 3.3 V supply for the audio codec LDO input.
> +
> + required:
> + - compatible
> + - '#sound-dai-cells'
> + - ac-ldoin-supply
> +
> + tv-encoder:
> + type: object
> + additionalProperties: false
> +
> + properties:
> + compatible:
> + const: x-powers,ac200-tve
> +
> + interrupts:
> + maxItems: 1
> + description: Cable detection interrupt.
Given the example, this looks like a hack.
Is this mfd actually an interrupt controller, or is that just part of
this hack too?
Quite frankly, I am not really sure why either the tv-encoder or codec
have dedicated child nodes, they don't appear to have conflicting
properties.
Additionally, why is this not part of patch 1? Add the binding in a
complete state from the get-go. On that basis, at least,
pw-bot: changes-requested
Cheers,
Conor.
> +
> + tv-vcc-supply:
> + description: The 3.3 V supply for the composite-video DAC.
> +
> + nvmem-cells:
> + maxItems: 1
> +
> + nvmem-cell-names:
> + items:
> + - const: bandgap
> +
> + ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> +
> + properties:
> + port@0:
> + $ref: /schemas/graph.yaml#/properties/port
> + description: Input from the display pipeline, carrying CCIR656.
> +
> + port@1:
> + $ref: /schemas/graph.yaml#/properties/port
> + description: Output to the composite-video connector.
> +
> + required:
> + - port@0
> + - port@1
> +
> + required:
> + - compatible
> + - interrupts
> + - tv-vcc-supply
> + - ports
> +
> + dependencies:
> + nvmem-cells: [ nvmem-cell-names ]
> + nvmem-cell-names: [ nvmem-cells ]
> +
> required:
> - compatible
> - reg
> - clocks
>
> +allOf:
> + - if:
> + required:
> + - tv-encoder
> + then:
> + required:
> + - interrupts
> + - interrupt-controller
> + - '#interrupt-cells'
> +
> +dependencies:
> + interrupt-controller: [ '#interrupt-cells', interrupts ]
> + '#interrupt-cells': [ interrupt-controller ]
> +
> additionalProperties: false
>
> examples:
> - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/mfd/x-powers,ac200.h>
> +
> i2c {
> #address-cells = <1>;
> #size-cells = <0>;
> @@ -45,6 +144,43 @@ examples:
> compatible = "x-powers,ac200";
> reg = <0x10>;
> clocks = <&pwm 5>;
> + interrupt-parent = <&pio>;
> + interrupts = <1 20 IRQ_TYPE_LEVEL_LOW>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> +
> + codec {
> + compatible = "x-powers,ac200-codec";
> + #sound-dai-cells = <0>;
> + ac-ldoin-supply = <®_aldo2>;
> + };
> +
> + tv-encoder {
> + compatible = "x-powers,ac200-tve";
> + interrupts = <AC200_IRQ_TVE>;
> + tv-vcc-supply = <®_aldo2>;
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> +
> + tve_in: endpoint {
> + remote-endpoint = <&tcon_out_tve>;
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> +
> + tve_out: endpoint {
> + remote-endpoint = <&composite_in>;
> + };
> + };
> + };
> + };
> };
> };
> ...
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 1d03b0060bda..8a48f6a1e593 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -29511,6 +29511,7 @@ L: linux-sunxi@lists.linux.dev
> S: Maintained
> F: Documentation/devicetree/bindings/mfd/x-powers,ac200.yaml
> F: drivers/mfd/ac200.c
> +F: include/dt-bindings/mfd/x-powers,ac200.h
>
> X-POWERS AXP288 PMIC DRIVERS
> M: Hans de Goede <hansg@kernel.org>
> diff --git a/include/dt-bindings/mfd/x-powers,ac200.h b/include/dt-bindings/mfd/x-powers,ac200.h
> new file mode 100644
> index 000000000000..cc59e2ab4912
> --- /dev/null
> +++ b/include/dt-bindings/mfd/x-powers,ac200.h
> @@ -0,0 +1,13 @@
> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
> +/*
> + * Interrupt numbers of the X-Powers AC200 interrupt controller.
> + */
> +
> +#ifndef _DT_BINDINGS_MFD_X_POWERS_AC200_H
> +#define _DT_BINDINGS_MFD_X_POWERS_AC200_H
> +
> +#define AC200_IRQ_TVE 0
> +#define AC200_IRQ_EPHY 1
> +#define AC200_IRQ_RTC 2
> +
> +#endif /* _DT_BINDINGS_MFD_X_POWERS_AC200_H */
>
> --
> 2.53.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-09-04 15:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 20:09 [PATCH v9 0/4] mfd: add X-Powers AC200 support James Hilliard
2026-09-03 20:09 ` [PATCH v9 1/4] dt-bindings: mfd: x-powers: Add AC200 James Hilliard
2026-09-03 20:17 ` sashiko-bot
2026-09-03 20:09 ` [PATCH v9 2/4] mfd: ac200: Add X-Powers AC200 support James Hilliard
2026-09-03 20:21 ` sashiko-bot
2026-09-03 20:09 ` [PATCH v9 3/4] dt-bindings: mfd: x-powers: Describe AC200 functions James Hilliard
2026-09-03 20:14 ` sashiko-bot
2026-09-04 15:50 ` Conor Dooley [this message]
2026-09-04 17:06 ` James Hilliard
2026-09-07 18:28 ` Conor Dooley
2026-09-07 20:50 ` James Hilliard
2026-09-03 20:09 ` [PATCH v9 4/4] mfd: ac200: Add codec and TV encoder cells James Hilliard
2026-09-03 20:20 ` 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=20260904-overpass-clumsy-8ccdd5d4ca0e@spud \
--to=conor@kernel.org \
--cc=andre.przywara@arm.com \
--cc=andrew@lunn.ch \
--cc=arnd@arndb.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=james.hilliard1@gmail.com \
--cc=jedrzej.jagielski@intel.com \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mfd@lists.linux.dev \
--cc=robh@kernel.org \
--cc=wens@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.