Re: [PATCH v2 08/11] dt-bindings: mfd: motorola-cpcap: convert to DT schema

From: Svyatoslav Ryhel

Date: Thu Feb 12 2026 - 00:31:04 EST




11 лютого 2026 р. 23:20:16 GMT+02:00, Rob Herring <robh@xxxxxxxxxx> пише:
>On Fri, Feb 06, 2026 at 07:28:42PM +0200, Svyatoslav Ryhel wrote:
>> Convert devicetree bindings for the Motorola CPCAP MFD from TXT to YAML.
>>
>> Signed-off-by: Svyatoslav Ryhel <clamor95@xxxxxxxxx>
>> ---
>> .../bindings/mfd/motorola,cpcap.yaml | 411 ++++++++++++++++++
>> .../bindings/mfd/motorola-cpcap.txt | 78 ----
>> 2 files changed, 411 insertions(+), 78 deletions(-)
>> create mode 100644 Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml
>> delete mode 100644 Documentation/devicetree/bindings/mfd/motorola-cpcap.txt
>>
>> diff --git a/Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml b/Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml
>> new file mode 100644
>> index 000000000000..7e350721d9f6
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml
>> @@ -0,0 +1,411 @@
>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/mfd/motorola,cpcap.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Motorola CPCAP PMIC MFD
>> +
>> +maintainers:
>> + - Svyatoslav Ryhel <clamor95@xxxxxxxxx>
>> +
>> +allOf:
>> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - motorola,cpcap
>> + - st,6556002
>
>This does not match the only user in the kernel .dts files as
>"st,6556002" should be a fallback.
>

Honestly, I would remove st,6556002 since it is not the only cpcap model which can be used, hence it cannot serve as a universal fallback. Some devices use ST produced cpcap chips, others use TI and range of models varies too. I guess I have to multiply commits

>Rob