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: 1618503 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.a=rsa-sha256 header.s=mail header.b=nOyKHM7B; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4KhwwZ0ch0z9sGP for ; Tue, 19 Apr 2022 04:50:06 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347466AbiDRSwl (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 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_PASS,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: devicetree@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(-)