Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp393120ybb; Wed, 8 Apr 2020 01:52:02 -0700 (PDT) X-Google-Smtp-Source: APiQypK/jTd8uA1YNLWTZHMttzghTxG/qatDL4EqE6HCGqOk6ruORz+3vwdTRppkCuqBtXfPx1oc X-Received: by 2002:a05:6830:2152:: with SMTP id r18mr4831222otd.338.1586335921981; Wed, 08 Apr 2020 01:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586335921; cv=none; d=google.com; s=arc-20160816; b=eVbXsE+Ure6+mT11RmmCh/0JyxiBoHC3KkKf/TvZPm4vw8HBUWw3dbuYRh+a/eHcok zWjnlj+A0lt2fTk8oBSCVgrrto41NgEEua9jNNP+8ScBkIhlY/FDwRu6rrqrErS4UEKp LZUYmF5dH3LKJS7Klwu/j1Mq5J1mKds2W4HZi2ahShPaY+JWEe6LkDpdCCT0ZiX2hO3t 18gki0DSNJTWUMSp0PREQB8S7VKnm2zKl9a/Bbvpg9JxHL6Wbdzz1QSxJ5bGFTp/LWgD KcGVu4+c4o5zmyGXQzFFHmEQfZxvI64/w3IgL6PPvYn5HJBO7KzIpZYDL3HymZ8ioMXf LBfg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TjyXO64FwGcewaav1xdCD25JCQNflx0WEYbeMtOQFrs=; b=e09oNhOqAtD26BPDdejdBmHLq/9C5wdZKLEmcYB/bCOf160vMgCnZlgrAcdcxCMRuc MML1DzrOFGQE64h8quJ8/1110phhVawAnzricEHD5hbh/hQy5UehU5h3jFUy3M31h8KT l77ShnEUopd1ilWDtpvNKpqgavAxwGGUS0Wd3FvxhmdYCGa74wo3skQpBgKvzH6PbQJG LwBr8Pg+PD+pnrDH92kpPCk6zoLYaWdqROhWd0FPjuKyCnhYXgRszFocayECn7k5Qvng wI4TV7ze+PkFbHygWY0Fnt4XoAhkcot0MCkcnvNrUj97iHrBC2WDvpa6HTFKosbxCsz9 eOoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=o7nH+WxD; 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=pass (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 r18si2402548otq.124.2020.04.08.01.51.47; Wed, 08 Apr 2020 01:52:01 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=o7nH+WxD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727505AbgDHINK (ORCPT + 99 others); Wed, 8 Apr 2020 04:13:10 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:9335 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727126AbgDHING (ORCPT ); Wed, 8 Apr 2020 04:13:06 -0400 X-UUID: 80a1dd2eae094e3a8d1ddd4796f34f7f-20200408 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=TjyXO64FwGcewaav1xdCD25JCQNflx0WEYbeMtOQFrs=; b=o7nH+WxDZRgr6zPAiTS3xvOEm7iuiYChzQybKJXmSVpyJ/rVsK3jZKmCMGuRV6wqcSbA4XaeGSOuN7DBTAEieI6MO106W1bGGCIZ1vlYUGaAEl9xc1SDJtfTVipmNpMoxQMBLSxkUSxyo9FBCNcIPVET+HZMs68G3v6+P57IPIY=; X-UUID: 80a1dd2eae094e3a8d1ddd4796f34f7f-20200408 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 535684888; Wed, 08 Apr 2020 16:12:54 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Apr 2020 16:12:50 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 8 Apr 2020 16:12:49 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Alexandre Belloni CC: Nicolas Boichat , Mark Rutland , Sean Wang , Sebastian Reichel , Eddie Huang , Alessandro Zummo , Kate Stewart , Richard Fontana , Frank Wunderlich , Josef Friedl , Thomas Gleixner , Hsin-Hsiung Wang , Ran Bi , , , , , , , Subject: [PATCH v12 5/6] rtc: mt6397: Add support for the MediaTek MT6358 RTC Date: Wed, 8 Apr 2020 16:12:10 +0800 Message-ID: <1586333531-21641-6-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1586333531-21641-1-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1586333531-21641-1-git-send-email-hsin-hsiung.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: FC9E6D3D677BFECBC59AA698A2C0BFB58BD00BC5E746CB6D9F98117B906E7CC52000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger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