From patchwork Fri Aug 4 14:19:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waqar Hameed X-Patchwork-Id: 13155 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp321239vqb; Fri, 4 Aug 2023 08:02:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEq9r269i77pOVFmD0Qg8Ce5Jhvb2DK2BegbTAG15uRjmD9PbtDAEkBBbF9e3iWEJRI0+r5 X-Received: by 2002:a17:906:10cc:b0:99b:c985:cf7e with SMTP id v12-20020a17090610cc00b0099bc985cf7emr1841685ejv.54.1691161334793; Fri, 04 Aug 2023 08:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691161334; cv=none; d=google.com; s=arc-20160816; b=aoumPRFoWbrPyWBV1gA1F9B8Nr1dfQ7BOSIjJZqt2bFj2ufpoW6OtKgGww/32hc7Nc pWGBOXW26qCiJYJp9MTKsXDEKgFy1uuldsydvpT1IFmKg1E0Fe/2iE7UYEIhURNPhPoD gCO6vtCoCUAdIb8Yoc6ijGtwkhSYj+MZN105vzr+v6LbunG/GVgI/ozywp5HzrAXnD35 UIovdEaFav4IrfL0EjgnUELj8e5Kyz7/Yla5SKrbzX4k1/rvORnPleGW5giy9Gs+GML+ 5KWqLdg6U7hJr9ACEn2NKjsg+56WzQhfy6CGYy3LMBNIPH0nM3GsxFvcpaM4BpIdWVOs ggTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :user-agent:dkim-signature; bh=F4ZCqB7agCNPa83F34ocsYQJWrVsDIK4bk/6GPr6EEU=; fh=ZVcbt19azOz66NE7t1sp3nI2wJ1Wy3jopIpALp4QfOw=; b=UrXU/f2z7gXDH6Rlk/nCxIxeuHMwReb/mGgnUOzheHRlDG9GcZ5hlS7Et/ry9MyX58 YrrFwVkGCkMOy/j1RDxQVPhRxj7wfXBtvj0RrOeX8DOHDq2jN0WV9ti1cRwjrKa9hqLL jjRzVip7xdNgRUwK7tSe1sOYdRdDxI++ef599I4Bh40mmnPirLKDHoCPGGHXKJu09hrb cYrSwKytCUqpX1pScaVQXc2Dwuh7zGv7lX85OCaIrOUc2l7HcA9T56sr23GKF46xf01d A1/NekWgfLYp1TC9iTwgZSI/btHOfoNNRw+Kw+emBC5hU8IxBTh3EPgJRtvr7DjLrOES P/Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="ZjqGUe/S"; 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=NONE dis=NONE) header.from=axis.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a170906358500b00992d2630d08si1795121ejb.788.2023.08.04.08.01.16; Fri, 04 Aug 2023 08:02:14 -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 (test mode) header.i=@axis.com header.s=axis-central1 header.b="ZjqGUe/S"; 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=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231693AbjHDOWN (ORCPT + 99 others); Fri, 4 Aug 2023 10:22:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231488AbjHDOWM (ORCPT ); Fri, 4 Aug 2023 10:22:12 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331FCCC; Fri, 4 Aug 2023 07:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1691158930; x=1722694930; h=from:to:cc:subject:date:message-id:mime-version; bh=F4ZCqB7agCNPa83F34ocsYQJWrVsDIK4bk/6GPr6EEU=; b=ZjqGUe/SXUr8ZyyNTxEUvMMz4vfx47/xtqw+j/jeTTcRPp4wIjWyu123 v+sUObBONPGUoRaxbfpZMTE/CvU+2pMdUE9Z966iNqRV/x95oBprjWaqu OGUuHAqCEELVAXs20BzPNNERsb9DQX2XMLTwJ7pvzRJ6aVvCkv7THrAnx 8MrqHx/QjsJTInKn5l2lqeqJQqStL2zoqFTUr/fDTuGsOAt6RcjhU/heO YkXr0hk6rwVwHvOEK1ZtMp7ZAUkxlmOpemuHdk1YqdV/TNgFLMlkwkuV2 h8zqq9JFTdtFxuWbstf3KJDwYP7uybSErbBylVbZdrb09rWBEP37xuo03 Q==; User-agent: a.out From: Waqar Hameed To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski CC: , , , Subject: [PATCH 0/2] Add a driver for Epson RX8111 RTC Date: Fri, 4 Aug 2023 16:19:34 +0200 Message-ID: MIME-Version: 1.0 X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: se-mail01w.axis.com (10.20.40.7) To se-mail01w.axis.com (10.20.40.7) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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: INBOX X-GMAIL-THRID: 1773311187601019844 X-GMAIL-MSGID: 1773311187601019844 In this patch series we add a basic driver for Epson RX8111 RTC with support for only reading/writing the time and the `ioctl`s `RTC_VL_READ` and `RTC_VL_CLR`. Datasheet: https://support.epson.biz/td/api/doc_check.php?dl=app_RX8111CE&lang=en Waqar Hameed (2): dt-bindings: rtc: Add Epson RX8111 rtc: Add driver for Epson RX8111 .../devicetree/bindings/rtc/epson,rx8111.yaml | 41 ++ drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-rx8111.c | 411 ++++++++++++++++++ 4 files changed, 463 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/epson,rx8111.yaml create mode 100644 drivers/rtc/rtc-rx8111.c base-commit: ec351c8f2e6211054e51e661589cddd1fe856425