Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2956977imb; Mon, 4 Mar 2019 19:39:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzg+E6UdBpdK+KDNcozotU9mJb5O73L/dQ+4pvTUOGx6wSDUgwRmTNcQrEtnds1z1fSUxB1 X-Received: by 2002:a63:2b82:: with SMTP id r124mr21604678pgr.214.1551757149597; Mon, 04 Mar 2019 19:39:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551757149; cv=none; d=google.com; s=arc-20160816; b=UDSRyfbm6Eb36plZunJq7MFW+74Z2h9Dhrhqs6WzGE6pdsWr6qqdKpNvW6Wo2RGFIu hgkPLI4os3++ExJW7fK+jmIZc5h3RcPgvG4uKBu7AYwLPOk8UTStu/zNkSgV+LG08Pgo yYE9bPQBASSC+5ABbR7AVjALb64y1frTn6oaX34cxN9Tp60j8/zGR9jmXqLKIQJDKJAO i+MlTsR41EqT+aQciwSAIG4ksUCLPdrEat0GuAzH8NPj/5tSbmIXviv282v2BKX8phKx hBgy2eSFF6dKgTqlKqjsUn+TKUOz7zmE3uvB9rSQX728SjVyx/Fu7milF66zjBt21t5S i4Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=WdpzLt4MNXzmXJjBIeMcWz5LgkvkuJb4eEeafpsDLR4=; b=WMQSX0y3+OL+Q4XcYJ3EwrBnf1GxNj7K13L7GzQ0VByGXHkYJOm3XeR7nZRlz7hiDJ l9i/hkV6cxouIm69FDNAnLYyXpog+t3/yCFPak7erlBVcp0GdrKZPh7RrCdvo8/wmCFC sfotmYp7pxN5uNj3uAowFouM+AEuBa/U5QSJs+5uKA13SeY7ps2pppTeQgYd+XADW3ud KmoV4DLyWLutdlzLLoNQE7Cg96Zo1odhj+22gYAni9UOF+x8bxBz25dUIwCpHN0DF1+B unwN24bc8Bw0SpNGvalh3zWdaJky0F7i3ZZQuQeZbByZ2yhKxhNno4DWCn8UlwTRsJP/ XakQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=iyG6L1eE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si7039110pgb.276.2019.03.04.19.38.54; Mon, 04 Mar 2019 19:39:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=iyG6L1eE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727225AbfCEDi3 (ORCPT + 99 others); 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;DB3PR0402MB3737;23:ZCMlhKUaBla1TStKIT4qb9UPMk8D606uAR3Q8?= =?iso-8859-1?Q?opKQ8huafca2JN3ZIba2oVLR7fzcyQ6Iwy1driBp/PdVYOP584jDEGV5OP?= =?iso-8859-1?Q?+vQO1TuXRmWiZsrf7KDnXaDfPfoIkv4FkYte3CiqeauoDDnDrDAlU3pByB?= =?iso-8859-1?Q?ZYj7vcVfs/9HcBiYMl0BUTyy9uQNHa4SCB67JUzrVWSNNBq5f1BVRHQvLj?= =?iso-8859-1?Q?aoCe+kjXbYxfGpMBnaLkN+LuGuaBAE/edNkeLppXI50ha+laaQO2088xMU?= =?iso-8859-1?Q?ZBDyeyTFfh3St6lX7IQZD9O7a4/qRlNgN23dkwh95XvTWeWHHecYUdJNMu?= =?iso-8859-1?Q?nzqtDtB+utGRaww/fJISNftX4czPNPALBcl9WUi7Gz877bRx+SGWqtuV/l?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6YB2Fwdiq2r3Db9/4kyzs61pWFGoKXLksDBksK?= =?iso-8859-1?Q?kuZ4=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= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); =20 static int imx_scu_probe(struct platform_device *pdev) { + struct platform_device *child_pdev; struct device *dev =3D &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) =20 dev_info(dev, "NXP i.MX SCU Initialized\n"); =20 + /* register SCU child devices which are NOT in device tree */ + child_pdev =3D 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); } =20 --=20 2.7.4