From patchwork Thu Nov 29 01:50:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10703775 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE42A14D6 for ; Thu, 29 Nov 2018 01:50:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B28412DFC4 for ; Thu, 29 Nov 2018 01:50:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5DF02E03E; Thu, 29 Nov 2018 01:50:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4E6202DFC4 for ; Thu, 29 Nov 2018 01:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b41gBN/uBzaaxqbmMr5/mmE8jJjRLjTzD2oxIKqXgqg=; b=U+QMYyb1md2rdQ TlpQrCZp/ZwLZGon6sX+fMLYbjNGykBGo2XGatF4qTWm4krobZ2vbStnFK6tMGW9scu8b4zMvm5U8 3HmgxSBHLC6/qvEi9UWZeJw67ZGFDKzcqqcExbUcr+R8zTxz7n6h2cc7b2+DjvZa8BEObK31ol1NI cykkUExF/wWRFIbN5mgW5eDr6AEHWyyrITPOPxAnEwBtj17X5CT8sDEOI/7TJyDnPjOI3JguCZbnJ EuRRq8HEAANwb1H3zzItNOK8slNEOdH3CXoHo+nDVh0RKoG8n3vgO/YhG1/Tm9yhbjP1FJeNmVzW1 KD6JfQcRXu5ulisWs1XA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSBTM-0000s6-EJ; Thu, 29 Nov 2018 01:50:32 +0000 Received: from mail-he1eur02on0621.outbound.protection.outlook.com ([2a01:111:f400:fe05::621] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSBT4-0007iZ-T5 for linux-arm-kernel@lists.infradead.org; Thu, 29 Nov 2018 01:50:16 +0000 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=TdDfCQ2r0j67Xj2S1vORj+giQEEmWetoQ7SUIpLLuOQ=; b=ZtJ94zPqMTZpHjwkcCwNw0egKPefuxo20PGXOTMy6umZHMFqEWTS3D8FBEvtJTZzoFZdJUZnehIIzVCdrwZ8ij/nfJUpErBprhum4UyK/Sq3QVXBobr/l2hJjktFXflW9nfBDU1iIz+i/peAeA+hrO1B5tU0eUhQWdsb9xEPWjk= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3930.eurprd04.prod.outlook.com (52.134.71.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.20; Thu, 29 Nov 2018 01:50:04 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd%2]) with mapi id 15.20.1361.019; Thu, 29 Nov 2018 01:50:04 +0000 From: Anson Huang To: "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Aisheng DONG , Andy Gross , "arnd@arndb.de" , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "bjorn.andersson@linaro.org" , "enric.balletbo@collabora.com" , "amit.kucheria@linaro.org" , "ezequiel@collabora.com" , "olof@lixom.net" , "LW@KARO-electronics.de" , "shawnguo@kernel.org" , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 1/4] dt-bindings: fsl: scu: add rtc binding Thread-Topic: [PATCH V4 1/4] dt-bindings: fsl: scu: add rtc binding Thread-Index: AQHUh4XZ8fx1c9h3Q0647uaPvvX+hg== Date: Thu, 29 Nov 2018 01:50:04 +0000 Message-ID: <1543455856-18021-2-git-send-email-Anson.Huang@nxp.com> References: <1543455856-18021-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1543455856-18021-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: HK2PR03CA0045.apcprd03.prod.outlook.com (2603:1096:202:17::15) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) 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; DB3PR0402MB3930; 6:izO1XCXKum1diN+IXYlinXXOcEJFr1WjhxwZnypuajtpmOR9ucXO3mc5VwcXSvOZ7UwXUfmwJyF7o+0OqdFHu6mk3j312RQ//9SXWmbPqI4JXtGoaHXYuxdZaJnV22ihfbchwtiGMsYzoD7SmNB6GKCivpR9IRmZ3dGjcIeEYXPFVD1/A92cnXn2sTp4jvGyWoFhu/TsiaLDCrRdKXtTywMw6+eVZDCSfO0303PwAYl1CDZ4qAFvfKJ8s2ZUrmGW0dbl+drMeMJuLxzC96oyERg7M7a1hliLy25C9f+abTKjxtu5gVtJM0/2fgjj5q6U/WT+/lSZ3MEiEeutPbzCv9muQA3o2iwx6mb2K4EKW4Pm1l21A0dHGU3MZZAXgJezbrmnOxrlpCA+spf0/7SOGcnXFa80Q8tqFNQ5o/V4gttESyJn+TCo2qvTuqBcWyWHfGLE/P+XmHOR6QBrf5iTAA==; 5:g7sv5nrRBOC1yY4PkDrKtZ0QsZZJtT1zbmw5IQADj9fGZJf1dx0TyI+q20LmJPuB2CMzleYWgzFrzSHfCjMTPGUB0TnA91k40RanR00m2ETj3hYC/Lt4OBTjcBW0/8n7t1pBfhkUeuW7b4mS/B44oYrjfz0uCorROwtkgUu2cl8=; 7:LS2e31p3zvcePwgbPRO2bR2XSmk8s9vUPppWGn7u1JTn0L98uo6j4Y7vPplDgh1/G/8oq+kZi75JodS9UWhetTqP1n/Y264jYyujCdRvyGU9Qm978ENQ9IPGam+BVT1dFoFceAKOl+sktr8t6zGSYg== x-ms-office365-filtering-correlation-id: a87a7478-1e2d-4c47-9678-08d6559cfba6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3930; x-ms-traffictypediagnostic: DB3PR0402MB3930: 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)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231453)(999002)(944501410)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:DB3PR0402MB3930; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0402MB3930; x-forefront-prvs: 0871917CDA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(396003)(136003)(376002)(366004)(54534003)(189003)(199004)(110136005)(2501003)(316002)(3846002)(6116002)(52116002)(7416002)(71200400001)(305945005)(76176011)(478600001)(25786009)(6512007)(53936002)(7736002)(14454004)(99286004)(36756003)(5660300001)(97736004)(4326008)(446003)(86362001)(81156014)(6506007)(81166006)(102836004)(8676002)(2201001)(68736007)(6436002)(6486002)(50226002)(11346002)(386003)(2906002)(105586002)(186003)(106356001)(2616005)(26005)(256004)(8936002)(476003)(66066001)(71190400001)(486006)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3930; H:DB3PR0402MB3916.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: pN328h+oIlNJjVP7pSdv++6jFYj2XQJAEEkw9ssDJAF48b6qDHX6PSCqiyUc7KlRBp05u6NJC+rquv2+WSxO24TCSs6cBHhmVgxqoRQKLJI0ntF7mID0jfGVmOSLJ71uCt4b2gVofWg0RFAHMWTfYJIoMS23UDgx0WIUwfqOYentW4k2sEAHBlewO91teCt0iqxmHR2HwtJ0LXCKW1gv49RVTnpxt+pYeJ73yeaKrH+ShebQcMtCSwXiu+WS9Me3iXqfjYl47bL57XOh1K7o9sQ+WpLUN+GBSOdvmqWNI7H0qaQkk6Xrg+iGbh4/NfCaLHIj8eCeFveFkPwbeyFZ9DYRS5ZQoPYTQMdzZxGExS0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a87a7478-1e2d-4c47-9678-08d6559cfba6 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2018 01:50:04.6949 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3930 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181128_175014_936431_F8B8998B X-CRM114-Status: GOOD ( 13.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dl-linux-imx Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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, this patch adds binding doc for i.MX system controller RTC driver. Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- ChangeLog: V3->V4: *move rtc binding doc to scu binding doc since it is belonging to SCU. *change compatible name to start with "fsl" instead of "nxp" to align with other nodes in dtsi. Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index c20f38e..3f3d697 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -106,6 +106,12 @@ Required properties for Pinctrl sub nodes: [2] Documentation/devicetree/bindings/power/power_domain.txt [3] Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt +RTC bindings based on SCU Message Protocol +------------------------------------------------------------ + +Required properties: +- compatible: should be "fsl,imx8qxp-sc-rtc"; + Example (imx8qxp): ------------- lsio_mu1: mailbox@5d1c0000 { @@ -148,6 +154,10 @@ firmware { compatible = "fsl,imx8qxp-scu-pd"; #power-domain-cells = <1>; }; + + rtc: rtc { + compatible = "fsl,imx8qxp-sc-rtc"; + }; }; }; From patchwork Thu Nov 29 01:50:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10703777 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EEE1F14D6 for ; Thu, 29 Nov 2018 01:50:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E256E2DFC3 for ; Thu, 29 Nov 2018 01:50:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D585E2E001; Thu, 29 Nov 2018 01:50:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 43AD32DFC3 for ; Thu, 29 Nov 2018 01:50:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fkB/ozo5O3yXIZ2/zeRsdMCab1XXlgcc557+mZT8DAs=; b=kVAte3vTdmuAFz fTxN4SQ9xfdMvvPEmFQ+N7TBzrobhTfuL1Xmm5E1n7NAquar7FCqXPpuWi3L0n1dJ39qEA4oF/xPV Z3JgmzXFJpM5PFGr9beygEzSgJvQAMFXTwxs6xWr9yZZIu4xMB3KDeCxF9L+2w2GD4cZSxxdyWl2n XNHYxM/2hSCxL9uEjuyrWPN+ZJMCRIF+L0sPhTcPWcb6eVhBAH8jyi0QUnh3ixnqoR2Aa+lrp8Tg0 mA/IDnmjB647dTLhFUjM52tIczWfSmNjZSSR2fJcZJSi9nBpBwNmOxx2TvMAIBb6lc4EoUFr/oLMz H9Z1RgEq23Y/4ZQL5k1Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSBTZ-00015a-Le; Thu, 29 Nov 2018 01:50:45 +0000 Received: from mail-he1eur02on0621.outbound.protection.outlook.com ([2a01:111:f400:fe05::621] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSBT7-0007iZ-0k for linux-arm-kernel@lists.infradead.org; Thu, 29 Nov 2018 01:50:22 +0000 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=Z1Zoo9YjiIa4fFKVpdcwPIu6olWviBJm2D9CI6ZI3tk=; b=lhzHKkYQCjl3qcsLbopt88yLIQJ2dXQyxUV1S17zKDxiFQ2kQ7QYtuWOOnvYqXIOOpKN0zmTawlGlesIhnFr5yCe4DqaUoLhQFtT37i/FTPhFzFhQyTwMGsJbcysF8BEvRSjjEqQ/R1yB2V5506d7PvfajVzMb/SCAPBG21MPcQ= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3930.eurprd04.prod.outlook.com (52.134.71.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.20; Thu, 29 Nov 2018 01:50:11 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd%2]) with mapi id 15.20.1361.019; Thu, 29 Nov 2018 01:50:11 +0000 From: Anson Huang To: "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Aisheng DONG , Andy Gross , "arnd@arndb.de" , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "bjorn.andersson@linaro.org" , "enric.balletbo@collabora.com" , "amit.kucheria@linaro.org" , "ezequiel@collabora.com" , "olof@lixom.net" , "LW@KARO-electronics.de" , "shawnguo@kernel.org" , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 2/4] rtc: add i.MX system controller RTC support Thread-Topic: [PATCH V4 2/4] rtc: add i.MX system controller RTC support Thread-Index: AQHUh4XdMkdvaBq+50CIziMq0Y1OPw== Date: Thu, 29 Nov 2018 01:50:11 +0000 Message-ID: <1543455856-18021-3-git-send-email-Anson.Huang@nxp.com> References: <1543455856-18021-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1543455856-18021-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: HK2PR03CA0045.apcprd03.prod.outlook.com (2603:1096:202:17::15) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) 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; DB3PR0402MB3930; 6:FQedETAklCcaj6f1q1iIuO3OkJZkIYwiW42J28fSn3kd6l0VhPor6mqCdNCO4pnfCpDCNpqUFijW1H/IhrihcV0Y4nExEz1/7s/EgUvv+xFLkwImcITSKb5+lVXeKqeMAZWefqNJzMb2jTkFTIHVttk+s8zIuA0doQDhUd171SxCRldHj6BV7gwJFfTyqeMBFppv0aasjs5NpSY3EyPML5MLfgDlGW4GDkw9mgexKTPNER7uOG11rAFfybDPV2IlzITF33TY2ntGlNKj4F3ZKUAvj4NQy1mVOPO++XgqgkjyUlSf6BLhHo7KwD+IlXiddk7U5/eJ6HNJAnyVqKCw1yiPhB2P+WgqeSoYf6pBQ/b8CkmWg4g1X3G+CpfVV3nUjW7nBJpj1JdwTXeAqTjp1IHqE2orpNG7LArdY3uKM3q1F40+rCl5LxmW4LK0O49obsSR341pVyAKKzpaqCb4ug==; 5:30BPWEuua+qNnHGlVifs9/1mwfgXgHRID6BgGia3/+3b/mJ8nK8FLxYIg+Sdzc8RRXuA/6Ou0alc8AvixphVJr55Ehk/UhhihL2vXUb7pzu5Hl7n/G68dOn17kPHHbGe+eJFtnsHd3WitAViZ2oie1poXaLCdSFG3raxofMB884=; 7:mVwVzZ/BBgdNdazOniderkkJDQoLCL9WjQL7+nvQDdlCqz1Fp9rdgnECJ0ZO9hCXyc7K+YgzGuCJCqJg+eH/wEYUdC85Nicj3049HhiNXzfxplUDwnaGSWF227v+pNkg9SBAYMasfohjzn17S+7wYA== x-ms-office365-filtering-correlation-id: f96029c3-f5d7-4b99-f057-08d6559cffec x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3930; x-ms-traffictypediagnostic: DB3PR0402MB3930: 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)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231453)(999002)(944501410)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:DB3PR0402MB3930; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0402MB3930; x-forefront-prvs: 0871917CDA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(396003)(136003)(376002)(366004)(54534003)(189003)(199004)(110136005)(2501003)(316002)(3846002)(6116002)(52116002)(7416002)(71200400001)(14444005)(305945005)(76176011)(478600001)(25786009)(6512007)(53936002)(7736002)(14454004)(99286004)(36756003)(5660300001)(97736004)(4326008)(446003)(86362001)(81156014)(6506007)(81166006)(102836004)(8676002)(2201001)(68736007)(6436002)(6486002)(50226002)(11346002)(386003)(2906002)(105586002)(186003)(106356001)(2616005)(26005)(256004)(8936002)(476003)(66066001)(71190400001)(486006)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3930; H:DB3PR0402MB3916.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: SSM7U/BHMpTzTenHwANozvojZntqSo+looqIIpVD64mNU3lyGNnQ8BOeeodrNHaG9nBvCiqwH2remcS2eqD99WrPm0sg52pckFxNFtgwArTXnD8O/WS7B5wxBbNKCMdfSJSu8NvF8mCx+AJTx49aYhRoAQpTGkZ5XS2U7V3578gZ+uqlZGs4bfQsoS8F2MHF57rb6LTu0XI1gvgg97AYxOmyO0QcIS9PHIWh7akMAQc+FMyfO/4rT3cg4sc4LxtkWYo6ctwJuSpFoBDY1PPgBqz/FCYZJVsa2vxUzOXw9QEHwJrEF6GusP6TGonexWT3WG2+L8ud9iOCHG8+blI+OL9+/aCkcLP9vQe5A57HqKw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f96029c3-f5d7-4b99-f057-08d6559cffec X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2018 01:50:11.8356 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3930 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181128_175017_377414_07653A7B X-CRM114-Status: GOOD ( 21.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dl-linux-imx Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and secure rtc etc.. This patch adds i.MX system controller RTC driver support, Linux kernel has to communicate with system controller via MU (message unit) IPC to set/get RTC time and other alarm functions, since the RTC set time needs 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 depend on other components which are NOT ready, so this patch ONLY enables the RTC time read. Signed-off-by: Anson Huang --- ChangeLog: V3->V4: *remove unnecessary headfile included; *fix potential memory currpution for the message responce; *update the compatible string name to start with "fsl" instead of "nxp". drivers/rtc/Kconfig | 6 +++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-imx-sc.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 drivers/rtc/rtc-imx-sc.c diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index a819ef0..3b9642e 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1677,6 +1677,12 @@ config RTC_DRV_SNVS This driver can also be built as a module, if so, the module will be called "rtc-snvs". +config RTC_DRV_IMX_SC + tristate "NXP i.MX System Controller RTC support" + help + If you say yes here you get support for the NXP i.MX System + Controller RTC module. + config RTC_DRV_SIRFSOC tristate "SiRFSOC RTC" depends on ARCH_SIRF diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile index 290c173..f97c05e 100644 --- a/drivers/rtc/Makefile +++ b/drivers/rtc/Makefile @@ -75,6 +75,7 @@ obj-$(CONFIG_RTC_DRV_GOLDFISH) += rtc-goldfish.o obj-$(CONFIG_RTC_DRV_HID_SENSOR_TIME) += rtc-hid-sensor-time.o obj-$(CONFIG_RTC_DRV_HYM8563) += rtc-hym8563.o obj-$(CONFIG_RTC_DRV_IMXDI) += rtc-imxdi.o +obj-$(CONFIG_RTC_DRV_IMX_SC) += rtc-imx-sc.o obj-$(CONFIG_RTC_DRV_ISL12022) += rtc-isl12022.o obj-$(CONFIG_RTC_DRV_ISL12026) += rtc-isl12026.o obj-$(CONFIG_RTC_DRV_ISL1208) += rtc-isl1208.o diff --git a/drivers/rtc/rtc-imx-sc.c b/drivers/rtc/rtc-imx-sc.c new file mode 100644 index 0000000..5976a2e --- /dev/null +++ b/drivers/rtc/rtc-imx-sc.c @@ -0,0 +1,98 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2018 NXP. + */ + +#include +#include +#include +#include +#include + +#define IMX_SC_TIMER_FUNC_GET_RTC_SEC1970 9 +#define IMX_SC_TIMER_FUNC_SET_RTC_TIME 6 + +static struct imx_sc_ipc *rtc_ipc_handle; +static struct rtc_device *imx_sc_rtc; + +struct imx_sc_msg_timer_get_rtc_time { + struct imx_sc_rpc_msg hdr; + u32 time; +} __packed; + +static int imx_sc_rtc_read_time(struct device *dev, struct rtc_time *tm) +{ + struct imx_sc_msg_timer_get_rtc_time msg; + struct imx_sc_rpc_msg *hdr = &msg.hdr; + int ret; + + hdr->ver = IMX_SC_RPC_VERSION; + hdr->svc = IMX_SC_RPC_SVC_TIMER; + hdr->func = IMX_SC_TIMER_FUNC_GET_RTC_SEC1970; + hdr->size = 1; + + ret = imx_scu_call_rpc(rtc_ipc_handle, &msg, true); + if (ret) { + pr_err("read rtc time failed, ret %d\n", ret); + return ret; + } + + rtc_time_to_tm(msg.time, tm); + + return 0; +} + +static const struct rtc_class_ops imx_sc_rtc_ops = { + .read_time = imx_sc_rtc_read_time, +}; + +static int imx_sc_rtc_probe(struct platform_device *pdev) +{ + int ret; + + ret = imx_scu_get_handle(&rtc_ipc_handle); + if (ret) { + if (ret == -EPROBE_DEFER) + return ret; + + dev_err(&pdev->dev, "failed to get ipc handle: %d!\n", ret); + return ret; + } + + imx_sc_rtc = devm_rtc_allocate_device(&pdev->dev); + if (IS_ERR(imx_sc_rtc)) { + ret = PTR_ERR(imx_sc_rtc); + return ret; + } + + imx_sc_rtc->ops = &imx_sc_rtc_ops; + imx_sc_rtc->range_min = 0; + imx_sc_rtc->range_max = U32_MAX; + + ret = rtc_register_device(imx_sc_rtc); + if (ret) { + dev_err(&pdev->dev, "failed to register rtc: %d\n", ret); + return ret; + } + + return 0; +} + +static const struct of_device_id imx_sc_dt_ids[] = { + { .compatible = "fsl,imx8qxp-sc-rtc", }, + {} +}; +MODULE_DEVICE_TABLE(of, imx_sc_dt_ids); + +static struct platform_driver imx_sc_rtc_driver = { + .driver = { + .name = "imx-sc-rtc", + .of_match_table = imx_sc_dt_ids, + }, + .probe = imx_sc_rtc_probe, +}; +module_platform_driver(imx_sc_rtc_driver); + +MODULE_AUTHOR("Anson Huang "); +MODULE_DESCRIPTION("NXP i.MX System Controller RTC Driver"); +MODULE_LICENSE("GPL"); From patchwork Thu Nov 29 01:50:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10703783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8877113A4 for ; Thu, 29 Nov 2018 01:54:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BDCA2E159 for ; Thu, 29 Nov 2018 01:54:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E1C42E160; Thu, 29 Nov 2018 01:54:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 215332E159 for ; Thu, 29 Nov 2018 01:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RVjGybq8IFcwK0caSnAP7KydwqYv4cZtDzO7HAWq32Y=; b=WKi8v5BmxI5txj Qee9768SskSuZAzwfqPUWXbTH4W1ZJRGXj0jOzcKqBZtS2fEHDjlaaAobF0Yj1WdTYrgGXFKJBIFs ADTUa3Y2uFW1iFSzMXtP7h+rztz/eSVg3JOwteQLSLdyFu4SqlkWj+Qyu8Nt5xDf3oEa1mUphutle TLNHdAwH9wMbNPBwPA1FB1rmqeQ77EWefvE6/bxxOguOwUzHpGoIjVfRxJyaj/ttvnVVqu2cVEMrW 2FPkKvoUTRl9P9/+F5zP/NJU2Q42Kshhmu0vE8osjJoqjLBmQiffysruqgv1+swaEGK5GPtAVMoMQ CwuXpgJTvfVY9Jncy5rA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSBXc-0002rU-7Z; Thu, 29 Nov 2018 01:54:56 +0000 Received: from mail-he1eur02on0621.outbound.protection.outlook.com ([2a01:111:f400:fe05::621] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSBTD-0007iZ-6u for linux-arm-kernel@lists.infradead.org; Thu, 29 Nov 2018 01:50:26 +0000 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=fGKn56NTbWYf3BNfzsV5YX7MHvch8jyid9Gcu9P1kwk=; b=uj/K+rr2/YkifWE2s+N0/DW4Ln4QK8SmTX+UR+K4p0hUOqJ/Ge5DHa6MyZzgqm/v+0+aUo31qQnplxwOzf4sHraFyFjAPDHG+6OmCFq94WYUAKu9Q9xMYWJ+6Yt65BJwYh1O1mq29t5qojjIOCNoe8BhK3x7zJ/Izc5XzaOLh/A= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3930.eurprd04.prod.outlook.com (52.134.71.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.20; Thu, 29 Nov 2018 01:50:19 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd%2]) with mapi id 15.20.1361.019; Thu, 29 Nov 2018 01:50:19 +0000 From: Anson Huang To: "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Aisheng DONG , Andy Gross , "arnd@arndb.de" , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "bjorn.andersson@linaro.org" , "enric.balletbo@collabora.com" , "amit.kucheria@linaro.org" , "ezequiel@collabora.com" , "olof@lixom.net" , "LW@KARO-electronics.de" , "shawnguo@kernel.org" , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 3/4] defconfig: arm64: add i.MX system controller RTC support Thread-Topic: [PATCH V4 3/4] defconfig: arm64: add i.MX system controller RTC support Thread-Index: AQHUh4XhICV7habpB0Cj3NMP51ukzw== Date: Thu, 29 Nov 2018 01:50:19 +0000 Message-ID: <1543455856-18021-4-git-send-email-Anson.Huang@nxp.com> References: <1543455856-18021-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1543455856-18021-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: HK2PR03CA0045.apcprd03.prod.outlook.com (2603:1096:202:17::15) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) 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; DB3PR0402MB3930; 6:IwtEKonY4tkVqcBwzG5/zQdYd3SArj/BUlJupCLK1okbndFQiGIfAOfI5q/pX33pxd9I72Mhcar8w+U9pwGNg6wRE31BtjbspOgKtSyqE8f4vbmRH6pcgwaRFB2itNEbIkrbFuE/Z2Yh4ATeaX64KJlGzbHJrQop7vXoJWz69CA2WSe+8v6rYbnYajXpQXsbmBz2WmAQ/KMjnh26rZftNXIj4v6JFMrgnwWRhmqbdLV0uaqXRv/30cK3ixppLWRvgWgOEJIblrsOTt9o2CO/0mBztUzsyamksH4YDpMb8jq7vLdoGNi7NtnFeBRG4Oj1ZJ+h1ixlz6EQQjAZxfZQRsXHOptZzllTFOH2ZleAaC+gmb6N8ye+1JqKPdWEojl2dFLzxZUPmo2KCRJo38HPpuXKOFomhS967hULeh4zfIWlaTx2N56UtVIVd7pNo9lRKwjzFkKN9/qP6DTd7lPjdQ==; 5:7gqeXHLNVbhPfu3kpVgum4PKHhez1KBoYLfP6to2aSDP/0+MpnAIj3W1bsYMBpLPqIbarjeWcKYswIIMeBaB+5fhyyrC8qqu9YNmAHF7+tIqA1nI8Kp+ueiAilURSY7rXbvWhIb3GPh7kfztngBHktqnAVszSlIH7wVTOhh4gxg=; 7:s4T/5uaVS7UHR7EgFjRTRV1yzlQ09kGnfCp32tt2aHoETkLlFbC+LhvkVkPghazXoFlMOpI1FRHSCqevsYD6aMA4DUbALz05euaPJFi1aZz9byksBa+14hfNDXsf4O3zZtZbCIAgyURLpN4Zkvo6ew== x-ms-office365-filtering-correlation-id: 992ce255-247b-4307-99b3-08d6559d0422 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3930; x-ms-traffictypediagnostic: DB3PR0402MB3930: 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)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231453)(999002)(944501410)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:DB3PR0402MB3930; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0402MB3930; x-forefront-prvs: 0871917CDA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(396003)(136003)(376002)(366004)(189003)(199004)(110136005)(2501003)(316002)(3846002)(6116002)(52116002)(7416002)(71200400001)(305945005)(76176011)(478600001)(25786009)(6512007)(53936002)(7736002)(14454004)(99286004)(36756003)(5660300001)(97736004)(4326008)(446003)(86362001)(81156014)(6506007)(81166006)(102836004)(8676002)(2201001)(68736007)(6436002)(6486002)(50226002)(11346002)(386003)(2906002)(105586002)(186003)(106356001)(2616005)(26005)(256004)(8936002)(476003)(66066001)(71190400001)(486006)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3930; H:DB3PR0402MB3916.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 95mJoK9nmm1qjMXEn0KOme7Q8PmlN6euGKlMYrxnDoSUbotOMRbh+Ftye2Ezdk5K5cPf4Tp2e0TSbk0BtdYyyUVnVIwBK4mYxU/d6Idw5QIiKA0IQ69PBaFlQFoXSR0wFN+kwNsnsFL3TZM/yheTa8z10RcXzF0YdZDSjBvjqPpRvGGg22BJzjzs3fnIRsGVNYpXAeTClpZq8uKgMX6sTFXhP5t0AeB+mrhK3913abheDMjdyiEyzGoAne4fYPyee4fowliBJJDmm5HHOyMg/aSeFYKKj6+j3mOKWRRHbK54Jg1j9S+eboLNza3NHqNZjHhLzd2OJG9L7GxpULv39G8EySyywLSsIphsKGaLZZc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 992ce255-247b-4307-99b3-08d6559d0422 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2018 01:50:19.1325 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3930 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181128_175023_843994_9A5297E7 X-CRM114-Status: GOOD ( 12.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dl-linux-imx Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch enables CONFIG_RTC_DRV_IMX_SC as module by default. Signed-off-by: Anson Huang --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 10fade8..9f12324 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -573,6 +573,7 @@ CONFIG_RTC_DRV_PL031=y CONFIG_RTC_DRV_SUN6I=y CONFIG_RTC_DRV_ARMADA38X=y CONFIG_RTC_DRV_TEGRA=y +CONFIG_RTC_DRV_IMX_SC=m CONFIG_RTC_DRV_XGENE=y CONFIG_DMADEVICES=y CONFIG_DMA_BCM2835=m From patchwork Thu Nov 29 01:50:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10703779 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9026114D6 for ; Thu, 29 Nov 2018 01:51:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 826862E001 for ; Thu, 29 Nov 2018 01:51:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 740FC2E053; Thu, 29 Nov 2018 01:51:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1B46B2E001 for ; Thu, 29 Nov 2018 01:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AuGaJEUC50uHkp3O4G/CS3SWVlbOv/nJpIuMd6mNCmM=; b=QgizkhpFDBlRKE Dn7N4QYVqVb1rmx3ov1UENa6v5qt2ebN8Jj2Hh2rnXE8PyiQXJ9DwjTngBNlJ7jWIZPpp1x/4iPLZ 1XVHdXz0UFj/EfHqz0euM87f8C+paNNBgpcpHRGdEisdA89TtE1oQAa1JuqdCoXd/5gPlk+ME0Dv2 K47tT0mcTCJLR0TSYrmS3Tx5pV+hMpElnTeRDYuwnBwBT2eB67NI75Tyt7darU+GAYKc5qK5fnQmc jLhOYKkS4fyNa0ymUm8QIMVvJam0yLaFkutB3dVTCqf6iX2KpHic085Zjw/28R6JJXdCz5NH6PK0Q 7/VbFARVNQiTccuVZl5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSBUN-0001UQ-5M; Thu, 29 Nov 2018 01:51:35 +0000 Received: from mail-eopbgr00083.outbound.protection.outlook.com ([40.107.0.83] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSBTU-0000qJ-Av for linux-arm-kernel@lists.infradead.org; Thu, 29 Nov 2018 01:51:02 +0000 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=nNs0oO6DVJL8I0W9TTH17hc1AdXCmbUTcAzEnfIisjo=; b=CThj9XCEVHFK08YNAxydUvuKe/7d7VeSXBUburHqNjRpVeEqKy9N0jAX9qcHOKB/GOrtadH/ibt+FyZZFza7mMRvJ0+kwlWlACJU+AudkRZUsmtGpCyJNJ57WimaP6h7QNXJlHOiuholpCnfGT8yoJeBwh+afIvMTmsZOzbrzeI= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3739.eurprd04.prod.outlook.com (52.134.67.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.27; Thu, 29 Nov 2018 01:50:26 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd%2]) with mapi id 15.20.1361.019; Thu, 29 Nov 2018 01:50:26 +0000 From: Anson Huang To: "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Aisheng DONG , Andy Gross , "arnd@arndb.de" , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "bjorn.andersson@linaro.org" , "enric.balletbo@collabora.com" , "amit.kucheria@linaro.org" , "ezequiel@collabora.com" , "olof@lixom.net" , "LW@KARO-electronics.de" , "shawnguo@kernel.org" , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support Thread-Topic: [PATCH V4 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support Thread-Index: AQHUh4XmG/9MG2NNlEeSqGLsLt5VQA== Date: Thu, 29 Nov 2018 01:50:26 +0000 Message-ID: <1543455856-18021-5-git-send-email-Anson.Huang@nxp.com> References: <1543455856-18021-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1543455856-18021-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: HK2PR03CA0045.apcprd03.prod.outlook.com (2603:1096:202:17::15) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) 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; DB3PR0402MB3739; 6:CTH5wzOnCiMOyKzvYVqliDvR21qmC6rLgOsbYRcIabJKtnCtvWXpwyLt3hxwImx5BHfODnEUgRtmBOil9DjXkUoNjJk61S7M4lkS3IDMYISdH0+FMl57FW3xCvZPK1HBT3Sr08ogOw/Ev441v6qUpt9aHPXFTm5E9lolvtzGa9+7Yx8MH8u/7cYk3RY+GSA8ewZkpPBThy9VgA10jFRUDfdpSmG97MoagJHGjAZB5Dd3Ib1aMblo1c6dXhEJ9FV73qqawM4q1pRvTq19ktQ3cHMaExk9nKpSBmfMNou8QwrlCBw9RQtct5qMqYf08y8Juyat4vjUITJ4BC2YqCeKk/eTl7vi3PVFaLmYI9Hp63LGNDmyLP60SOHBhtf6/N+LD6Pz0IKpWkloM1GymPQU6oiJT0i+RoI3z1gKkYn+ypoo5AWMFKeoW0gqoFmEuYb8ENKcri5AxIjy4FoReY+D2A==; 5:a1gol5oC1XafGg8c5xILD0LovlNdyFsZ3SlnhJavZrtrakkUqmLzsXEs1Nkeh8nlsO7VxSzp1UjdSCPzg6zmfo7j+XzUGO/rGagu13p0UfoARwHSzW+c4D3S39HEUh+ikX/VWFmWWcoWdNei2IryNLgrzLHUGIixqQF+KanUfQA=; 7:kmJ9yRfQ8RMVHGC/mcAm4MoerYdFH/ah+NhKZsMyPo8VTGQQfg9lpBan2tQHxfMxiZLA3OKR0qMozK5mnLgxbXEr4nH3LcJ1a7cW/nSYoea99INF2rP7TsZdO7pDVpFLPo1VMbGd4PSxsUgjcX5upA== x-ms-office365-filtering-correlation-id: 019aa5ef-a78e-4df9-8fd4-08d6559d0885 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3739; x-ms-traffictypediagnostic: DB3PR0402MB3739: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231453)(999002)(944501446)(52105112)(93006095)(93001095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:DB3PR0402MB3739; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0402MB3739; x-forefront-prvs: 0871917CDA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(396003)(39860400002)(376002)(366004)(199004)(54534003)(189003)(76176011)(6436002)(476003)(4326008)(2501003)(186003)(81156014)(14454004)(8676002)(8936002)(97736004)(81166006)(102836004)(478600001)(2201001)(53936002)(50226002)(52116002)(86362001)(2616005)(486006)(7736002)(7416002)(3846002)(316002)(71190400001)(446003)(25786009)(106356001)(5660300001)(386003)(6486002)(105586002)(6116002)(110136005)(6506007)(26005)(11346002)(2906002)(305945005)(99286004)(66066001)(6512007)(256004)(68736007)(71200400001)(36756003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3739; H:DB3PR0402MB3916.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: 1+I+/JtfJKR19O5EONXSbenCrjUKg1KpAFIMHjswDU3gBOHI4x9peHCwWrtS0qkiGPNr7ogeSj4riC8dNBHRLvSTVwtc0fa0o21Dkvd+t7jQNSWf6bg3SqbBVzRxysiOkrCozBspIc/OVNiUUtJg75SaAaSBA6e1enn1TvAsI/VISi8R3b5Ne+22T1hY4LXbkE1vHqDkLS3mmTdCheZfrP6MNMr6PMWNA2oPuOezzJ6y2skvkJlsWsAmMYgkJ+AS7EEGJkjU6TZz2OVwtO4CInrwX1ja/G5iRg3BNQWvmBve9awjCyEZ0iLegLDraa1kLlXuPDDq5BlLNaPEea1KdrnjPDRSK4+VBW0x6IbbYzQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 019aa5ef-a78e-4df9-8fd4-08d6559d0885 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2018 01:50:26.5076 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3739 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181128_175041_058003_17F1CDE3 X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dl-linux-imx Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add i.MX8QXP system controller RTC support. Signed-off-by: Anson Huang --- ChangeLog: V3->V4: *move sc rtc to inside of SCU node. arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 9155d45..b38730a 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -84,6 +84,10 @@ compatible = "fsl,imx8qxp-scu-pd"; #power-domain-cells = <1>; }; + + rtc: rtc { + compatible = "fsl,imx8qxp-sc-rtc"; + }; }; tsens: thermal-sensor {