From patchwork Wed Feb 1 14:34:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 51368 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp317311wrn; Wed, 1 Feb 2023 06:44:30 -0800 (PST) X-Google-Smtp-Source: AK7set9SzHdsJiV4OKmJS0xJIrCKgNgditGm6PgM4BfhP/yi3JAk+BpgCIyyZsi2xWjwEGUhHloC X-Received: by 2002:a05:6a20:4f8a:b0:bf:1b09:5cda with SMTP id gh10-20020a056a204f8a00b000bf1b095cdamr2496534pzb.12.1675262670637; Wed, 01 Feb 2023 06:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675262670; cv=none; d=google.com; s=arc-20160816; b=Ba5u++zuraaueEhtnoHg6ubtzOi2TLb2aVDujg+Euqxtt0olHe5rSoDltD4g69xkiJ SaIQPpCT3La1ixR3fUaJ2JRDa0RXWrm3hI1cmx27hTpqizU+fPdQR6ddq/zr0OEsjOQz U9kpqfyaFqwS2Ehh8hLx1VWVB5WcE7CbKF1XK5JhumiEBTpdUkpTOMgavp8o9Nv/sRwm iM9gwZOttzTVa3z1GEFHljFUuNYyWZyLlPj7GeY1g9SrR07tF3EyixRQcY8mBKUEWNH4 RspD1lldvr5c0VmjUK922mJVv/iKoXkAv7XmON1ML5yFNpYhNiZLVrfrBojYa0lnsRao DAOw== 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=tRPLVPhQGfVkVFWzPuN9DvSL3QBjCj23rMy0j/6al9U=; b=x7DrYTcrWNxtXdx35+TW2IajqVs8XrTVPh9S4ji3UKqMxuZnk1IjjKmvlwO/k3gdgN VYKaCuVEv3ozuDqKSCyHk5RqxdiS0/TKZUEuvif8p3PmhXiNsh9hWaQT59Fvv4itJBVf eea4r0Xjp6xKsePA3bAnAbWHRZnnEh7oKY7tPMuCl47uBRrnNACi26wnqFyv0gmTwGYe 1upfSlHX96RqI3X4Bjr82b9/04u9oLnYR5duxFbonEgnKg2QNqUNd1nIaNrDQif4+V2m FDKkY9/BU/2gbKKkQ4nDVMg4tDG6k5Gmu4edr7eQ+/HCvmd+vWJ0Gt9GqS5pn4/5X40Y GAWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=CwqeB4dT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a17090ad80e00b00209a3e49f63si1863762pjv.94.2023.02.01.06.44.18; Wed, 01 Feb 2023 06:44:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=CwqeB4dT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232656AbjBAOn2 (ORCPT + 99 others); Wed, 1 Feb 2023 09:43:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232460AbjBAOnK (ORCPT ); Wed, 1 Feb 2023 09:43:10 -0500 X-Greylist: delayed 489 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 01 Feb 2023 06:43:04 PST Received: from mail.fris.de (mail.fris.de [116.203.77.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78C3E206AC; Wed, 1 Feb 2023 06:43:03 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 18DBAC0332; Wed, 1 Feb 2023 15:35:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1675262101; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=tRPLVPhQGfVkVFWzPuN9DvSL3QBjCj23rMy0j/6al9U=; b=CwqeB4dTR4bNwnbWH+uy8G3p5eaDqx2CL3VBGwSjEhHDwdgRV1RpUGfDxY1zycrhDuROCk /VL8MRxVzVbgNf0WUqKIDEuNKuGk9blUnlz1j+ZieGIKne3DjlrR4G71P8WZrLF1h0N+LG gPOljEtesiFpL5OnCMJ33a93OGGqmMNiN8AINW+IQ6naVFFtgmWnEfkeYD9mJiBkVXWj6G x6NqTYHYxqhpFbmfE2lG584wmUtL38K4wiNF5dETxa8DYmEvoyq8XlhxZZ72b5VufBguAK 6xhGrusdfgmCd1JiuRPHvKvct3JhNAK3KEcN7K/b6XhAm11vHVvY8f1iqCDiGg== From: Frieder Schrempf To: Alessandro Zummo , Alexandre Belloni , devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Rob Herring Cc: Frieder Schrempf Subject: [PATCH 3/7] dt-bindings: rtc: microcrystal,rv3032: Add backup-switch-mode property Date: Wed, 1 Feb 2023 15:34:25 +0100 Message-Id: <20230201143431.863784-4-frieder@fris.de> In-Reply-To: <20230201143431.863784-1-frieder@fris.de> References: <20230201143431.863784-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756640229961406308?= X-GMAIL-MSGID: =?utf-8?q?1756640229961406308?= From: Frieder Schrempf Add the new backup-switch-mode property that allows to set the BSM via devicetree. Signed-off-by: Frieder Schrempf --- .../devicetree/bindings/rtc/microcrystal,rv3028.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml b/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml index 4667ba86fd0c..2637c4c313ac 100644 --- a/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml +++ b/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml @@ -22,6 +22,8 @@ properties: interrupts: maxItems: 1 + backup-switch-mode: true + start-year: true trickle-resistor-ohms: @@ -40,6 +42,7 @@ additionalProperties: false examples: - | #include + #include i2c { #address-cells = <1>; #size-cells = <0>; @@ -49,6 +52,7 @@ examples: reg = <0x52>; pinctrl-0 = <&rtc_nint_pins>; interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>; + backup-switch-mode: ; trickle-resistor-ohms = <3000>; }; };