Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4144577rdh; Tue, 28 Nov 2023 13:07:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/XgrcBOcJHIq8BLzBXJpEvtKo64pi2CYi08xcle0I0UCoc0/JrSiRujS9tnxpyPzYcNRC X-Received: by 2002:a05:6a20:d704:b0:181:44c:d6a with SMTP id iz4-20020a056a20d70400b00181044c0d6amr25010244pzb.21.1701205623715; Tue, 28 Nov 2023 13:07:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701205623; cv=none; d=google.com; s=arc-20160816; b=NLoqJAT3xaFp0T10RQC7bX7T7htM582opt1StzKn8Nal32CthmDun633Kco/nVQv9D 0BnSB69KkPptWsskT38HeaXxebL32vmeLuJ0Llbu1Slk43cQAzqF3UaDhQ6NQP+sSlow RZYHHeo2DI4HdfeL/102ocjJS8W+IvhM9ar5StjDVZjz9Vt20fzng75nlmJOCJrjNTn3 70nROCyEqqbRGZ6us9jmVMDld+uu/NvMDF1QfGHe8KNaaGU8DMWeHRJIOKzx68Y8DSYz V6edXJO4TirQPwY31emeoAt2oUz6+cLQRM+G71GAvoOOlY7mwsDm0VOxm/JAFoFD5E4T yATQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=kio7mzrZGCqYPsxWEva5tS5lBAjlTpNzIFhY60REzQg=; fh=y+8rsfKWTjcgmCQeZpPpLgNio7QZTawjRjYxEk6n7yg=; b=U6mi0a+wp8ScMPnjjCDmQqsdh4D+FTz/uY+YlziG0z+tICXAJmAKN4H6rR/8ZI+ZsM vhgCFwV3GwFTVVvU2lrMG0qc/G52R6MbF3k34E541zAbVou/W/V2cSUn/K1qi+f9SrGe ab8uLEZ9lv09KOjq98Yi43ODfb+cjKZN4V4r7M/RQMht1ODJFN6YgQZvKl4hhG2A1TwT DA18hMqEN9kcB3+44HgdYLig3DeLXA9lob17UMORss7jsqZzOf2w5VJE3SkUysMrWTiR alrPaOYj2Wg+NISrkEfOb3VU38J59+PyKMzExsF9f+BkXa5O5JMXCwAPhHs4iC29WwFx 5KcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raptorengineering.com header.s=B8E824E6-0BE2-11E6-931D-288C65937AAD header.b="jS/C2UIM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=raptorengineering.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id u11-20020a056a00124b00b006be3c302801si12903067pfi.397.2023.11.28.13.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 13:07:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@raptorengineering.com header.s=B8E824E6-0BE2-11E6-931D-288C65937AAD header.b="jS/C2UIM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=raptorengineering.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A6620805F2E1; Tue, 28 Nov 2023 13:06:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376329AbjK1VGf (ORCPT + 99 others); Tue, 28 Nov 2023 16:06:35 -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: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 13:06:59 -0800 (PST) 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 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 + + 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 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: + $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. + + 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"; + sony,default-timeout = <20>; + }; + + leds { + compatible = "sony,cronos-leds"; + sony,led-mask = <0x7fff>; + }; + }; + }; -- 2.30.2