From patchwork Mon Apr 18 18:49:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 12817045 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDFE5C433EF for ; Mon, 18 Apr 2022 18:50:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347462AbiDRSwl (ORCPT ); Mon, 18 Apr 2022 14:52:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234453AbiDRSwk (ORCPT ); Mon, 18 Apr 2022 14:52:40 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F23815822; Mon, 18 Apr 2022 11:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1650307794; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=2BK97mq3stH76aJyLSl7KHfmMsGVZ7tU/h6VhW5taF0=; b=nOyKHM7B/LETcMj/yQAveTcBM1y06m8Yczonn72LiAHOMiSSm0PFfAgzTrimXV0v3eC2TV qyQRIocOWoXQR4ScIFGeIYT+AV8XB2rsLEdllrhy9gCga0noK2JD/wHkBvkApj4ZT6yGC+ Z8zJg5ej1Xrgn9f9QllAgnZEh2CXksE= From: Paul Cercueil To: Alessandro Zummo , Alexandre Belloni Cc: list@opendingux.net, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Paul Cercueil Subject: [PATCH 0/5] rtc: ingenic: various updates Date: Mon, 18 Apr 2022 19:49:28 +0100 Message-Id: <20220418184933.13172-1-paul@crapouillou.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Hi, Here's a set of patches for the Ingenic RTC driver (jz4740-rtc). Patch [1/5] and [4/5] update the DT binding documentation and update the driver to support the CLK32K pin. This pin optionally supplies a 32 kHz clock, which is required on the MIPS CI20 board for the WiFi/Bluetooth chip to work. Patch [2/5] is a code cleanup. Patch [3/5] fixes the RTC time yielding an impossible value after a power loss. Finally, patch [5/5] is *RFC*. I do not know if it works, as I have absolutely no idea about how to test it. Cheers, -Paul Paul Cercueil (5): dt-bindings: rtc: Rework compatible strings and add #clock-cells rtc: jz4740: Use readl_poll_timeout rtc: jz4740: Reset scratchpad register on power loss rtc: jz4740: Register clock provider for the CLK32K pin rtc: jz4740: Support for fine-tuning the RTC clock .../devicetree/bindings/rtc/ingenic,rtc.yaml | 7 +- drivers/rtc/rtc-jz4740.c | 137 +++++++++++++++--- 2 files changed, 125 insertions(+), 19 deletions(-)