Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp459820rdf; Fri, 3 Nov 2023 06:03:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFqxtJIms60fkZ/saY+tmTJYsC2lFcKUJcVatoqTiWUVrHD5OdylfI24zSu6gdTeGydArGu X-Received: by 2002:a05:6a00:1390:b0:6c3:468c:6caa with SMTP id t16-20020a056a00139000b006c3468c6caamr3281655pfg.6.1699016620520; Fri, 03 Nov 2023 06:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699016620; cv=none; d=google.com; s=arc-20160816; b=p1MU4ZirsoDc56w/p+Q9PPuZtq2Bjj4Gw2YitOKZf1WTJaUqRf6IcR21bwfswjfg4d IS8qs9XEANZxhdK/Viey9EbGBZoaVZnh93MpgGqzS5xEyXBDAMa+ZqHJ8E6Vg8x8CePB HpB2HeSJCk2NPQ8eDOcMxyWj0CS9Vok/XRxkx2BVzIfA/rQOuH65Xae/L900hJZxS6ug 8K78N729THb+l56Wo14KowVvEJBf/ckz8EwqB/la41d6dOzSPFYuOz5cAqGp9J5Hvmdy UsPrHrH+NrF+vg7jwcUVHrbPCx5QVFvd3+nEI2U8Pf72sFx4I08BSafo2YrgPgw4EKJQ B11w== 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; bh=HgCGpwKNXLJxgRLPxyyBD68YhnLlNBL0Pm4QiN2n7uI=; fh=EoRTxT9c1Gng69jIWOnWhMHRFlaPCAdzLYNdbLLm/Co=; b=zUPkG07j88fQT1dra5Rc1jhxxjsSu0NmBx9gOtfA0ijNenx3Pvg03v8UvME1+WKhsU J1/4ypiLJ2r5J3DKSHqEpPbtg2x4W23v4ZSs2reJxkmTNoLnQrGOzYrxzhPi8LB8Pgkz wctRUEk7fbGc92hdVRIuZkp+3riL0Kh5wYqFcE3WdiX6O9UvXQK847Wii4FASVgbxATs xVjCZchXpX3j05ZT0bfgpUJ1S2G8MqG5vVrOr4knDDiDthcqVFfUjy7FapCuA7oJQ9Ox /SrDJrTp331oY2Kl1hWI1fqYqFdDh8tkJpeQ/qZ1Cd3A1DX0Ko4/O6K4hXfdStNOxJSg +1Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@carlosaurelio.net header.s=default header.b=d1bqnMWB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bd32-20020a056a0027a000b0068fa8499af1si1520678pfb.11.2023.11.03.06.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 06:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=fail header.i=@carlosaurelio.net header.s=default header.b=d1bqnMWB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 134C080AE21A; Fri, 3 Nov 2023 06:03:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376706AbjKCNCi (ORCPT + 99 others); Fri, 3 Nov 2023 09:02:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376604AbjKCNCg (ORCPT ); Fri, 3 Nov 2023 09:02:36 -0400 Received: from h5.fbrelay.privateemail.com (h5.fbrelay.privateemail.com [162.0.218.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C778C134; Fri, 3 Nov 2023 06:02:26 -0700 (PDT) Received: from MTA-12-4.privateemail.com (mta-12-1.privateemail.com [198.54.122.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by h5.fbrelay.privateemail.com (Postfix) with ESMTPSA id 4E28860136; Fri, 3 Nov 2023 12:52:49 +0000 (UTC) Received: from mta-12.privateemail.com (localhost [127.0.0.1]) by mta-12.privateemail.com (Postfix) with ESMTP id 4F89418000A2; Fri, 3 Nov 2023 08:52:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=carlosaurelio.net; s=default; t=1699015967; bh=7x6abVPdbko5LarCk/0BZn1SkuXjeT6liiRK10w8DLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d1bqnMWBVt8/q7tRhYhjuT27rxqblzI1eR/EgXyN5SZiCLMKLC2bFJtAwN8wVNp26 ZH31E2cz4DNKSKYJ0OJ/qARjq8moF6jPJYXlgAdKYbYBEZfddo4DSkdRqJJrbcKxOE uBqa8CBRFM+fJWdsYFrFTgo8nEt4m3Umukp85uv9wHSA8kY5+lN5NZ7VvhQs6UyrIA h0m7SRD4FvVi/648FHhDpRF6rZWaqHNUkNJ/Za365ZYFVXyf7GMpbMWfTMO0BjPjEq ohh7E6B8wBVHbRDpnKMYnFHEY+aK48KrjzyVAv8vkU6crXXRxdOnQNH2tAD9JbDFTa hcZDq7Sw8zmbA== Received: from GB2-C0476.gertec.local (unknown [187.11.35.108]) by mta-12.privateemail.com (Postfix) with ESMTPA; Fri, 3 Nov 2023 08:52:30 -0400 (EDT) From: Carlos Menin To: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Cc: Alessandro Zummo , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean Delvare , Guenter Roeck , Carlos Menin , Sergio Prado Subject: [PATCH v2 2/2] dt-bindings: rtc: add pcf85053a Date: Fri, 3 Nov 2023 09:51:06 -0300 Message-Id: <20231103125106.78220-2-menin@carlosaurelio.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231103125106.78220-1-menin@carlosaurelio.net> References: <20231103125106.78220-1-menin@carlosaurelio.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 03 Nov 2023 06:03:19 -0700 (PDT) Add YAML bindings for NXP's PCF85053A RTC chip. Signed-off-by: Carlos Menin Reviewed-by: Sergio Prado --- .../bindings/rtc/nxp,pcf85053a.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf85053a.yaml diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf85053a.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf85053a.yaml new file mode 100644 index 000000000000..a1fc29dd30f8 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf85053a.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/nxp,pcf85053a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP PCF85053A Real Time Clock + +maintainers: + - Carlos Menin + +properties: + compatible: + enum: + - nxp,pcf85053a + + reg: + maxItems: 1 + + quartz-load-femtofarads: + description: + The capacitive load of the crystal, expressed in femto Farad (fF). + enum: [6000, 7000, 12500] + default: 12500 + + nxp,quartz-drive-control: + description: + The oscillator is designed to be used with quartz with a series resistance + up to 100 kOhms. This covers the typical range of 32.768 kHz quartz + crystals. A low drive mode is available for low series resistance quartz + (up to 60 kOhms). This reduces the current consumption. For very high + series resistance quartz (up to 500 kOhms), there is a high drive mode. + Current consumption increases substantially in this mode. + enum: [low, normal, high] + default: normal + + nxp,low-jitter-mode: + description: + If set to true, will decrease the CLK output jitter, at the cost of + increasing the current consumption. + type: boolean + default: false + + nxp,clk-inverted: + description: + Invert clock output. Normally, the low jitter mode reduces jitter on the + rising edge of the output clock. If this property is set to true, then the + low jitter mode will affect the falling edge of the output clock. + type: boolean + default: false + +required: + - compatible + - reg + +allOf: + - $ref: rtc.yaml# + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtc@6f { + compatible = "nxp,pcf85053a"; + reg = <0x6f>; + }; + }; -- 2.34.1