From patchwork Thu Dec 20 08:56:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10738675 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 6719C13A4 for ; Thu, 20 Dec 2018 08:56:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EA0028613 for ; Thu, 20 Dec 2018 08:56:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40EEA2861D; Thu, 20 Dec 2018 08:56: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 E74CF28613 for ; Thu, 20 Dec 2018 08:56:42 +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=LXsMltuRkTW13AbdFoLKBKN0K5mJoqgutK6g61vgxLg=; b=ji16/xeIjEJl5R p4UBfYM0iu+lEKc0vZPLzaRWMjZBphWpcDOGb08shalvmJzNU/vbVvkLx1V14YlMEvUY0VjSO7Y72 hxEDNiQu3yhNmudrHD3/N9vxj82yLAjjDYe5EBNRYfiqxA/hRKorWcW+IdTNfhWCFurQClfFtkEme tXMNXekhQkw0iC04uNdWUsspY3JtHnAtiDpgsFs02x87nwfNjcNuXo1X9ZS+jc9NLy1tQlGVsxbyw ViU6hWUJx8yzbK3p+KHJgWpvtV6MQLIX5XRjagxcJelRSixnhySHeNxcipr3xmEoRRIpFy+KUougI TrgZBUdK5VyPeLPdBuDg==; 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 1gZu8D-0004PI-KO; Thu, 20 Dec 2018 08:56:37 +0000 Received: from mail-eopbgr140040.outbound.protection.outlook.com ([40.107.14.40] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZu7w-00049C-TY for linux-arm-kernel@lists.infradead.org; Thu, 20 Dec 2018 08:56:24 +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=kXeqg+rKbG9pyWh7Y/AB1xJk3R9skgcXKMC/CA2GPqo=; b=gfv3atpXb6z+l2ctgf8SA22Z+9v7GebowfOBY4QD80NaU0v/WTqpIUb3VzWWme7YCSfWtkEw6AszwJ/RXsV2n1P6at+jnyjbsQ9syGjmjzVGaX0yRvrtgKCew0ElP7JiU5/Q/MRxAYTZH9WDYJpD5/RCbwajYrbl7Whp9Ihe0ko= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3653.eurprd04.prod.outlook.com (52.133.28.144) 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:56:07 +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:56:07 +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" Subject: [PATCH V5 1/4] dt-bindings: fsl: scu: add rtc binding Thread-Topic: [PATCH V5 1/4] dt-bindings: fsl: scu: add rtc binding Thread-Index: AQHUmEHY85kRysPGJU+DoCbVC48Xkw== Date: Thu, 20 Dec 2018 08:56:07 +0000 Message-ID: <1545295872-20169-2-git-send-email-Anson.Huang@nxp.com> References: <1545295872-20169-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <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) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0402MB3653; 6:5GKbkrQ6AHxtExBBe8GfPhOfW1TJpCTZDjQB0LwdZFIc06oKsYvHHlZja9IUxynb5cVYiceTZ43mgu6oiVXanMdvAgNn6apEW8ABOdE9ULb6Gt460BX62WatoKAXWgPEJNFSdv1X5dKh7Jw2XbxrADp09ne3k6Y/8cxkqyFWEp1XAHKjsdfzheqHgYm5MjVc9Uo9gIHZ4PogWL4qpZ36oaXQB/IV0dKjCgnCEs2Be3j11Piphj3PuyRrhtXttWEGxcJfsciRIzcACsrYtu8bvszmuJBhXDkZ6LZRzsALN5gvJdkgpldwiTyMqda6Fz8V66HhcGo2iZpNufeyB8YCQmKSDQ0uh/6Z6NDsX7xwG82rN9XfdKYkC6vUA3H8/lE5dboPlEd7V68RPiwR6BgqzrC7luaYvoiS/tG5Qj7LC02vXKGhwbL/PgWRTBB+Lvirzlnkard9MjYDMdyCuuK4Jw==; 5:ki+sDXh78kOpcR2OexFJKOBZnNVmVBeR+q7FvP4x8klO9NQ85lzw3LAdut9CFRYLvU5fcugd7Z1v3NzyMSBMFgfFWCGjPWVzhf2uhNjl3KjyIJjyk3qwVQ9bB6vzyLUN377Trll6QcG48HiR1DGJbQyAbT7LZdwWTbk+7SEEnPg=; 7:aMWwh9/xsx2YCkOCfhHNIQuoMKJXel5hdr4vxnUnx2zmiXD5Pnn3fnBrCz44lC4egiJ7vSo9v3N9VW5xS7AthfYcgMiYget7W1FBXAgO+ymeLTzeluH+nP/2MhCJ0zP8DJyWPIlQnjPJdnoy3eNcYA== x-ms-office365-filtering-correlation-id: b463d866-2b04-4bce-79e8-08d66658fb0a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM6PR0402MB3653; x-ms-traffictypediagnostic: AM6PR0402MB3653: 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)(3231475)(944501520)(52105112)(10201501046)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:AM6PR0402MB3653; BCL:0; PCL:0; RULEID:; SRVR:AM6PR0402MB3653; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(136003)(39860400002)(396003)(199004)(189003)(76176011)(102836004)(11346002)(446003)(2616005)(6506007)(14454004)(386003)(478600001)(52116002)(53936002)(2201001)(6512007)(86362001)(25786009)(71200400001)(71190400001)(50226002)(110136005)(4326008)(6436002)(68736007)(6486002)(5660300001)(106356001)(105586002)(305945005)(316002)(66066001)(2501003)(97736004)(7416002)(99286004)(81166006)(81156014)(8936002)(8676002)(7736002)(3846002)(6116002)(2906002)(256004)(6346003)(26005)(476003)(36756003)(486006)(186003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3653; 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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-microsoft-antispam-message-info: z7OAVUTcjxX5jOkdaSOKMIYgeivrPe7lKf/nhoo1j6lj0ZiLU+gyVbmKHPCVLc6HNLsX0f8bW0jkbvWn2IlpqOhfMmt/V0ukq3058O37WDPfCbP3N8DbRnx7Labc6NANa84AkR5bKLho+CPE5I2CVHP8zMzq5y1DF6dCaD5ZF1DKtDs33C4ioIpIF4fxFMbXxEjHBk9687xjB9DRqGBg+UBLfrahftpALfbIbvOQAU1IVIzGXM5+gwSbboM9eqx4iHtWWtRK8ZkMT4UEX4zrlT5pbGF/SHfDQT8PXuehKW0Wu+AS9SNAeA9WTjFi2XFp spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b463d866-2b04-4bce-79e8-08d66658fb0a X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 08:56:07.6868 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3653 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181220_005621_201557_DD8BD233 X-CRM114-Status: GOOD ( 12.07 ) 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 --- No change since V4. --- 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 Dec 20 08:56:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10738677 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 41D4713AD for ; Thu, 20 Dec 2018 08:56:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E1EE28613 for ; Thu, 20 Dec 2018 08:56:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21E962861D; Thu, 20 Dec 2018 08:56:53 +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 9981728613 for ; Thu, 20 Dec 2018 08:56:52 +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=L0orKDhS8engvPvad0Lw3wfESVFkOS51cHqio29R/AU=; b=E8nj7i1rkdJ7Y2 4b7T9w+cbzT6Fih5r1hGG5rKUAMh7chaddUEzPJKaTHwUCEYexSjWrAUKCjOM/84tnuBaBid3cMum XV0g6iagsD2iZZg1PQ5ec50yjVVumwGUeeSNTf8BcgLRW9OnRNsidNCUDwJZrjBqMZ+/JJtQwLbSp 3pUuLdcXfJs1AmY+Rsx0PkD73kbs8Wykcn5PhjXZps8d+q7oOfqEZUOgqXPGeSbPzxfa3SMM13wZh LpMAe0wCXyIp5ak1CCHO5Z6F0xMTLl8ITq3dSVLM0DDgBH7nO4JS6SHZPx03+GLssEkW7ThmXx5nQ uEVw7dDhLmICNkBvMsPQ==; 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 1gZu8O-0004bC-OG; Thu, 20 Dec 2018 08:56:48 +0000 Received: from mail-eopbgr140040.outbound.protection.outlook.com ([40.107.14.40] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZu81-00049C-6Y for linux-arm-kernel@lists.infradead.org; Thu, 20 Dec 2018 08:56:30 +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=6DjiJUU3JsLHTOMWgTAfFMxUCK01lBDe2voLmWTW15g=; b=T5DCQJsSBEEnpKsgxjoIZKR/98e76S2kaZM8RfRp4emiSZVBHguWIuX7bFsstpjFaBm20sszSympZ6fl/9azXvFN3rluHZ3DfglvzjMmVFm1HMlWB7Vq0wea+9wZXZLHMLHZp8osujWCwzg1HRGlbk+3WPB4u4uaYkjBRAynJD4= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3653.eurprd04.prod.outlook.com (52.133.28.144) 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:56:16 +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:56:16 +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" Subject: [PATCH V5 2/4] rtc: add i.MX system controller RTC support Thread-Topic: [PATCH V5 2/4] rtc: add i.MX system controller RTC support Thread-Index: AQHUmEHdVixj4el6fUSTLnxifG4HUQ== Date: Thu, 20 Dec 2018 08:56:16 +0000 Message-ID: <1545295872-20169-3-git-send-email-Anson.Huang@nxp.com> References: <1545295872-20169-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <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) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0402MB3653; 6:XBpKXG4VT24jF9P1ULrbrrt1XFi1DgWhlDCfPwIDWRCp+WkU7bQA+Hrg+IoUk8TZ9vMhVY5xCofC/IepPjgEkg8Sw9Q3TkLgzq/MhU/Fi1WNYG9t6JuHIuMDr8cqo+BjCCoP5Ww49HC4dk4502ijuh3Rpv8ab8JYOsOwb+fDudgAj1vDRyE+E1CnLenk54BFqlz1RBXcnsZQDaqIHhZYY+bYSlXsHgxHxi0lTlUW+QmijiZu2F3Jxg5vQKI32fYVAgXakrne4kNdwB5qLt++d8UqSbLK/iWM7+BL1l8z02gcXzB0uOLR0ZUxjqa6GtdCVSo7WQ8z3EbYIsrplHVsKjVBx6rxwO4/tMwmPFY1UMVmhgfZ3uFZKShJcz/FdNXzoEClQi9b/PzytDeovOvjoFYKW1WulJRzqwyCVhY2b6kIPCoXfEVSHnwDxzeS/8N4MFXq42XIz/Qcfuyo9CgIIQ==; 5:gmCxj3zb57mMrY4/5E8hMCYzj/EM0toLoPZE+D9UNk9bwnld7NfEcldZiWX9lteDRSjmB+NWuBJVZCsZVT0KjQbaTch0Js8T8Hbdejhb2qb1m6f+aE8mKt1aqBnbKDooUyV2G5LjrBXEAcLdLsIaHttK2Ll9kkuQiVc7BTGwbYc=; 7:GjfGGUdPSq5I2LASqytcEPdx5+PmsOuqgTxsGVFK4TkmF0TX+BMTrCHcTFxzbIH0nHJcGVHu+sn8wSBiRhDMgpzN7eCxVY7BGFbzCPwF2IfXF0wDsVELkSn8XxYXJasAZjB0IJG/+Fl9xNB9idGbew== x-ms-office365-filtering-correlation-id: b03dbc36-1815-4819-eabe-08d666590028 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM6PR0402MB3653; x-ms-traffictypediagnostic: AM6PR0402MB3653: 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)(3231475)(944501520)(52105112)(10201501046)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:AM6PR0402MB3653; BCL:0; PCL:0; RULEID:; SRVR:AM6PR0402MB3653; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(136003)(39860400002)(396003)(199004)(189003)(54534003)(76176011)(102836004)(11346002)(446003)(2616005)(6506007)(14454004)(386003)(478600001)(52116002)(53936002)(2201001)(6512007)(575784001)(86362001)(25786009)(71200400001)(71190400001)(50226002)(110136005)(4326008)(6436002)(68736007)(6486002)(5660300001)(106356001)(105586002)(305945005)(316002)(66066001)(2501003)(97736004)(7416002)(99286004)(81166006)(81156014)(8936002)(8676002)(7736002)(3846002)(6116002)(2906002)(256004)(6346003)(26005)(476003)(36756003)(486006)(186003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3653; 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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-microsoft-antispam-message-info: h+bT9s0jM4hMS2iaz0f4/eTVx674uRi70sqOmaXpdTIie/hVaWKayxI0HxDOzfjw/AhXXxqIVclucF8h8+RIdkEd0Ks7IRLykzBgyyOWU/eQIQ87Qv+gtsU/CVD+6eShG3IFRYj5SLJYPHqm6ineKRs/GHKu7euZQTd8q9+kukso5JMjs+OzoYeEeRLIMcOjMyp8rAZsXVtummHgM2lme48FDJ3TDvF4vbwC65KZcXfxbPCEvI6AjWLH+P8lN9gRXVB0nSzR3TcfBYRRvyRU1u4aa7lDQmvukg7nnHfyCjYSdlIx6Ff/HyFRFZan4kS8 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b03dbc36-1815-4819-eabe-08d666590028 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 08:56:16.2409 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3653 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181220_005625_790975_93BDCB1C X-CRM114-Status: GOOD ( 22.20 ) 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 since V4: - Add dependency on IMX_SCU to avoid compile error when IMX_SCU is NOT enabled; - Use dev_err instead of pr_err; - Remove unneccssary different errors check in imx_scu_get_handle which is already done in API. --- drivers/rtc/Kconfig | 7 ++++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-imx-sc.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 drivers/rtc/rtc-imx-sc.c diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index a819ef0..225b0b8 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1677,6 +1677,13 @@ 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 + depends on IMX_SCU + 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..7ff0854 --- /dev/null +++ b/drivers/rtc/rtc-imx-sc.c @@ -0,0 +1,91 @@ +// 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) { + dev_err(dev, "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) + return ret; + + imx_sc_rtc = devm_rtc_allocate_device(&pdev->dev); + if (IS_ERR(imx_sc_rtc)) + return PTR_ERR(imx_sc_rtc); + + 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 Dec 20 08:56:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10738679 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 0001613AD for ; Thu, 20 Dec 2018 08:57:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E28E828613 for ; Thu, 20 Dec 2018 08:57:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D64212861D; Thu, 20 Dec 2018 08:57:10 +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 8A45428613 for ; Thu, 20 Dec 2018 08:57:10 +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=+DRhM0A4yrwaedm0DrW613eu7nL0UjS6Pswl+0xHlcg=; b=m8EavOggWbxiY9 Vh7Xd8Gacd9LMKWfCypHPAD0rvleoF9hNYb/g/S51MKftByZMRWuL9cZatBDSDzcXOPXBNmA/zlOF 7Ij2OJjK5vv31+Q7UQYoaqIbFp/QpxxlmfHmWWGIh0wLndazckj3uYmcayfBvwL2pdGd/eNvLLYhd kyWT9VIW55rYXcnpwMuE2z2r2u42tr2P+4s0/CaWEF+a8ujnUhWT90DtTjLG6yYSGB9LrOdkdBTct ucNorGv8x3f7KBJ5HBUUFnJ+MpppH2ROYsvEM3bZN0KWLoyGsIIicNcMtIoCJlXBF7QbELZ6aVVf5 REvZLNsiSekybC4hTNhw==; 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 1gZu8d-0004rg-0Y; Thu, 20 Dec 2018 08:57:03 +0000 Received: from mail-eopbgr140040.outbound.protection.outlook.com ([40.107.14.40] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZu86-00049C-Py for linux-arm-kernel@lists.infradead.org; Thu, 20 Dec 2018 08:56:32 +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=NiPt1ICpOUSWSrLVgxfupB7bNmf3ucLjQUDr+sqLGbU=; b=AMVV/XOQdBT2iKziXtpg+hOzolKDW62VMrzEbjuh873L8w9kxHyop99L8nXqWugHRkCjDlpsx45Z+lLuToIQ+NE/nZ0zNVGF2MPSvYxyS1Uu0a+8gvW/EEAOn50qmZtKbBwb5JyEeoM7P/9gNsUBWQE9kfC3MQSJynmyh8snmto= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3653.eurprd04.prod.outlook.com (52.133.28.144) 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:56:25 +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:56:25 +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" Subject: [PATCH V5 3/4] defconfig: arm64: add i.MX system controller RTC support Thread-Topic: [PATCH V5 3/4] defconfig: arm64: add i.MX system controller RTC support Thread-Index: AQHUmEHjxu+dVHKVvUqH/OBKM8Rc8Q== Date: Thu, 20 Dec 2018 08:56:25 +0000 Message-ID: <1545295872-20169-4-git-send-email-Anson.Huang@nxp.com> References: <1545295872-20169-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <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) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0402MB3653; 6:Oc5P4iGhWg4/1wAtxwQ/nKg16+Azc3geN/WqPXEmm7fuw+tc/UwO54A1RNNqY5+1laKi/0+zsVxGWgiueU7tw3N419ZxflZJW9tOAXoc7gcqM2jKHMf9nY1nvE9xcy6qoj2Nlx6Ipe+l4kAKnt/OqtEu8LXTX1J6n4Bu7OtgRkOC5HPXm2UsClbRAxtapbYn4sHyhdTroEPd5y7rrjK6Fdw6lkaeTmtQDIPS4d/xbOL/qB7JU7sidltF8ud13huUg0Uv381vn2huKlge9qpQ4zTm4AxB91H3j7n8ZAmB8xyadEHLDgNTvHK8tEG8V34xvYwml9YvO1kTfUc7q3GbOljsecRoZBrXnRSpaIgn9xGCwg1MsWHqd/rPlG9qNozFyBij9cZAc6pLJ39q9xck46s124qe8hahuKJy55EX+gzmH/gO4rrGGJmc+tKIPbiObwlwTFdZilauu13FEcnv3A==; 5:B98os/KGCEljKqkd6hxDIY5V8C7R6z7rfhM5ratwsc6Dxn0wk+r1ZsOIom8pqXQOLdw7ypTU/sBEys8jmHR2vbdSrjSqaxOy1QoUYL2F5t7NYbPyx01RSJFmk9Jgkj4KL1o+bOXwZKC1+5VkCQ9dgalT4ZwzqeBdARXMwdm4n38=; 7:DvYaLp1BjO7z7Rx1hNg8VSI3eaOy3q0ewNU4tGbpzNE2nPyCAQTxvqFT9dKp2N7wQPfe/mHykgIOnydTD6OCsiKquPERZUB4ST74nbAxfH0/hwQyHhCNZRnu5n5LnJIy1iXKj4kbKMmX5+Mu5gFBRQ== x-ms-office365-filtering-correlation-id: 9ec5e1a3-8799-48ac-78ab-08d666590542 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM6PR0402MB3653; x-ms-traffictypediagnostic: AM6PR0402MB3653: 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)(3231475)(944501520)(52105112)(10201501046)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:AM6PR0402MB3653; BCL:0; PCL:0; RULEID:; SRVR:AM6PR0402MB3653; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(136003)(39860400002)(396003)(199004)(189003)(76176011)(102836004)(11346002)(446003)(2616005)(6506007)(14454004)(386003)(478600001)(52116002)(53936002)(2201001)(6512007)(86362001)(25786009)(71200400001)(71190400001)(50226002)(110136005)(4326008)(6436002)(68736007)(6486002)(5660300001)(106356001)(105586002)(305945005)(316002)(66066001)(2501003)(97736004)(7416002)(99286004)(81166006)(81156014)(8936002)(8676002)(7736002)(3846002)(6116002)(2906002)(256004)(6346003)(26005)(476003)(36756003)(486006)(186003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3653; 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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-microsoft-antispam-message-info: Xr5WVSO51yneJWFIbaxUZw4MxWduQz4wT406WuEI9AZOx1QrRYky6V7J2HO8nX7oVI+90rBARWB7V+SjUWJcrei2Oyc+ltYbGmm8VEFINiaw33I5DQTfAWskMzynbDDK9gbg2QYSXeRh3IwtTKfGig2IaR3QyJWgYxvqMsH5bq+V6sr9KP/bAYQvSi8+xgU+Z9HnXZl+m+Uca5WvYv1BwjsFFUc8gfcyVinspkrqPMw99VM68iH6/1KXIjFA5lUx38FwuLq/BdjU10rcCYb4hwNwd45kHZx2UdU5i67iUS6CynmWslZIiapo1q/JnbNv spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ec5e1a3-8799-48ac-78ab-08d666590542 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 08:56:25.0972 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3653 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181220_005631_187022_071896F8 X-CRM114-Status: GOOD ( 11.83 ) 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 --- No change since V4. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index d3aa3f7..abd80c5 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -572,6 +572,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 Dec 20 08:56:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10738681 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 DA8A713AD for ; Thu, 20 Dec 2018 08:57:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C83BD28613 for ; Thu, 20 Dec 2018 08:57:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB6F12861D; Thu, 20 Dec 2018 08:57:44 +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 68C8928613 for ; Thu, 20 Dec 2018 08:57:44 +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=PrS9FFF5jK2DlaAp58B0iFlYdXct0rDnTduQR8z+oaQ=; b=gND+8tYS1fQqw8 o3rnS2A+sFAtMRk5mt1jpGFUxMlsdq8rAuYEBP81tchTpb3xkPullFK/7JZGo8/J7oRRrfmd7LZrf oS5IHJxcXIKZsGXqEAeoG4j0VpHZq9/e2iUuifyq4cJYG0RmY2jRGkpkPl6LBeslHoVgefnfLcqzN jkeoCP+jfNu7o0dyAUSTLXhEh3kLFL88yLB162Pa3/44HawPc9e26caahMmXSQdIflada/wEETOvq B2qTlZuwFQ8KSxOJixTbJqCqqRmqj8mu5svncT3NHa4RZjYOsv0DFkpls19dPSAdkeQL+RJqPF/+/ 8eyTfbLtz8HtXixw+G9w==; 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 1gZu9C-0005EZ-1U; Thu, 20 Dec 2018 08:57:38 +0000 Received: from mail-ve1eur02on0615.outbound.protection.outlook.com ([2a01:111:f400:fe06::615] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZu8O-0004O2-Oa for linux-arm-kernel@lists.infradead.org; Thu, 20 Dec 2018 08:57: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=DVe59oMEYCVIZAEYrYBWm42C89ihNUZkQpZ+b6B6SO4=; b=r5XJ+n39Ls/SDvz/V6fNNk+BCtet82B1m+RFZ+O0H4LD4m+lYEXFAmHpH5sbFws/gmyR328E5FJvUsFm/+idWPygoNvdtFlB0skRyihE/zo7dL8/Wyf4ZCE22AdXkIk55AUO2ro/gyu9FAovV9lbU1I/7kEpKrBeo4LymAYRqMs= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3621.eurprd04.prod.outlook.com (52.133.20.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.20; Thu, 20 Dec 2018 08:56:34 +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:56:34 +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" Subject: [PATCH V5 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support Thread-Topic: [PATCH V5 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support Thread-Index: AQHUmEHo/auk+mfKDUO8s4DTm6ISsg== Date: Thu, 20 Dec 2018 08:56:33 +0000 Message-ID: <1545295872-20169-5-git-send-email-Anson.Huang@nxp.com> References: <1545295872-20169-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <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; AM6PR0402MB3621; 6:eHY60iTUFncGOBHabuvoJNOnj+t2S+BniFasp1LrbfoyGaJuKXcPPzMxiHxDCDRAe7j9LXBFLL5PhVHctYQyr3oLNQOmTXdU4x28XvoBj3bmR6VcppynTxppMgeGxD4u2GMKa+wWKIZkvz2vCihBVJ08VQWUaFRsLrx3EdL2nxFNS9lDiePhruM699V/O6cJ0gdsDRvDvUf+hzY178MVLgQUBBUDTbYkwDelcr8BgC4zoQOgOH8WyhrCEga5/DAr99vLeG3diAw9SYKnDeFNxG4iYEqtU9VPwi8RG12C4t6Qu1KuRzR+e+We8YbjFrPqupk8S9SkaALB9lSoJWmYLrIYqXjQGSONYiWg8v+3TpiIbw+GagqYNlfwr5IMar4DXEIG5SG7jTnc4YmtyP3vEgGAw+qx/uIzGkK0AOBd3FT42SrXRTeNtip7v9xn1vFeQiNxlP5mFHVwuWSks+eAIA==; 5:ayeVIWfF73aY1fwaQo7lHe2l/cFTrGOEF3hILhaFjjcQMvI0B1cs9N7wf5Z0h5JkKjM3h1pCJsZiw8GXvSeRoiuj3zgLdiGXC9IvJiWxLjD5SB0EFO5+e4QQEewLnBvV+hu/JVUJIMfMjYs8mZ0OelYH49obSOujmFLFhEiDtOk=; 7:/NHK89YfiyfOj7fH+FRSTqGhcnWOIrIVuFm6u9UhBV68gK0vpVW6KiL9Jv0Q+CQYkFlrtt3iL7Fqiu8GA8egKL+bYA7ga7r4dzppAHZOI2FTtfqt+44vG95dw/jjLuARMRwqIgG0inBarl2auVHnmg== x-ms-office365-filtering-correlation-id: 1be93a77-378e-4690-3d2c-08d666590a87 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:AM6PR0402MB3621; x-ms-traffictypediagnostic: AM6PR0402MB3621: 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM6PR0402MB3621; BCL:0; PCL:0; RULEID:; SRVR:AM6PR0402MB3621; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(366004)(136003)(189003)(199004)(11346002)(68736007)(8676002)(305945005)(97736004)(256004)(52116002)(6506007)(14454004)(25786009)(4326008)(316002)(6436002)(386003)(105586002)(7736002)(6486002)(106356001)(81166006)(81156014)(2906002)(7416002)(53936002)(36756003)(6116002)(86362001)(3846002)(71190400001)(2616005)(50226002)(186003)(71200400001)(476003)(8936002)(2501003)(26005)(6512007)(2201001)(478600001)(486006)(5660300001)(110136005)(66066001)(102836004)(446003)(99286004)(76176011)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3621; H:AM6PR0402MB3911.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: qBSpuU7xutTJK3qWtbTapTEf7UINsMItnsZGVz8Tu0jSidlIifbtDBXqBh81YHeX6V4F/NEwpOKAW8bMKz3rNOo1xXj0Kx8vrHVQSNXHSwDEyOv7x9FUX3IyknumClJ/vhHb/8qHx/7oWCJONwDfWd2bIyOjyR4qgBDdvl7Kk8Ng4pKqNNjhpNFqRFbHi9Oda/OycSVI9w+4i8Ax/SDCiDLfLAwEIUNVSMuo5V9qDL9gKbEc/5McgSoqBVsasiYqzk2U4ddXVUVP01W0RDzQ9iHswvQIK6v0M28yu3kp4zFwMFih/YMRCVPoAZLNa8zw spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1be93a77-378e-4690-3d2c-08d666590a87 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 08:56:33.9535 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3621 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181220_005649_683483_2CA8D0BD X-CRM114-Status: GOOD ( 11.41 ) 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 --- No change since V4. --- 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 da99b6f..9b08688 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -83,6 +83,10 @@ compatible = "fsl,imx8qxp-scu-pd"; #power-domain-cells = <1>; }; + + rtc: rtc { + compatible = "fsl,imx8qxp-sc-rtc"; + }; }; adma_subsys: bus@59000000 {