Skip to contentSkip to conversation

Add drivers for Sony Cronos control CPLD

PATCH In review Timothy Pearson 4 participants 17 messages Jan 7 – Jan 20

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v6 cover Add drivers for Sony Cronos control CPLD

Hello all,

This series adds a driver for the multi-function CPLD found on the Sony Interactive Entertainment Cronos x86 server platform. It provides a watchdog timer and an LED controller, both of which will depend on the MFD parent driver implemented in this series. Device tree bindings are also included.

Thanks,

Shawn Anastasio (1):
dt-bindings: mfd: Add sony,cronos-smc

Timothy Pearson (3):
mfd: sony-cronos-smc: Add driver for Sony Cronos SMC
led: sony-cronos-smc: Add RGB LED driver for Sony Cronos SMC
watchdog: sony-cronos-smc: Add watchdog driver for Sony Cronos SMC

 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++
 MAINTAINERS                                   |   7 +
 drivers/leds/Kconfig                          |  19 +
 drivers/leds/Makefile                         |   1 +
 drivers/leds/leds-sony-cronos.c               | 376 ++++++++++++++++++
 drivers/mfd/Kconfig                           |  11 +
 drivers/mfd/Makefile                          |   2 +
 drivers/mfd/sony-cronos-smc.c                 | 212 ++++++++++
 drivers/watchdog/Kconfig                      |  17 +
 drivers/watchdog/Makefile                     |   1 +
 drivers/watchdog/sony-cronos-wdt.c            | 283 +++++++++++++
 include/linux/mfd/sony-cronos.h               |  61 +++
 12 files changed, 1118 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml
 create mode 100644 drivers/leds/leds-sony-cronos.c
 create mode 100644 drivers/mfd/sony-cronos-smc.c
 create mode 100644 drivers/watchdog/sony-cronos-wdt.c
 create mode 100644 include/linux/mfd/sony-cronos.h
Signature · 1 line
2.39.5
#1 lore raw

PATCH v6 1/4 dt-bindings: mfd: Add sony,cronos-smc

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
 1 file changed, 128 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +128 -0
