From patchwork Tue Mar 5 03:37:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10838889 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 1E7F61390 for ; Tue, 5 Mar 2019 03:38:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0085729CC9 for ; Tue, 5 Mar 2019 03:38:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E811A2BB0A; Tue, 5 Mar 2019 03:38:01 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36ACD29CC9 for ; Tue, 5 Mar 2019 03:38:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726667AbfCEDiA (ORCPT ); Mon, 4 Mar 2019 22:38:00 -0500 Received: from mail-eopbgr150051.outbound.protection.outlook.com ([40.107.15.51]:61813 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726590AbfCEDiA (ORCPT ); Mon, 4 Mar 2019 22:38:00 -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=T+wWz95AMiDNXtfNDWx1y8SuYgMBszwnk3I5dxhEqRo=; b=eZO/gRIalbHY2B4SxMWsD7EmDloLfAjCNvt1Ue079pmwcacaA/jMmBIDGzn0+x8qjdPq05hzuAgf27D0fSSWKnbQ0y0FF/hFiqxrHWBbXPF31vFyTqNf6koLDh1KVrLIPs5XFFf4jIbqDsNzngpsJb+gV482aaHbpEWRJjhUVhc= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3737.eurprd04.prod.outlook.com (52.134.66.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.19; Tue, 5 Mar 2019 03:37:52 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 03:37:52 +0000 From: Anson Huang To: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , Andy Gross , "heiko@sntech.de" , "arnd@arndb.de" , "horms+renesas@verge.net.au" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "olof@lixom.net" , Aisheng Dong , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH RESEND V6 1/3] watchdog: imx_sc: Add i.MX system controller watchdog support Thread-Topic: [PATCH RESEND V6 1/3] watchdog: imx_sc: Add i.MX system controller watchdog support Thread-Index: AQHU0wTQ33Evge0D1ECrmYOlf3SLWQ== Date: Tue, 5 Mar 2019 03:37:52 +0000 Message-ID: <1551756791-31401-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: HK0P153CA0039.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::27) 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-ms-office365-filtering-correlation-id: 24b7ca06-aedf-4866-ca83-08d6a11bf21d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3737; x-ms-traffictypediagnostic: DB3PR0402MB3737: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BDB3PR0402MB3737=3B23=3A?= =?iso-8859-1?q?3zUWMQXZZiTM0qUEzx0ojkHETXNBuwic5fNbLLG8aOEqVUY9CEOiEf1zzuDj?= =?iso-8859-1?q?X6NOD7OJG082rMlG8O4iXLd9N8FHhQ86oNMV5/WQhEADfQ1OSE8vyZ7ioHEE?= =?iso-8859-1?q?tktjTw+r4mhjjQK45CkjXHK9F7mnRpY88l/u7Mbr60maD/YqgCbYRHscpxwV?= =?iso-8859-1?q?GfvB0AAjUElxJoxHJlff9+Z7073sHGBFKEclclGQ9om52ALjmGpCRJUYZ4Cq?= =?iso-8859-1?q?g+BeZuaxll2qkqFQoG9+NdnPzVWy0juL1rn/2Dz6iCFVUB8hQcxU+Xlw+7tl?= =?iso-8859-1?q?gGtjd3bThyE/6CljXdrJMRGg6sK1uPi3Khd+AJ1eTzisCzrptnvg7HqBHXy9?= =?iso-8859-1?q?VaJF0XjAV/F20dKoT3ZCXiKJ8iRiqL++W6xY1jVxk5xOXqcTXLve6kDxyg3y?= =?iso-8859-1?q?K86pdtYYeORiKY5BjzYLJeDMjaokeU5ISZka3SMfLLCaCwwguymiNhEYkCZ8?= =?iso-8859-1?q?GzZyjBivJIWCWh1YoJ0dzbAaPvVWJ1Ayzt3mWmid6eVijvZ+V3uRqEQ8Xw3a?= =?iso-8859-1?q?0lBIPVK+Uu9ihW/P3jZ7wL+baXn3AAHkdKH2VbCb2t6EKPyvKFggAndVf5Mj?= =?iso-8859-1?q?khZuCgmUqyg7eJks15QbjiCqxI9aYqCb790HxxFWMKKu2LSYvclryHNADdIo?= =?iso-8859-1?q?4QbJv97awBLPolQTp4cKe2bhnjhOocaDfClNFqW7XtiqNwwj2IacFo7i0ct/?= =?iso-8859-1?q?BmVxNFWz1T6tXxLAap6Xboj3rntakc7Yae3dFvd8izYKddse+q0+k3Zzo20o?= =?iso-8859-1?q?bTXTdryWNapNC2u6bqqZjmz1v6GjYDzgGt0oYj2hkZufm4Gktx5og5YkHRQJ?= =?iso-8859-1?q?Z5+1Lks2HHPZomFHWLxxU07XiBq0zVA3KfnIDH0WWlMWjz69H8zwcS8PKc3t?= =?iso-8859-1?q?IXDrjz37ahVMHdDqODUvps6Rt3gDfpHutua8xwZ1bgXCOoIs40OBOh3d1rEx?= =?iso-8859-1?q?r0xPeVqMZsI+1i5EFjJ6+Sf2QXfbvbawsV6cgnfv5fJ4naZysSKQhx+4MLbO?= =?iso-8859-1?q?NKwNBZSnaAiqWHkroy4rmVXWWL3w/lJcKTwJrzq92HbbaMwIOlTqCd8aKc+g?= =?iso-8859-1?q?VgHN5f0dpeDX+5eYQ0Mm+Qoh/6n0oRnF63PXXJnFqHYtN8kZOu9qJ3RIId5a?= =?iso-8859-1?q?IOeRb7A4FH64a0u+gc9bU1Lc8FTndFs4GnnSacnPjrwU1creEFwuXjJmsy2H?= =?iso-8859-1?q?sQeHUB8T/HQPZEdtNVpCS+PkObAC25yBB6tZCw=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(396003)(136003)(346002)(376002)(199004)(189003)(52116002)(53936002)(8936002)(81156014)(71190400001)(476003)(2906002)(8676002)(81166006)(97736004)(6506007)(386003)(2616005)(50226002)(6512007)(486006)(106356001)(68736007)(66066001)(105586002)(71200400001)(2501003)(7416002)(305945005)(110136005)(99286004)(7736002)(25786009)(4326008)(186003)(26005)(3846002)(14444005)(36756003)(86362001)(5660300002)(6486002)(6436002)(102836004)(316002)(14454004)(478600001)(6116002)(256004)(2201001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3737;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hnShTGPi6AIY2CMohfeYihn+dJSnIEgxYbWnpS+eRhYtRCibEwEdV0PT83w+ZJse8v+wiID/ws8w7A9KRGv/Tye2UFMX98qQGBR24qj8yBKtS1Jb+6EO9nBG+vpTx2ytc5GCKSL/lJ23uT0sXxgW8R4zc84Br6NgtBd/JRKEvmqq07zQLPwjnWyk3QuUBPdYpuzFmh3bNyPEiuT30esRCpI8HmseRaN2cuv8tZryJoS71/r2W/7uS72qsLAEKh/CYuk6AQAjRE58cmX0nSuvBdldWlRjMuUlANMnImVkbQc0Aekv/xDoDH+8+v7kDt2fByEsIHEif81KR2OkkF+bMyg78HRuIZgVoLlR/LitvPCMTLp2l0mEgcT7oZHO7vdVY7CAt6jmXV8lyjgBMypr4tpYcSxIvO9jKPIXWvXcCOM= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24b7ca06-aedf-4866-ca83-08d6a11bf21d X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 03:37:52.5676 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3737 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.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 watchdog etc.. This patch adds i.MX system controller watchdog driver support, watchdog operation needs to be done in secure EL3 mode via ARM-Trusted-Firmware, using SMC call, CPU will trap into ARM-Trusted-Firmware and then it will request system controller to do watchdog operation via IPC. Signed-off-by: Anson Huang --- Changes since V5: - move the watchdog platform device register to SCU driver probe, be child device of SCU device. --- drivers/watchdog/Kconfig | 14 ++++ drivers/watchdog/Makefile | 1 + drivers/watchdog/imx_sc_wdt.c | 185 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 200 insertions(+) create mode 100644 drivers/watchdog/imx_sc_wdt.c diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 242eea8..33a6523 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -641,6 +641,20 @@ config IMX2_WDT To compile this driver as a module, choose M here: the module will be called imx2_wdt. +config IMX_SC_WDT + tristate "IMX SC Watchdog" + depends on IMX_SCU + depends on HAVE_ARM_SMCCC + select WATCHDOG_CORE + help + This is the driver for the system controller watchdog + on the NXP i.MX SoCs with system controller inside. + If you have one of these processors and wish to have + watchdog support enabled, say Y, otherwise say N. + + To compile this driver as a module, choose M here: the + module will be called imx_sc_wdt. + config UX500_WATCHDOG tristate "ST-Ericsson Ux500 watchdog" depends on MFD_DB8500_PRCMU diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile index ba930e4..136d9f0 100644 --- a/drivers/watchdog/Makefile +++ b/drivers/watchdog/Makefile @@ -68,6 +68,7 @@ obj-$(CONFIG_NUC900_WATCHDOG) += nuc900_wdt.o obj-$(CONFIG_TS4800_WATCHDOG) += ts4800_wdt.o obj-$(CONFIG_TS72XX_WATCHDOG) += ts72xx_wdt.o obj-$(CONFIG_IMX2_WDT) += imx2_wdt.o +obj-$(CONFIG_IMX_SC_WDT) += imx_sc_wdt.o obj-$(CONFIG_UX500_WATCHDOG) += ux500_wdt.o obj-$(CONFIG_RETU_WATCHDOG) += retu_wdt.o obj-$(CONFIG_BCM2835_WDT) += bcm2835_wdt.o diff --git a/drivers/watchdog/imx_sc_wdt.c b/drivers/watchdog/imx_sc_wdt.c new file mode 100644 index 0000000..2645203 --- /dev/null +++ b/drivers/watchdog/imx_sc_wdt.c @@ -0,0 +1,185 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2018-2019 NXP. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define DEFAULT_TIMEOUT 60 +/* + * Software timer tick implemented in scfw side, support 10ms to 0xffffffff ms + * in theory, but for normal case, 1s~128s is enough, you can change this max + * value in case it's not enough. + */ +#define MAX_TIMEOUT 128 + +#define IMX_SIP_TIMER 0xC2000002 +#define IMX_SIP_TIMER_START_WDOG 0x01 +#define IMX_SIP_TIMER_STOP_WDOG 0x02 +#define IMX_SIP_TIMER_SET_WDOG_ACT 0x03 +#define IMX_SIP_TIMER_PING_WDOG 0x04 +#define IMX_SIP_TIMER_SET_TIMEOUT_WDOG 0x05 +#define IMX_SIP_TIMER_GET_WDOG_STAT 0x06 +#define IMX_SIP_TIMER_SET_PRETIME_WDOG 0x07 + +#define SC_TIMER_WDOG_ACTION_PARTITION 0 + +static bool nowayout = WATCHDOG_NOWAYOUT; +module_param(nowayout, bool, 0000); +MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" + __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + +static unsigned int timeout = DEFAULT_TIMEOUT; +module_param(timeout, uint, 0000); +MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" + __MODULE_STRING(DEFAULT_TIMEOUT) ")"); + +static int imx_sc_wdt_ping(struct watchdog_device *wdog) +{ + struct arm_smccc_res res; + + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_PING_WDOG, + 0, 0, 0, 0, 0, 0, &res); + + return 0; +} + +static int imx_sc_wdt_start(struct watchdog_device *wdog) +{ + struct arm_smccc_res res; + + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_START_WDOG, + 0, 0, 0, 0, 0, 0, &res); + if (res.a0) + return -EACCES; + + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_SET_WDOG_ACT, + SC_TIMER_WDOG_ACTION_PARTITION, + 0, 0, 0, 0, 0, &res); + return res.a0 ? -EACCES : 0; +} + +static int imx_sc_wdt_stop(struct watchdog_device *wdog) +{ + struct arm_smccc_res res; + + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_STOP_WDOG, + 0, 0, 0, 0, 0, 0, &res); + + return res.a0 ? -EACCES : 0; +} + +static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, + unsigned int timeout) +{ + struct arm_smccc_res res; + + wdog->timeout = timeout; + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_SET_TIMEOUT_WDOG, + timeout * 1000, 0, 0, 0, 0, 0, &res); + + return res.a0 ? -EACCES : 0; +} + +static const struct watchdog_ops imx_sc_wdt_ops = { + .owner = THIS_MODULE, + .start = imx_sc_wdt_start, + .stop = imx_sc_wdt_stop, + .ping = imx_sc_wdt_ping, + .set_timeout = imx_sc_wdt_set_timeout, +}; + +static const struct watchdog_info imx_sc_wdt_info = { + .identity = "i.MX SC watchdog timer", + .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | + WDIOF_MAGICCLOSE | WDIOF_PRETIMEOUT, +}; + +static int imx_sc_wdt_probe(struct platform_device *pdev) +{ + struct watchdog_device *imx_sc_wdd; + int ret; + + imx_sc_wdd = devm_kzalloc(&pdev->dev, sizeof(*imx_sc_wdd), GFP_KERNEL); + if (!imx_sc_wdd) + return -ENOMEM; + + platform_set_drvdata(pdev, imx_sc_wdd); + + imx_sc_wdd->info = &imx_sc_wdt_info; + imx_sc_wdd->ops = &imx_sc_wdt_ops; + imx_sc_wdd->min_timeout = 1; + imx_sc_wdd->max_timeout = MAX_TIMEOUT; + imx_sc_wdd->parent = &pdev->dev; + imx_sc_wdd->timeout = DEFAULT_TIMEOUT; + + ret = watchdog_init_timeout(imx_sc_wdd, timeout, &pdev->dev); + if (ret) + dev_warn(&pdev->dev, "Failed to set timeout value, using default\n"); + + watchdog_stop_on_reboot(imx_sc_wdd); + watchdog_stop_on_unregister(imx_sc_wdd); + + ret = devm_watchdog_register_device(&pdev->dev, imx_sc_wdd); + if (ret) { + dev_err(&pdev->dev, "Failed to register watchdog device\n"); + return ret; + } + + return 0; +} + +static int __maybe_unused imx_sc_wdt_suspend(struct device *dev) +{ + struct watchdog_device *imx_sc_wdd = dev_get_drvdata(dev); + + if (watchdog_active(imx_sc_wdd)) + imx_sc_wdt_stop(imx_sc_wdd); + + return 0; +} + +static int __maybe_unused imx_sc_wdt_resume(struct device *dev) +{ + struct watchdog_device *imx_sc_wdd = dev_get_drvdata(dev); + + if (watchdog_active(imx_sc_wdd)) + imx_sc_wdt_start(imx_sc_wdd); + + return 0; +} + +static SIMPLE_DEV_PM_OPS(imx_sc_wdt_pm_ops, + imx_sc_wdt_suspend, imx_sc_wdt_resume); + +static struct platform_driver imx_sc_wdt_driver = { + .probe = imx_sc_wdt_probe, + .driver = { + .name = "imx-sc-wdt", + .pm = &imx_sc_wdt_pm_ops, + }, +}; + +static int __init imx_sc_wdt_init(void) +{ + return platform_driver_register(&imx_sc_wdt_driver); +} +module_init(imx_sc_wdt_init); + +static void __exit imx_sc_wdt_exit(void) +{ + platform_driver_unregister(&imx_sc_wdt_driver); +} +module_exit(imx_sc_wdt_exit); + +MODULE_AUTHOR("Robin Gong "); +MODULE_DESCRIPTION("NXP i.MX system controller watchdog driver"); +MODULE_LICENSE("GPL v2"); From patchwork Tue Mar 5 03:38:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10838891 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 4DF32922 for ; Tue, 5 Mar 2019 03:38:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AD3629CC9 for ; Tue, 5 Mar 2019 03:38:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DAC62BB0A; Tue, 5 Mar 2019 03:38:11 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C256D29CC9 for ; Tue, 5 Mar 2019 03:38:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbfCEDiF (ORCPT ); Mon, 4 Mar 2019 22:38:05 -0500 Received: from mail-eopbgr150084.outbound.protection.outlook.com ([40.107.15.84]:30382 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726590AbfCEDiE (ORCPT ); Mon, 4 Mar 2019 22:38: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=7sGnsRBR11as5w8QjMfK7m6wH02zar6x4YDWvQV1bm8=; b=BQU9Z4FDi1+isbgVU8JVtvGxzCQx4t9CrXVNARg2ZvlpTRP0l8n8VbfoZ6c6pP+9lzuQT7I1W4d994mqHkn/wNZMwhc6VyCpNAkXkrb/VdYSD7nQh0qc64WBeNgPKcAclxH6/9IjZVvjVYw9y+dOGe3bE0XbPbOYSRd9QOCsKBg= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3737.eurprd04.prod.outlook.com (52.134.66.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.19; Tue, 5 Mar 2019 03:38:00 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 03:38:00 +0000 From: Anson Huang To: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , Andy Gross , "heiko@sntech.de" , "arnd@arndb.de" , "horms+renesas@verge.net.au" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "olof@lixom.net" , Aisheng Dong , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH RESEND V6 2/3] arm64: defconfig: add support for i.MX system controller watchdog Thread-Topic: [PATCH RESEND V6 2/3] arm64: defconfig: add support for i.MX system controller watchdog Thread-Index: AQHU0wTUhh6uDaARUUO9iQEawfTzbg== Date: Tue, 5 Mar 2019 03:38:00 +0000 Message-ID: <1551756791-31401-2-git-send-email-Anson.Huang@nxp.com> References: <1551756791-31401-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1551756791-31401-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: HK0P153CA0039.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::27) 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-ms-office365-filtering-correlation-id: 50c0ce85-53e7-4e20-a6b7-08d6a11bf6cd x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3737; x-ms-traffictypediagnostic: DB3PR0402MB3737: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BDB3PR0402MB3737=3B23=3A?= =?iso-8859-1?q?AQSWngkNrj/Ojic9RaXPLuokJRN7i3Vk2vqC+8W9SByREBIgc9afkEPqK7iU?= =?iso-8859-1?q?MY6QztfVc6Ahyvjp8dS/MSqKhP6qVrGntIhmIcPM+qGa3EdhakUiP0C3vp2X?= =?iso-8859-1?q?KPo8dM9v3k8YiSoPCp65agGuaysBRHErsI+6qRrvMDUA/WLOo55UxFiWPNQD?= =?iso-8859-1?q?tBXIizepHxWk/TA+bYVCEHpQneN7NrZPkIrCHR/8S8Y7nNdWdbt4Ukb1h8rU?= =?iso-8859-1?q?hpjvRAqits/vrydNQc//FiQkFL1ZLB9eVh9RWPmCnjlqLUiNehKH7X4HEWJD?= =?iso-8859-1?q?l2u49I4sa4HAkEWm5oj/K2HQOQZJw7LaMm1Avczs4/gWEfV1lqjVTzu+uTFo?= =?iso-8859-1?q?GNtg6EpweyRYYNqRZVRvyzMgPfiir4xX6eB3wOdXlxxsKF3CffiFlI9ZhVQH?= =?iso-8859-1?q?HDus/OTvvQ9738/eN+VY2c64aoowsBMa05/SmwkB25TY38qWz2heIusGltJ2?= =?iso-8859-1?q?D0xht6m/kxmv6fR61Gwuo88WfIcp2PjfiNNOL/Bi2k6pEU/WMm3aVFe8SKCx?= =?iso-8859-1?q?fcO8WAnE9tumns7MTX9pmUADqcMk+L0MJKHEr+S6aiebThBZwyrUthpnPcKG?= =?iso-8859-1?q?GiTvOCY28yrMyG46xerCCRFNpZAtBoYxc71wC3EPg5m2cIdT3nnTcdvQOuzY?= =?iso-8859-1?q?YYBEGWvboFp4dpmNVMlC9D6JxP5BFSXF5jcrTuMUdJnoCk+TRGIToUEpGmLk?= =?iso-8859-1?q?50Cvk9/KWsAoqcizdCzot4gifOL1ZUv7ntqodQiMzyb99FpFcDdxpL8zzpBE?= =?iso-8859-1?q?QuCVO/cWw8hWPht0DeAbZf5yXluPPuBiahy5usD74Prj8PfEckc+UKRTTsaz?= =?iso-8859-1?q?8ogCxUKaDPa4cRCvAri1ALcgbmGLnWJbgTexpFllByOAuDvy0s5ylEumNPIS?= =?iso-8859-1?q?HDeuiUsnfbrrEAS5+MWVZEvj65foj9s48TKBSbCkmRkgJtg6670ffuFrPjSx?= =?iso-8859-1?q?uT5pq55r09vyuawBu8G0kz3UaSNi8RxDnk4DtXLbJ9i6b4WYWSb65nq6B4+v?= =?iso-8859-1?q?5bGrWXQw1Piu3MjRqitxeMwVna4xXPzTlENd9jmncQx5Z0zhLIsEj6v11cM8?= =?iso-8859-1?q?XdczSRaKbmnsojrarTmIHZ+wIuqZOOYkdAhvHonmmLvLy4ZgCoTula2B9nea?= =?iso-8859-1?q?n8eXg/0Jt/cUBBEMKbekeLJ+HH24SJTHgnQLUcBVQZABvbKnr9NF/t3TNBO0?= =?iso-8859-1?q?Sivvgq8oA2diEVljXDD7rsdxzCPtG1PhrsAW3irHn71EyiZsaMyizAse0f16?= =?iso-8859-1?q?Hi5p2sNHxmS0MajsJve1?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(396003)(136003)(346002)(376002)(199004)(189003)(52116002)(53936002)(8936002)(81156014)(71190400001)(476003)(2906002)(8676002)(81166006)(97736004)(6506007)(386003)(2616005)(50226002)(6512007)(486006)(106356001)(68736007)(76176011)(66066001)(105586002)(71200400001)(2501003)(7416002)(305945005)(11346002)(110136005)(446003)(99286004)(7736002)(25786009)(4326008)(186003)(26005)(4744005)(3846002)(36756003)(86362001)(5660300002)(6486002)(6436002)(102836004)(316002)(14454004)(478600001)(6116002)(256004)(2201001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3737;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: bsa7jbv5+9dbvTzSeG8BJX6zKcE/yHnfYiHxwTinepZmXmNnIm8T0LeQTwolU9z+HO7jr8inUk5++vY9sRelB5dKCjqomPqaYEGB9rNqEkng/z0oPztGZoAvvPKUBvObXaLnOtxsfW9ZOR61W2A2QA+Bm+mjGl5CEDrE9s5Vs8lWHD+4WnVwksb3qVZCNrRZ6mTaXK8UUu1aeaEIxpmtH9ewoI6NGGD8hX45/V0tQjwmyei8bhXRM0d3pgK24uXW6e6uz7AoU4P72lQGOIxtUHST/40d5VxuQJ9SkzGHw0OVHp1cXNgDs8SQGauazXUiVkIQZXAv7HX3xRUy9F/FjFsYlA1H0hLFUUCqUy1vKNXaF8gcg5E2ymgQ+17qzb36WfJqQGOoKUULc3WTjf2cLGUFHhoSggNKTYB5RFUB1tQ= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50c0ce85-53e7-4e20-a6b7-08d6a11bf6cd X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 03:38:00.1418 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3737 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2d9c390..690f4ba 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -427,6 +427,7 @@ CONFIG_WATCHDOG=y CONFIG_ARM_SP805_WATCHDOG=y CONFIG_S3C2410_WATCHDOG=y CONFIG_IMX2_WDT=y +CONFIG_IMX_SC_WDT=m CONFIG_MESON_GXBB_WATCHDOG=m CONFIG_MESON_WATCHDOG=m CONFIG_RENESAS_WDT=y From patchwork Tue Mar 5 03:38:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10838899 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 15C31922 for ; Tue, 5 Mar 2019 03:38:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 013B32BAB8 for ; Tue, 5 Mar 2019 03:38:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E797D2BE1D; Tue, 5 Mar 2019 03:38: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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 743462BAB8 for ; Tue, 5 Mar 2019 03:38:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727209AbfCEDi3 (ORCPT ); Mon, 4 Mar 2019 22:38:29 -0500 Received: from mail-eopbgr150072.outbound.protection.outlook.com ([40.107.15.72]:43527 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727110AbfCEDi3 (ORCPT ); Mon, 4 Mar 2019 22:38:29 -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=WdpzLt4MNXzmXJjBIeMcWz5LgkvkuJb4eEeafpsDLR4=; b=iyG6L1eE0WcJiqC/pw6LsqvR9DPfYZ7mSFSzNCsLRCjZifiwTTspOLe4TaHFE1KupKNbuFtZ1fD/TX+XNvsJhLt//ImExgCELXrrA2ayO62v+ros0H0ib3lHJjk95jUM7Ap61Q1qBdrBGCy9BdOwV6zFdwUex4kugWO/iRWJvpA= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3737.eurprd04.prod.outlook.com (52.134.66.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.19; Tue, 5 Mar 2019 03:38:08 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 03:38:08 +0000 From: Anson Huang To: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , Andy Gross , "heiko@sntech.de" , "arnd@arndb.de" , "horms+renesas@verge.net.au" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "olof@lixom.net" , Aisheng Dong , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH RESEND V6 3/3] firmware: imx: imx-scu: register build-in child devices Thread-Topic: [PATCH RESEND V6 3/3] firmware: imx: imx-scu: register build-in child devices Thread-Index: AQHU0wTZDKVhNNFDtEeMtm93MUsCsw== Date: Tue, 5 Mar 2019 03:38:08 +0000 Message-ID: <1551756791-31401-3-git-send-email-Anson.Huang@nxp.com> References: <1551756791-31401-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1551756791-31401-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: HK0P153CA0039.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::27) 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-ms-office365-filtering-correlation-id: 5b249b9d-c1c8-456e-c0e0-08d6a11bfba4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3737; x-ms-traffictypediagnostic: DB3PR0402MB3737: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BDB3PR0402MB3737=3B23=3A?= =?iso-8859-1?q?ZCMlhKUaBla1TStKIT4qb9UPMk8D606uAR3Q8opKQ8huafca2JN3ZIba2oVL?= =?iso-8859-1?q?R7fzcyQ6Iwy1driBp/PdVYOP584jDEGV5OP+vQO1TuXRmWiZsrf7KDnXaDfP?= =?iso-8859-1?q?foIkv4FkYte3CiqeauoDDnDrDAlU3pByBZYj7vcVfs/9HcBiYMl0BUTyy9uQ?= =?iso-8859-1?q?NHa4SCB67JUzrVWSNNBq5f1BVRHQvLjaoCe+kjXbYxfGpMBnaLkN+LuGuaBA?= =?iso-8859-1?q?E/edNkeLppXI50ha+laaQO2088xMUZBDyeyTFfh3St6lX7IQZD9O7a4/qRlN?= =?iso-8859-1?q?gN23dkwh95XvTWeWHHecYUdJNMunzqtDtB+utGRaww/fJISNftX4czPNPALB?= =?iso-8859-1?q?cl9WUi7Gz877bRx+SGWqtuV/lwM+jFnTfbGtRUQgVrilnxr1ZAq/vgrmIQ/b?= =?iso-8859-1?q?Q/anaMJWrucLRnTjvVzs34a9RnY0o7XZfT0TcFXpRwqoYEtX7o2U7jyzUVwp?= =?iso-8859-1?q?sIAPlkTE2XnntQozDYGLHsqfUX+WvK23ZQS4WEfcI2zBIDvH2UZHbYY7Hoqu?= =?iso-8859-1?q?nv5s/xpXD3CbLXK0vESuDzBmv3eF3pht15q2CphN2XsS6a30OkyWiQWfPDdA?= =?iso-8859-1?q?vzzeh16D+pXsu42GkUxlPmhhZ2bGUTDRSPC4NzSbNcCC4A2ESWAsxqQAgLg8?= =?iso-8859-1?q?YDh16z1QdlOpmEkpNSD6eF41HQ+ab4tMgXFMW05Ts4FpPsVc9NJAizhwKM6o?= =?iso-8859-1?q?JOEwJFUny9sU8bJ0Ioqr1R4E7rPfrwe4IY5UQktsSRyjbWwOhu63X2t5buw6?= =?iso-8859-1?q?ZbY9kquI6Qb2WAZ7agq80agZnnJr+/SqdyCx+VnEovvwXPeAI1GO/Rcnp3LH?= =?iso-8859-1?q?yW+L5cSmgMcLaiSo4GhRqXAMqsLPD1GBn/rtcZQRumFZ0oej9U8Cug8MUHGq?= =?iso-8859-1?q?JC45roYh0/8tAzfqDjLu9LHJThEpKPalRxAf9eQgYY/C/QZHuxgABKykg9Kc?= =?iso-8859-1?q?XkipBEyVNxpyIFzSeIc+D6FXS7TSCcssRmZrvN9mZl6QvXfa/YwB1TZFDtod?= =?iso-8859-1?q?xpts76PnpYgiuL9UmfISI97lgG3Mx3IWPF1lPnUTMIF1h6zjNcAMGLmpPpdf?= =?iso-8859-1?q?GmwYTrVLLwzxfPczRC25IMgY9vEf7YHyBlxhs5jorGSP71jyqckDnTXBWzK3?= =?iso-8859-1?q?IwWD8gIvTzs3KFZ4ov+AEFAy2PoptOuVkZJ6JTtEEU2tFEV0YDpspWy2dWwN?= =?iso-8859-1?q?fbKD1+S6or5kRMBIy6YB2Fwdiq2r3Db9/4kyzs61pWFGoKXLksDBksKkuZ4?= =?iso-8859-1?q?=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(396003)(136003)(346002)(376002)(199004)(189003)(52116002)(53936002)(8936002)(81156014)(71190400001)(476003)(2906002)(8676002)(81166006)(97736004)(6506007)(386003)(2616005)(50226002)(6512007)(486006)(106356001)(68736007)(76176011)(66066001)(105586002)(71200400001)(2501003)(7416002)(305945005)(11346002)(110136005)(446003)(99286004)(7736002)(25786009)(4326008)(186003)(26005)(3846002)(36756003)(86362001)(5660300002)(6486002)(6436002)(102836004)(316002)(14454004)(478600001)(6116002)(256004)(2201001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3737;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: plk3j7ambsJAhd/1TR53mrUee34u4L5Gd0zvL0L1mvMnoA9yCjg8EZ5nMWcPWlW1Sb5NXt33j060BI3DxRPdnWnlmoA4QQ799fbh7+AjQCvJqHf5DnfyKB2u1Z/0vKNh7yKg6VBFP0h4Rhhbd6k74a8PDn503Rk90F+Qz1rE5zqi0VOcWkRioV9r3mq8MONjJaU3D/gtM+eNzA675N20YkNp0/sH//swaS8ef+kOaQe7jg9iFrmtKF7YOqoASdBKmg6HthEu4vVszLPWdcCheGmwZCh81gutcm7jgv64GLz476YsD6AWVPwqul6KcrWAx8Mqc9vESLI9YfcadT3cER5Fq4/lCLWB6trCq4JUQCTL5kJTdTSQ7kkNONHFjhX8K4qkVVGGyheOVHgF+CPs3WiVdVn1CVO53xvekDvaptQ= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b249b9d-c1c8-456e-c0e0-08d6a11bfba4 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 03:38:08.0183 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3737 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For some devices which are controlled by system controller, they are NOT present in device tree since no hardware info needed, just register these devices as children of SCU device. This patch registers i.MX system controller watchdog platform device as child device of SCU. Signed-off-by: Anson Huang --- New added patch, it is to register SCU build-in child devices what are NOT in device tree. --- drivers/firmware/imx/imx-scu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/firmware/imx/imx-scu.c b/drivers/firmware/imx/imx-scu.c index 2bb1a19..df75ead 100644 --- a/drivers/firmware/imx/imx-scu.c +++ b/drivers/firmware/imx/imx-scu.c @@ -196,6 +196,7 @@ EXPORT_SYMBOL(imx_scu_call_rpc); static int imx_scu_probe(struct platform_device *pdev) { + struct platform_device *child_pdev; struct device *dev = &pdev->dev; struct imx_sc_ipc *sc_ipc; struct imx_sc_chan *sc_chan; @@ -248,6 +249,13 @@ static int imx_scu_probe(struct platform_device *pdev) dev_info(dev, "NXP i.MX SCU Initialized\n"); + /* register SCU child devices which are NOT in device tree */ + child_pdev = platform_device_register_data(dev, "imx-sc-wdt", + PLATFORM_DEVID_NONE, NULL, 0); + if (IS_ERR(child_pdev)) + dev_warn(dev, "failed to register scu watchdog device %ld!\n", + PTR_ERR(child_pdev)); + return devm_of_platform_populate(dev); }