Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp514641imw; Wed, 13 Jul 2022 02:58:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1suXPPhMfYm4VyEXCa7HwaYTIzg0W26UKxFs2G/+dDHZL2E+fX6yt8BLGUq7vZRTuaQxI4T X-Received: by 2002:a17:90b:4f81:b0:1ef:acca:2d6b with SMTP id qe1-20020a17090b4f8100b001efacca2d6bmr2861852pjb.243.1657706309614; Wed, 13 Jul 2022 02:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657706309; cv=none; d=google.com; s=arc-20160816; b=BhcAv0mVqQ88b6fAPFMohaSQA+i2mqmnpwoBEpsxXr+74dl4UWNt3DXOnrKNz1Oaze 05QPX88HUGRE3G/CPd9YY00eG3dMK7gYMfpppbiq4ofAnD0fSjDqBGKG7WUBeIAdONYA bzhQGW99k8UDG3PACOiowaduunOQATI2AjCYdbGCWIh2ZnCVWIYq9+F4JrekWjChR5nX ap5I1Bf+lNmC8qRIvoub5oWx6PZ45/q3oH6r9SahjjseoxOHHdxo54vYY53hsAte31xM sACUituGyVlrDBRSkHRl7yrLhpRmZqSr14yEtTizXeuC/q7xFaWk/cfppWra0KXLZ1RI CxFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=y5g+g4Wo+o19kQAE0fo44H2kWR0Y0l61IsNjeKb+644=; b=fYD7XeqtPWPL4lcz2j+yu6vGYuYMKzWUB6ZdlM7m71WjmUoCg3jJ5DF9GH1e6XENkh p4BqSbEklxjfdDGDaw8qG/X+YzxZa6jDzkuZm2IOzbWCGuPszMRS1frWWAKtCx5/sm5/ Q4pr3+IBKl/vZCcozqaSzZ63Cuud7SQEu056R4ejka0iLmMo+Dx1pKgaK9IDOCmkKHHF s5FqHW0qVDMMdSPSLj7SbbL20n5q92nso1m1BMmMp77L0vaZUkLTy9Dq+fnDMoPo7vJa uQkiAB6ItsWQlEX8jY675jTgkIvRKIzlWvo8vDtWjeNFhesQtHnFRsOIk/iTLBy+8ACa 2ekg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jmETtGr3; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a17090a4b8400b001ef9db1a2d9si1724149pjh.100.2022.07.13.02.58.17; Wed, 13 Jul 2022 02:58:29 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=jmETtGr3; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235971AbiGMJG7 (ORCPT + 99 others); Wed, 13 Jul 2022 05:06:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231223AbiGMJG5 (ORCPT ); Wed, 13 Jul 2022 05:06:57 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DDCD286CD; Wed, 13 Jul 2022 02:06:56 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id y14-20020a17090a644e00b001ef775f7118so2624109pjm.2; Wed, 13 Jul 2022 02:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=y5g+g4Wo+o19kQAE0fo44H2kWR0Y0l61IsNjeKb+644=; b=jmETtGr3eP2DhxmH6rJIXCrUC6Z6+HlK4YR+wsVsOt+nj6BfyveFYJkZTzgW/08Uk0 rM7UHb/aQy46gblqKXCpEHQinbpmF3PP0Mv9uGkja7L/yJjghs3rUeX0QOtWwZ3YPZ0B g6sxkVOEaEgVazFhsOaMQNtDVFIPfquZ7naLb9j+ZQWimFYVKAlGOQ3DItTAXbkTo3J+ y6BJH8tuBHXvIyXigC1LuDb+SUDD0Tg9UCAeOfCgrFdAUCfxGsmESvVZcZ4WKp6AvWJJ H5PXJ2i9tQ55mYM29O+wgqteF07XEB35UNXoxKgsHimTz4KwZBK+xXx4UtohzV1DEGIU JhLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=y5g+g4Wo+o19kQAE0fo44H2kWR0Y0l61IsNjeKb+644=; b=GRDO+xEwzkHTMc2ks7jB2zFCNCUheZLcyVgtDd0O6eJU++oiiiySMP/AJGwO5u/AuR LtE42QoB1YMebd3fsjl4e6LSyE1vdrIycqugZAqJnze1//yXDh/gVAhgxjZIxY61/tKR u9vFU68zPcxzYUKym/SYUTBM/r9zpZGTYc0gEq8z+/r0q784O3oRrmU+b4q/zyF3TDYt mVMEUgWL16tA6XGLbVjAnWCHvtGxSCfr8fkvMiHc5kJlB2shli8fDfT/P4AZr9AIxX1o a2hq66QSmB4cl5F1V9eeZbr2C9fA4CSHlz4ym9LqEbW5nhQp3HhLHFUtbShOYKfhrj73 OhTA== X-Gm-Message-State: AJIora/+6nlyZn0tC8bUbO2lGOb8WPbZcSKYzjMSyrAy78p+OwslOd2v pNI3sYLtj6DSm4mUsTmcG1Q= X-Received: by 2002:a17:90a:6008:b0:1ef:abc7:a740 with SMTP id y8-20020a17090a600800b001efabc7a740mr2671643pji.179.1657703215712; Wed, 13 Jul 2022 02:06:55 -0700 (PDT) Received: from localhost.localdomain (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id gg10-20020a17090b0a0a00b001ef917f1c30sm1051975pjb.6.2022.07.13.02.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 02:06:55 -0700 (PDT) From: Mia Lin To: avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, ctcchien@nuvoton.com, medadyoung@gmail.com, mimi05633@gmail.com, KWLIU@nuvoton.com, YSCHU@nuvoton.com, KFTING@nuvoton.com, JJLIU0@nuvoton.com, mylin1@nuvoton.com Cc: openbmc@lists.ozlabs.org, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/3] RTC: nuvoton: Add nuvoton real time clock driver Date: Wed, 13 Jul 2022 17:06:44 +0800 Message-Id: <20220713090647.8028-1-mimi05633@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Support Nuvoton NCT3018Y real time clock. Changes since version 6: - Add review tag. - Add blank line in dts. Changes since version 5: - Add battery voltage level check by NCT3018Y_REG_ST. - Remove disable clock output. - Fix errors in rtc-nct3018y.c. Changes since version 4: - Fix warnings in rtc-nct3018y.c. - Reduce the number of error messages. - Add time vaild check. - Add functionality check. - Add maintainer. Changes since version 3: - Add part number in Kconfig. - Refactor rtc-nct3018y.c. Changes since version 2: - Fix errors in rtc-nct3018y.c. - Fix warnings in rtc-nct3018y.c. Changes since version 1: - Add nuvoton,nct3018y property in NPCM devicetree. - Add new property in rtc binding document. - Add new driver for nuvoton real time clock driver. Mia Lin (3): dt-bindings: rtc: nuvoton: add NCT3018Y Real Time Clock ARM: dts: nuvoton: Add nuvoton RTC3018Y node RTC: nuvoton: Add NCT3018Y real time clock driver .../bindings/rtc/nuvoton,nct3018y.yaml | 45 ++ MAINTAINERS | 2 + arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 5 + drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-nct3018y.c | 553 ++++++++++++++++++ 6 files changed, 616 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/nuvoton,nct3018y.yaml create mode 100644 drivers/rtc/rtc-nct3018y.c -- 2.17.1