Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3719531imb; Tue, 5 Mar 2019 17:34:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwRg3Hexfqob+TRgH6GtzWTjfkrYnHumCHCGr/68IFFXnw6HnI3IxxYqXKxk8U2jqXYsZID X-Received: by 2002:a63:4d4f:: with SMTP id n15mr4001741pgl.327.1551836097502; Tue, 05 Mar 2019 17:34:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551836097; cv=none; d=google.com; s=arc-20160816; b=Zh4Ca5Pgb8RLqIrxFDHwd3LBZ0RUG7BI6+1pZWnM1RyYFSQ6OdAvkmCcaAaxag+uZX h+9rBAGltOuDJBpoXrGh9Xvh8C8msHIed3945BXRtX39Ajlyfkf/ayMZASaNJHkr+bmz ibetTna1V7KCtQ4tzYd48eNxa0ZYGGi3yE/GoU1L5+dK23lEvn1fG8RbFF/Ffn4EaXud hm6O79irBYIEXFux6FG/oJevMnGYMXa2z9niYkAY3gxbWZ1y7HYyTMg9JFEW7YihKQN3 GVay7+EEa6ZG3f2PXucFBjZkWimA+871+u0Vk/zgNOIQwDTwlPNAcOu3p4nPVmq7ZCWc MgWg== 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=ROgUXJYN0cLDnCabertgAXqrrpgKNFEmbnEQ1X5+Yjo=; b=PE1Pd6n66ySNDZOX5xjETV4WkXO6NHOUUR00o6NuJp9MKeJOOs+FUgiVVtyxV6hLJv M2p+joQ6a3roxiqyPX+1+sOWY5PbabAmUOUrvF9JxKoda9FzPS/86tNW9LJT8uAN4Jcw SeRcmsgZ4lhPiedVK9OmUkK0Ddqcfhb4zHTggDvoaQGaadQ2A26Q7FTxHibEsyOJ0MUe 2ftzjLPy0T0+IfGHHuu2CBBn5e28nDd2qhmKfLQgzogK8P0oEecQiWv0GCyXL/OES6Uh blQ0m+jDY2ZMbDtrI6IxhjNCSVh8sxIm85eW8lUVQRRUqFmQwzzhBg1CDkaBH2ADKXqC q9uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=eYOmT2qI; 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 n7si275271pgd.81.2019.03.05.17.34.42; Tue, 05 Mar 2019 17:34:57 -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=eYOmT2qI; 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 S1728046AbfCFBGu (ORCPT + 99 others); Tue, 5 Mar 2019 20:06:50 -0500 Received: from mail-eopbgr30054.outbound.protection.outlook.com ([40.107.3.54]:6366 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726069AbfCFBGu (ORCPT ); Tue, 5 Mar 2019 20:06:50 -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=ROgUXJYN0cLDnCabertgAXqrrpgKNFEmbnEQ1X5+Yjo=; b=eYOmT2qIcfmJMDoCSA4i2LHMrwm88WYetG5i2Z089TagLPZciX10BicefqyeRAcJKIU3z237jyGQizeaKouX+B79NUVmCWyDamoGPvsAWnOiCS9MYxoOt1AL58rYDId6E0n9AHuRn1Fpy+V4qtq+Leff0Pes1drcjLkGWUDjXNM= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3723.eurprd04.prod.outlook.com (52.134.72.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.17; Wed, 6 Mar 2019 01:06:33 +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.1686.016; Wed, 6 Mar 2019 01:06:33 +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" , "horms+renesas@verge.net.au" , "arnd@arndb.de" , "maxime.ripard@bootlin.com" , "jagan@amarulasolutions.com" , "bjorn.andersson@linaro.org" , "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 V7 3/3] firmware: imx: imx-scu: register build-in child devices Thread-Topic: [PATCH V7 3/3] firmware: imx: imx-scu: register build-in child devices Thread-Index: AQHU07jXrMvH/zwkr0CO9FJmEedWMA== Date: Wed, 6 Mar 2019 01:06:33 +0000 Message-ID: <1551834095-19950-3-git-send-email-Anson.Huang@nxp.com> References: <1551834095-19950-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1551834095-19950-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: HK2PR0302CA0006.apcprd03.prod.outlook.com (2603:1096:202::16) 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: 6d467cbe-3765-4d8e-3e0c-08d6a1cff924 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:DB3PR0402MB3723; x-ms-traffictypediagnostic: DB3PR0402MB3723: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3723;23:i30aCKepLxGgMkGtmEEyvjOEsObIqxFbfdvp9?= =?iso-8859-1?Q?HfNJA/zy1xXnnhS4hMvBCIEhPZeUNrFjPaeNGBxbny+Ao74wF0/KibnrbG?= =?iso-8859-1?Q?YpAsmI9MW6NO18bNBJ2hz04QYBti/eSAft0bhnQUX6OLcPnHVBofnc2ygu?= =?iso-8859-1?Q?1I1NnCeogBUzQteUvRM79aejMHORG8TenlF/evLyeMSeukq8FdfD5FruR/?= =?iso-8859-1?Q?0HAnJfN6nG26QJdZ0Qj+qcFwQFB+BVyeaQ2hbZEAXtn4tIejs5yS53N52A?= =?iso-8859-1?Q?6zB6/WlMGuDNp3Ohul3jnpTeT8VfdIM+TzYxkJapeNvp33PND2p1wNRCBi?= =?iso-8859-1?Q?OzLCMidQwvYT7DoHczw0qz84IZ4Gc02YL+++c5nWp1oCXR+GILrY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IbhfGZCYvDPAFbW/bnir0Eqs3gO7w/w7aC0qPiYlxl/F?= =?iso-8859-1?Q?pX9s=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0968D37274 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(136003)(346002)(376002)(39860400002)(189003)(199004)(36756003)(68736007)(71190400001)(71200400001)(86362001)(256004)(2906002)(110136005)(316002)(105586002)(106356001)(6436002)(2501003)(6512007)(7736002)(305945005)(2201001)(6486002)(53936002)(478600001)(8936002)(7416002)(476003)(2616005)(486006)(11346002)(4326008)(14454004)(81156014)(5660300002)(3846002)(6116002)(25786009)(81166006)(8676002)(50226002)(52116002)(6506007)(99286004)(386003)(26005)(66066001)(76176011)(446003)(102836004)(97736004)(186003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3723;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Jg7Qf2Dy5bVupHRtE/0Ysq3WzjJ/hXqiPFjAc7U5sdHrVFvBqliAzRyyNRaQykVQC1truHNp2n9VLIC4+MNshfDHX8MnDTLZeUklNidBpVEtjykqZ96e+lK6E4c6SUkzOFet7s1Zxnray4K5kUHOPj5rd17jFdHWL87rVMUx4fCVmZ20jAqLbWGFw+PWsXaPNzSfz7tZVE4yq0zfRa+odMz1gNOKCFL/s45A5ju46ZqYhH34LDmmw9ZcInueqfo4fTED58Gng6tyMpdBMApZwSnnhwaNruwSRiogbJ/qoyoYduuthKuzLYJZHV0Dri182sOKAKhylIxDiUuCMhbknyUAMCtVH/+KX5+qXr+BR7Sp0GvReUCCYAMbTQ6N1Tda+bEBohpXi2COFpQU3wg01RTV1iJ2uhtjv4rIrsOrmXs= 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: 6d467cbe-3765-4d8e-3e0c-08d6a1cff924 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2019 01:06:33.5692 (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: DB3PR0402MB3723 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 --- No changes. --- 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