Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7159425ybi; Thu, 1 Aug 2019 04:07:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzam2ORuPwrBdSARKFeSmlNoUVNK3Tz0brfjEuBIVi2DzoKxEPeg7Kt3LafFSj97c29F36j X-Received: by 2002:a63:8a49:: with SMTP id y70mr24003724pgd.271.1564657670728; Thu, 01 Aug 2019 04:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564657670; cv=none; d=google.com; s=arc-20160816; b=PS9WYU7XPqWCqZVVVL0A+gvLFkYlU7FDQ5MHmUsHYzpHY0GQN5WUWaXHDnargkwgK1 ZyXwPg+IrtEoLEtFB50zztY4gQ3hCnl9NNSh+hCZAiFN4ZlGYRlJ6bmFNDCG+1Xv7QIs 5m9/Xj48Ifi+elUdaRlJO/1fVUqqFGbsuWFBKzR0vdXvGEtajOv7UZLc86u0AdBSRpB6 MBP3/VD+Q7LKqRiIkJ7OXsOd7GUexkufGP+X+npaY57e+taGGUV2SK6Z9yZ9KMnS316R +3Oz8AQs4O9Kakp99dCVyOruHmKptA2DCGeQ7BdDI1jIYId2XwFDHCMiZOYgf4+y5y2P 1ouQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=neVjofWTsRR1d500s1w7RzhLjzTt3MQkyXkeRqnTzcg=; b=zAphdeRF4XMabSud6xshJZGYoX/qTt1OoUu2GHWmt65p3OBHIJzn9tEwg/CZblps+J WWG15AznzdXInajY1AWrAr2FcdDxFG8DQPFmeOD6byxVytyS4qWDNPoIZE64ZWvtcl+z gwtq2B4avVZUM+xzU4PWzesnNxU2u8HNn5xYmhAR0LZR3/TkDuURDzcAm4m3prJU4VdO QVRijaiYhFerJ6Tl8h0s2iArCWz5ogyRz0OsDW/EcC67wxSftThN8OhbZdZrAu3Af8U5 hno9V6pQqiXShtMFsx3nEVqynF3veX+Li0ElyTdOTisBi2N/QhHBaUIGmaAC589Io+tZ qLag== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si22953714pgp.343.2019.08.01.04.07.35; Thu, 01 Aug 2019 04:07:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731284AbfHALBl (ORCPT + 99 others); Thu, 1 Aug 2019 07:01:41 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:4016 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726227AbfHALBl (ORCPT ); Thu, 1 Aug 2019 07:01:41 -0400 X-UUID: e74bd83137a940449891aed9a2be2cc6-20190801 X-UUID: e74bd83137a940449891aed9a2be2cc6-20190801 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 1701189342; Thu, 01 Aug 2019 19:01:32 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 1 Aug 2019 19:01:34 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 1 Aug 2019 19:01:33 +0800 From: Ran Bi To: Alexandre Belloni , Rob Herring , Matthias Brugger CC: Alessandro Zummo , Mark Rutland , Mauro Carvalho Chehab , "David S . Miller" , Greg Kroah-Hartman , Jonathan Cameron , Linus Walleij , Nicolas Ferre , , , , , , , YT Shen , Eddie Huang , Yingjoe Chen , Flora Fu , Sean Wang , Ran Bi Subject: [PATCH v2 0/4] Add Support for MediaTek MT2712 RTC Date: Thu, 1 Aug 2019 19:01:18 +0800 Message-ID: <20190801110122.26834-1-ran.bi@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset add support to MT2712 RTC. MT2712 RTC is a SoC based RTC with different architecture compared to MT7622 RTC. Changes in V2: 1. change minimum year from 1968 to 2000 2. fix lock usage 3. stop to calculate useless day of week 4. stop to set default date after init 5. change the prefix of functions 6. use devm_request_threaded_irq() to replace request_threaded_irq() 7. add mt2712 rtc related files into MAINTAINERS Ran Bi (4): bindings: rtc: add bindings for MT2712 RTC rtc: Add support for the MediaTek MT2712 RTC arm64: dts: add RTC nodes for MT2712 MAINTAINERS: add MT2712 RTC files .../devicetree/bindings/rtc/rtc-mt2712.txt | 14 + MAINTAINERS | 2 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 6 + drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-mt2712.c | 444 ++++++++++++++++++ 6 files changed, 477 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mt2712.txt create mode 100644 drivers/rtc/rtc-mt2712.c -- 2.21.0