Add drivers for Sony Cronos control CPLD
v7 cover Add drivers for Sony Cronos control CPLD
From: Timothy Pearson <[email protected]>
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.
Changes in v7:
* Fix DT binding check errors
* Minor fixups to MFD driver per maintainer request
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 | 204 ++++++++++ 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, 1110 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
PATCH v7 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
@@ -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>; + + watchdog { + compatible = "sony,cronos-watchdog"; + + timeout-sec = <20>; + }; + + 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
Rob Herring
maintainerRe: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smc
Quoted 7 lines · Raptor Engineering Development Team
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.
Why do we have DT bindings for a x86 server platform?
Rob
Lee Jones
maintainerRe: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smc
Quoted 10 lines · Rob Herring
Quoted 7 lines · Raptor Engineering Development Team
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.
Why do we have DT bindings for a x86 server platform?
This looks like an ARM device that connects to an x86 platform.
Note: The drivers look okay, but we need a DT Ack to merged them.
Signature · 1 line
Lee Jones [李琼斯]
Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smc
Quoted 11 lines · Lee Jones
Quoted 9 lines · Rob Herring
Quoted 7 lines · Raptor Engineering Development Team
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 3 lines
Quoted 1 line
Why do we have DT bindings for a x86 server platform?
This looks like an ARM device that connects to an x86 platform.
I dunno. The text talks about "this" being a cpld, so at best it would have to be connected to an arm SoC that's on the x86 platform's board, acting as a BMC or something similar.
Unless by "this" you don't mean the device in the binding, but rather the platform that the device in the binding is connected to.
I've kept this in my mailbox for the last month, because I was wondering the same thing as Rob, and there's been no engagement from the submitter at all. I don't think that that should be rewarded by trying to give the benefit of the doubt.
Quoted 1 line
Note: The drivers look okay, but we need a DT Ack to merged them.
Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smc
----- Original Message -----
Quoted 32 lines
From: "Conor Dooley" <[email protected]>
To: "Lee Jones" <[email protected]>
Cc: "robh" <[email protected]>, "Raptor Engineering Development Team" <[email protected]>, "devicetree" <[email protected]>, "linux-kernel" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Georgy Yakovlev" <[email protected]>, "Shawn Anastasio" <[email protected]>, "Timothy Pearson" <[email protected]>
Sent: Friday, March 6, 2026 10:49:56 AM
Subject: Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smcQuoted 12 lines · Lee Jones
Quoted 10 lines · Rob Herring
Quoted 7 lines · Raptor Engineering Development Team
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 3 lines
Quoted 1 line
Why do we have DT bindings for a x86 server platform?
This looks like an ARM device that connects to an x86 platform.
I dunno. The text talks about "this" being a cpld, so at best it would have to be connected to an arm SoC that's on the x86 platform's board, acting as a BMC or something similar.
Unless by "this" you don't mean the device in the binding, but rather the platform that the device in the binding is connected to.
Quoted 4 lines
I've kept this in my mailbox for the last month, because I was wondering the same thing as Rob, and there's been no engagement from the submitter at all. I don't think that that should be rewarded by trying to give the benefit of the doubt.
Apologies for the lack of response, I hadn't seen the initial Email.
As suspected, this patch set is required to enable the ARM-based BMC SoC on the custom x86 server platform. The peripherals in question are attached directly to the BMC, hence the need to have DT bindings for their drivers. The BMC runs the OpenBMC firmware stack, which does not accept downstream patches to the Linux kernel and thus the Linux kernel itself ends up as a gate for new BMC platform enablement.
Thank you!
Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smc
In reply to Raptor Engineering Development TeamQuoted 94 lines · Raptor Engineering Development Team
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.
Signed-off-by Shawn Anastasio <[email protected]>Signed-off-by Timothy Pearson <[email protected]>--- .../bindings/mfd/sony,cronos-smc.yaml | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-smc.yamlDocumentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +71
-0@@ -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" +
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml line 81
Quoted 10 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +10
-0+ watchdog: + type: object + + $ref: /schemas/watchdog/watchdog.yaml + + properties: + compatible: + const: sony,cronos-watchdog + + timeout-sec: true
Why is there a child node to just add timeout-sec? Didn't Krzysztof ask you to come up with a generic node name for the mfd to use instead of "smc", and to modify watchdog.yaml to accept the new node name? See here:
https://lore.kernel.org/all/[email protected]/
Something like "platform-controller" sounds generic to me, in a way that "smc" doesn't.
Cheers,
Conor.
Quoted 50 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +47
-0+ + 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>; + + watchdog { + compatible = "sony,cronos-watchdog"; + + timeout-sec = <20>; + }; + + 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
Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smc
----- Original Message -----
Quoted 110 lines
From: "Conor Dooley" <[email protected]>
To: "Raptor Engineering Development Team" <[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]>, "Timothy Pearson" <[email protected]>
Sent: Friday, March 6, 2026 11:49:18 AM
Subject: Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smcQuoted 99 lines · Raptor Engineering Development Team
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.
Signed-off-by Shawn Anastasio <[email protected]>Signed-off-by Timothy Pearson <[email protected]>--- .../bindings/mfd/sony,cronos-smc.yaml | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-smc.yamlDocumentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +75
-0@@ -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
Quoted 8 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml line 81
Quoted 6 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +6
-0+ + properties: + compatible: + const: sony,cronos-watchdog + + timeout-sec: trueWhy is there a child node to just add timeout-sec?
When I tried Krzysztof's solution, the validation tools threw an error, and this was the only way I found to get them to stop throwing errors.
Quoted 8 lines
Didn't Krzysztof ask
you to come up with a generic node name for the mfd to use instead of "smc", and to modifywatchdog.yamlto accept the new node name? See here:
https://lore.kernel.org/all/[email protected]/Something like "platform-controller" sounds generic to me, in a way that "smc" doesn't.
SMC is the name of the hardware block in question. platform-controller generates some other confusion as there would be multiple separate hardware blocks that could fit that name.
Quoted 51 lines
Quoted 51 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +37
-0+ + 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>; + + watchdog { + compatible = "sony,cronos-watchdog"; + + timeout-sec = <20>; + }; + + leds { + compatible = "sony,cronos-led"; + #address-cells = <1>; + #size-cells = <0>; + + multi-led@0 { + /* + * No subnodes are needed, this controller only supportsRGB
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +10
-1+ * LEDs. + */ + reg = <0>; + color = <LED_COLOR_ID_MULTI>; + function = LED_FUNCTION_STATUS; + }; + }; + }; + }; + --2.39.5
Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smc
Quoted 122 lines · Timothy Pearson
----- Original Message -----
Quoted 110 lines
From: "Conor Dooley" <[email protected]>
To: "Raptor Engineering Development Team" <[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]>, "Timothy Pearson" <[email protected]>
Sent: Friday, March 6, 2026 11:49:18 AM
Subject: Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smcQuoted 99 lines · Raptor Engineering Development Team
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.
Signed-off-by Shawn Anastasio <[email protected]>Signed-off-by Timothy Pearson <[email protected]>--- .../bindings/mfd/sony,cronos-smc.yaml | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-smc.yamlDocumentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +75
-0@@ -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.yamlQuoted 8 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml line 81
Quoted 6 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +6
-0+ + properties: + compatible: + const: sony,cronos-watchdog + + timeout-sec: trueWhy is there a child node to just add timeout-sec?
Quoted 1 line
When I tried Krzysztof's solution, the validation tools threw an error, and this was the only way I found to get them to stop throwing errors.
So you were not able to do what he did, and modify watchdog.yaml? What did you try, and what were the errors?
Quoted 11 lines
Quoted 9 lines
Didn't Krzysztof ask
you to come up with a generic node name for the mfd to use instead of "smc", and to modifywatchdog.yamlto accept the new node name? See here:
https://lore.kernel.org/all/[email protected]/Something like "platform-controller" sounds generic to me, in a way that "smc" doesn't.
SMC is the name of the hardware block in question. platform-controller generates some other confusion as there would be multiple separate hardware blocks that could fit that name.
Node names do not have to be unique. If there are 10 platform controllers on the platform, then having 10 platform-controller@<foo> nodes would be fine. We explicitly want node-names to describe the type of device, not be a unique identifier. That's what compatible strings are for. I'm unsure why there would be any confusion caused by the node name, can you elaborate on that? What other devices connected to the BMC would be considered "platform controllers"?
There's no explanation anywhere here where "smc" even comes from, none of the description text or commit message has something that I would expect "smc" to be shorthand for.
Quoted 52 lines
Quoted 52 lines
Quoted 52 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +37
-0+ + 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>; + + watchdog { + compatible = "sony,cronos-watchdog"; + + timeout-sec = <20>; + }; + + leds { + compatible = "sony,cronos-led"; + #address-cells = <1>; + #size-cells = <0>; + + multi-led@0 { + /* + * No subnodes are needed, this controller only supportsRGB
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +10
-1+ * LEDs. + */ + reg = <0>; + color = <LED_COLOR_ID_MULTI>; + function = LED_FUNCTION_STATUS; + }; + }; + }; + }; + --2.39.5
Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smc
----- Original Message -----
Quoted 164 lines
From: "Conor Dooley" <[email protected]>
To: "Timothy Pearson" <[email protected]>
Cc: "Raptor Engineering Development Team" <[email protected]>, "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: Friday, March 6, 2026 12:14:19 PM
Subject: Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smcQuoted 126 lines · Timothy Pearson
----- Original Message -----
Quoted 114 lines
From: "Conor Dooley" <[email protected]>
To: "Raptor Engineering Development Team" <[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]>, "Timothy Pearson" <[email protected]>
Sent: Friday, March 6, 2026 11:49:18 AM
Subject: Re: [PATCH v7 1/4] dt-bindings: mfd: Add sony,cronos-smcQuoted 99 lines · Raptor Engineering Development Team
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.
Signed-off-by Shawn Anastasio <[email protected]>Signed-off-by Timothy Pearson <[email protected]>--- .../bindings/mfd/sony,cronos-smc.yaml | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-smc.yamlDocumentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +75
-0@@ -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.yamlQuoted 8 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml line 81
Quoted 6 lines
Documentation/devicetree/bindings/mfd/sony,cronos-smc.yaml new file +6
-0+ + properties: + compatible: + const: sony,cronos-watchdog + + timeout-sec: trueWhy is there a child node to just add timeout-sec?
Quoted 2 lines
When I tried Krzysztof's solution, the validation tools threw an error, and this was the only way I found to get them to stop throwing errors.
So you were not able to do what he did, and modify
watchdog.yaml? What did you try, and what were the errors?Quoted 7 lines
Quoted 7 lines
Didn't Krzysztof ask
you to come up with a generic node name for the mfd to use instead of "smc", and to modifywatchdog.yamlto accept the new node name? See here:
https://lore.kernel.org/all/[email protected]/Quoted 6 lines
Quoted 2 lines
Something like "platform-controller" sounds generic to me, in a way that "smc" doesn't.
SMC is the name of the hardware block in question. platform-controller generates some other confusion as there would be multiple separate hardware blocks that could fit that name.
Node names do not have to be unique. If there are 10 platform controllers on the platform, then having 10 platform-controller@<foo> nodes would be fine. We explicitly want node-names to describe the type of device, not be a unique identifier. That's what compatible strings are for. I'm unsure why there would be any confusion caused by the node name, can you elaborate on that? What other devices connected to the BMC would be considered "platform controllers"?
Quoted 3 lines
There's no explanation anywhere here where "smc" even comes from, none of the description text or commit message has something that I would expect "smc" to be shorthand for.
Understood. Let me rework. I'll see if I can provoke the error regarding the watchdog YAML again as well. It may be a couple of weeks before I respond as I have other active projects at this time.
Thanks!
PATCH v7 2/4 mfd: sony-cronos-smc: Add driver for Sony Cronos SMC
In reply to Raptor Engineering Development TeamFrom: Timothy Pearson <[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.
--- MAINTAINERS | 7 ++ drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 2 + drivers/mfd/sony-cronos-smc.c | 204 ++++++++++++++++++++++++++++++++ include/linux/mfd/sony-cronos.h | 61 ++++++++++ 5 files changed, 285 insertions(+) create mode 100644 drivers/mfd/sony-cronos-smc.c create mode 100644 include/linux/mfd/sony-cronos.h
MAINTAINERS +7 -0
@@ -24298,6 +24298,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
@@ -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
@@ -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 +204 -0
204 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
PATCH v7 3/4 led: sony-cronos-smc: Add RGB LED driver for Sony Cronos SMC
In reply to Raptor Engineering Development TeamFrom: Timothy Pearson <[email protected]>
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
@@ -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
@@ -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
PATCH v7 4/4 watchdog: sony-cronos-smc: Add watchdog driver for Sony Cronos SMC
In reply to Raptor Engineering Development TeamFrom: Timothy Pearson <[email protected]>
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
@@ -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
@@ -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