From nobody Wed Dec 17 11:01:17 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3594C07CA9 for ; Tue, 28 Nov 2023 21:06:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376343AbjK1VGg (ORCPT ); Tue, 28 Nov 2023 16:06:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376314AbjK1VGW (ORCPT ); Tue, 28 Nov 2023 16:06:22 -0500 X-Greylist: delayed 367 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 28 Nov 2023 13:06:27 PST Received: from raptorengineering.com (mail.raptorengineering.com [23.155.224.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA1FC198D; Tue, 28 Nov 2023 13:06:27 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id 0BBAE8286981; Tue, 28 Nov 2023 15:00:20 -0600 (CST) Received: from mail.rptsys.com ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id iMM-HDrFvrzT; Tue, 28 Nov 2023 15:00:19 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id E307E82869A8; Tue, 28 Nov 2023 15:00:18 -0600 (CST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.rptsys.com E307E82869A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raptorengineering.com; s=B8E824E6-0BE2-11E6-931D-288C65937AAD; t=1701205218; bh=kio7mzrZGCqYPsxWEva5tS5lBAjlTpNzIFhY60REzQg=; h=From:To:Date:Message-Id:MIME-Version; b=jS/C2UIMkmZ4VWfCFvJCFI2HezJmraC01Pfagv//BTiHGALV5SDMCEZre+oS2wyHr HRSvMlZUtkFDMJHovJubGEmPW/HXl0APBKms4gKhoWL6Uy+m6IQrzNeiJZ3sZa1WAP jQn62EI9pAvdscJ9hBgKWI2oPagETmWQ3ofgAF20= X-Virus-Scanned: amavisd-new at rptsys.com Received: from mail.rptsys.com ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZA0KB-bgwYRL; Tue, 28 Nov 2023 15:00:18 -0600 (CST) Received: from raptor-ewks-026.2lan (5.edge.rptsys.com [23.155.224.38]) by mail.rptsys.com (Postfix) with ESMTPSA id 6E22682869A6; Tue, 28 Nov 2023 15:00:18 -0600 (CST) From: Shawn Anastasio To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Conor Dooley , Krzysztof Kozlowski , Lee Jones , Georgy Yakovlev Cc: Timothy Pearson , Shawn Anastasio Subject: [PATCH v2 1/2] dt-bindings: mfd: Add sony,cronos-cpld Date: Tue, 28 Nov 2023 15:00:08 -0600 Message-Id: <27ac3bf6e5fecd62918eb096a88503a13a1f0b9c.1701203916.git.sanastasio@raptorengineering.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- 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 + +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 funct= ions + 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 + + properties: + compatible: + const: sony,cronos-leds + + sony,led-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0x0 + maximum: 0x7fff + description: | + A bitmask that specifies which LEDs are present and can be contr= olled + 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 P= ower + State LEDs. All other bits are unused. The default value is 0x7f= ff + (all possible LEDs enabled). + + additionalProperties: false + + watchdog: + type: object + description: Cronos Platform Watchdog Timer + + properties: + compatible: + const: sony,cronos-watchdog + + sony,default-timeout: + $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. A= ll + other values will be rounded down to the nearest supported value= . The + default value is 80. + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + cpld@3f { + compatible =3D "sony,cronos-cpld"; + reg =3D <0x3f>; + + watchdog { + compatible =3D "sony,cronos-watchdog"; + sony,default-timeout =3D <20>; + }; + + leds { + compatible =3D "sony,cronos-leds"; + sony,led-mask =3D <0x7fff>; + }; + }; + }; -- 2.30.2