mfd: cpcap: convert documentation to schema and add Mot board support
Subsystems (5)
v7 cover mfd: cpcap: convert documentation to schema and add Mot board support
The initial goal was only to add support for the CPCAP used in the Mot Tegra20 board; however, since the documentation was already partially converted, I decided to complete the conversion to schema too.
The CPCAP regulator, leds, rtc, pwrbutton and core files were converted from TXT to YAML while preserving the original structure. Mot board compatibility was added to the regulator and core schema. Since these were one-line patches, they were not separated into dedicated commits; however, the commit message notes this for both cases.
Finally, the CPCAP MFD was slightly refactored to improve support for multiple subcell compositions.
---
Changes in v2:
- fixed code style
- rtc conversion was picked, so patch dropped
- added audio ports description into mfd schema
- splitted schema conversion and compatible addition
- minor style improvements and typo fixes
Changes in v3:
- added regulator node names list into pattern
- filled spi_device_id with driver data
- ADC patches were picked, so changes dropped
Changes in v4:
- dropped regulator patches (applied)
Changes in v5:
- switched to MFD_CELL_* macros
- switched to use determinator of model
- switched to spi_get_device_match_data
Changes in v6:
- removed address-cells and size-cells from main node
- changed macros formatting and OF matches
- factored out common devices and made device addition staged
- dropped cpcap->variant check for 0
- EINVAL > ENODEV in variant checking switch
Changes in v7:
- adjusted spi_device_id entries (name/driver_data)
---
Svyatoslav Ryhel (6):
dt-bindings: leds: leds-cpcap: convert to DT schema
dt-bindings: input: cpcap-pwrbutton: convert to DT schema
dt-bindings: mfd: motorola-cpcap: convert to DT schema
dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
mfd: motorola-cpcap: diverge configuration per-board
mfd: motorola-cpcap: add support for Mot CPCAP composition
.../bindings/input/cpcap-pwrbutton.txt | 20 - .../input/motorola,cpcap-pwrbutton.yaml | 32 ++ .../devicetree/bindings/leds/leds-cpcap.txt | 29 -- .../bindings/leds/motorola,cpcap-leds.yaml | 42 ++ .../bindings/mfd/motorola,cpcap.yaml | 408 ++++++++++++++++++ .../bindings/mfd/motorola-cpcap.txt | 78 ---- drivers/mfd/motorola-cpcap.c | 143 +++--- include/linux/mfd/motorola-cpcap.h | 7 + 8 files changed, 571 insertions(+), 188 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt create mode 100644 Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml create mode 100644 Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/motorola-cpcap.txt
Signature · 1 line
2.53.0
PATCH v7 1/6 dt-bindings: leds: leds-cpcap: convert to DT schema
Convert LEDs devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same.
--- .../devicetree/bindings/leds/leds-cpcap.txt | 29 ------------- .../bindings/leds/motorola,cpcap-leds.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml
Documentation/devicetree/bindings/leds/leds-cpcap.txt deleted +0 -29
@@ -1,29 +0,0 @@ -Motorola CPCAP PMIC LEDs ------------------------- - -This module is part of the CPCAP. For more details about the whole -chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt. - -Requires node properties: -- compatible: should be one of - * "motorola,cpcap-led-mdl" (Main Display Lighting) - * "motorola,cpcap-led-kl" (Keyboard Lighting) - * "motorola,cpcap-led-adl" (Aux Display Lighting) - * "motorola,cpcap-led-red" (Red Triode) - * "motorola,cpcap-led-green" (Green Triode) - * "motorola,cpcap-led-blue" (Blue Triode) - * "motorola,cpcap-led-cf" (Camera Flash) - * "motorola,cpcap-led-bt" (Bluetooth) - * "motorola,cpcap-led-cp" (Camera Privacy LED) -- label: see Documentation/devicetree/bindings/leds/common.txt -- vdd-supply: A phandle to the regulator powering the LED - -Example: - -&cpcap { - cpcap_led_red: red-led { - compatible = "motorola,cpcap-led-red"; - label = "cpcap:red"; - vdd-supply = <&sw5>; - }; -};
Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml new file +42 -0
42 lines not on this page · raw message
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH v7 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [Low] The commit message description following the subsystem prefix is not capitalized. - [Low] The newly…
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Low] The commit message description following the subsystem prefix is not capitalized.
- [Low] The newly added YAML binding points to a non-existent MFD schema, and the parent MFD binding still points to the deleted text file.
- [Low] The YAML binding conversion omitted the examples block.
--
--- Patch [1]: [PATCH v7 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema --- commit 42a8d75469150373ffb675f9ae6fccd8e3d482d6
Author: Svyatoslav Ryhel <[email protected]>
dt-bindings: leds: leds-cpcap: convert to DT schema
Convert LEDs devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same.
Quoted 1 line
dt-bindings: leds: leds-cpcap: convert to DT schema
[Severity: Low]
This isn't a bug, but should the description following the subsystem prefix be capitalized? The LED subsystem conventions typically expect a capitalized description, such as "Convert to DT schema".
Quoted 5 lines
Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml new file +0
-0
[ ... ]
Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml line 15
Quoted 4 lines
Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml new file +4
-0+description: + This module is part of the Motorola CPCAP MFD device. For more details + see Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml. LEDs are + represented as sub-nodes of the PMIC node on the device tree.
[Severity: Low]
Does motorola,cpcap.yaml exist yet? It looks like this references a non-existent MFD schema. Additionally, the parent MFD binding in Documentation/devicetree/bindings/mfd/motorola-cpcap.txt wasn't updated to reflect the deletion of the old leds-cpcap.txt file.
[ ... ]
Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml line 42
Quoted 8 lines
Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml new file +8
-0+required: + - compatible + - label + - vdd-supply + +unevaluatedProperties: false + +...
[Severity: Low]
Should this YAML file include an examples block? The YAML conversion drops the original usage example from the .txt file.
Running dt_binding_check on standalone schemas that lack an examples section can result in warnings or incomplete schema validation.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Rob Herring (Arm)
maintainerRe: [PATCH v7 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema
In reply to Svyatoslav RyhelQuoted 4 lines · Svyatoslav Ryhel
Convert LEDs devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same.
Quoted 9 lines
Signed-off-by Svyatoslav Ryhel <[email protected]>Reviewed-by Rob Herring (Arm) <[email protected]>--- .../devicetree/bindings/leds/leds-cpcap.txt | 29 ------------- .../bindings/leds/motorola,cpcap-leds.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
doc reference errors (make refcheckdocs):
Warning: Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml references a file that doesn't exist: Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml
Warning: Documentation/devicetree/bindings/mfd/motorola-cpcap.txt references a file that doesn't exist: Documentation/devicetree/bindings/leds/leds-cpcap.txt Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml: Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml Documentation/devicetree/bindings/mfd/motorola-cpcap.txt: Documentation/devicetree/bindings/leds/leds-cpcap.txt
See https://patchwork.kernel.org/project/devicetree/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Lee Jones
maintainerRe: [PATCH v7 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema
Quoted 38 lines · Rob Herring (Arm)
Quoted 4 lines · Svyatoslav Ryhel
Convert LEDs devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same.
Quoted 9 lines
Signed-off-by Svyatoslav Ryhel <[email protected]>Reviewed-by Rob Herring (Arm) <[email protected]>--- .../devicetree/bindings/leds/leds-cpcap.txt | 29 ------------- .../bindings/leds/motorola,cpcap-leds.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yamlMy bot found errors running 'make
dt_binding_check' on your patch:yamllint warnings/errors:
dtschema/dtc warnings/errors:
doc reference errors (make refcheckdocs):
Warning:Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yamlreferences a file that doesn't exist:Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml
Warning:Documentation/devicetree/bindings/mfd/motorola-cpcap.txtreferences a file that doesn't exist:Documentation/devicetree/bindings/leds/leds-cpcap.txtDocumentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml:Documentation/devicetree/bindings/mfd/motorola,cpcap.yamlDocumentation/devicetree/bindings/mfd/motorola-cpcap.txt:Documentation/devicetree/bindings/leds/leds-cpcap.txtSee https://patchwork.kernel.org/project/devicetree/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make
dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
Quoted 5 lines
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that
DT_SCHEMA_FILEScan be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
This one.
Signature · 1 line
Lee Jones
Re: [PATCH v7 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema
ср, 9 вер. 2026 р. о 19:27 Lee Jones <[email protected]> пише:
Quoted 41 lines · Rob Herring (Arm)
Quoted 39 lines · Svyatoslav Ryhel
Quoted 4 lines
Convert LEDs devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same.
Quoted 9 lines
Signed-off-by Svyatoslav Ryhel <[email protected]>Reviewed-by Rob Herring (Arm) <[email protected]>--- .../devicetree/bindings/leds/leds-cpcap.txt | 29 ------------- .../bindings/leds/motorola,cpcap-leds.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yamlMy bot found errors running 'make
dt_binding_check' on your patch:yamllint warnings/errors:
dtschema/dtc warnings/errors:
doc reference errors (make refcheckdocs):
Warning:Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yamlreferences a file that doesn't exist:Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml
Warning:Documentation/devicetree/bindings/mfd/motorola-cpcap.txtreferences a file that doesn't exist:Documentation/devicetree/bindings/leds/leds-cpcap.txtDocumentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml:Documentation/devicetree/bindings/mfd/motorola,cpcap.yamlDocumentation/devicetree/bindings/mfd/motorola-cpcap.txt:Documentation/devicetree/bindings/leds/leds-cpcap.txtSee https://patchwork.kernel.org/project/devicetree/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make
dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
Quoted 8 lines
Quoted 5 lines
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that
DT_SCHEMA_FILEScan be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.This one.
As you can see only complain is that reference in the leds yaml to Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml does not exist. All cpcap cell bindings were converted one by one as separate commits, so this is natural since motorola,cpcap.yaml will be converted last and patch doing this is included in the series. It does not bring any regressions in yaml and dt schema checks.
Quoted 2 lines
--
Lee Jones
Re: [PATCH v7 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema
ср, 9 вер. 2026 р. о 19:50 Svyatoslav Ryhel <[email protected]> пише:
Quoted 52 lines
ср, 9 вер. 2026 р. о 19:27 Lee Jones <[email protected]> пише:
Quoted 41 lines · Rob Herring (Arm)
Quoted 39 lines · Svyatoslav Ryhel
Quoted 4 lines
Convert LEDs devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same.
Quoted 9 lines
Signed-off-by Svyatoslav Ryhel <[email protected]>Reviewed-by Rob Herring (Arm) <[email protected]>--- .../devicetree/bindings/leds/leds-cpcap.txt | 29 ------------- .../bindings/leds/motorola,cpcap-leds.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yamlMy bot found errors running 'make
dt_binding_check' on your patch:yamllint warnings/errors:
dtschema/dtc warnings/errors:
doc reference errors (make refcheckdocs):
Warning:Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yamlreferences a file that doesn't exist:Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml
Warning:Documentation/devicetree/bindings/mfd/motorola-cpcap.txtreferences a file that doesn't exist:Documentation/devicetree/bindings/leds/leds-cpcap.txtDocumentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml:Documentation/devicetree/bindings/mfd/motorola,cpcap.yamlDocumentation/devicetree/bindings/mfd/motorola-cpcap.txt:Documentation/devicetree/bindings/leds/leds-cpcap.txtSee https://patchwork.kernel.org/project/devicetree/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make
dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:Quoted 8 lines
Quoted 5 lines
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that
DT_SCHEMA_FILEScan be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.This one.
Quoted 7 lines
As you can see only complain is that reference in the leds yaml to
Documentation/devicetree/bindings/mfd/motorola,cpcap.yamldoes not exist. All cpcap cell bindings were converted one by one as separate commits, so this is natural since motorola,cpcap.yaml will be converted last and patch doing this is included in the series. It does not bring any regressions in yaml and dt schema checks.
Hello Lee!
Is this explanation sufficient? Rob left his Reviewed-by to all DT related patches of this series.
Quoted 2 lines
Quoted 2 lines
--
Lee Jones
Re: (subset) [PATCH v7 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema
In reply to Svyatoslav RyhelQuoted 3 lines · Svyatoslav Ryhel
Convert LEDs devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same.
Applied, thanks!
[1/6] dt-bindings: leds: leds-cpcap: convert to DT schema
commit: d4948551280b1d52c1896b7c80d5383b7d8ad7c5
--
Lee Jones [李琼斯]
PATCH v7 2/6 dt-bindings: input: cpcap-pwrbutton: convert to DT schema
In reply to Svyatoslav RyhelConvert power button devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same.
--- .../bindings/input/cpcap-pwrbutton.txt | 20 ------------ .../input/motorola,cpcap-pwrbutton.yaml | 32 +++++++++++++++++++ 2 files changed, 32 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt create mode 100644 Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml
Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt deleted +0 -20
@@ -1,20 +0,0 @@ -Motorola CPCAP on key - -This module is part of the CPCAP. For more details about the whole -chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt. - -This module provides a simple power button event via an Interrupt. - -Required properties: -- compatible: should be one of the following - - "motorola,cpcap-pwrbutton" -- interrupts: irq specifier for CPCAP's ON IRQ - -Example: - -&cpcap { - cpcap_pwrbutton: pwrbutton { - compatible = "motorola,cpcap-pwrbutton"; - interrupts = <23 IRQ_TYPE_NONE>; - }; -};
Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml new file +32 -0
@@ -0,0 +1,32 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/motorola,cpcap-pwrbutton.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Motorola CPCAP PMIC power key + +maintainers: + - Svyatoslav Ryhel <[email protected]> + +description: + This module is part of the Motorola CPCAP MFD device. For more details + see Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml. The + power key is represented as a sub-node of the PMIC node on the device + tree. + +properties: + compatible: + const: motorola,cpcap-pwrbutton + + interrupts: + items: + - description: CPCAP's ON interrupt + +required: + - compatible + - interrupts + +additionalProperties: false + +...
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH v7 2/6] dt-bindings: input: cpcap-pwrbutton: convert to DT schema
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The conversion to YAML format creates broken documentation cross-references between the child power…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The conversion to YAML format creates broken documentation cross-references between the child power button binding and the parent MFD binding. --
--- Patch [2]: [PATCH v7 2/6] dt-bindings: input: cpcap-pwrbutton: convert to DT schema --- commit 04f32d0760614b206c7745dbb0c714f9b7720ee6
Author: Svyatoslav Ryhel <[email protected]>
dt-bindings: input: cpcap-pwrbutton: convert to DT schema
This commit converts the device tree bindings for the Motorola CPCAP PMIC power button from plain text to YAML format.
Quoted 6 lines
Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml new file +0
-0@@ -0,0 +1,32 @@
[ ... ]
Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml line 14
Quoted 6 lines
Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml new file +6
-0+maintainers: + - Svyatoslav Ryhel <[email protected]> + +description: + This module is part of the Motorola CPCAP MFD device. For more details + see Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml. The
[Severity: Low]
Are we referencing a file that doesn't exist yet? Since the parent MFD binding hasn't been converted to YAML yet, the referenced file motorola,cpcap.yaml doesn't seem to be in the tree.
Additionally, should the parent MFD binding (Documentation/devicetree/bindings/mfd/motorola-cpcap.txt) be updated in this patch? It appears it still explicitly lists cpcap-pwrbutton.txt in its "Optional subnodes:" section, which is being deleted here.
Quoted 6 lines
Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml new file +6
-0+ power key is represented as a sub-node of the PMIC node on the device + tree. + +properties: + compatible: + const: motorola,cpcap-pwrbutton
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
PATCH v7 3/6 dt-bindings: mfd: motorola-cpcap: convert to DT schema
In reply to Svyatoslav RyhelConvert devicetree bindings for the Motorola CPCAP MFD from TXT to YAML.
--- .../bindings/mfd/motorola,cpcap.yaml | 403 ++++++++++++++++++ .../bindings/mfd/motorola-cpcap.txt | 78 ---- 2 files changed, 403 insertions(+), 78 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/motorola-cpcap.txt
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml new file +403 -0
@@ -0,0 +1,403 @@ +# 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 <[email protected]> + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + items: + - const: motorola,cpcap + - const: st,6556002 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + spi-max-frequency: + maximum: 9600000 + + spi-cs-high: true + spi-cpol: true + spi-cpha: true + + adc: + $ref: /schemas/iio/adc/motorola,cpcap-adc.yaml# + + audio-codec: + type: object + additionalProperties: false + + properties: + interrupts: + items: + - description: headset detect interrupt + - description: microphone bias 2 detect interrupt + + interrupt-names: + items: + - const: hs + - const: mb2 + + "#sound-dai-cells": + const: 1 + + VAUDIO-supply: + description: + Codec power supply, usually VAUDIO regulator of CPCAP. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: port connected to the Stereo HiFi DAC + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: port connected to the Voice DAC + + required: + - port@0 + - port@1 + + required: + - interrupts + - interrupt-names + - "#sound-dai-cells" + + battery: + $ref: /schemas/power/supply/cpcap-battery.yaml# + + charger: + $ref: /schemas/power/supply/cpcap-charger.yaml# + + key-power: + $ref: /schemas/input/motorola,cpcap-pwrbutton.yaml# + + phy: + $ref: /schemas/phy/motorola,cpcap-usb-phy.yaml# + + regulator: + $ref: /schemas/regulator/motorola,cpcap-regulator.yaml# + + rtc: + $ref: /schemas/rtc/motorola,cpcap-rtc.yaml# + +patternProperties: + "^led(-[a-z]+)?$": + $ref: /schemas/leds/motorola,cpcap-leds.yaml# + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - "#interrupt-cells" + - spi-max-frequency + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/irq.h> + #include <dt-bindings/input/linux-event-codes.h> + + spi { + #address-cells = <1>; + #size-cells = <0>; + + cpcap: pmic@0 { + compatible = "motorola,cpcap", "st,6556002"; + reg = <0>; /* cs0 */ + + interrupt-parent = <&gpio1>; + interrupts = <7 IRQ_TYPE_EDGE_RISING>; + + interrupt-controller; + #interrupt-cells = <2>; + + spi-max-frequency = <3000000>; + spi-cs-high; + + spi-cpol; + spi-cpha; + + cpcap_adc: adc { + compatible = "motorola,cpcap-adc"; + + interrupt-parent = <&cpcap>; + interrupts = <8 IRQ_TYPE_NONE>; + interrupt-names = "adcdone"; + + #io-channel-cells = <1>; + }; + + cpcap_audio: audio-codec { + interrupt-parent = <&cpcap>; + interrupts = <9 IRQ_TYPE_NONE>, <10 IRQ_TYPE_NONE>; + interrupt-names = "hs", "mb2"; + + VAUDIO-supply = <&vdd_audio>; + + #sound-dai-cells = <1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* HiFi */ + port@0 { + reg = <0>; + + cpcap_audio_codec0: endpoint { + }; + }; + + /* Voice */ + port@1 { + reg = <1>; + + cpcap_audio_codec1: endpoint { + }; + }; + }; + }; + + cpcap_battery: battery { + compatible = "motorola,cpcap-battery"; + + interrupt-parent = <&cpcap>; + interrupts = <6 IRQ_TYPE_NONE>, <5 IRQ_TYPE_NONE>, + <3 IRQ_TYPE_NONE>, <20 IRQ_TYPE_NONE>, + <54 IRQ_TYPE_NONE>, <57 IRQ_TYPE_NONE>; + interrupt-names = "eol", "lowbph", "lowbpl", + "chrgcurr1", "battdetb", "cccal"; + + io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>, + <&cpcap_adc 5>, <&cpcap_adc 6>; + io-channel-names = "battdetb", "battp", + "chg_isense", "batti"; + power-supplies = <&cpcap_charger>; + }; + + cpcap_charger: charger { + compatible = "motorola,mapphone-cpcap-charger"; + + interrupt-parent = <&cpcap>; + interrupts = <13 IRQ_TYPE_NONE>, <12 IRQ_TYPE_NONE>, + <29 IRQ_TYPE_NONE>, <28 IRQ_TYPE_NONE>, + <22 IRQ_TYPE_NONE>, <21 IRQ_TYPE_NONE>, + <20 IRQ_TYPE_NONE>, <19 IRQ_TYPE_NONE>, + <54 IRQ_TYPE_NONE>; + interrupt-names = "chrg_det", "rvrs_chrg", "chrg_se1b", + "se0conn", "rvrs_mode", "chrgcurr2", + "chrgcurr1", "vbusvld", "battdetb"; + + mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>, + <&gpio3 23 GPIO_ACTIVE_LOW>; + + io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>, + <&cpcap_adc 2>, <&cpcap_adc 5>, + <&cpcap_adc 6>; + io-channel-names = "battdetb", "battp", + "vbus", "chg_isense", + "batti"; + }; + + key-power { + compatible = "motorola,cpcap-pwrbutton"; + + interrupt-parent = <&cpcap>; + interrupts = <23 IRQ_TYPE_NONE>; + }; + + led-red { + compatible = "motorola,cpcap-led-red"; + vdd-supply = <&vdd_led>; + label = "status-led::red"; + }; + + led-green { + compatible = "motorola,cpcap-led-green"; + vdd-supply = <&vdd_led>; + label = "status-led::green"; + }; + + led-blue { + compatible = "motorola,cpcap-led-blue"; + vdd-supply = <&vdd_led>; + label = "status-led::blue"; + }; + + cpcap_usb2_phy: phy { + compatible = "motorola,cpcap-usb-phy"; + + pinctrl-0 = <&usb_gpio_mux_sel1>, <&usb_gpio_mux_sel2>; + pinctrl-1 = <&usb_ulpi_pins>; + pinctrl-2 = <&usb_utmi_pins>; + pinctrl-3 = <&uart3_pins>; + pinctrl-names = "default", "ulpi", "utmi", "uart"; + #phy-cells = <0>; + + interrupts-extended = + <&cpcap 15 IRQ_TYPE_NONE>, <&cpcap 14 IRQ_TYPE_NONE>, + <&cpcap 28 IRQ_TYPE_NONE>, <&cpcap 19 IRQ_TYPE_NONE>, + <&cpcap 18 IRQ_TYPE_NONE>, <&cpcap 17 IRQ_TYPE_NONE>, + <&cpcap 16 IRQ_TYPE_NONE>, <&cpcap 49 IRQ_TYPE_NONE>, + <&cpcap 48 IRQ_TYPE_NONE>; + interrupt-names = "id_ground", "id_float", "se0conn", + "vbusvld", "sessvld", "sessend", + "se1", "dm", "dp"; + + mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>, + <&gpio1 0 GPIO_ACTIVE_HIGH>; + + io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>; + io-channel-names = "vbus", "id"; + + vusb-supply = <&avdd_usb>; + }; + + regulator { + compatible = "motorola,cpcap-regulator"; + + regulators { + vdd_cpu: SW1 { + regulator-name = "vdd_cpu"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1125000>; + regulator-enable-ramp-delay = <1500>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_core: SW2 { + regulator-name = "vdd_core"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1300000>; + regulator-enable-ramp-delay = <1500>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_1v8_vio: SW3 { + regulator-name = "vdd_1v8_vio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <0>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_aon: SW4 { + regulator-name = "vdd_aon"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1300000>; + regulator-enable-ramp-delay = <1500>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_led: SW5 { + regulator-name = "vdd_led"; + regulator-min-microvolt = <5050000>; + regulator-max-microvolt = <5050000>; + regulator-enable-ramp-delay = <1500>; + regulator-boot-on; + }; + + vdd_hvio: VHVIO { + regulator-name = "vdd_hvio"; + regulator-min-microvolt = <2775000>; + regulator-max-microvolt = <2775000>; + regulator-enable-ramp-delay = <1000>; + }; + + vcore_emmc: VSDIO { + regulator-name = "vcore_emmc"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + }; + + avdd_dsi_csi: VCSI { + regulator-name = "avdd_dsi_csi"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + }; + + avdd_3v3_periph: VWLAN2 { + regulator-name = "avdd_3v3_periph"; + regulator-min-microvolt = <2775000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + }; + + vddio_usd: VSIMCARD { + regulator-name = "vddio_usd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2900000>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + }; + + vdd_haptic: VVIB { + regulator-name = "vdd_haptic"; + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <1000>; + }; + + avdd_usb: VUSB { + regulator-name = "avdd_usb"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_audio: VAUDIO { + regulator-name = "vdd_audio"; + regulator-min-microvolt = <2775000>; + regulator-max-microvolt = <2775000>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + }; + }; + }; + + cpcap_rtc: rtc { + compatible = "motorola,cpcap-rtc"; + + interrupt-parent = <&cpcap>; + interrupts = <39 IRQ_TYPE_NONE>, <26 IRQ_TYPE_NONE>; + }; + }; + }; + +...
Documentation/devicetree/bindings/mfd/motorola-cpcap.txt deleted +0 -78
78 lines not on this page · raw message
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH v7 3/6] dt-bindings: mfd: motorola-cpcap: convert to DT schema
Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider: - [Medium] YAML schema omits `#address-cells` and `#size-cells` properties for the root node, causing…
Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
- [Medium] YAML schema omits #address-cells and #size-cells properties for the root node, causing validation failures for existing device trees.
- [Medium] Schema strictly expects the power button node to be named key-power, breaking validation for the legacy button node.
- [Medium] The audio-codec schema expects a ports wrapper, breaking validation for legacy direct port@0 definitions.
- [Low] The spi-cs-high property was dropped from the schema's required list.
- [Low] Commit message description is not capitalized, violating MFD subsystem guidelines.
--
--- Patch [3]: [PATCH v7 3/6] dt-bindings: mfd: motorola-cpcap: convert to DT schema --- commit 4de37a9bd5e5179740a9f015e1900ab235da93ae
Author: Svyatoslav Ryhel <[email protected]>
dt-bindings: mfd: motorola-cpcap: convert to DT schema
Convert devicetree bindings for the Motorola CPCAP MFD from TXT to YAML.
Quoted 1 line
dt-bindings: mfd: motorola-cpcap: convert to DT schema
[Severity: Low]
This isn't a bug, but the MFD subsystem guidelines require the description after the subsystem prefix to be capitalized. Should "convert" be "Convert"?
Quoted 15 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml new file +9
-0@@ -0,0 +1,403 @@ +# 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:
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml line 19
Quoted 10 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml new file +10
-0+ - Svyatoslav Ryhel <[email protected]> + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + items: + - const: motorola,cpcap + - const: st,6556002
[Severity: Medium]
Does omitting #address-cells and #size-cells from the properties block break validation for existing device trees?
Because this schema sets additionalProperties: false, running make dtbs_check against existing in-tree device trees (like arch/arm/boot/dts/ti/omap/motorola-cpcap-mapphone.dtsi, which uses #address-cells = <1> and #size-cells = <0> on the pmic@0 node) will falsely report validation errors.
[ ... ]
Quoted 13 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml new file +13
-0+ audio-codec: + type: object + additionalProperties: false + + properties: + interrupts: + items: + - description: headset detect interrupt + - description: microphone bias 2 detect interrupt + + interrupt-names: + items: + - const: hs
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml line 64
Quoted 10 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml new file +10
-0+ - const: mb2 + + "#sound-dai-cells": + const: 1 + + VAUDIO-supply: + description: + Codec power supply, usually VAUDIO regulator of CPCAP. + + ports:
[Severity: Medium]
Will this strict ports wrapper requirement cause validation failures for legacy device trees?
Existing device trees place port@0 directly inside the audio-codec node:
arch/arm/boot/dts/ti/omap/motorola-cpcap-mapphone.dtsi:
cpcap_audio: audio-codec {
...
port@0 {
cpcap_audio_codec0: endpoint { ... };
};
};With additionalProperties: false set on the audio-codec node, dtbs_check will flag these direct ports as illegal properties.
[ ... ]
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml line 92
Quoted 5 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml new file +5
-0+ charger: + $ref: /schemas/power/supply/cpcap-charger.yaml# + + key-power: + $ref: /schemas/input/motorola,cpcap-pwrbutton.yaml#
[Severity: Medium]
Does hardcoding the node name as key-power break validation for the legacy button node?
Existing device trees use the button node name:
arch/arm/boot/dts/ti/omap/motorola-cpcap-mapphone.dtsi:
power_button: button {
compatible = "motorola,cpcap-pwrbutton";
...
};Since this schema enforces the exact name key-power, make dtbs_check will flag the existing button node as an invalid property.
[ ... ]
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml line 113
Quoted 7 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml new file +7
-0+required: + - compatible + - reg + - interrupts + - interrupt-controller + - "#interrupt-cells" + - spi-max-frequency
[Severity: Low]
Is it intentional to drop spi-cs-high from this list?
The legacy text binding explicitly documented spi-cs-high as a required property, which reflects the hardware's active-high chip select requirement. Omitting it here relaxes the constraint and might allow inaccurate device trees to pass validation.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
PATCH v7 4/6 dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
In reply to Svyatoslav RyhelAdd compatibles for Mapphone and Mot CPCAP subdevice compositions. Both variations cannot use st,6556002 fallback since they may be based on different controllers.
--- .../devicetree/bindings/mfd/motorola,cpcap.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml +8 -3
@@ -14,9 +14,14 @@ allOf: properties: compatible: - items: - - const: motorola,cpcap - - const: st,6556002 + oneOf: + - enum: + - motorola,mapphone-cpcap + - motorola,mot-cpcap + + - items: + - const: motorola,cpcap + - const: st,6556002 reg: maxItems: 1
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH v7 4/6] dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] The new compatible strings are defined as standalone enums without a generic fallback, causing…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The new compatible strings are defined as standalone enums without a generic fallback, causing drivers to fail to probe.
- [Low] The commit message description starts with a lowercase letter, violating MFD subsystem guidelines.
--
--- Patch [4]: [PATCH v7 4/6] dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP --- commit d9f93935d00aa3510052461fef588d4ce3014eed
Author: Svyatoslav Ryhel <[email protected]>
dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
Add compatibles for Mapphone and Mot CPCAP subdevice compositions. Both variations cannot use st,6556002 fallback since they may be based on different controllers.
Quoted 1 line
dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
[Severity: Low]
This isn't a bug, but should the description part of the commit message be capitalized? The MFD subsystem guidelines typically expect a capitalized description after the subsystem prefix.
Quoted 5 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml +0
-0
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml allOf: · line 20
Quoted 10 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml +4
-3@@ -14,9 +14,14 @@ allOf: properties: compatible: - items: - - const: motorola,cpcap - - const: st,6556002 + oneOf: + - enum: + - motorola,mapphone-cpcap + - motorola,mot-cpcap
[Severity: Medium]
Since these new compatible strings are defined as standalone enums without a generic fallback, will the core driver fail to probe these devices?
Looking at drivers/mfd/motorola-cpcap.c, cpcap_of_match[] lacks a match for these specific strings:
static const struct of_device_id cpcap_of_match[] = {
{ .compatible = "motorola,cpcap", },
{ .compatible = "st,6556002", },
{},
};Are there plans to update the driver's match table to recognize these new standalone compatibles, or could a generic fallback like "motorola,cpcap" be added to the bindings?
Quoted 4 lines
Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml +4
-0+ + - items: + - const: motorola,cpcap + - const: st,6556002
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4
PATCH v7 5/6 mfd: motorola-cpcap: diverge configuration per-board
In reply to Svyatoslav RyhelMFD have rigid subdevice structure which does not allow flexible dynamic subdevice linking. Address this by diverging CPCAP subdevice composition to take into account board specific configuration.
Create a common and default subdevice composition, rename edit existing subdevice composition into cpcap_mapphone_devices since it targets mainly Mapphone board.
Removed st,6556002 as it is no longer applicable to all cases and duplicates motorola,cpcap, which is used as the default composition.
--- drivers/mfd/motorola-cpcap.c | 125 +++++++++++++++-------------- include/linux/mfd/motorola-cpcap.h | 6 ++ 2 files changed, 70 insertions(+), 61 deletions(-)
drivers/mfd/motorola-cpcap.c +64 -61
@@ -11,6 +11,7 @@#include <linux/irq.h> #include <linux/kernel.h> #include <linux/module.h> +#include <linux/property.h> #include <linux/regmap.h> #include <linux/sysfs.h>
@@ -29,6 +30,7 @@ struct cpcap_ddata {struct regmap_irq_chip_data *irqdata[CPCAP_NR_IRQ_CHIPS ];const struct regmap_config *regmap_conf;struct regmap *regmap; +enum cpcap_variant variant; };static int cpcap_sense_irq (struct regmap *regmap,int irq)
@@ -194,20 +196,6 @@ static int cpcap_init_irq(struct cpcap_ddata *cpcap)return 0 ; } -static const struct of_device_id cpcap_of_match[] = { - { .compatible ="motorola,cpcap" , }, - { .compatible ="st,6556002" , }, - {}, -}; -MODULE_DEVICE_TABLE (of, cpcap_of_match); - -static const struct spi_device_id cpcap_spi_ids[] = { - { .name ="cpcap" }, - { .name ="6556002" }, - { } -}; -MODULE_DEVICE_TABLE (spi, cpcap_spi_ids); -static const struct regmap_config cpcap_regmap_config = { .reg_bits =16 , .reg_stride =4 ,
@@ -240,62 +228,58 @@ static int cpcap_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(cpcap_pm, cpcap_suspend, cpcap_resume); -static const struct mfd_cell cpcap_mfd_devices[] = { - { - .name ="cpcap_adc" , - .of_compatible ="motorola,mapphone-cpcap-adc" , - }, { - .name ="cpcap_battery" , - .of_compatible ="motorola,cpcap-battery" , - }, { - .name ="cpcap-charger" , - .of_compatible ="motorola,mapphone-cpcap-charger" , - }, { - .name ="cpcap-regulator" , - .of_compatible ="motorola,mapphone-cpcap-regulator" , - }, { - .name ="cpcap-rtc" , - .of_compatible ="motorola,cpcap-rtc" , - }, { - .name ="cpcap-pwrbutton" , - .of_compatible ="motorola,cpcap-pwrbutton" , - }, { - .name ="cpcap-usb-phy" , - .of_compatible ="motorola,mapphone-cpcap-usb-phy" , - }, { - .name ="cpcap-led" , - .id =0 , - .of_compatible ="motorola,cpcap-led-red" , - }, { - .name ="cpcap-led" , - .id =1 , - .of_compatible ="motorola,cpcap-led-green" , - }, { - .name ="cpcap-led" , - .id =2 , - .of_compatible ="motorola,cpcap-led-blue" , - }, { - .name ="cpcap-led" , - .id =3 , - .of_compatible ="motorola,cpcap-led-adl" , - }, { - .name ="cpcap-led" , - .id =4 , - .of_compatible ="motorola,cpcap-led-cp" , - }, { - .name ="cpcap-codec" , - } +static const struct mfd_cell cpcap_common_devices[] = { +MFD_CELL_OF ("cpcap_battery" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-battery" ), +MFD_CELL_OF ("cpcap-rtc" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-rtc" ), +MFD_CELL_OF ("cpcap-pwrbutton" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-pwrbutton" ), +MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-led-red" ), +MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,1 ,"motorola,cpcap-led-green" ), +MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,2 ,"motorola,cpcap-led-blue" ), +MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,3 ,"motorola,cpcap-led-adl" ), +MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,4 ,"motorola,cpcap-led-cp" ), +MFD_CELL_NAME ("cpcap-codec" ), +}; + +static const struct mfd_cell cpcap_default_devices[] = { +MFD_CELL_OF ("cpcap_adc" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-adc" ), +MFD_CELL_OF ("cpcap-regulator" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-regulator" ), +MFD_CELL_OF ("cpcap-usb-phy" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-usb-phy" ), +}; + +static const struct mfd_cell cpcap_mapphone_devices[] = { +MFD_CELL_OF ("cpcap_adc" ,NULL ,NULL ,0 ,0 ,"motorola,mapphone-cpcap-adc" ), +MFD_CELL_OF ("cpcap-charger" ,NULL ,NULL ,0 ,0 ,"motorola,mapphone-cpcap-charger" ), +MFD_CELL_OF ("cpcap-regulator" ,NULL ,NULL ,0 ,0 ,"motorola,mapphone-cpcap-regulator" ), +MFD_CELL_OF ("cpcap-usb-phy" ,NULL ,NULL ,0 ,0 ,"motorola,mapphone-cpcap-usb-phy" ), };static int cpcap_probe (struct spi_device *spi) {struct cpcap_ddata *cpcap; +const struct mfd_cell *cells; +unsigned int num_cells;int ret; cpcap =devm_kzalloc (&spi->dev,sizeof (*cpcap),GFP_KERNEL );if (!cpcap)return -ENOMEM ; + cpcap->variant = (enum cpcap_variant )spi_get_device_match_data (spi); + +switch (cpcap->variant) { +case CPCAP_DEFAULT : + cells = cpcap_default_devices; + num_cells =ARRAY_SIZE (cpcap_default_devices); +break ; +case CPCAP_MAPPHONE : + cells = cpcap_mapphone_devices; + num_cells =ARRAY_SIZE (cpcap_mapphone_devices); +break ; +default : +return dev_err_probe (&spi->dev, -ENODEV , +"Unknown device %d\n" , cpcap->variant); + } + cpcap->spi = spi;spi_set_drvdata (spi, cpcap);
@@ -330,10 +314,29 @@ static int cpcap_probe(struct spi_device *spi) spi->dev.coherent_dma_mask =0 ; spi->dev.dma_mask = &spi->dev.coherent_dma_mask; -return devm_mfd_add_devices (&spi->dev,0 , cpcap_mfd_devices, -ARRAY_SIZE (cpcap_mfd_devices),NULL ,0 ,NULL ); + ret =devm_mfd_add_devices (&spi->dev,0 , cpcap_common_devices, +ARRAY_SIZE (cpcap_common_devices),NULL ,0 ,NULL ); +if (ret) +return dev_err_probe (&spi->dev, ret, +"Failed to add common child devices\n" ); + +return devm_mfd_add_devices (&spi->dev,0 , cells, num_cells,NULL ,0 ,NULL ); } +static const struct of_device_id cpcap_of_match[] = { + { .compatible ="motorola,cpcap" , .data = (void *)CPCAP_DEFAULT }, + { .compatible ="motorola,mapphone-cpcap" , .data = (void *)CPCAP_MAPPHONE }, + {/* sentinel */ } +}; +MODULE_DEVICE_TABLE (of, cpcap_of_match); + +static const struct spi_device_id cpcap_spi_ids[] = { + { .name ="cpcap" , .driver_data =CPCAP_DEFAULT }, + { .name ="mapphone-cpcap" , .driver_data =CPCAP_MAPPHONE }, + {/* sentinel */ } +}; +MODULE_DEVICE_TABLE (spi, cpcap_spi_ids); +static struct spi_driver cpcap_driver = { .driver = { .name ="cpcap-core" ,
include/linux/mfd/motorola-cpcap.h +6 -0
@@ -25,6 +25,12 @@#define CPCAP_REVISION_2_0 0x10#define CPCAP_REVISION_2_1 0x11 +enum cpcap_variant { +CPCAP_DEFAULT =1 , +CPCAP_MAPPHONE , +CPCAP_MAX +}; +/* CPCAP registers */ #define CPCAP_REG_INT1 0x0000/* Interrupt 1 */ #define CPCAP_REG_INT2 0x0004/* Interrupt 2 */
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH v7 5/6] mfd: motorola-cpcap: diverge configuration per-board
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [High] Removal of the 'st,6556002' compatible string breaks device tree backward compatibility.…
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Removal of the 'st,6556002' compatible string breaks device tree backward compatibility.
- [Medium] Casting const void * to enum triggers a -Wpointer-to-int-cast warning on 64-bit architectures.
- [Low] The commit message description violates MFD subsystem capitalization rules.
--
--- Patch [5]: [PATCH v7 5/6] mfd: motorola-cpcap: diverge configuration per-board --- commit f5cc3529b5d7a3c2c11043bd5543be65ebce6656
Author: Svyatoslav Ryhel <[email protected]>
mfd: motorola-cpcap: diverge configuration per-board
This commit modifies the CPCAP driver to support board-specific subdevice configurations. It splits the MFD cells into common, default, and mapphone-specific arrays. It also removes the legacy st,6556002 compatible string.
Quoted 1 line
mfd: motorola-cpcap: diverge configuration per-board
[Severity: Low]
This isn't a bug, but the MFD subsystem guidelines request that the description after the subsystem prefix be capitalized. Should "diverge" be "Diverge"?
drivers/mfd/motorola-cpcap.c static int cpcap_init_irq(struct cpcap_ddata *cpcap) · line 201
Quoted 12 lines
drivers/mfd/motorola-cpcap.c +0
-5@@ -194,20 +196,6 @@ static int cpcap_init_irq(struct cpcap_ddata *cpcap)return 0 ; } -static const struct of_device_id cpcap_of_match[] = { - { .compatible ="motorola,cpcap" , }, - { .compatible ="st,6556002" , }, - {}, -};
[Severity: High]
Does removing the "st,6556002" compatible string break backwards compatibility for systems booting with older device tree blobs?
Device tree bindings are generally considered a stable ABI, so newer kernels are expected to still probe devices using older DTBs.
[ ... ]
drivers/mfd/motorola-cpcap.c static int cpcap_resume(struct device *dev) · line 267
Quoted 12 lines
drivers/mfd/motorola-cpcap.c +3
-0static int cpcap_probe (struct spi_device *spi) {struct cpcap_ddata *cpcap; +const struct mfd_cell *cells; +unsigned int num_cells;int ret; cpcap =devm_kzalloc (&spi->dev,sizeof (*cpcap),GFP_KERNEL );if (!cpcap)return -ENOMEM ; + cpcap->variant = (enum cpcap_variant )spi_get_device_match_data (spi);
[Severity: Medium]
Can this direct cast from a pointer to an enum cause a -Wpointer-to-int-cast build warning on 64-bit architectures?
spi_get_device_match_data() returns a const void *, which is 64-bit on platforms like arm64. Casting it directly to a 32-bit enum might drop the upper 32 bits. Should this be cast to a uintptr_t first?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=5
PATCH v7 6/6 mfd: motorola-cpcap: add support for Mot CPCAP composition
In reply to Svyatoslav RyhelAdd a MFD subdevice composition used in Tegra20 based Mot board (Motorola Atrix 4G and Droid X2).
--- drivers/mfd/motorola-cpcap.c | 20 +++++++++++++++++++- include/linux/mfd/motorola-cpcap.h | 1 + 2 files changed, 20 insertions(+), 1 deletion(-)
drivers/mfd/motorola-cpcap.c +19 -1
@@ -236,7 +236,6 @@ static const struct mfd_cell cpcap_common_devices[] = {MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,1 ,"motorola,cpcap-led-green" ),MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,2 ,"motorola,cpcap-led-blue" ),MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,3 ,"motorola,cpcap-led-adl" ), -MFD_CELL_OF ("cpcap-led" ,NULL ,NULL ,0 ,4 ,"motorola,cpcap-led-cp" ), MFD_CELL_NAME("cpcap-codec"), };
@@ -244,6 +243,7 @@ static const struct mfd_cell cpcap_default_devices[] = {MFD_CELL_OF ("cpcap_adc" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-adc" ),MFD_CELL_OF ("cpcap-regulator" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-regulator" ),MFD_CELL_OF ("cpcap-usb-phy" ,NULL ,NULL ,0 ,0 ,"motorola,cpcap-usb-phy" ), + MFD_CELL_OF("cpcap-led", NULL, NULL, 0, 4, "motorola,cpcap-led-cp"), }; static const struct mfd_cell cpcap_mapphone_devices[] = {
@@ -251,6 +251,18 @@ static const struct mfd_cell cpcap_mapphone_devices[] = {MFD_CELL_OF ("cpcap-charger" ,NULL ,NULL ,0 ,0 ,"motorola,mapphone-cpcap-charger" ),MFD_CELL_OF ("cpcap-regulator" ,NULL ,NULL ,0 ,0 ,"motorola,mapphone-cpcap-regulator" ),MFD_CELL_OF ("cpcap-usb-phy" ,NULL ,NULL ,0 ,0 ,"motorola,mapphone-cpcap-usb-phy" ), + MFD_CELL_OF("cpcap-led", NULL, NULL, 0, 4, "motorola,cpcap-led-cp"), +}; + +/* +* The Mot board features a USB-PHY and charger similar to the ones in +* Mapphone; however, because Mot is based on Tegra20, it is incompatible +* with the existing implementation, which is tightly interconnected with +* the OMAP USB PHY. +*/ +static const struct mfd_cell cpcap_mot_devices[] = { +MFD_CELL_OF ("cpcap_adc" ,NULL ,NULL ,0 ,0 ,"motorola,mot-cpcap-adc" ), +MFD_CELL_OF ("cpcap-regulator" ,NULL ,NULL ,0 ,0 ,"motorola,mot-cpcap-regulator" ), };static int cpcap_probe (struct spi_device *spi)
@@ -275,6 +287,10 @@ static int cpcap_probe(struct spi_device *spi) cells = cpcap_mapphone_devices; num_cells =ARRAY_SIZE (cpcap_mapphone_devices);break ; +case CPCAP_MOT : + cells = cpcap_mot_devices; + num_cells =ARRAY_SIZE (cpcap_mot_devices); +break ;default :return dev_err_probe (&spi->dev, -ENODEV ,"Unknown device %d\n" , cpcap->variant);
@@ -326,6 +342,7 @@ static int cpcap_probe(struct spi_device *spi)static const struct of_device_id cpcap_of_match[] = { { .compatible ="motorola,cpcap" , .data = (void *)CPCAP_DEFAULT }, { .compatible ="motorola,mapphone-cpcap" , .data = (void *)CPCAP_MAPPHONE }, + { .compatible ="motorola,mot-cpcap" , .data = (void *)CPCAP_MOT }, {/* sentinel */ } };MODULE_DEVICE_TABLE (of, cpcap_of_match);
@@ -333,6 +350,7 @@ MODULE_DEVICE_TABLE(of, cpcap_of_match);static const struct spi_device_id cpcap_spi_ids[] = { { .name ="cpcap" , .driver_data =CPCAP_DEFAULT }, { .name ="mapphone-cpcap" , .driver_data =CPCAP_MAPPHONE }, + { .name ="mot-cpcap" , .driver_data =CPCAP_MOT }, {/* sentinel */ } };MODULE_DEVICE_TABLE (spi, cpcap_spi_ids);
include/linux/mfd/motorola-cpcap.h +1 -0
@@ -28,6 +28,7 @@enum cpcap_variant {CPCAP_DEFAULT =1 ,CPCAP_MAPPHONE , +CPCAP_MOT ,CPCAP_MAX };
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH v7 6/6] mfd: motorola-cpcap: add support for Mot CPCAP composition
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The commit message description is not capitalized, violating MFD subsystem guidelines. --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The commit message description is not capitalized, violating MFD subsystem guidelines. --
--- Patch [6]: [PATCH v7 6/6] mfd: motorola-cpcap: add support for Mot CPCAP composition --- commit 8d174ab85721459a22732636e016f27b79a8d93b
Author: Svyatoslav Ryhel <[email protected]>
mfd: motorola-cpcap: add support for Mot CPCAP composition
This commit adds an MFD subdevice composition used in Tegra20 based Mot boards (Motorola Atrix 4G and Droid X2).
Quoted 1 line
mfd: motorola-cpcap: add support for Mot CPCAP composition
[Severity: Low]
This isn't a bug, but should the description after the subsystem prefix be capitalized? The MFD subsystem guidelines mandate capitalizing the description after the prefix (e.g., "mfd: motorola-cpcap: Add support...").
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=6
вт, 21 лип. 2026 р. о 12:57 Svyatoslav Ryhel <[email protected]> пише:
Quoted 70 lines
The initial goal was only to add support for the CPCAP used in the Mot Tegra20 board; however, since the documentation was already partially converted, I decided to complete the conversion to schema too.
The CPCAP regulator, leds, rtc, pwrbutton and core files were converted from TXT to YAML while preserving the original structure. Mot board compatibility was added to the regulator and core schema. Since these were one-line patches, they were not separated into dedicated commits; however, the commit message notes this for both cases.
Finally, the CPCAP MFD was slightly refactored to improve support for multiple subcell compositions.
---
Changes in v2:
- fixed code style
- rtc conversion was picked, so patch dropped
- added audio ports description into mfd schema
- splitted schema conversion and compatible addition
- minor style improvements and typo fixesChanges in v3:
- added regulator node names list into pattern
- filledspi_device_idwith driver data
- ADC patches were picked, so changes droppedChanges in v4:
- dropped regulator patches (applied)Changes in v5:
- switched to MFD_CELL_* macros
- switched to use determinator of model
- switched tospi_get_device_match_dataChanges in v6:
- removed address-cells and size-cells from main node
- changed macros formatting and OF matches
- factored out common devices and made device addition staged
- droppedcpcap->variantcheck for 0
- EINVAL > ENODEV in variant checking switchChanges in v7:
- adjustedspi_device_identries (name/driver_data)
---Svyatoslav Ryhel (6):
dt-bindings: leds: leds-cpcap: convert to DT schema
dt-bindings: input: cpcap-pwrbutton: convert to DT schema
dt-bindings: mfd: motorola-cpcap: convert to DT schema
dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
mfd: motorola-cpcap: diverge configuration per-board
mfd: motorola-cpcap: add support for Mot CPCAP composition.../bindings/input/cpcap-pwrbutton.txt | 20 - .../input/motorola,cpcap-pwrbutton.yaml | 32 ++ .../devicetree/bindings/leds/leds-cpcap.txt | 29 -- .../bindings/leds/motorola,cpcap-leds.yaml | 42 ++ .../bindings/mfd/motorola,cpcap.yaml | 408 ++++++++++++++++++ .../bindings/mfd/motorola-cpcap.txt | 78 ---- drivers/mfd/motorola-cpcap.c | 143 +++--- include/linux/mfd/motorola-cpcap.h | 7 + 8 files changed, 571 insertions(+), 188 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt create mode 100644 Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml create mode 100644 Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/motorola-cpcap.txt
Quoted 3 lines
--
2.53.0
Hello Lee! May you please pick this patch set? I have included changes asked by Rob and Uwe. Thank you!
Lee Jones
maintainerQuoted 71 lines · Svyatoslav Ryhel
вт, 21 лип. 2026 р. о 12:57 Svyatoslav Ryhel <[email protected]> пише:
Quoted 70 lines
The initial goal was only to add support for the CPCAP used in the Mot Tegra20 board; however, since the documentation was already partially converted, I decided to complete the conversion to schema too.
The CPCAP regulator, leds, rtc, pwrbutton and core files were converted from TXT to YAML while preserving the original structure. Mot board compatibility was added to the regulator and core schema. Since these were one-line patches, they were not separated into dedicated commits; however, the commit message notes this for both cases.
Finally, the CPCAP MFD was slightly refactored to improve support for multiple subcell compositions.
---
Changes in v2:
- fixed code style
- rtc conversion was picked, so patch dropped
- added audio ports description into mfd schema
- splitted schema conversion and compatible addition
- minor style improvements and typo fixesChanges in v3:
- added regulator node names list into pattern
- filledspi_device_idwith driver data
- ADC patches were picked, so changes droppedChanges in v4:
- dropped regulator patches (applied)Changes in v5:
- switched to MFD_CELL_* macros
- switched to use determinator of model
- switched tospi_get_device_match_dataChanges in v6:
- removed address-cells and size-cells from main node
- changed macros formatting and OF matches
- factored out common devices and made device addition staged
- droppedcpcap->variantcheck for 0
- EINVAL > ENODEV in variant checking switchChanges in v7:
- adjustedspi_device_identries (name/driver_data)
---Svyatoslav Ryhel (6):
dt-bindings: leds: leds-cpcap: convert to DT schema
dt-bindings: input: cpcap-pwrbutton: convert to DT schema
dt-bindings: mfd: motorola-cpcap: convert to DT schema
dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
mfd: motorola-cpcap: diverge configuration per-board
mfd: motorola-cpcap: add support for Mot CPCAP composition.../bindings/input/cpcap-pwrbutton.txt | 20 - .../input/motorola,cpcap-pwrbutton.yaml | 32 ++ .../devicetree/bindings/leds/leds-cpcap.txt | 29 -- .../bindings/leds/motorola,cpcap-leds.yaml | 42 ++ .../bindings/mfd/motorola,cpcap.yaml | 408 ++++++++++++++++++ .../bindings/mfd/motorola-cpcap.txt | 78 ---- drivers/mfd/motorola-cpcap.c | 143 +++--- include/linux/mfd/motorola-cpcap.h | 7 + 8 files changed, 571 insertions(+), 188 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt create mode 100644 Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml create mode 100644 Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/motorola-cpcap.txt
Quoted 6 lines
Quoted 3 lines
--
2.53.0Hello Lee! May you please pick this patch set? I have included changes asked by Rob and Uwe. Thank you!
Nope! =:-)
There are still a bunch of unanswered Sashiko reviews and one from Rob's bot.
Signature · 1 line
Lee Jones
чт, 27 серп. 2026 р. о 17:15 Lee Jones <[email protected]> пише:
Quoted 81 lines · Svyatoslav Ryhel
Quoted 72 lines
вт, 21 лип. 2026 р. о 12:57 Svyatoslav Ryhel <[email protected]> пише:
Quoted 70 lines
The initial goal was only to add support for the CPCAP used in the Mot Tegra20 board; however, since the documentation was already partially converted, I decided to complete the conversion to schema too.
The CPCAP regulator, leds, rtc, pwrbutton and core files were converted from TXT to YAML while preserving the original structure. Mot board compatibility was added to the regulator and core schema. Since these were one-line patches, they were not separated into dedicated commits; however, the commit message notes this for both cases.
Finally, the CPCAP MFD was slightly refactored to improve support for multiple subcell compositions.
---
Changes in v2:
- fixed code style
- rtc conversion was picked, so patch dropped
- added audio ports description into mfd schema
- splitted schema conversion and compatible addition
- minor style improvements and typo fixesChanges in v3:
- added regulator node names list into pattern
- filledspi_device_idwith driver data
- ADC patches were picked, so changes droppedChanges in v4:
- dropped regulator patches (applied)Changes in v5:
- switched to MFD_CELL_* macros
- switched to use determinator of model
- switched tospi_get_device_match_dataChanges in v6:
- removed address-cells and size-cells from main node
- changed macros formatting and OF matches
- factored out common devices and made device addition staged
- droppedcpcap->variantcheck for 0
- EINVAL > ENODEV in variant checking switchChanges in v7:
- adjustedspi_device_identries (name/driver_data)
---Svyatoslav Ryhel (6):
dt-bindings: leds: leds-cpcap: convert to DT schema
dt-bindings: input: cpcap-pwrbutton: convert to DT schema
dt-bindings: mfd: motorola-cpcap: convert to DT schema
dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
mfd: motorola-cpcap: diverge configuration per-board
mfd: motorola-cpcap: add support for Mot CPCAP composition.../bindings/input/cpcap-pwrbutton.txt | 20 - .../input/motorola,cpcap-pwrbutton.yaml | 32 ++ .../devicetree/bindings/leds/leds-cpcap.txt | 29 -- .../bindings/leds/motorola,cpcap-leds.yaml | 42 ++ .../bindings/mfd/motorola,cpcap.yaml | 408 ++++++++++++++++++ .../bindings/mfd/motorola-cpcap.txt | 78 ---- drivers/mfd/motorola-cpcap.c | 143 +++--- include/linux/mfd/motorola-cpcap.h | 7 + 8 files changed, 571 insertions(+), 188 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt create mode 100644 Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml create mode 100644 Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/motorola-cpcap.txtQuoted 6 lines
Quoted 3 lines
--
2.53.0Hello Lee! May you please pick this patch set? I have included changes asked by Rob and Uwe. Thank you!
Quoted 6 lines
Nope! =:-)
There are still a bunch of unanswered Sashiko reviews and one from Rob's bot.
--
Lee Jones
Hello Rob! May you clarify if those are relevant?
чт, 27 серп. 2026 р. о 17:15 Lee Jones <[email protected]> пише:
Quoted 78 lines · Svyatoslav Ryhel
Quoted 76 lines
вт, 21 лип. 2026 р. о 12:57 Svyatoslav Ryhel <[email protected]> пише:
Quoted 73 lines
The initial goal was only to add support for the CPCAP used in the Mot Tegra20 board; however, since the documentation was already partially converted, I decided to complete the conversion to schema too.
The CPCAP regulator, leds, rtc, pwrbutton and core files were converted from TXT to YAML while preserving the original structure. Mot board compatibility was added to the regulator and core schema. Since these were one-line patches, they were not separated into dedicated commits; however, the commit message notes this for both cases.
Finally, the CPCAP MFD was slightly refactored to improve support for multiple subcell compositions.
---
Changes in v2:
- fixed code style
- rtc conversion was picked, so patch dropped
- added audio ports description into mfd schema
- splitted schema conversion and compatible addition
- minor style improvements and typo fixesChanges in v3:
- added regulator node names list into pattern
- filledspi_device_idwith driver data
- ADC patches were picked, so changes droppedChanges in v4:
- dropped regulator patches (applied)Changes in v5:
- switched to MFD_CELL_* macros
- switched to use determinator of model
- switched tospi_get_device_match_dataChanges in v6:
- removed address-cells and size-cells from main node
- changed macros formatting and OF matches
- factored out common devices and made device addition staged
- droppedcpcap->variantcheck for 0
- EINVAL > ENODEV in variant checking switchChanges in v7:
- adjustedspi_device_identries (name/driver_data)
---Svyatoslav Ryhel (6):
dt-bindings: leds: leds-cpcap: convert to DT schema
dt-bindings: input: cpcap-pwrbutton: convert to DT schema
dt-bindings: mfd: motorola-cpcap: convert to DT schema
dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
mfd: motorola-cpcap: diverge configuration per-board
mfd: motorola-cpcap: add support for Mot CPCAP composition.../bindings/input/cpcap-pwrbutton.txt | 20 - .../input/motorola,cpcap-pwrbutton.yaml | 32 ++ .../devicetree/bindings/leds/leds-cpcap.txt | 29 -- .../bindings/leds/motorola,cpcap-leds.yaml | 42 ++ .../bindings/mfd/motorola,cpcap.yaml | 408 ++++++++++++++++++ .../bindings/mfd/motorola-cpcap.txt | 78 ---- drivers/mfd/motorola-cpcap.c | 143 +++--- include/linux/mfd/motorola-cpcap.h | 7 + 8 files changed, 571 insertions(+), 188 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt create mode 100644 Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml create mode 100644 Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/motorola-cpcap.txt--
2.53.0
Quoted 7 lines
Quoted 2 lines
Hello Lee! May you please pick this patch set? I have included changes asked by Rob and Uwe. Thank you!
Nope! =:-)
There are still a bunch of unanswered Sashiko reviews and one from Rob's bot.
It seems that Rob may be quite busy. Which Sashiko Rob's bot reviews concern you? Maybe I can clarify those?
Quoted 2 lines
--
Lee Jones
Re: (subset) [PATCH v7 0/6] mfd: cpcap: convert documentation to schema and add Mot board support
In reply to Svyatoslav RyhelQuoted 11 lines · Svyatoslav Ryhel
The initial goal was only to add support for the CPCAP used in the Mot Tegra20 board; however, since the documentation was already partially converted, I decided to complete the conversion to schema too.
The CPCAP regulator, leds, rtc, pwrbutton and core files were converted from TXT to YAML while preserving the original structure. Mot board compatibility was added to the regulator and core schema. Since these were one-line patches, they were not separated into dedicated commits; however, the commit message notes this for both cases.
[...]
Applied, thanks!
[2/6] dt-bindings: input: cpcap-pwrbutton: convert to DT schema
commit: ae30468a4934028adaaf5525f6f7bcda26371607
[3/6] dt-bindings: mfd: motorola-cpcap: convert to DT schema
commit: 6f58e93a2e2f199df32d963d01ad5e1ec0a96387
[4/6] dt-bindings: mfd: motorola-cpcap: document Mapphone and Mot CPCAP
commit: e968cfb307587a6a3fe9d591fa92d4f5d57e19a5
[5/6] mfd: motorola-cpcap: diverge configuration per-board
commit: 4436f6aba79e10e2b447b8a0f874c13964518747
[6/6] mfd: motorola-cpcap: add support for Mot CPCAP composition
commit: 008fc93904285ec99e3d5dac5fa5d5aaab1e9ff6--
Lee Jones [李琼斯]