* [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
@ 2025-09-25 18:17 Timothy Pearson
  2025-09-26 21:39 ` Rob Herring (Arm)
  2025-09-29 14:11 ` Rob Herring
  0 siblings, 2 replies; 7+ messages in thread
From: Timothy Pearson @ 2025-09-25 18:17 UTC (permalink / raw)
  To: devicetree, linux-kernel, Rob Herring, Conor Dooley,
	Krzysztof Kozlowski, Lee Jones, Georgy Yakovlev
  Cc: Shawn Anastasio
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.
Add a DT binding for this device.
Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
---
 .../bindings/mfd/sony,cronos-cpld.yaml        | 121 ++++++++++++++++++
 1 file changed, 121 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
diff --git a/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml b/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
new file mode 100644
index 000000000000..3cebf6c0153d
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
@@ -0,0 +1,121 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+# Copyright 2025 Raptor Engineering, LLC
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/sony,cronos-cpld.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sony Cronos Platform Controller CPLD multi-function device
+
+maintainers:
+  - Georgy Yakovlev <Georgy.Yakovlev@sony.com>
+
+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-cpld
+
+  reg:
+    maxItems: 1
+
+  leds:
+    type: object
+    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-15]$":
+        type: object
+        $ref: leds-class-multicolor.yaml#
+        unevaluatedProperties: false
+
+        properties:
+          reg:
+            description:
+              LED channel number (0..15)
+            minimum: 0
+            maximum: 15
+
+        required:
+          - reg
+
+    required:
+      - compatible
+      - "#address-cells"
+      - "#size-cells"
+
+  watchdog:
+    type: object
+    description: Cronos Platform Watchdog Timer
+
+    allOf:
+      - $ref: watchdog.yaml#
+
+    properties:
+      compatible:
+        const: sony,cronos-watchdog
+
+    additionalProperties: false
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      cpld@3f {
+        compatible = "sony,cronos-cpld";
+        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;
+            };
+        };
+      };
+    };
-- 
2.39.5
^ permalink raw reply related	[flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
  2025-09-25 18:17 [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld Timothy Pearson
@ 2025-09-26 21:39 ` Rob Herring (Arm)
  2025-09-29 14:11 ` Rob Herring
  1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring (Arm) @ 2025-09-26 21:39 UTC (permalink / raw)
  To: Timothy Pearson
  Cc: Lee Jones, Conor Dooley, linux-kernel, Rob Herring,
	Shawn Anastasio, Krzysztof Kozlowski, Georgy Yakovlev, devicetree
On Thu, 25 Sep 2025 13:17:33 -0500, Timothy Pearson wrote:
> 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.
> 
> Add a DT binding for this device.
> 
> Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
> Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
> ---
>  .../bindings/mfd/sony,cronos-cpld.yaml        | 121 ++++++++++++++++++
>  1 file changed, 121 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-cpld.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-cpld.yaml:
	Error in referenced schema matching $id: http://devicetree.org/schemas/mfd/leds-class-multicolor.yaml
	Tried these paths (check schema $id if path is wrong):
	/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/leds-class-multicolor.yaml
	/usr/local/lib/python3.13/dist-packages/dtschema/schemas/mfd/leds-class-multicolor.yaml
Lexical error: Documentation/devicetree/bindings/mfd/sony,cronos-cpld.example.dts:42.30-48 Unexpected 'LED_COLOR_ID_MULTI'
Lexical error: Documentation/devicetree/bindings/mfd/sony,cronos-cpld.example.dts:43.32-51 Unexpected 'LED_FUNCTION_STATUS'
Error: Documentation/devicetree/bindings/mfd/sony,cronos-cpld.example.dts:43.32-51 syntax error
FATAL ERROR: Unable to parse input tree
make[2]: *** [scripts/Makefile.dtbs:132: Documentation/devicetree/bindings/mfd/sony,cronos-cpld.example.dtb] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/builds/robherring/dt-review-ci/linux/Makefile:1525: dt_binding_check] Error 2
make: *** [Makefile:248: __sub-make] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/948400747.1748562.1758824253627.JavaMail.zimbra@raptorengineeringinc.com
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.
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
  2025-09-25 18:17 [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld Timothy Pearson
  2025-09-26 21:39 ` Rob Herring (Arm)
@ 2025-09-29 14:11 ` Rob Herring
  2025-10-20 15:34   ` Timothy Pearson
  1 sibling, 1 reply; 7+ messages in thread
From: Rob Herring @ 2025-09-29 14:11 UTC (permalink / raw)
  To: Timothy Pearson
  Cc: devicetree, linux-kernel, Conor Dooley, Krzysztof Kozlowski,
	Lee Jones, Georgy Yakovlev, Shawn Anastasio
On Thu, Sep 25, 2025 at 01:17:33PM -0500, Timothy Pearson wrote:
> 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.
> 
> Add a DT binding for this device.
> 
> Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
> Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
> ---
>  .../bindings/mfd/sony,cronos-cpld.yaml        | 121 ++++++++++++++++++
>  1 file changed, 121 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
> 
> diff --git a/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml b/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
> new file mode 100644
> index 000000000000..3cebf6c0153d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
> @@ -0,0 +1,121 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +# Copyright 2025 Raptor Engineering, LLC
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/sony,cronos-cpld.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Sony Cronos Platform Controller CPLD multi-function device
> +
> +maintainers:
> +  - Georgy Yakovlev <Georgy.Yakovlev@sony.com>
> +
> +description: |
Don't need '|' if no formatting or paragraphs to preserve.
> +  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-cpld
> +
> +  reg:
> +    maxItems: 1
> +
> +  leds:
> +    type: object
> +    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-15]$":
> +        type: object
> +        $ref: leds-class-multicolor.yaml#
> +        unevaluatedProperties: false
> +
> +        properties:
> +          reg:
> +            description:
> +              LED channel number (0..15)
> +            minimum: 0
> +            maximum: 15
> +
> +        required:
> +          - reg
> +
> +    required:
> +      - compatible
> +      - "#address-cells"
> +      - "#size-cells"
> +
> +  watchdog:
> +    type: object
> +    description: Cronos Platform Watchdog Timer
> +
> +    allOf:
> +      - $ref: watchdog.yaml#
> +
> +    properties:
> +      compatible:
> +        const: sony,cronos-watchdog
There's no need for a child node here. 'timeout-sec' can just go in the 
parent node.
Rob
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
  2025-09-29 14:11 ` Rob Herring
@ 2025-10-20 15:34   ` Timothy Pearson
  2025-10-20 15:58     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 7+ messages in thread
From: Timothy Pearson @ 2025-10-20 15:34 UTC (permalink / raw)
  To: robh
  Cc: devicetree, linux-kernel, Conor Dooley, Krzysztof Kozlowski,
	Lee Jones, Georgy Yakovlev, Shawn Anastasio
----- Original Message -----
> From: "robh" <robh@kernel.org>
> To: "Timothy Pearson" <tpearson@raptorengineering.com>
> Cc: "devicetree" <devicetree@vger.kernel.org>, "linux-kernel" <linux-kernel@vger.kernel.org>, "Conor Dooley"
> <conor+dt@kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>, "Lee Jones" <lee@kernel.org>, "Georgy
> Yakovlev" <Georgy.Yakovlev@sony.com>, "Shawn Anastasio" <sanastasio@raptorengineering.com>
> Sent: Monday, September 29, 2025 9:11:13 AM
> Subject: Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
> On Thu, Sep 25, 2025 at 01:17:33PM -0500, Timothy Pearson wrote:
>> 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.
>> 
>> Add a DT binding for this device.
>> 
>> Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
>> Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
>> ---
>>  .../bindings/mfd/sony,cronos-cpld.yaml        | 121 ++++++++++++++++++
>>  1 file changed, 121 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
>> 
>> diff --git a/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
>> b/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
>> new file mode 100644
>> index 000000000000..3cebf6c0153d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
>> @@ -0,0 +1,121 @@
>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
>> +# Copyright 2025 Raptor Engineering, LLC
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/mfd/sony,cronos-cpld.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Sony Cronos Platform Controller CPLD multi-function device
>> +
>> +maintainers:
>> +  - Georgy Yakovlev <Georgy.Yakovlev@sony.com>
>> +
>> +description: |
> 
> Don't need '|' if no formatting or paragraphs to preserve.
> 
>> +  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-cpld
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  leds:
>> +    type: object
>> +    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-15]$":
>> +        type: object
>> +        $ref: leds-class-multicolor.yaml#
>> +        unevaluatedProperties: false
>> +
>> +        properties:
>> +          reg:
>> +            description:
>> +              LED channel number (0..15)
>> +            minimum: 0
>> +            maximum: 15
>> +
>> +        required:
>> +          - reg
>> +
>> +    required:
>> +      - compatible
>> +      - "#address-cells"
>> +      - "#size-cells"
>> +
>> +  watchdog:
>> +    type: object
>> +    description: Cronos Platform Watchdog Timer
>> +
>> +    allOf:
>> +      - $ref: watchdog.yaml#
>> +
>> +    properties:
>> +      compatible:
>> +        const: sony,cronos-watchdog
> 
> There's no need for a child node here. 'timeout-sec' can just go in the
> parent node.
Could you elaborate on this please?  As far as I can tell we ref watchdog.yaml and need some kind of compatible string, so why would I break out timeout-sec directly here?
Thanks!
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
  2025-10-20 15:34   ` Timothy Pearson
@ 2025-10-20 15:58     ` Krzysztof Kozlowski
  2025-10-20 16:01       ` Timothy Pearson
  0 siblings, 1 reply; 7+ messages in thread
From: Krzysztof Kozlowski @ 2025-10-20 15:58 UTC (permalink / raw)
  To: Timothy Pearson, robh
  Cc: devicetree, linux-kernel, Conor Dooley, Krzysztof Kozlowski,
	Lee Jones, Georgy Yakovlev, Shawn Anastasio
On 20/10/2025 17:34, Timothy Pearson wrote:
>>> +  watchdog:
>>> +    type: object
>>> +    description: Cronos Platform Watchdog Timer
>>> +
>>> +    allOf:
>>> +      - $ref: watchdog.yaml#
>>> +
>>> +    properties:
>>> +      compatible:
>>> +        const: sony,cronos-watchdog
>>
>> There's no need for a child node here. 'timeout-sec' can just go in the
>> parent node.
> 
> Could you elaborate on this please?  As far as I can tell we ref watchdog.yaml and need some kind of compatible string, so why would I break out timeout-sec directly here?
Please look where the comment was placed. Under $ref? No. Under this
compatible. $ref goes to the parent, obviously.
You do not need kind of compatible string. Parent already has one. You
do not need compatible strings at all to instantiate Linux drivers.
That's pretty common pattern for most of MFD-like devices, plenty of
examples in the kernel.
Best regards,
Krzysztof
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
  2025-10-20 15:58     ` Krzysztof Kozlowski
@ 2025-10-20 16:01       ` Timothy Pearson
  2025-10-20 16:11         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 7+ messages in thread
From: Timothy Pearson @ 2025-10-20 16:01 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: robh, devicetree, linux-kernel, Conor Dooley, Krzysztof Kozlowski,
	Lee Jones, Georgy Yakovlev
----- Original Message -----
> From: "Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>
> To: "Timothy Pearson" <tpearson@raptorengineering.com>, "robh" <robh@kernel.org>
> Cc: "devicetree" <devicetree@vger.kernel.org>, "linux-kernel" <linux-kernel@vger.kernel.org>, "Conor Dooley"
> <conor+dt@kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>, "Lee Jones" <lee@kernel.org>, "Georgy
> Yakovlev" <Georgy.Yakovlev@sony.com>, "Shawn Anastasio" <sanastasio@raptorengineering.com>
> Sent: Monday, October 20, 2025 10:58:40 AM
> Subject: Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
> On 20/10/2025 17:34, Timothy Pearson wrote:
>>>> +  watchdog:
>>>> +    type: object
>>>> +    description: Cronos Platform Watchdog Timer
>>>> +
>>>> +    allOf:
>>>> +      - $ref: watchdog.yaml#
>>>> +
>>>> +    properties:
>>>> +      compatible:
>>>> +        const: sony,cronos-watchdog
>>>
>>> There's no need for a child node here. 'timeout-sec' can just go in the
>>> parent node.
>> 
>> Could you elaborate on this please?  As far as I can tell we ref watchdog.yaml
>> and need some kind of compatible string, so why would I break out timeout-sec
>> directly here?
> 
> 
> Please look where the comment was placed. Under $ref? No. Under this
> compatible. $ref goes to the parent, obviously.
This is not an area of the kernel I'm normally changing, so I appreciate the insight.  None of this yaml syntax is particularly obvious the first time it's encountered, at least not to me.
> You do not need kind of compatible string. Parent already has one. You
> do not need compatible strings at all to instantiate Linux drivers.
> That's pretty common pattern for most of MFD-like devices, plenty of
> examples in the kernel.
Understood.
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
  2025-10-20 16:01       ` Timothy Pearson
@ 2025-10-20 16:11         ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2025-10-20 16:11 UTC (permalink / raw)
  To: Timothy Pearson
  Cc: robh, devicetree, linux-kernel, Conor Dooley, Krzysztof Kozlowski,
	Lee Jones, Georgy Yakovlev
On 20/10/2025 18:01, Timothy Pearson wrote:
> 
> 
> ----- Original Message -----
>> From: "Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>
>> To: "Timothy Pearson" <tpearson@raptorengineering.com>, "robh" <robh@kernel.org>
>> Cc: "devicetree" <devicetree@vger.kernel.org>, "linux-kernel" <linux-kernel@vger.kernel.org>, "Conor Dooley"
>> <conor+dt@kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>, "Lee Jones" <lee@kernel.org>, "Georgy
>> Yakovlev" <Georgy.Yakovlev@sony.com>, "Shawn Anastasio" <sanastasio@raptorengineering.com>
>> Sent: Monday, October 20, 2025 10:58:40 AM
>> Subject: Re: [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld
> 
>> On 20/10/2025 17:34, Timothy Pearson wrote:
>>>>> +  watchdog:
>>>>> +    type: object
>>>>> +    description: Cronos Platform Watchdog Timer
>>>>> +
>>>>> +    allOf:
>>>>> +      - $ref: watchdog.yaml#
>>>>> +
>>>>> +    properties:
>>>>> +      compatible:
>>>>> +        const: sony,cronos-watchdog
>>>>
>>>> There's no need for a child node here. 'timeout-sec' can just go in the
>>>> parent node.
>>>
>>> Could you elaborate on this please?  As far as I can tell we ref watchdog.yaml
>>> and need some kind of compatible string, so why would I break out timeout-sec
>>> directly here?
>>
>>
>> Please look where the comment was placed. Under $ref? No. Under this
>> compatible. $ref goes to the parent, obviously.
> 
> This is not an area of the kernel I'm normally changing, so I appreciate the insight.  None of this yaml syntax is particularly obvious the first time it's encountered, at least not to me.
Sure, apologies for sounding harsh.
> 
>> You do not need kind of compatible string. Parent already has one. You
>> do not need compatible strings at all to instantiate Linux drivers.
>> That's pretty common pattern for most of MFD-like devices, plenty of
>> examples in the kernel.
> 
Maybe this will be useful - bd96801_wdt.c is example driver which
follows correct design and takes timeout from the parent (wd->dev is
parent of watchdog platform device), although parent's bindings lack
$ref to watchdog. I'll fix that.
> Understood.
Best regards,
Krzysztof
^ permalink raw reply	[flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-10-20 16:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-25 18:17 [PATCH 1/4] dt-bindings: mfd: Add sony,cronos-cpld Timothy Pearson
2025-09-26 21:39 ` Rob Herring (Arm)
2025-09-29 14:11 ` Rob Herring
2025-10-20 15:34   ` Timothy Pearson
2025-10-20 15:58     ` Krzysztof Kozlowski
2025-10-20 16:01       ` Timothy Pearson
2025-10-20 16:11         ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).