Re: [PATCH v2 2/5] dt-bindings: mfd: qcom,spmi-pmic: add compatibles for pm4124-codec
From: Rob Herring
Date: Mon Feb 23 2026 - 12:00:29 EST
On Mon, Feb 23, 2026 at 01:39:47PM +0000, Srinivas Kandagatla wrote:
> From: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
>
> Qualcomm Agatti SoC has PM4125 PMIC, which includes audio codec.
> Audio codec has TX and RX soundwire slave devices to connect to on-chip
> soundwire master.
>
> Add missing qcom,pm4125-codec compatible to pattern of audio-codec node
> properties in mfd qcom,spmi-pmic schema to complete the audio codec support.
>
> Signed-off-by: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
> [Srini: reworked the patch]
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> ---
> Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
> index e5931d18d998..f58a85562c26 100644
> --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
> +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
> @@ -145,7 +145,11 @@ patternProperties:
>
> "^audio-codec@[0-9a-f]+$":
> type: object
> - $ref: /schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
> + oneOf:
> + - $ref: /schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
> + - properties:
> + compatible:
> + const: qcom,pm4125-codec
Don't mix 2 styles. Just do:
type: object
properties:
compatible:
contains:
enum:
- qcom,pm4125-codec
- qcom,pm8916-wcd-analog-codec
required:
- compatible
>
> "^battery@[0-9a-f]+$":
> type: object
> --
> 2.47.3
>