Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp562192imu; Thu, 20 Dec 2018 01:23:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/VaIJKwCqYFDhZTWStpimAg61nSyB/rTHgV8/6IlBHCW6YvgxPh5aphp8WkNKLUdeQLhsoA X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr23454907plj.116.1545297825504; Thu, 20 Dec 2018 01:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545297825; cv=none; d=google.com; s=arc-20160816; b=ecFGQD073DCwpB6J+n54TZP3+uXqWNfqvvR0C/0XpJ7Dh13UWpp0s/rYqGfp/qW+OU 6+Hw4DKHXuIvkVVWHrP4vN+75aFJJ1Zyj4I3jFd6icC1yj4SnnWK1gw5Od6sHIMKW5eq CaXzx/qH3bX8Yi7X94i1YWiDNCE/cJ/0Tgbao7B7bYzAma+ovtpMVdnanr/nl+mnD4Am 3Skt807gUvrOQimKKauStFcGOP+dp9jmJY5/2GR7ZK8xtTHeVvVH9nIBS8vBv7qH+umA UKHoCG/MQvKf7ta6MkIJ1A41bVKZSyLKOF5v0hFZEOZkarvQs120LLzttKpshsEllhd3 m6mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=oKjfdlfTufn/6WM5DbBbvEtt1I5sJDVpyJNBXPNoL+w=; b=v5NwuQjS4IIaBBF3dIFKTqzGYDxGl1W+Qcijh1a2YpcGOxB5do3xUMxsE6i5xrh7ZG U/dlr6ZDsNBMmcx+YIAcmxVH8mEd2A0Mt84MWJKHL7nwNf/E3W+A4aHHI/jINqXyR8V3 KMXeOixIJSsawKc4cHBTsXjr6Gzn+Mmo5UFSnGAcMEbQ4lnTIqZN/S5T/C4674e44Gpq ysRl8fJlkTC+/JI/Ist1IMYqjqM+nAOdKUTrre7YM0Bw/Y0GGCgyYu2CDKVeoZcS8Vqu J9MFrtzuNIqw9R9fnKqxIh8qjWfmIkDLevA/kTUdhk6lR3XH7DoRarpaasxltOy2h06H j+Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=SHfyZZFG; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b61si18181189plb.70.2018.12.20.01.23.30; Thu, 20 Dec 2018 01:23:45 -0800 (PST) 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=@nxp.com header.s=selector1 header.b=SHfyZZFG; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729043AbeLTI4F (ORCPT + 99 others); Thu, 20 Dec 2018 03:56:05 -0500 Received: from mail-eopbgr40067.outbound.protection.outlook.com ([40.107.4.67]:59904 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbeLTI4E (ORCPT ); Thu, 20 Dec 2018 03:56:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oKjfdlfTufn/6WM5DbBbvEtt1I5sJDVpyJNBXPNoL+w=; b=SHfyZZFGCyX2vdNSQBscZ7kQ1TJ0nV4vhWYrt7PhfjCh7Ty4/5hmCG2SV4LilZKWDquARKXI3Qiruzk3F91hfz2W3r2IdD1nglSX0+V1J65qVH3xblhyDmySAJlNUF0sO1vVcGxKhRgEybqR8cMdnELFHolCPtuY59ugpVw7N/E= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3797.eurprd04.prod.outlook.com (52.133.29.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.17; Thu, 20 Dec 2018 08:55:59 +0000 Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::987c:cb59:96c9:6b71]) by AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::987c:cb59:96c9:6b71%2]) with mapi id 15.20.1425.025; Thu, 20 Dec 2018 08:55:59 +0000 From: Anson Huang To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , Aisheng Dong , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , Andy Gross , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "arnd@arndb.de" , "bjorn.andersson@linaro.org" , "enric.balletbo@collabora.com" , "amit.kucheria@linaro.org" , "ezequiel@collabora.com" , "olof@lixom.net" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-rtc@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V5 0/4] Add i.MX system controller RTC driver Thread-Topic: [PATCH V5 0/4] Add i.MX system controller RTC driver Thread-Index: AQHUmEHTAAw0zsYv3U6nEtMaAOkB6Q== Date: Thu, 20 Dec 2018 08:55:59 +0000 Message-ID: <1545295872-20169-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR0302CA0021.apcprd03.prod.outlook.com (2603:1096:202::31) To AM6PR0402MB3911.eurprd04.prod.outlook.com (2603:10a6:209:1c::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM6PR0402MB3797;6:zwf1+iz63/8KdOAfIIZfWianwyU1yVyR2tQOPltho1RcASY8jmTrBIrRQ4hgUZqseOPGNg9eQQYcyQ2n0yt3kba/51HHmY4eQKX7A+AaNk5Yd49kNtkLbGts8WCBGEdDUYtoOuMlL09nzN8C1vywbTH7ljVivZXcq3Ek69D+9my5gDpZDOCJwOlpBJWBgp287+2lZZwHtT5d94/Sx71xjzQLwU/lY7X7SxP05ZVmjLXy3B4UXvH2nd472BYEMvbUE891rTNEUxUqtzUednlbTziIFSbHQDjQc25kdvdXlOdAIk1XOFMvU94YcBROETCjB2BM6UsQdd2FSDonO3DKrLMlDLTmiZ0QNPxl7MchhIMM7fm5SQVCmnHNvlX3BrMx3S4wI/MqHr+h6Gd2+Ew/XBo8RwsOXu2Y/MMke8/0sGvRZY/loYe4itCaD7jK+Z7AMGUBc/9VgNzxjiS91MISqg==;5:/sWh1q/wctRhZNp7TuA1IcqqfLoDEwFXSgNanzeo751gfoE9NirL+bH6LR0JdRhQ4tVDB1oqe7h3Bod99RIBxbqst8FfiaqQL4QL23PhvhNNEZOXdwtiWtfu3HDU8sChqn9al+ldn2vZzcVVC8jcQYFfXxCY5ZCDA/3DmM+EdkE=;7:w6KNGlj4pqyKFu/iu1Fkzl95dMWEdPmLTpMMGIutO2WPuJCEJILTPY6oRB4f82P74NX6aJFl6lWp1iV7k36PFPdt72CxOPMAcUrZbkis9iTh/k/F34PAg3PyENjG7lYGxFBrq2RylX7vw9dgLFSY6w== x-ms-office365-filtering-correlation-id: 916d32dc-f5ac-4bef-6b8e-08d66658f5eb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR0402MB3797; x-ms-traffictypediagnostic: AM6PR0402MB3797: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(5005026)(6040522)(2401047)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:AM6PR0402MB3797;BCL:0;PCL:0;RULEID:;SRVR:AM6PR0402MB3797; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(39860400002)(136003)(396003)(366004)(199004)(189003)(486006)(6436002)(106356001)(71190400001)(8676002)(81156014)(81166006)(71200400001)(14454004)(6486002)(52116002)(2201001)(36756003)(26005)(68736007)(316002)(186003)(86362001)(105586002)(110136005)(102836004)(6506007)(386003)(99286004)(4326008)(478600001)(966005)(3846002)(476003)(6116002)(66066001)(2616005)(5660300001)(7416002)(6306002)(6512007)(305945005)(256004)(8936002)(7736002)(25786009)(53936002)(50226002)(97736004)(2906002)(2501003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3797;H:AM6PR0402MB3911.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: ldwZ2yQMu2ewIe4XPXdEOpxVGeyazmMMoNpvEtWHSZTeELClJioJJfk4hrCZvrbtOofHMHKnY1KgdUAd6lfIYXRW3QeQCKhTM0gFnwGnTQMYInDobmkB2xtZgd3LLIYwM6TARGKL4A1OooRyS33kR+HYBIUEooybiLyvWRMGzfDGMvCIBqoZmo6/zKrj6Akm/Y1Dlc+Gk2R7ke00o+w18M4V7DJxj4trEhe6ALHm/2IGNVURb8RUBgXTF9Rl6T3sDHKmbOUrDmcAbrMd9IHNOlc7u36ClI5iScACBc4+NSeA+gaCqVwlw4KGQEXjd36f spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 916d32dc-f5ac-4bef-6b8e-08d66658f5eb X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 08:55:59.1127 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3797 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and secure RTC etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to do RTC operation. Since the RTC set time MUST to be done in secure EL3 mode (required by system controller firmware) and ALARM functions needs to be done with general MU IRQ handle, these are NOT ready NOW, so this patch ONLY supports RTC read time for now. Note that this patch set is based on [V4,5/5] defconfig: arm64: add imx8qxp= support, https://patchwork.kernel.org/patch/10677315/ Anson Huang (4): rtc: add i.MX system controller RTC support dt-bindings: rtc: add binding doc for i.MX system controller RTC driver defconfig: arm64: add i.MX system controller RTC support ARM64: dts: imx: add i.MX8QXP system controller RTC support .../devicetree/bindings/rtc/rtc-imx-sc.txt | 10 ++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 + arch/arm64/configs/defconfig | 1 + drivers/rtc/Kconfig | 6 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-imx-sc.c | 104 +++++++++++++++++= ++++ 6 files changed, 126 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-imx-sc.txt create mode 100644 drivers/rtc/rtc-imx-sc.c --=20 2.7.4