From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Shawn Anastasio <sanastasio@raptorengineering.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Rob Herring <robh+dt@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>
Cc: Timothy Pearson <tpearson@raptorengineering.com>
Subject: Re: [PATCH v2 1/2] dt-bindings: mfd: Add sony,cronos-cpld
Date: Wed, 29 Nov 2023 10:23:52 +0100 [thread overview]
Message-ID: <c50e5224-7acd-4470-b18e-f223f150ba5b@linaro.org> (raw)
In-Reply-To: <27ac3bf6e5fecd62918eb096a88503a13a1f0b9c.1701203916.git.sanastasio@raptorengineering.com>
On 28/11/2023 22:00, Shawn Anastasio 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>
> ---
> Changes in v2:
> - Change SIE to Sony to use the already-established prefix.
> - Clarify that Cronos is an x86 server platform in description
> - Drop #address-cells/#size-cells
> - Add missing additionalProperties to leds/watchdog objects
> - Add sony,led-mask property to leds object
> - Add sony,default-timeout property to watchdog object
> - Update example
>
> .../bindings/mfd/sony,cronos-cpld.yaml | 92 +++++++++++++++++++
> 1 file changed, 92 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..df2c2e83ccb4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/sony,cronos-cpld.yaml
> @@ -0,0 +1,92 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +# Copyright 2023 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:
> + - Timothy Pearson <tpearson@raptorengineering.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
> + description: Cronos Platform Status LEDs
Missing ref to LEDs common bindings.
> +
> + properties:
> + compatible:
> + const: sony,cronos-leds
> +
> + sony,led-mask:
> + $ref: /schemas/types.yaml#/definitions/uint32
Why aren't you using LEDs bindings? A node for one property is otherwise
quite useless. I already commented on this last time.
> + minimum: 0x0
> + maximum: 0x7fff
> + description: |
> + A bitmask that specifies which LEDs are present and can be controlled
> + by the Cronos CPLD. Bits 0-5 correspond to platform Status LEDs, bits
> + 6-10 correspond to Link LEDs, and bits 11-14 correspond to the Power
> + State LEDs. All other bits are unused. The default value is 0x7fff
> + (all possible LEDs enabled).
> +
> + additionalProperties: false
> +
> + watchdog:
> + type: object
> + description: Cronos Platform Watchdog Timer
> +
> + properties:
> + compatible:
> + const: sony,cronos-watchdog
> +
> + sony,default-timeout:
No, you must use existing bindings. Missing ref to watchdog and drop all
duplicated properties like this one.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: |
> + The default timeout with which the watchdog timer is initialized, in
> + seconds. Supported values are: 10, 20, 30, 40, 50, 60, 70, 80. All
> + other values will be rounded down to the nearest supported value. The
> + default value is 80.
> +
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-11-29 9:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-28 21:00 [PATCH v2 0/2] Add driver for SIE Cronos control CPLD Shawn Anastasio
2023-11-28 21:00 ` [PATCH v2 1/2] dt-bindings: mfd: Add sony,cronos-cpld Shawn Anastasio
2023-11-29 9:23 ` Krzysztof Kozlowski [this message]
2023-11-30 23:03 ` Shawn Anastasio
2023-12-01 8:04 ` Krzysztof Kozlowski
2023-11-28 21:00 ` [PATCH v2 2/2] mfd: sie-cronos-cpld: Add driver for Sony Cronos CPLD Shawn Anastasio
2023-12-07 15:20 ` Lee Jones
2023-12-07 18:16 ` Yakovlev, Georgy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c50e5224-7acd-4470-b18e-f223f150ba5b@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=Georgy.Yakovlev@sony.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sanastasio@raptorengineering.com \
--cc=tpearson@raptorengineering.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).