Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3877900ybn; Fri, 27 Sep 2019 12:41:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyw271I3kbfp8rpTKOpw98VBTtRDS94zE0OrEB1TjD85zih3qYRAMgHi5+e89sAPw5XkaBB X-Received: by 2002:aa7:d295:: with SMTP id w21mr6638688edq.302.1569613266649; Fri, 27 Sep 2019 12:41:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1569613266; cv=pass; d=google.com; s=arc-20160816; b=RX3yVsDqi2pYt0/jF4GuRCvh3IZRVMLFPXBtvUc84PnyLnQQYMFsb/tK3l3AG5Wu20 dbtKpL8ULnvFlG9o7FX4Mz5jLNXpu1YZAXTvljSz0BlyQPyHx0AK/vW54jSCCLsccqAB Bp9lKH1/gHyhVz2dHrsmmIzVAdFBj83HPCjCnV+4NMPn7KJhqYXKohMw9i/ZgwVFNqN9 lpqdLr5PTBUN0dH20fAEa/dvm5tCh36udEWVXsJmGSzn8wdHb+OgfgTT/0qzOgXZXsPt 2mnoR0FmmpQriLW81upyfch44SlNf8IXxF99nXS72w8fLhyzpNK1YGGtPLkM8VBHaLu4 4ASQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=VTaKeHXgf5Prw5VTRo31RjtpleuswlB5qdV+CG0qalo=; b=wH0kfMuDyy9g+dBgV7g6LzqQXM6aUp54mlQRaBqarqeGIlYmX+ZNFHSed4p8tyd/h5 ZEcAVe73NlhSExIq0qmjLQ5RM420ydtPrAaOKgWX+B0gvDwzW04bVMUiNaebIi4YfUFl O8xvDksT4p/QlIFu0tgAQk/YBiAq9SqJn1wZ4Wt/zBzN0s2L2bh9JQvWEeXGX1mQhO7n tnySyP3Y+MW1VLQKiypKGw0MVKdHWX4SzBChu6dnynBbNWXSeBRgjqA4wA58KKxT1o96 kGh9krXdflsc6ADGoGwdOjhHtyJ4ZOpjIeFdzpTx3/IHZw0L+mAA0LcWGpvs+6YkKff+ qslA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=GJCVk7uP; arc=pass (i=1 spf=pass spfdomain=xilinx.com); 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si3245525ejx.293.2019.09.27.12.40.39; Fri, 27 Sep 2019 12:41:06 -0700 (PDT) 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=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=GJCVk7uP; arc=pass (i=1 spf=pass spfdomain=xilinx.com); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726867AbfI0Tke (ORCPT + 99 others); Fri, 27 Sep 2019 15:40:34 -0400 Received: from mail-eopbgr760089.outbound.protection.outlook.com ([40.107.76.89]:17446 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725871AbfI0Tkd (ORCPT ); Fri, 27 Sep 2019 15:40:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lUQRZV7DwC6PAOzHDcm3Iwzu5+fxkuQdcaNyb9gVZppUzqTFs3wenSSDgM/AdptCmZjn/qS3RFXzTI7GaVcsK5aNN885FY2Hsx5g1bQtrZg6jaSR3N+cEfMFdrZs0dMCXzBoSJGgHHK/tJI9DXQoyUq+Ot+8Z12FyTbDAfGKAC6HkpHP+JIpiHO4ec5ol52SGpJ3F/2zo4wHhmsFKIGFzCQFHcLFadlGEkn7XrKgh5bM2awLULNSpiqzJ2dTx6PH+vT2h76OxpzM/yRtQUXtKOylxpZZ44DO8UdaUTJ/vlDpllY7naenQoxKAPSG9lhjpOpzDlYZ0YvjdDAIDNyOgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VTaKeHXgf5Prw5VTRo31RjtpleuswlB5qdV+CG0qalo=; b=GLDWovRYMzW6NcTB9X8N6FTVQVFd128zIF9ar47rZIDMAQGN+tSWN66LdFmucvhAsfSMrCEJ4C6ZLjVlnn+asUjZq4rjviA5+C5+LyeF8cJ0PhTHNJdSk/lPvwV0Sb3DRkCccDy55YRkH38QfBxrE5GlphOEGLxLGvD97XaAQlPxznf6W3y3I1pe7N1l1ITRUUU5exiniPrgJTMPPD50+NbY4s6RQfHPDHE41SKM+56+E8GxOdVLrYr8VaVgeto6zUl70c+jhVjt4zPctxqfpz+DRyGX9q0rkxwnPWUgsipWXdZWTvrjmdzl37u3y/qOGzfgu3RD8LudEhvfg/iOjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=linaro.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VTaKeHXgf5Prw5VTRo31RjtpleuswlB5qdV+CG0qalo=; b=GJCVk7uP62GpoNKaMoejhkh3fpXpll5Gw9197h7JeJVIXXhJqH6rDOTjqkYkCN/FkcJz/9GemPZHYeA3eCpuuUcqQeug38NxX3x9v2xwu+y12WWx3LPwAHL0xRBrWix+QESa/gxP6Wc6ip0SY+O8qkJ1sVd1OYyhzeEn6bzg650= Received: from BL0PR02CA0136.namprd02.prod.outlook.com (2603:10b6:208:35::41) by MN2PR02MB6029.namprd02.prod.outlook.com (2603:10b6:208:185::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.23; Fri, 27 Sep 2019 19:40:30 +0000 Received: from CY1NAM02FT053.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::204) by BL0PR02CA0136.outlook.office365.com (2603:10b6:208:35::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2305.20 via Frontend Transport; Fri, 27 Sep 2019 19:40:29 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT053.mail.protection.outlook.com (10.152.74.165) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2284.25 via Frontend Transport; Fri, 27 Sep 2019 19:40:28 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1iDw6O-0000L2-Dt; Fri, 27 Sep 2019 12:40:28 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1iDw6J-0003aE-9K; Fri, 27 Sep 2019 12:40:23 -0700 Received: from [172.19.2.91] (helo=xsjjollys50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1iDw6C-0003I3-1f; Fri, 27 Sep 2019 12:40:16 -0700 From: Jolly Shah To: ard.biesheuvel@linaro.org, mingo@kernel.org, gregkh@linuxfoundation.org, matt@codeblueprint.co.uk, sudeep.holla@arm.com, hkallweit1@gmail.com, keescook@chromium.org, dmitry.torokhov@gmail.com, michal.simek@xilinx.com Cc: rajanv@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jolly Shah Subject: [PATCH 2/2] drivers: firmware: xilinx: Add support for versal soc Date: Fri, 27 Sep 2019 12:40:06 -0700 Message-Id: <1569613206-20189-3-git-send-email-jolly.shah@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1569613206-20189-1-git-send-email-jolly.shah@xilinx.com> References: <1569613206-20189-1-git-send-email-jolly.shah@xilinx.com> X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(396003)(136003)(346002)(39860400002)(376002)(189003)(199004)(2906002)(476003)(486006)(126002)(7696005)(6666004)(44832011)(316002)(50226002)(50466002)(76176011)(51416003)(36756003)(11346002)(356004)(186003)(26005)(107886003)(426003)(446003)(36386004)(7416002)(106002)(9786002)(5660300002)(2616005)(336012)(305945005)(70206006)(70586007)(478600001)(6636002)(81166006)(81156014)(47776003)(16586007)(8936002)(48376002)(4326008)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR02MB6029;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;MX:3;A:1; MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 38cad835-1a72-43b3-426d-08d743828d40 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(4709080)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328);SRVR:MN2PR02MB6029; X-MS-TrafficTypeDiagnostic: MN2PR02MB6029: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:561; X-Forefront-PRVS: 0173C6D4D5 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: BY/j9+spofGALadk878CKzaGHg7ceWXhaGqp7/CPYbtTTayuvJeq8TPXcvjs5fu+iQuDtZwsAZQlD5gx3WXijvQHZTMNDkVgaTA1V9pY2gXkxNPv50BnLcMEfsF4TFHuseHFVG3WLFa8rZeYL2KZC3daXOJQ7lsq1kUvheazywSzxr/LnSj7fg0ZApu+N2Jl7mh9Z8hiFCxoW8O1e6e/VDfJLAzlaUuP21/NJxH0bH7snAuSd72PuPHGbKFovmxTDI0xDOaGz/tJu5fnRkkEJIa4yEk6FQO1CIQmgPUpg4TklQ7NQqYQadq9PFHzokFBk8/2FLusteMY+dWjAyHYtMANxoVPlJ5URJsdCvcfd3qWJiJBvbMFBjmIonZnd7kR14SB63iM5ntFBNFxPUoWw2hdCFatcm1nIPquds0tRz4= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2019 19:40:28.9411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38cad835-1a72-43b3-426d-08d743828d40 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR02MB6029 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Versal is xilinx's next generation soc. This patch adds driver support required to be compatible with versal device. Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index fd3d837..75bdfaa 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -711,8 +711,11 @@ static int zynqmp_firmware_probe(struct platform_device *pdev) int ret; np = of_find_compatible_node(NULL, NULL, "xlnx,zynqmp"); - if (!np) - return 0; + if (!np) { + np = of_find_compatible_node(NULL, NULL, "xlnx,versal"); + if (!np) + return 0; + } of_node_put(np); ret = get_set_conduit_method(dev->of_node); @@ -770,6 +773,7 @@ static int zynqmp_firmware_remove(struct platform_device *pdev) static const struct of_device_id zynqmp_firmware_of_match[] = { {.compatible = "xlnx,zynqmp-firmware"}, + {.compatible = "xlnx,versal-firmware"}, {}, }; MODULE_DEVICE_TABLE(of, zynqmp_firmware_of_match); -- 2.7.4