From patchwork Sun Aug 27 00:33:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 111063 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp2975351qge; Sat, 26 Aug 2017 17:34:12 -0700 (PDT) X-Received: by 10.99.175.1 with SMTP id w1mr2941800pge.389.1503794051997; Sat, 26 Aug 2017 17:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503794051; cv=none; d=google.com; s=arc-20160816; b=AlNSkovdNjILQGIHW+E6zeavlU6/v5G2eiJlKjMhNaDI5VUqohOkMUqxQflYPwSfeD 5JwzHzyTQEFut1t0jBtBgMkJ+tLU+9ShxENCrAs9cGC8VPNbKsbVo+KbAWSZxlJP5cDx GE/4y1Kf7XxmAAc7hcI224hrL5jse5abXMXNcYJcp+K5MEaNUoXn3PijqPfNkXm3p2Uq mKHnQUuBZWgvkWxAiTkQkvecmQKn0IuwVDq777W4sQqEAxUJgDQq3DXmZzNXRIPzeOFf 4J1b4bN2C2OwLTGg+W2DG+8/E8wWFA3i0SK5dO/0u1UWFv58Spy5pYBlAI5+e0B80Ofc TVRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=8piJDLaZlWYKEKfzLlNxdL1xJR8V1JtvJDvl4gQF5qI=; b=b9CjpTtQW+GU57SLjpekmrPk/3KKH06rjm0hruSL11B3FTfaUsdyPz0dSXy+1UpyFt lSOqhCshAF01WmKPDQxwkiCIOr7J16CBmjatySpvA+UTEajcrVp0IcD+admH49g5fsJ5 3Ee6FfMPiVhZ+K690SG/iDyYDZWkPaYVpFJxzMdRz9MyPoO2WX2FpOZhjTwnuag8NpMN iZjrVZtYre2hu9jrD53RMRWeZNDEoxmoNcMhW7JF1L/pgjk2a0ebgMa6Bc3UqheMMTLB /SyPZN2o7y4TQbSt5TTWy825E2z/4Cp9dV1FARJAyp1xuHZo10nwe+7/ZfTmM0z0JW7J bUWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q76si3472101pfa.540.2017.08.26.17.34.11; Sat, 26 Aug 2017 17:34:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751207AbdH0Adk (ORCPT + 26 others); Sat, 26 Aug 2017 20:33:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:48014 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751128AbdH0Adg (ORCPT ); Sat, 26 Aug 2017 20:33:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6A232ACE9; Sun, 27 Aug 2017 00:33:34 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Roc He , =?utf-8?b?6JKL?= =?utf-8?b?5Li955C0?= , =?utf-8?q?Andreas_F=C3=A4rber?= , devicetree@vger.kernel.org, Andrew Lunn Subject: [PATCH v2 0/3] arm64: Realtek RTD1295 RTC Date: Sun, 27 Aug 2017 02:33:25 +0200 Message-Id: <20170827003328.28370-1-afaerber@suse.de> X-Mailer: git-send-email 2.12.3 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series adds the RTC for the Realtek RTD1295 SoC. Based on my RTD1295 clk series. There being no public source code for RTD1295, the implementation is based on register offsets seen in the vendor DT, as well as older mach-rtk119x code published by QNAP. The base year is still hardcoded in v2. Calculations changed. The DT node depends on the clk series for clock index and header. More experimental patches at: https://github.com/afaerber/linux/commits/rtd1295-next Have a lot of fun! Cheers, Andreas v1 -> v2: * Updated rtc driver to no longer use open/release (Alexandre) * Cleaned up debug output (Andrew) * Avoided COMPILE_TEST division errors (kbuild) * Various cleanups and extensions Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: linux-rtc@vger.kernel.org Cc: Roc He Cc: 蒋丽琴 Cc: devicetree@vger.kernel.org Cc: Andrew Lunn Andreas Färber (3): dt-bindings: rtc: Add Realtek RTD1295 rtc: Add Realtek RTD1295 arm64: dts: realtek: Add RTD1295 RTC node .../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 ++ arch/arm64/boot/dts/realtek/rtd1295.dtsi | 6 + drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-rtd119x.c | 254 +++++++++++++++++++++ 5 files changed, 285 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt create mode 100644 drivers/rtc/rtc-rtd119x.c -- 2.12.3