new file mode 100644
index 000000000000..34ccd27e2996
@@ -0,0 +1,128 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+# Copyright 2025-2026 Raptor Engineering, LLC
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/sony,cronos-smc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sony Cronos Platform Controller CPLD multi-function device
+
+maintainers:
+  - Georgy Yakovlev <[email protected]>
+
+description:
+  The Sony Cronos Platform Controller CPLD is a multi-purpose platform
+  controller that provides both a watchdog timer and an LED controller for the
+  Sony Interactive Entertainment Cronos x86 server platform. As both functions
+  are provided by the same CPLD, a multi-function device is exposed as the
+  parent of both functions.
+
+properties:
+  compatible:
+    const: sony,cronos-smc
+
+  reg:
+    maxItems: 1
+
+  leds:
+    type: object
+    $ref: /schemas/leds/common.yaml#
+    additionalProperties: false
+    description: |
+      The Cronos LED controller is a subfunction of the Cronos platform
+      controller, which is a multi-function device.
+
+      Each led is represented as a child node of sony,cronos-led. Fifteen RGB
+      LEDs are supported by the platform.
+
+    properties:
+      compatible:
+        const: sony,cronos-led
+
+      reg:
+        maxItems: 1
+
+      "#address-cells":
+        const: 1
+
+      "#size-cells":
+        const: 0
+
+    patternProperties:
+      "^multi-led@[0-9a-f]$":
+        type: object
+        $ref: /schemas/leds/leds-class-multicolor.yaml#
+        unevaluatedProperties: false
+
+        properties:
+          reg:
+            description:
+              LED channel number (0..14)
+            minimum: 0
+            maximum: 14
+
+        required:
+          - reg
+
+    required:
+      - compatible
+      - "#address-cells"
+      - "#size-cells"
+
+  watchdog:
+    type: object
+
+    $ref: /schemas/watchdog/watchdog.yaml
+
+    properties:
+      compatible:
+        const: sony,cronos-watchdog
+
+      timeout-sec: true
+
+    required:
+      - compatible
+
+    additionalProperties: false
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/leds/common.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        smc@3f {
+            compatible = "sony,cronos-smc";
+            reg = <0x3f>;
+
+            timeout-sec = <20>;
+
+            watchdog {
+                compatible = "sony,cronos-watchdog";
+            };
+
+            leds {
+                compatible = "sony,cronos-led";
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                multi-led@0 {
+                    /*
+                     * No subnodes are needed, this controller only supports RGB
+                     * LEDs.
+                     */
+                    reg = <0>;
+                    color = <LED_COLOR_ID_MULTI>;
+                    function = LED_FUNCTION_STATUS;
+                };
+            };
+        };
+    };
+
Signature · 1 line
2.39.5
#2 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 8 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Quoted 9 lines

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
 1 file changed, 128 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/sony,cronos-smc.example.dtb: smc@3f (sony,cronos-smc): Unevaluated properties are not allowed ('timeout-sec' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/sony,cronos-smc.yaml

doc reference errors (make refcheckdocs):

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.

#3 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

In reply to Timothy Pearson
Quoted 8 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Quoted 6 lines

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Best regards,
Krzysztof

#4 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

----- Original Message -----

Quoted 20 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 10 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

Quoted 8 lines
Quoted 4 lines
---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

If this driver is simply something you don't want to see in the kernel that would be useful information for us to know, and would avoid having to go through another patch series. That information would allow us to simply push this downstream to OpenBMC as a kernel patch set for this particular platform.

#5 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 28 lines · Timothy Pearson

----- Original Message -----

Quoted 25 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 14 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
Quoted 5 lines
Quoted 3 lines

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

And where is this explained? Please always provide detailed changelog in the cover letter or individual patch.

Quoted 2 lines

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

I am using DT schema on multiple distros, including Debian but not Sid but Trixie
(https://krzk.eu/#/builders/91/builds/116/steps/13/logs/stdio). Works without problem...

On regular Debian based distro this is just few commands - pix install and them make dt_binding_check - so I am surprised you spent a lot of time on setting this up.

What is the problem exactly?

Please wrap your replies to match mailing list style.

Best regards,
Krzysztof

#6 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

----- Original Message -----

Quoted 61 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 11:18:09 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 31 lines · Timothy Pearson

----- Original Message -----

Quoted 28 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 14 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
Quoted 6 lines
Quoted 3 lines

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

And where is this explained? Please always provide detailed changelog in the cover letter or individual patch.

Quoted 9 lines

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

Quoted 4 lines

I am using DT schema on multiple distros, including Debian but not Sid but Trixie
(https://krzk.eu/#/builders/91/builds/116/steps/13/logs/stdio). Works without problem...

Good to know. There is next to no documentation on the required software versions to make this work, which complicates

Quoted 5 lines

On regular Debian based distro this is just few commands - pix install and them make dt_binding_check - so I am surprised you spent a lot of time on setting this up.

What is the problem exactly?

Good to know. There is next to no documentation on the required software versions to make this work, which complicates setup. Bookworm's DT package was too old when it was tried pre-Trixie release, and at the time Sid didn't work either for some other reason. The assumption was that the kernel needed a very recent version of the DT tooling, so Sid was tried again this year. Will try Trixie before the next patch update.

Here is example output against an in-tree driver, using an up to date Sid system (word wrap not applied so as to make the errors easier to read):

dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml

CHKDT ./Documentation/devicetree/bindings
Traceback (most recent call last):
File "/usr/bin/dt-doc-validate", line 8, in <module>

    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3/dist-packages/dtschema/doc_validate.py", line 66, in main
    ret |= check_doc(f)
           ~~~~~~~~~^^^
  File "/usr/lib/python3/dist-packages/dtschema/doc_validate.py", line 29, in check_doc
    for error in sorted(dtsch.iter_errors(), key=lambda e: e.linecol):
                 ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dtschema/schema.py", line 167, in iter_errors
    self.validator = self.DtValidator(registry.contents(meta_schema_id), registry=registry)
                                      ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/referencing/_core.py", line 488, in contents
    return self[uri].contents
           ~~~~^^^^^

File "/usr/lib/python3/dist-packages/referencing/_core.py", line 338, in __getitem__
raise exceptions.NoSuchResource(ref=uri) from None
referencing.exceptions.NoSuchResource: 'http://devicetree.org/meta-schemas/core.yaml'
LINT ./Documentation/devicetree/bindings
DTC [C] Documentation/devicetree/bindings/mfd/silergy,sy7636a.example.dtb
/home/test/linux/Documentation/devicetree/bindings/mfd/silergy,sy7636a.example.dtb: pmic@62 (silergy,sy7636a): #thermal-sensor-cells: 0 was expected
from schema $id: http://devicetree.org/schemas/mfd/silergy,sy7636a.yaml
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/referencing/_core.py", line 428, in get_or_retrieve
resource = registry._retrieve(uri)
File "/usr/lib/python3/dist-packages/dtschema/validator.py", line 426, in retrieve

    return DRAFT201909.create_resource(self.schemas[uri])
                                       ~~~~~~~~~~~~^^^^^

KeyError: 'http://devicetree.org/schemas/types.yaml'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/referencing/_core.py", line 682, in lookup
retrieved = self._registry.get_or_retrieve(uri)
File "/usr/lib/python3/dist-packages/referencing/_core.py", line 435, in get_or_retrieve
raise exceptions.Unretrievable(ref=uri) from error
referencing.exceptions.Unretrievable: 'http://devicetree.org/schemas/types.yaml'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 463, in _validate_reference
resolved = self._resolver.lookup(ref)
File "/usr/lib/python3/dist-packages/referencing/_core.py", line 686, in lookup
raise exceptions.Unresolvable(ref=ref) from error
referencing.exceptions.Unresolvable: /schemas/types.yaml#/definitions/string

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/bin/dt-validate", line 8, in <module>

    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3/dist-packages/dtschema/dtb_validate.py", line 158, in main
    sg.check_dtb(filename)
    ~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dtschema/dtb_validate.py", line 95, in check_dtb
    self.check_subtree(dt, subtree, False, "/", "/", filename)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dtschema/dtb_validate.py", line 88, in check_subtree
    self.check_subtree(tree, value, disabled, name, fullname + name, filename)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dtschema/dtb_validate.py", line 88, in check_subtree
    self.check_subtree(tree, value, disabled, name, fullname + name, filename)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dtschema/dtb_validate.py", line 88, in check_subtree
    self.check_subtree(tree, value, disabled, name, fullname + name, filename)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dtschema/dtb_validate.py", line 83, in check_subtree
    self.check_node(tree, subtree, disabled, nodename, fullname, filename)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dtschema/dtb_validate.py", line 34, in check_node
    for error in self.validator.iter_errors(node, filter=match_schema_file,
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                            compatible_match=compatible_match):
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dtschema/validator.py", line 448, in iter_errors
    for error in self.DtValidator(schema, registry=self.registry).iter_errors(instance):
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 384, in iter_errors
    for error in errors:
                 ^^^^^^
  File "/usr/lib/python3/dist-packages/jsonschema/_keywords.py", line 296, in properties
    yield from validator.descend(
    ...<4 lines>...
    )
  File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 432, in descend
    for error in errors:
                 ^^^^^^
  File "/usr/lib/python3/dist-packages/jsonschema/_keywords.py", line 296, in properties
    yield from validator.descend(
    ...<4 lines>...
    )
  File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 432, in descend
    for error in errors:
                 ^^^^^^
  File "/usr/lib/python3/dist-packages/jsonschema/_keywords.py", line 275, in ref
    yield from validator._validate_reference(ref=ref, instance=instance)
  File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 432, in descend
    for error in errors:
                 ^^^^^^
  File "/usr/lib/python3/dist-packages/jsonschema/_keywords.py", line 296, in properties
    yield from validator.descend(
    ...<4 lines>...
    )

File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 432, in descend
for error in errors:
^^^^^^
File "/usr/lib/python3/dist-packages/jsonschema/_keywords.py", line 275, in ref
yield from validator._validate_reference(ref=ref, instance=instance)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 465, in _validate_reference
raise exceptions._WrappedReferencingError(err) from err
jsonschema.exceptions._WrappedReferencingError: Unresolvable: /schemas/types.yaml#/definitions/string

#7 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 75 lines · Timothy Pearson

----- Original Message -----

Quoted 61 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 11:18:09 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 31 lines · Timothy Pearson

----- Original Message -----

Quoted 28 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 14 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
Quoted 6 lines
Quoted 3 lines

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

And where is this explained? Please always provide detailed changelog in the cover letter or individual patch.

Quoted 9 lines

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

Quoted 4 lines

I am using DT schema on multiple distros, including Debian but not Sid but Trixie
(https://krzk.eu/#/builders/91/builds/116/steps/13/logs/stdio). Works without problem...

Good to know. There is next to no documentation on the required software versions to make this work, which complicates

Quoted 4 lines

On regular Debian based distro this is just few commands - pix install and them make dt_binding_check - so I am surprised you spent a lot of time on setting this up.

Quoted 8 lines
Quoted 1 line

What is the problem exactly?

Good to know. There is next to no documentation on the required software versions to make this work, which complicates setup. Bookworm's DT package was too old when it was tried pre-Trixie release, and at the time Sid didn't work either for some other reason. The assumption was that the kernel needed a very recent version of the DT tooling, so Sid was tried again this year. Will try Trixie before the next patch update.

So you mean from distro? We don't use it from the distro because it's heavily outdated. It makes no sense. That's why I wrote - pipx.

Quoted 4 lines

Here is example output against an in-tree driver, using an up to date Sid system (word wrap not applied so as to make the errors easier to read):

Quoted 8 lines

dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml

CHKDT ./Documentation/devicetree/bindings
Traceback (most recent call last):
File "/usr/bin/dt-doc-validate", line 8, in <module>

    sys.exit(main())
             ~~~~^^

File "/usr/lib/python3/dist-packages/dtschema/doc_validate.py", line 66, in main

Feels liks distro package. Never saw this, but again I have never used distro and have absolutely never recommended even trying that. There were problems with matching jsonschema package, but regardless - if you use distro you will use very old schemas, so you will hit another problem. It's just pointless to rely on distro here - no benefits for you, but only stale/old package, especially that installing via pipx is easy.

Best regards,
Krzysztof

#8 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

----- Original Message -----

Quoted 116 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 2:22:33 PM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 79 lines · Timothy Pearson

----- Original Message -----

Quoted 64 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 11:18:09 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 31 lines · Timothy Pearson

----- Original Message -----

Quoted 28 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 14 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
Quoted 6 lines
Quoted 3 lines

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

And where is this explained? Please always provide detailed changelog in the cover letter or individual patch.

Quoted 9 lines

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

Quoted 4 lines

I am using DT schema on multiple distros, including Debian but not Sid but Trixie
(https://krzk.eu/#/builders/91/builds/116/steps/13/logs/stdio). Works without problem...

Good to know. There is next to no documentation on the required software versions to make this work, which complicates

Quoted 4 lines

On regular Debian based distro this is just few commands - pix install and them make dt_binding_check - so I am surprised you spent a lot of time on setting this up.

Quoted 8 lines
Quoted 1 line

What is the problem exactly?

Good to know. There is next to no documentation on the required software versions to make this work, which complicates setup. Bookworm's DT package was too old when it was tried pre-Trixie release, and at the time Sid didn't work either for some other reason. The assumption was that the kernel needed a very recent version of the DT tooling, so Sid was tried again this year. Will try Trixie before the next patch update.

So you mean from distro? We don't use it from the distro because it's heavily outdated. It makes no sense. That's why I wrote - pipx.

Quoted 7 lines

Here is example output against an in-tree driver, using an up to date Sid system (word wrap not applied so as to make the errors easier to read):

dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml

Quoted 6 lines

CHKDT ./Documentation/devicetree/bindings
Traceback (most recent call last):
File "/usr/bin/dt-doc-validate", line 8, in <module>

    sys.exit(main())
             ~~~~^^

File "/usr/lib/python3/dist-packages/dtschema/doc_validate.py", line 66, in main

Quoted 7 lines

Feels liks distro package. Never saw this, but again I have never used distro and have absolutely never recommended even trying that. There were problems with matching jsonschema package, but regardless - if you use distro you will use very old schemas, so you will hit another problem. It's just pointless to rely on distro here - no benefits for you, but only stale/old package, especially that installing via pipx is easy.

In my opinion, the distro package should be fixed. There are security considerations with PyPI [1], and those concerns then require (per our policies) the use of isolated systems due to downloading and running unsigned and (at least on our end) unaudited code from the general Internet. The distro packages are signed and built from source on known trusted systems, in contrast with pip's general mode of operation, and I can't imagine it would be that difficult to make sure that Debian and Fedora (the two most common base distros) ship a reasonably new version of the valdation tools, especially in unstable / bleeding edge releases (Sid).

That said, for now, I guess I'll spin up a new VM and give pipx a shot. Thanks for the pointer in the right direction!

[1] https://carles-garcia.net/python/python_pip/

#9 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 128 lines · Timothy Pearson

----- Original Message -----

Quoted 116 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 2:22:33 PM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 79 lines · Timothy Pearson

----- Original Message -----

Quoted 64 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 11:18:09 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 31 lines · Timothy Pearson

----- Original Message -----

Quoted 28 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 14 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
Quoted 6 lines
Quoted 3 lines

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

And where is this explained? Please always provide detailed changelog in the cover letter or individual patch.

Quoted 9 lines

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

Quoted 4 lines

I am using DT schema on multiple distros, including Debian but not Sid but Trixie
(https://krzk.eu/#/builders/91/builds/116/steps/13/logs/stdio). Works without problem...

Good to know. There is next to no documentation on the required software versions to make this work, which complicates

Quoted 4 lines

On regular Debian based distro this is just few commands - pix install and them make dt_binding_check - so I am surprised you spent a lot of time on setting this up.

Quoted 8 lines
Quoted 1 line

What is the problem exactly?

Good to know. There is next to no documentation on the required software versions to make this work, which complicates setup. Bookworm's DT package was too old when it was tried pre-Trixie release, and at the time Sid didn't work either for some other reason. The assumption was that the kernel needed a very recent version of the DT tooling, so Sid was tried again this year. Will try Trixie before the next patch update.

So you mean from distro? We don't use it from the distro because it's heavily outdated. It makes no sense. That's why I wrote - pipx.

Quoted 7 lines

Here is example output against an in-tree driver, using an up to date Sid system (word wrap not applied so as to make the errors easier to read):

dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml

Quoted 6 lines

CHKDT ./Documentation/devicetree/bindings
Traceback (most recent call last):
File "/usr/bin/dt-doc-validate", line 8, in <module>

    sys.exit(main())
             ~~~~^^

File "/usr/lib/python3/dist-packages/dtschema/doc_validate.py", line 66, in main

Quoted 7 lines

Feels liks distro package. Never saw this, but again I have never used distro and have absolutely never recommended even trying that. There were problems with matching jsonschema package, but regardless - if you use distro you will use very old schemas, so you will hit another problem. It's just pointless to rely on distro here - no benefits for you, but only stale/old package, especially that installing via pipx is easy.

Quoted 1 line

In my opinion, the distro package should be fixed. There are security considerations with PyPI [1], and those concerns then require (per our policies) the use of isolated systems due to downloading and running unsigned and (at least on our end) unaudited code from the general Internet. The distro packages are signed and built from source on known trusted systems, in contrast with pip's general mode of operation, and I can't imagine it would be that difficult to make sure that Debian and Fedora (the two most common base distros) ship a reasonably new version of the valdation tools, especially in unstable / bleeding edge releases (Sid).

You can install all the dependencies from the distros (assuming json-schema >= 4.18) and install dtschema from git.

Rob

#10 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

In reply to Timothy Pearson
Quoted 72 lines · Timothy Pearson

----- Original Message -----

Quoted 61 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 11:18:09 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 31 lines · Timothy Pearson

----- Original Message -----

Quoted 28 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 14 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
Quoted 6 lines
Quoted 3 lines

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

And where is this explained? Please always provide detailed changelog in the cover letter or individual patch.

Quoted 9 lines

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

Quoted 4 lines

I am using DT schema on multiple distros, including Debian but not Sid but Trixie
(https://krzk.eu/#/builders/91/builds/116/steps/13/logs/stdio). Works without problem...

Good to know. There is next to no documentation on the required software versions to make this work, which complicates

Quoted 8 lines
Quoted 5 lines

On regular Debian based distro this is just few commands - pix install and them make dt_binding_check - so I am surprised you spent a lot of time on setting this up.

What is the problem exactly?

Good to know. There is next to no documentation on the required software versions to make this work, which complicates setup.

$latest

It's as simple as that. There is some checking of a minimum version, but maybe we need to bump it more aggressively. I haven't because older versions might work.

Quoted 5 lines

Bookworm's DT package was
too old when it was tried pre-Trixie release, and at the time Sid didn't work either for some other reason. The assumption was that the kernel needed a very recent version of the DT tooling, so Sid was tried again this year. Will try Trixie before the next patch update.

Don't use the distro version. There's no one checking that it works.

One problem here (and for distro packaging) has been json-schema pkg breaking us. So we were stuck on <4.18 for a long time and now require

Quoted 1 line

=4.18.

Rob

#11 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

----- Original Message -----

Quoted 108 lines

From: "Rob Herring" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "Krzysztof Kozlowski" <[email protected]>, "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 6:20:25 PM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 76 lines · Timothy Pearson

----- Original Message -----

Quoted 64 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 11:18:09 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 31 lines · Timothy Pearson

----- Original Message -----

Quoted 28 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 14 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
Quoted 6 lines
Quoted 3 lines

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

And where is this explained? Please always provide detailed changelog in the cover letter or individual patch.

Quoted 9 lines

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

Quoted 4 lines

I am using DT schema on multiple distros, including Debian but not Sid but Trixie
(https://krzk.eu/#/builders/91/builds/116/steps/13/logs/stdio). Works without problem...

Good to know. There is next to no documentation on the required software versions to make this work, which complicates

Quoted 8 lines
Quoted 5 lines

On regular Debian based distro this is just few commands - pix install and them make dt_binding_check - so I am surprised you spent a lot of time on setting this up.

What is the problem exactly?

Good to know. There is next to no documentation on the required software versions to make this work, which complicates setup.

$latest

It's as simple as that. There is some checking of a minimum version, but maybe we need to bump it more aggressively. I haven't because older versions might work.

Quoted 5 lines

Bookworm's DT package was
too old when it was tried pre-Trixie release, and at the time Sid didn't work either for some other reason. The assumption was that the kernel needed a very recent version of the DT tooling, so Sid was tried again this year. Will try Trixie before the next patch update.

Quoted 7 lines

Don't use the distro version. There's no one checking that it works.

One problem here (and for distro packaging) has been json-schema pkg breaking us. So we were stuck on <4.18 for a long time and now require

Quoted 1 line

=4.18.

Rob

OK, so this came back up while preparing v7 of this patch series. Set up the isolated machine etc., installed both dtschema and yamllint from PyPI as recommended, and after rebasing on the latest kernel tree I get:

make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml

  SCHEMA  Documentation/devicetree/bindings/processed-schema.json
  CHKDT   ./Documentation/devicetree/bindings
  LINT    ./Documentation/devicetree/bindings

usage: yamllint [-h] [-] [-c CONFIG_FILE | -d CONFIG_DATA] [--list-files] [-f {parsable,standard,colored,github,auto}] [-s] [--no-warnings] [-v] [FILE_OR_DIR ...]
yamllint: error: one of the arguments FILE_OR_DIR - is required

Is there more magic $version / install method stuff needed?

Appreciate the assistance in getting this going.

#12 lore raw

Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 122 lines · Timothy Pearson

----- Original Message -----

Quoted 108 lines

From: "Rob Herring" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "Krzysztof Kozlowski" <[email protected]>, "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>
Sent: Wednesday, January 7, 2026 6:20:25 PM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 76 lines · Timothy Pearson

----- Original Message -----

Quoted 64 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 11:18:09 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 31 lines · Timothy Pearson

----- Original Message -----

Quoted 28 lines

From: "Krzysztof Kozlowski" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>,
"Lee Jones" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio"
<[email protected]>
Sent: Wednesday, January 7, 2026 1:25:10 AM
Subject: Re: [PATCH v6 1/4] dt-bindings: mfd: Add sony,cronos-smc

Quoted 14 lines · Timothy Pearson

From: Shawn Anastasio <[email protected]>

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

Add a DT binding for this device.

---
 .../bindings/mfd/sony,cronos-smc.yaml         | 128 ++++++++++++++++++
Quoted 6 lines
Quoted 3 lines

How this can be a v6 with no changelog at all and still not tested?

What happened with this patchset? Where is it explained?

Changes have only been to fix issues identified in review and any posted autotest failures.

And where is this explained? Please always provide detailed changelog in the cover letter or individual patch.

Quoted 9 lines

Please note that the tooling to check the DT bindings does NOT appear work properly, we've wasted a lot of time and effort attempting to get it running only to find that it's spitting out internal Python errors even for other drivers that are *already* in the kernel source tree. This obviously creates a situation where it's difficult to pre-check the patch set for compliance; if you want to see this first hand, spin up a Debian Sid VM (which has a very recent version of the DT tooling from late 2025) and try to check any of the in-tree MFD drivers using the documented methods.

Quoted 4 lines

I am using DT schema on multiple distros, including Debian but not Sid but Trixie
(https://krzk.eu/#/builders/91/builds/116/steps/13/logs/stdio). Works without problem...

Good to know. There is next to no documentation on the required software versions to make this work, which complicates

Quoted 8 lines
Quoted 5 lines

On regular Debian based distro this is just few commands - pix install and them make dt_binding_check - so I am surprised you spent a lot of time on setting this up.

What is the problem exactly?

Good to know. There is next to no documentation on the required software versions to make this work, which complicates setup.

$latest

It's as simple as that. There is some checking of a minimum version, but maybe we need to bump it more aggressively. I haven't because older versions might work.

Quoted 5 lines

Bookworm's DT package was
too old when it was tried pre-Trixie release, and at the time Sid didn't work either for some other reason. The assumption was that the kernel needed a very recent version of the DT tooling, so Sid was tried again this year. Will try Trixie before the next patch update.

Quoted 7 lines

Don't use the distro version. There's no one checking that it works.

One problem here (and for distro packaging) has been json-schema pkg breaking us. So we were stuck on <4.18 for a long time and now require

Quoted 1 line

=4.18.

Rob

OK, so this came back up while preparing v7 of this patch series. Set up the isolated machine etc., installed both dtschema and yamllint from PyPI as recommended, and after rebasing on the latest kernel tree I get:

Quoted 8 lines

make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml

  SCHEMA  Documentation/devicetree/bindings/processed-schema.json
  CHKDT   ./Documentation/devicetree/bindings
  LINT    ./Documentation/devicetree/bindings

usage: yamllint [-h] [-] [-c CONFIG_FILE | -d CONFIG_DATA] [--list-files] [-f {parsable,standard,colored,github,auto}] [-s] [--no-warnings] [-v] [FILE_OR_DIR ...]
yamllint: error: one of the arguments FILE_OR_DIR - is required

Is there more magic $version / install method stuff needed?

That only happens to me if DT_SCHEMA_FILES points to something that doesn't match anything.

Rob

#13 lore raw

PATCH v6 2/4 mfd: sony-cronos-smc: Add driver for Sony Cronos SMC

In reply to Timothy Pearson

The Sony Cronos Platform Controller is a multi-purpose platform controller that provides both a watchdog timer and an LED controller for the Sony Interactive Entertainment Cronos x86 server platform. As both functions are provided by the same CPLD, a multi-function device is exposed as the parent of both functions.

---
 MAINTAINERS                     |   7 ++
 drivers/mfd/Kconfig             |  11 ++
 drivers/mfd/Makefile            |   2 +
 drivers/mfd/sony-cronos-smc.c   | 212 ++++++++++++++++++++++++++++++++
 include/linux/mfd/sony-cronos.h |  61 +++++++++
 5 files changed, 293 insertions(+)
 create mode 100644 drivers/mfd/sony-cronos-smc.c
 create mode 100644 include/linux/mfd/sony-cronos.h
MAINTAINERS +7 -0
index a0dd762f5648..b5860a5dd7d7 100644
@@ -24281,6 +24281,13 @@ S:	Maintained
 F:	drivers/ssb/
 F:	include/linux/ssb/
 
+SONY CRONOS SMC DRIVER
+M:	Georgy Yakovlev <[email protected]>
+S:	Maintained
+F:	Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml
+F:	drivers/mfd/sony-cronos-smc.c
+F:	include/linux/mfd/sony-cronos.h
+
 SONY IMX208 SENSOR DRIVER
 M:	Sakari Ailus <[email protected]>
 L:	[email protected]
drivers/mfd/Kconfig +11 -0
index aace5766b38a..559aa64500e6 100644
@@ -2388,6 +2388,17 @@ config MFD_QCOM_PM8008
 	  under it in the device tree. Additional drivers must be enabled in
 	  order to use the functionality of the device.
 
+config MFD_SONY_CRONOS_SMC
+	tristate "Sony Cronos System Management Controller"
+	select MFD_CORE
+	select REGMAP_I2C
+	depends on I2C && OF
+	help
+      Support for the Sony Cronos system controller. Additional drivers must
+      be enabled in order to use the functionality of the device, including LED
+      control and the system watchdog. The controller itself is a custom design
+      tailored to the specific needs of the Sony Cronos hardware platform.
+
 menu "Multimedia Capabilities Port drivers"
 	depends on ARCH_SA1100
 
drivers/mfd/Makefile +2 -0
index e75e8045c28a..2e8cf0c7096c 100644
@@ -301,6 +301,8 @@ obj-$(CONFIG_MFD_QNAP_MCU)	+= qnap-mcu.o
 obj-$(CONFIG_MFD_RSMU_I2C)	+= rsmu_i2c.o rsmu_core.o
 obj-$(CONFIG_MFD_RSMU_SPI)	+= rsmu_spi.o rsmu_core.o
 
+obj-$(CONFIG_MFD_SONY_CRONOS_SMC)	+= sony-cronos-smc.o
+
 obj-$(CONFIG_MFD_UPBOARD_FPGA)	+= upboard-fpga.o
 
 obj-$(CONFIG_MFD_LOONGSON_SE)	+= loongson-se.o
drivers/mfd/sony-cronos-smc.c new file +212 -0

213 lines not on this page · raw message

include/linux/mfd/sony-cronos.h new file +61 -0

61 lines not on this page · raw message

Signature · 1 line
2.39.5
#14 lore raw

Re: [PATCH v6 2/4] mfd: sony-cronos-smc: Add driver for Sony Cronos SMC

Quoted 25 lines · Timothy Pearson
drivers/mfd/sony-cronos-smc.c new file +25 -0
+static const struct of_device_id cronos_smc_dt_ids[] = {
+	{
+		.compatible = "sony,cronos-smc",
+	},
+	{},
+};
+MODULE_DEVICE_TABLE(of, cronos_smc_dt_ids);
+
+static int sony_cronos_i2c_probe(struct i2c_client *i2c)
+{
+	struct sony_cronos_smc *ddata;
+	int ret;
+
+	ddata = devm_kzalloc(&i2c->dev, sizeof(*ddata), GFP_KERNEL);
+	if (!ddata)
+		return -ENOMEM;
+
+	i2c_set_clientdata(i2c, ddata);
+	ddata->dev = &i2c->dev;
+
+	ddata->regmap = devm_regmap_init_i2c(i2c, &cronos_smc_regmap_config);
+	if (IS_ERR(ddata->regmap)) {
+		return dev_err_probe(ddata->dev, PTR_ERR(ddata->regmap),
+				     "Failed to allocate register map\n");
+	}

drivers/mfd/sony-cronos-smc.c line 187

Quoted 10 lines
drivers/mfd/sony-cronos-smc.c new file +10 -0
+
+	ret = sony_cronos_get_device_type(ddata);
+	if (ret)
+		return ret;
+
+	ret = mfd_add_devices(ddata->dev, PLATFORM_DEVID_AUTO, cronos_smc_devs,
+			      ARRAY_SIZE(cronos_smc_devs), NULL, 0, NULL);
+	if (ret) {
+		dev_err(ddata->dev, "Failed to register child devices\n");
+		return ret;

return dev_err_probe

Quoted 6 lines
drivers/mfd/sony-cronos-smc.c new file +6 -0
+	}
+
+	return ret;
+}
+
+static void sony_cronos_i2c_remove(struct i2c_client *i2c)

drivers/mfd/sony-cronos-smc.c line 203

Quoted 10 lines
drivers/mfd/sony-cronos-smc.c new file +10 -0
+{
+	struct sony_cronos_smc *ddata = i2c_get_clientdata(i2c);
+
+	mfd_remove_devices(ddata->dev);
+}
+
+static struct i2c_driver sony_cronos_i2c_driver = {
+	.driver = {
+		.name = "sony-cronos-smc",
+		.of_match_table = of_match_ptr(cronos_smc_dt_ids),

You still have here compile test warnings. Drop of_match_ptr.

drivers/mfd/sony-cronos-smc.c line 212

Quoted 10 lines
drivers/mfd/sony-cronos-smc.c new file +9 -0
+	},
+	.probe = sony_cronos_i2c_probe,
+	.remove = sony_cronos_i2c_remove,
+};
+module_i2c_driver(sony_cronos_i2c_driver);
+
+MODULE_DESCRIPTION("Device driver for the Sony Cronos system management controller");
+MODULE_AUTHOR("Raptor Engineering, LLC <[email protected]>");
+MODULE_LICENSE("GPL");
\ No newline at end of file

And still the same warning - since v4 or earlier!

Please read own patches.

Best regards,
Krzysztof

#15 lore raw

PATCH v6 3/4 led: sony-cronos-smc: Add RGB LED driver for Sony Cronos SMC

In reply to Timothy Pearson

The Sony Cronos Platform Controller is a multi-purpose platform controller with an integrated multi-channel RGB LED controller. The LED controller is a pseudo-RGB device with only two states for each of the RGB subcomponents of each LED, but is exposed as a full RGB device for ease of integration with userspace software. Internal thresholding is used to convert the color values to the required on/off RGB subcomponent controls.

---
 drivers/leds/Kconfig            |  19 ++
 drivers/leds/Makefile           |   1 +
 drivers/leds/leds-sony-cronos.c | 376 ++++++++++++++++++++++++++++++++
 3 files changed, 396 insertions(+)
 create mode 100644 drivers/leds/leds-sony-cronos.c
drivers/leds/Kconfig +19 -0
index 11e7282dc297..18bad7c643f3 100644
@@ -1009,6 +1009,25 @@ config LEDS_IP30
 	  To compile this driver as a module, choose M here: the module
 	  will be called leds-ip30.
 
+config LEDS_SONY_CRONOS
+	tristate "LED support for the Sony Cronos SMC"
+	depends on ARCH_ASPEED || COMPILE_TEST
+	depends on LEDS_CLASS && I2C
+	depends on LEDS_CLASS_MULTICOLOR
+	depends on MFD_SONY_CRONOS_SMC
+
+	help
+	  Say Y here to include support for LEDs for the
+	  Sony Cronos system management controller.
+
+	  All known Cronos systems use the ASpeed AST2600 SoC,
+	  therefore the configuration option is gated on
+	  ARCH_ASPEED selection.  If this changes, add the new
+	  SoCs to the selection list.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called leds-sony-cronos.
+
 config LEDS_ACER_A500
 	tristate "Power button LED support for Acer Iconia Tab A500"
 	depends on LEDS_CLASS && MFD_ACER_A500_EC
drivers/leds/Makefile +1 -0
index 9a0333ec1a86..6dbcf747cab6 100644
@@ -84,6 +84,7 @@ obj-$(CONFIG_LEDS_POWERNV)		+= leds-powernv.o
 obj-$(CONFIG_LEDS_PWM)			+= leds-pwm.o
 obj-$(CONFIG_LEDS_QNAP_MCU)		+= leds-qnap-mcu.o
 obj-$(CONFIG_LEDS_REGULATOR)		+= leds-regulator.o
+obj-$(CONFIG_LEDS_SONY_CRONOS)		+= leds-sony-cronos.o
 obj-$(CONFIG_LEDS_SC27XX_BLTC)		+= leds-sc27xx-bltc.o
 obj-$(CONFIG_LEDS_ST1202)		+= leds-st1202.o
 obj-$(CONFIG_LEDS_SUN50I_A100)		+= leds-sun50i-a100.o
drivers/leds/leds-sony-cronos.c new file +376 -0

376 lines not on this page · raw message

Signature · 1 line
2.39.5
#16 lore raw

PATCH v6 4/4 watchdog: sony-cronos-smc: Add watchdog driver for Sony Cronos SMC

In reply to Timothy Pearson

The Sony Cronos Platform Controller is a multi-purpose platform controller with an integrated watchdog. Add the watchdog driver for the Cronos SMC.

---
 drivers/watchdog/Kconfig           |  17 ++
 drivers/watchdog/Makefile          |   1 +
 drivers/watchdog/sony-cronos-wdt.c | 283 +++++++++++++++++++++++++++++
 3 files changed, 301 insertions(+)
 create mode 100644 drivers/watchdog/sony-cronos-wdt.c
drivers/watchdog/Kconfig +17 -0
index d3b9df7d466b..9001e4184e9d 100644
@@ -416,6 +416,23 @@ config SL28CPLD_WATCHDOG
 	  To compile this driver as a module, choose M here: the
 	  module will be called sl28cpld_wdt.
 
+config SONY_CRONOS_WATCHDOG
+	tristate "Sony Cronos CPLD Watchdog"
+	depends on ARCH_ASPEED || COMPILE_TEST
+	depends on I2C
+	select WATCHDOG_CORE
+	help
+	  Say Y here to include support for the watchdog timer
+	  for the Sony Cronos control CPLD.
+
+	  All known Cronos systems use the ASpeed AST2600 SoC,
+	  therefore the configuration option is gated on
+	  ARCH_ASPEED selection.  If this changes, add the new
+	  SoCs to the selection list.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called sony-cronos-wdt.
+
 # ALPHA Architecture
 
 # ARM Architecture
drivers/watchdog/Makefile +1 -0
index ba52099b1253..aa4d7aa15613 100644
@@ -244,3 +244,4 @@ obj-$(CONFIG_MENZ069_WATCHDOG) += menz69_wdt.o
 obj-$(CONFIG_RAVE_SP_WATCHDOG) += rave-sp-wdt.o
 obj-$(CONFIG_STPMIC1_WATCHDOG) += stpmic1_wdt.o
 obj-$(CONFIG_SL28CPLD_WATCHDOG) += sl28cpld_wdt.o
+obj-$(CONFIG_SONY_CRONOS_WATCHDOG) += sony-cronos-wdt.o
drivers/watchdog/sony-cronos-wdt.c new file +283 -0

283 lines not on this page · raw message

Signature · 1 line
2.39.5