From patchwork Thu Oct 19 06:06:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveen Teja Kundanala X-Patchwork-Id: 155321 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp185126vqb; Wed, 18 Oct 2023 23:08:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9NHgVS4ptqkkEVS7wB90MW7HP8TD2VTcyQlW00acG6GN1Yum0zzai6MaIZ300c648qzFI X-Received: by 2002:a17:90b:3d84:b0:27d:b488:92ee with SMTP id pq4-20020a17090b3d8400b0027db48892eemr1219843pjb.2.1697695680120; Wed, 18 Oct 2023 23:08:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697695680; cv=pass; d=google.com; s=arc-20160816; b=OauBpmjNTcNkb6AVfuRzC3vve3DX7zgELjLDQg3cmUqdsQaTD/lHp6+qJq3eSka66+ JRbiPb2WX9CF0vf2AhHG6ehrpDh/JhIg7pbadHmunBZ9CfFzPj9CQFyVX++Knn1KN/8y 22uEN0ygxIuC3WcV/y2gYcAJ3KObTNxnM2JZ7MEy9Rz9tf/yMD827epDd1My+d14/sT+ 6+A/ooopvWvO88HSkpMsM2FW5IJsle5duEBlldun5GQVsm/zcBIgo9gTChh1zjGbH+QW NgRdZ4vpvu2/An9WCpL9jz0a21zB31yLnrVq4d6FEq27PPh7grImKkJYIhOs0F2NyVw6 hluA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pN86kemZZhr5+jJZSILS4xn8mKmE10N+gyBJS7TIt/s=; fh=h74EhHnmePiZva0LLBypFrrtUixImQL5AbqouYp3GNA=; b=MPtLFwWvTV91Jc650tmVxBKv8KEX5YBnHrIj4Yi+z9K5owsuhim6L1k3Di1a29D6wP 3UccWJV66vwzqh73kbTnw9RRhW/01CZbqitBl07qxa2xrbpgmzbhKbrpMektQbiqvrQY DkXC2ufRdMm5qtK8MDiP/rEtlfBgt2F1jIoyt3b9obyeZ0gGa1IOnnu7a0Umeg/p62d6 iuY2WvH7ioOaOheUokBa/2oPntRPU6ZtFOGKZb/nXzAo3Hz0MSVHF/vfDnQYzFDMI38T 2IvqAE49cTYEw4AKFhmkKQhG30fIEuUEgOnCRj29dlowSPlMCru99f0hPzjFe4eAOP9L VmQQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Ceem4DDH; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id pc12-20020a17090b3b8c00b0027d20cab1d3si1438908pjb.42.2023.10.18.23.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:08:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Ceem4DDH; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2670B825B48B; Wed, 18 Oct 2023 23:07:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232733AbjJSGHn (ORCPT + 24 others); Thu, 19 Oct 2023 02:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230297AbjJSGHj (ORCPT ); Thu, 19 Oct 2023 02:07:39 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2044.outbound.protection.outlook.com [40.107.212.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE23F19E; Wed, 18 Oct 2023 23:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fbUrfb/+UTIUq68gWJkGm8kA1bxaOCq76s7AV8P4OXRbBhapzhZJo8oyNT0DDNEnBelomplY4pf/gOvm9hR05X7OlFXr/NdukiLtb4tblquU8nOvlMPNcNsQOpVkwX+16esfsU82KOchJftB7zQj0KjdqZszZSYTNgf/jszK7NLXVqgCmHOtbQ+xhot53ognv/aMeUnYxON9XYY9eGZZrbG4aTXilVPCJiuiAH2gP9kCDCx16Njdaw6vDWV+YpKV9Gvn8yognscb1xcCYgeFDIleEpyS2EHVmkw7mhvAdBr6xC6QdhJSxLxHUVYOwY65rfNYvX4wpJV5NXPVbPDgRg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pN86kemZZhr5+jJZSILS4xn8mKmE10N+gyBJS7TIt/s=; b=ehKrdrBu5uUW/1aCZ1e8SKt1WViJ9hBiwnMDaz7smuyd2JjksrxGv8Bss2/UcoLex9S8dFRXtNG4r8DgLhYiUlVxtXl8WJKUkBIDazo2HciqEnrdCpbij7ddB7fdIffCjJsUJyAYLw+9D+B6v6wH1nTsFIv3B/h7GC+t33ANj3k/F8FTRVn+jwP0EBwek+d097q+3WdrfF6GiUTYDotI9p6AZg2II8gYWtTVppbgQRhaEjVp708Lyh00Tf/+TeGW69XzPTi5m6dF5rMfy4y3YrNjbcVTMbGe/yB8CEVqQZGLcnL+eQB9Z62p/kw+VWKvHp6XhlNvQQ5Ih4pE4ah8nQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pN86kemZZhr5+jJZSILS4xn8mKmE10N+gyBJS7TIt/s=; b=Ceem4DDHKgC4cZhSHzgw7P+AKbaIyriBlz3b/4ULYqOzYwmgJ+dXFSj4TXFOruqYWGD9SmJyZqXZNSbQQjYM9L1e0NngDpMtC1KChirMa4biBssy+uHLT3GTwUXuMLBMZJR73AVf5Va3Vx2XWHpaJBMVwM+w/HDTDaIxc7Nm+JE= Received: from CH2PR19CA0006.namprd19.prod.outlook.com (2603:10b6:610:4d::16) by PH7PR12MB8593.namprd12.prod.outlook.com (2603:10b6:510:1b1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.43; Thu, 19 Oct 2023 06:07:35 +0000 Received: from DS3PEPF000099D6.namprd04.prod.outlook.com (2603:10b6:610:4d:cafe::a) by CH2PR19CA0006.outlook.office365.com (2603:10b6:610:4d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.21 via Frontend Transport; Thu, 19 Oct 2023 06:07:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS3PEPF000099D6.mail.protection.outlook.com (10.167.17.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6907.20 via Frontend Transport; Thu, 19 Oct 2023 06:07:34 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:20 -0500 Received: from xhdharshah40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Thu, 19 Oct 2023 01:07:18 -0500 From: Praveen Teja Kundanala To: , , , , , , , CC: Subject: [PATCH V2 1/5] firmware: xilinx: Add ZynqMP efuse access API Date: Thu, 19 Oct 2023 11:36:47 +0530 Message-ID: <20231019060651.23341-2-praveen.teja.kundanala@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> References: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099D6:EE_|PH7PR12MB8593:EE_ X-MS-Office365-Filtering-Correlation-Id: 761ad36e-31a0-46f2-c1a5-08dbd069b00d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lEt9LkYcywg+S7HB5T5EkmZam8OvHlZkDHeoTO2RXs0lIRh739cGHkm37aiAo1zK27o4bwmOEoFUp7Ffff9WgJD2PTVN79LK1EGGWMQyMtLk3cB+5TDHl5Wy73knChMOptWElvnBJnOP8kceFS72v5F+Z07UL5Q539kEXDxhhnYoGVDcIHSgm9EC9N39wCXIgs+GBBgXuSZ3zcPJsrnfFFJbOdiA3rrsXPLL19I54eDjpNbNjkhJUx9Rr3PQkx13ietqWkoa+a3k0lnJvKLaP8pzyvAl33W1Z3dlIG/0K8Gy/LqJwGdKvw8lU849IhvBqS+iYucxoOptqoQgHsWmpN1bEKV2NpYDYbERRdoZbKdeK8JsmeE1ukPwckDjhDKwBzLSco4LkF4cnbZSN1c1mobxnPlaLe+TqKX5tyVimOoutWcLkEpEV3XsPVLFepQlkPdtXFVlMZMyrjLsBzuKtFVqBSbhCte6IiXGGU+wEJaLWyAlrB7BIWKkKAnAHWPvapd4/j7HVrSkzKrduMuMJgfkgBAgHA3FjzviWXLaO30H9LrhR/kvkT1lwk2OBjGntt/msf1AxDx1+GF5D94C+5/ajmLz5c7nEB7hE/IF7zUuV9Ak5K/A49gB8iktHbI7FeWiS+aSZYO7LqmMAFcIAWk16HHP8zl3zSlxwzR06YqlQbfIIXITzdjB6Fhs3FZnqL20l9Y08loOk06XXMn/gOpEMlRhUdgnPYmAF1nM3eN/lbOq4taBdPAQpWT4IOpLx3/0l2nif9HVWOlXu4jvvA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(39860400002)(396003)(346002)(136003)(376002)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(82310400011)(46966006)(40470700004)(36840700001)(5660300002)(82740400003)(8676002)(356005)(81166007)(4326008)(8936002)(41300700001)(40460700003)(103116003)(86362001)(2906002)(40480700001)(1076003)(36860700001)(336012)(2616005)(47076005)(6666004)(36756003)(26005)(426003)(478600001)(70206006)(110136005)(70586007)(83380400001)(316002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 06:07:34.5954 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 761ad36e-31a0-46f2-c1a5-08dbd069b00d X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF000099D6.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8593 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:07:58 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780162945474429554 X-GMAIL-MSGID: 1780162945474429554 Add zynqmp_pm_efuse_access API in the ZynqMP firmware for read/write access of efuse memory. Signed-off-by: Praveen Teja Kundanala --- drivers/firmware/xilinx/zynqmp.c | 25 +++++++++++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 8 ++++++++ 2 files changed, 33 insertions(+) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 4cc1ac7f76ed..5a4f7256b9e7 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -3,6 +3,7 @@ * Xilinx Zynq MPSoC Firmware layer * * Copyright (C) 2014-2022 Xilinx, Inc. + * Copyright (C), 2022 - 2023 Advanced Micro Devices, Inc. * * Michal Simek * Davorin Mista @@ -1435,6 +1436,30 @@ int zynqmp_pm_aes_engine(const u64 address, u32 *out) } EXPORT_SYMBOL_GPL(zynqmp_pm_aes_engine); +/** + * zynqmp_pm_efuse_access - Provides access to efuse memory. + * @address: Address of the efuse params structure + * @out: Returned output value + * + * Return: Returns status, either success or error code. + */ +int zynqmp_pm_efuse_access(const u64 address, u32 *out) +{ + u32 ret_payload[PAYLOAD_ARG_CNT]; + int ret; + + if (!out) + return -EINVAL; + + ret = zynqmp_pm_invoke_fn(PM_EFUSE_ACCESS, upper_32_bits(address), + lower_32_bits(address), 0, 0, + ret_payload); + *out = ret_payload[1]; + + return ret; +} +EXPORT_SYMBOL_GPL(zynqmp_pm_efuse_access); + /** * zynqmp_pm_sha_hash - Access the SHA engine to calculate the hash * @address: Address of the data/ Address of output buffer where diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index e8b12ec8b060..4f574fab74eb 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -3,6 +3,7 @@ * Xilinx Zynq MPSoC Firmware layer * * Copyright (C) 2014-2021 Xilinx + * Copyright (C), 2022 - 2023 Advanced Micro Devices, Inc. * * Michal Simek * Davorin Mista @@ -143,6 +144,7 @@ enum pm_api_id { PM_CLOCK_GETPARENT = 44, PM_FPGA_READ = 46, PM_SECURE_AES = 47, + PM_EFUSE_ACCESS = 53, PM_FEATURE_CHECK = 63, }; @@ -534,6 +536,7 @@ int zynqmp_pm_set_requirement(const u32 node, const u32 capabilities, const u32 qos, const enum zynqmp_pm_request_ack ack); int zynqmp_pm_aes_engine(const u64 address, u32 *out); +int zynqmp_pm_efuse_access(const u64 address, u32 *out); int zynqmp_pm_sha_hash(const u64 address, const u32 size, const u32 flags); int zynqmp_pm_fpga_load(const u64 address, const u32 size, const u32 flags); int zynqmp_pm_fpga_get_status(u32 *value); @@ -727,6 +730,11 @@ static inline int zynqmp_pm_aes_engine(const u64 address, u32 *out) return -ENODEV; } +static inline int zynqmp_pm_efuse_access(const u64 address, u32 *out) +{ + return -ENODEV; +} + static inline int zynqmp_pm_sha_hash(const u64 address, const u32 size, const u32 flags) { From patchwork Thu Oct 19 06:06:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveen Teja Kundanala X-Patchwork-Id: 155324 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp185316vqb; Wed, 18 Oct 2023 23:08:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEI8t8lW3wnD+HZbHuSF5tsoROuNLBhuswoFQCJ6gsRBRUmGBXYTDQeJYHThq6nXNV/XU9H X-Received: by 2002:a17:90b:1bcc:b0:273:ec96:b6f9 with SMTP id oa12-20020a17090b1bcc00b00273ec96b6f9mr1170265pjb.25.1697695704347; Wed, 18 Oct 2023 23:08:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697695704; cv=pass; d=google.com; s=arc-20160816; b=Jid+LU5DuyN06aYrZgpwKW1h5sx5Rm9zIO2KDPH9ciZjJkr1B9KIeIpw8VNLxlRZEc TNSoD6ZeBAV6ci4lmahkqcM6Bx0nxRmzBPBaInBM/H800oBD/TMSC1I4/2Hkon8DsIF9 8M/CPJ03HWYIZAuX2Rmcw3EzT5+Lm/lwUW6t4xuR3xgoY2oy2wyPGy974AdRkPFqwQHl IdNm+r4D5Bj4IaVwFZa1j1roFQ/GSf83y/Qo22PGhaB/7vl2iFGgNblWZ1k9IQ4FLkTb 1Y33QX4kKU0IoacTwZZf8RbsAdcs5hvLJBjepVgjxUwOHsVi40+E1OXjimQ79b2u6wX/ llVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ll4I81xW1/NJc4tfzPSMQL5Qj1sLQg8pyA7nRndIY7o=; fh=h74EhHnmePiZva0LLBypFrrtUixImQL5AbqouYp3GNA=; b=VAU+LA7g88mwD/1qqHe4S5U6ZAAZKnaqov7i2iJjUN9gfSuAZdNCIKYmA+F1sKj1LS xmtEkYemE7G6c4ai3vX9iwIJfuZ/6E05tXA8szFkovIB9dOvVBDC+7GGKf8lM6kWR8Qt Nu9nohgLvgO9nZY4ReVfNc962YoVZ54UMLQvKcTggJKlwQdKbwKmd+pG9KYbtAUoSOQa 5uvgLi16oH4Vn3Uxxb4Hi7a8Z7qXGbaYE7/xjsZJ+PKZOUra0SMU9rTlcwVRISDGPyXg i/eX+FGPa9VJFytjVaUiv4Drz2RXoXC1PyV9uvcxaXLyt5S1H4kdmKvRy6DsihqMwGwH lh/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sJAFGLzl; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id fz23-20020a17090b025700b0026800178358si1376647pjb.144.2023.10.18.23.08.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sJAFGLzl; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EE0228135514; Wed, 18 Oct 2023 23:08:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344662AbjJSGHv (ORCPT + 24 others); Thu, 19 Oct 2023 02:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232710AbjJSGHl (ORCPT ); Thu, 19 Oct 2023 02:07:41 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2065.outbound.protection.outlook.com [40.107.102.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7704512F; Wed, 18 Oct 2023 23:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V9AJCQGB1KePpW/pjGve7F9P6HAEnjmr1Zt/efER19UCX1yvZ0EfVLjLFiO3rUC9GaqnkkvRRqy18JiL7PaAcX+JLj+qBuAest64KoY7hBbb5Vqsd30jWevyPhMc0NCXOcixk1iGCAF5VtgsOupaDt9UYs1YOd1WFi9qFUoPZqPRTGDtagk78TwyAuaFy7NJZx/VIpZmJ/B6PHk3maGqNfO0HybbpKfFDjzx7h3icS703EoIhVx92M3wF7VM8jHlJSMb79mGEyXXoOHelPbOq8cx1MZNVRkWgg2KmuvGK6a0paM27bYhUFFGz1mnFZRX9ZYRdo2XbALDuQdJTgbWFA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ll4I81xW1/NJc4tfzPSMQL5Qj1sLQg8pyA7nRndIY7o=; b=DQTyu4fdvpp0UWYhUZqlijdAA1jHnZYWS1pBH/mlNApWNgGh3VXpPvlznp+mGuO6ailubj/vYnTRVoXqOTFdxgsYidy9Y9fXraPSQ1J6ANxNcBuIo85GVOwomE3QExMulDqNZeN29PhH5RS87zMGKqh26cNtmSslgE9i5s+m8Z8o0+l9Nr6r76rI7qeF7Oj99Anltr7sgosq3HINWf8xFf44IBsfGMpsEfSoWFdO+5USF7jLVyeROmTXtWjp6PNNW8VYdSlOPtcPFkdaozrrx1LZPPh1O1WHW7aVkzV2zjNlATSz9k8ZN4ifMzejQmROg/07hfDBiEkuc7Z1ExPrBw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ll4I81xW1/NJc4tfzPSMQL5Qj1sLQg8pyA7nRndIY7o=; b=sJAFGLzl34K0+FegUjTHDXTMkOlazSYo4kP97lLaapFfEHocam1H5xpmMD5Uk4WgpN6a02sd2oc3Q9R0O9tvzGBbMbqHzxmrBz040M6eKAv+IlfmKt2Ve2tF3Q7YUieT5bYYzGkuiczTPN6r2PCDoUfqGG2EZb3xHXmrW+hQdl0= Received: from DS7PR03CA0219.namprd03.prod.outlook.com (2603:10b6:5:3ba::14) by SA1PR12MB7197.namprd12.prod.outlook.com (2603:10b6:806:2bd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.24; Thu, 19 Oct 2023 06:07:37 +0000 Received: from CY4PEPF0000EDD0.namprd03.prod.outlook.com (2603:10b6:5:3ba:cafe::f3) by DS7PR03CA0219.outlook.office365.com (2603:10b6:5:3ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.25 via Frontend Transport; Thu, 19 Oct 2023 06:07:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CY4PEPF0000EDD0.mail.protection.outlook.com (10.167.241.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Thu, 19 Oct 2023 06:07:36 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:34 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:23 -0500 Received: from xhdharshah40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Thu, 19 Oct 2023 01:07:21 -0500 From: Praveen Teja Kundanala To: , , , , , , , CC: Subject: [PATCH V2 2/5] dt-bindings: nvmem: Convert xlnx,zynqmp-nvmem.txt to yaml Date: Thu, 19 Oct 2023 11:36:48 +0530 Message-ID: <20231019060651.23341-3-praveen.teja.kundanala@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> References: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EDD0:EE_|SA1PR12MB7197:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f57b66c-e0d3-40dc-7a28-08dbd069b143 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JLuvl3I09Jr3LQpbFR+m1Z9wRam7dfj/icxD6nBtrK/uj/7rDf8p3f9yjabkB0qMY/xczaKQxWHoL7MOfASU42oED/ti+vqOuqGguR+qd0JI4gOIsl+lA8Z3ci+0UGFvwDt79jxdEmSlmf8KUt6EMM8S9yzEFNeq7zO2Qp+S//qOZjGNxtGLhoTc3IFmxiI2CGzxJTddbMixaFlzJZQM0ul7w7HCAgz53SWz17gy7Pa/6QcS1TuceJIx/C5V6WeMN9qejfNaQfbMFRTnf+iSJe2Q+dvAGUhnlfjufmplKOdibulsbWCuX+9CB0kbAQa+as0IVcV75kfqLrit5eW9lObwoc4ZCxiP0uMSlFgz/xhDIo9rNJjxf7SMUi/6wdsiP8JgriZ7jOlI0JjyuMm37Cr8hircPA0c9ToayXowxnKuxbxe177Vix8Fcoj9qIxnZSknGPSb/PPGBV/BJTc1KJ8b91F6vDzwXvmdJIb/8TybmfawJ+dM8Due4gFsuI36sD2nhSR8XbyXabsdKX+/64UXzT+VFdrzdWqJvO4LMpynPZj4P2zIk2UjGPClDG6ZDUB4LI47/2fi6dNr1TOHkArjxsQwtN2weLOfZTZuLmHxFFJ+MaVDSuA1FmSK7S/WCXjLlT6+Hb3agT5/rGTKekegGrPNJJzidyGQ/WitICpMWXgpO+uN1hR4OJybQ/0h9GNMZcWQMIUbKoTATKQIVz8WeupaXTK05zTtS2/Qw1itW7A1xSQJGnEeuWBuLyCqfiNfhtM3jAF4CNrSnSiWFzhdtbPRY75Zg5DeWpvUqI0= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(376002)(136003)(39860400002)(346002)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(82310400011)(40470700004)(36840700001)(46966006)(40460700003)(2906002)(40480700001)(36756003)(478600001)(110136005)(70206006)(70586007)(316002)(8936002)(6666004)(966005)(8676002)(41300700001)(103116003)(4326008)(86362001)(5660300002)(47076005)(36860700001)(2616005)(426003)(83380400001)(26005)(336012)(1076003)(356005)(81166007)(82740400003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 06:07:36.6096 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f57b66c-e0d3-40dc-7a28-08dbd069b143 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EDD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7197 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:08:22 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780162971026025607 X-GMAIL-MSGID: 1780162971026025607 Convert the xlnx,zynqmp-nvmem.txt to yaml. Signed-off-by: Praveen Teja Kundanala --- .../bindings/nvmem/xlnx,zynqmp-nvmem.txt | 46 ------------------- .../bindings/nvmem/xlnx,zynqmp-nvmem.yaml | 40 ++++++++++++++++ 2 files changed, 40 insertions(+), 46 deletions(-) delete mode 100644 Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.txt create mode 100644 Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml diff --git a/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.txt b/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.txt deleted file mode 100644 index 4881561b3a02..000000000000 --- a/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.txt +++ /dev/null @@ -1,46 +0,0 @@ --------------------------------------------------------------------------- -= Zynq UltraScale+ MPSoC nvmem firmware driver binding = --------------------------------------------------------------------------- -The nvmem_firmware node provides access to the hardware related data -like soc revision, IDCODE... etc, By using the firmware interface. - -Required properties: -- compatible: should be "xlnx,zynqmp-nvmem-fw" - -= Data cells = -Are child nodes of silicon id, bindings of which as described in -bindings/nvmem/nvmem.txt - -------- - Example -------- -firmware { - zynqmp_firmware: zynqmp-firmware { - compatible = "xlnx,zynqmp-firmware"; - method = "smc"; - - nvmem_firmware { - compatible = "xlnx,zynqmp-nvmem-fw"; - #address-cells = <1>; - #size-cells = <1>; - - /* Data cells */ - soc_revision: soc_revision { - reg = <0x0 0x4>; - }; - }; - }; -}; - -= Data consumers = -Are device nodes which consume nvmem data cells. - -For example: - pcap { - ... - - nvmem-cells = <&soc_revision>; - nvmem-cell-names = "soc_revision"; - - ... - }; diff --git a/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml b/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml new file mode 100644 index 000000000000..5d20362a0615 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/xlnx,zynqmp-nvmem.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Zynq UltraScale+ MPSoC Non Volatile Memory interface + +description: | + The ZynqMP MPSoC provides access to the hardware related data + like SOC revision, IDCODE and specific purpose efuses. + +maintainers: + - Kalyani Akula + - Praveen Teja Kundanala + +allOf: + - $ref: nvmem.yaml# + +properties: + compatible: + const: xlnx,zynqmp-nvmem-fw + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + nvmem-firmware { + compatible = "xlnx,zynqmp-nvmem-fw"; + #address-cells = <1>; + #size-cells = <1>; + + /* Data cells */ + soc_revision: soc-revision@0 { + reg = <0x0 0x4>; + }; + }; From patchwork Thu Oct 19 06:06:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveen Teja Kundanala X-Patchwork-Id: 155325 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp185354vqb; Wed, 18 Oct 2023 23:08:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5nRhW5CBHgrOxu+gI14yOK14PHpxyZ48cQvrHbiWyQ3Hk6+m5manT3XAKYgpci0mLbdfQ X-Received: by 2002:a05:6808:345:b0:3b2:ef4c:8405 with SMTP id j5-20020a056808034500b003b2ef4c8405mr1282845oie.5.1697695711248; Wed, 18 Oct 2023 23:08:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697695711; cv=pass; d=google.com; s=arc-20160816; b=Vx6NN2493QK7/q9p0nNlH1HGLoeA8p8gtq+kEnCQlHqbgwqL3WlFveLGT/8YkAeQy5 wBtp6PXtsMshl5ce2McaBbRl8NXX58wTrP8b+7wM+pOgbDRK4AmKVvujZVBG/u5E7WQ4 esF2lFkJaebMzqP5NXQelPXV83fbnDoPSNUZxSlpn3KaMPo8B+escZjEntJYD3gRtbki Bj2FFRXRLpc2twwtXlJljhtbeebIkfirpQy334eIbQNeE67b4vM++4We0i530I8zT43O GUMJ4Rg6yOeZiRLpaN07QNaRLKzdnLG5hUx34eAvpjvQuCUnEJIib9ZNJxVEQhfh5m6x 3iPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IB1hLuZ0KBt5oD3eyHQyYBt2H3Io8OVqckUg507Gr4Y=; fh=h74EhHnmePiZva0LLBypFrrtUixImQL5AbqouYp3GNA=; b=CN/Xpf6is4Hkv5ga2oOzePwFQEu26TEeLnj8AQMyyKgej42HSWAM7MH5oPjRKAax0p JFPmnLUYm6rUZls/BFkIExcis7mAXn8BigWX35XaiswZsAJH5gKU5UUPcCFXmgIlEaUd 8sQQdDQclQHw+lTpx2Fho549EZFQKBjoJkoPS5qO2OsosrRzMoFfObwWwl7n6oPnUhv1 ohWEKhSPh0krKSIFEyd05GhTkR/vSWt28kfswVPE0GO75Z9t29mQ2OChKCCQ9nW2qy39 odrHwbOvV6YIk38KUoFUdWddkcop2PfACSt53PVrkSB3iY8i4NXiv3MJLVOrdVvkWtLl 7rZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sLHZrd48; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id l62-20020a633e41000000b00585a5e3039esi3692675pga.113.2023.10.18.23.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:08:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sLHZrd48; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B7BEC81829D6; Wed, 18 Oct 2023 23:08:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233089AbjJSGH6 (ORCPT + 24 others); Thu, 19 Oct 2023 02:07:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232712AbjJSGHx (ORCPT ); Thu, 19 Oct 2023 02:07:53 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2049.outbound.protection.outlook.com [40.107.100.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A3C0199; Wed, 18 Oct 2023 23:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gz7hHIFSIDJFSLZPPyw10JCeqet3w5QcUt/xrAmdI51SlMbl6tmOeLab0a3z4q5oWJDYYn56gx6FsG3jDoxBJuPSPfesiXetumA0rOjyn6DfE8mm0FN043ATa5PXEJbW4+I7PuljA5Bf/XI1Xw7elcEbirHpuiUQ7ARHQSnlysu4+Sirt1GXX0YwL0Z0d+FMhO09fSZDU6zVh+3QQ0t8j7tHxxSuRgeOvFVEhRrwmxLSHuOKxzjP7EIaj7nmHXQ0B25FpGOMrJw7VjDvIp2+GQSvJDQ4DL0QYOQqnQ4zDAvmNWGt0EaZQzZ6GMw6vW3XUR7v+ou6p5bMsAX90PVUQw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IB1hLuZ0KBt5oD3eyHQyYBt2H3Io8OVqckUg507Gr4Y=; b=BBYH0/cXUVQSlwRzVQeFGrfUwXy8A8ujb6b5DTfiY/xANz5LtounbSON6gZF2OcMlbmgllpg3ya4QeASGJ5e4FnZF7F4kHO4Bt7w2+MwVp/R0MVpZD2OXfcfofNGg+9BiYFETZda9VtB9UcJ/D+ar3lD3smW84qUyNDMnvqgtN01ahepprZWQjoVRiYHlnViPr+JN4WTEe8+LYtJMqRJ1+CkKC2xmaa//eSZIk+OBPZcwTPglEYgxhYKFMroLiKvhkBf3S9YYXytD3IM6UYWwLX3I5qZ8DmBsNvTeXxF4BfTEe2AKIcG5+5TFsdwQCSVsEWF5P4Qw48Rx0TsZBKjaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IB1hLuZ0KBt5oD3eyHQyYBt2H3Io8OVqckUg507Gr4Y=; b=sLHZrd48ATjQ/j4QDfZIHkNzzCBjGG7vFWmt9+4W2D7Q2dquf5DDgouO7bJUygeUaGM6lP2D1PAjj8i/CfGBwxpEObS/jH4CtiB1w930tcBOmhOZ1mHZGV8iurtx1BDKddpuQDrdbLMUxVrbDgZi4aAhHYDFNk0YbCafGcCDZ1Q= Received: from DS7PR03CA0224.namprd03.prod.outlook.com (2603:10b6:5:3ba::19) by PH8PR12MB6794.namprd12.prod.outlook.com (2603:10b6:510:1c5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.44; Thu, 19 Oct 2023 06:07:39 +0000 Received: from CY4PEPF0000EDD0.namprd03.prod.outlook.com (2603:10b6:5:3ba:cafe::cc) by DS7PR03CA0224.outlook.office365.com (2603:10b6:5:3ba::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.23 via Frontend Transport; Thu, 19 Oct 2023 06:07:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CY4PEPF0000EDD0.mail.protection.outlook.com (10.167.241.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Thu, 19 Oct 2023 06:07:38 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:34 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:26 -0500 Received: from xhdharshah40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Thu, 19 Oct 2023 01:07:24 -0500 From: Praveen Teja Kundanala To: , , , , , , , CC: Subject: [PATCH V2 3/5] arm64: zynqmp: Add ZynqnMP nvmem nodes Date: Thu, 19 Oct 2023 11:36:49 +0530 Message-ID: <20231019060651.23341-4-praveen.teja.kundanala@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> References: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EDD0:EE_|PH8PR12MB6794:EE_ X-MS-Office365-Filtering-Correlation-Id: 52ac8ba2-80bf-4a2c-1cdf-08dbd069b28a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IWJRvW9I7jgE2tiW54GRJMAvrctM4a03nNb28Ug8gWWMMjM4zT5eYq4XMzHW9au7rvHenAKS+pbiUECqNwrXXmc9SeR26AHhbSZTlo/e9bokUH0155rz56NwVPoVYvtc8Z9Yq7TYcx7Sgu4iqttZAwFCUq3hTxmjMU1SGYvZqDXKl3BFbkMn8v0SfhRyh7/ta8ct1C0XabDuWlrSvQ31x7tAe4gpMpEyMXBvNaG9v/ioW1iTcL7h7QoxLKsPik7mVNP/asjBV1DfOy1YZQMYD0YIlQbR1kfGw+lkX7+/L5yq3SnxcxbMKMcopWYVquGFRyT2t/5TUurwL+/JobY40Ql8FOhqDQkZx/OMyzqoHclumh3O4qfgfUWueRlzPAZUpQ+8aXgS1DoG5N6veFhGKaDUHcFqNvHGLZZoYW4kqth/aqntS4pFniRU3xIQJbkE3YnvZf1xJgP6yxPetYXl/UdFiQDuSCxeCWnu0emCgHPOE75BmlXOBpsoUlEyYiE6gLAIpL/vnF6Ujx+nsLbZDunqh2gL4GKKJxUdT/Kcg5yZtl1CNaJBwJarj4HDC/WdNSzlvRLEXfIkbzZlHSWLqdFnd3LKzEN8VKdnx31mmEQHd+xb/ekQicbRv405fOFqrPSd+31heyx9A4eGvMqbQeGqad24UtOvdUhOYlx5xdKSDb3NPP7Ijguy5XcmGNrxQyIX3MKCXt/vwOTMebubTyX+Y2/FVcQTk0JujmbFG/POO2twPpvLkUuto3drNt/ZreSON/pslwS1ldGfK+v2mw== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(346002)(376002)(396003)(39860400002)(136003)(230922051799003)(451199024)(1800799009)(186009)(82310400011)(64100799003)(46966006)(40470700004)(36840700001)(103116003)(81166007)(47076005)(40460700003)(478600001)(356005)(5660300002)(70206006)(110136005)(70586007)(4326008)(36756003)(41300700001)(8936002)(40480700001)(6666004)(8676002)(316002)(36860700001)(83380400001)(26005)(1076003)(2906002)(2616005)(82740400003)(86362001)(336012)(426003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 06:07:38.7658 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 52ac8ba2-80bf-4a2c-1cdf-08dbd069b28a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EDD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6794 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:08:28 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780162977582441213 X-GMAIL-MSGID: 1780162977582441213 Add nvmem DT nodes for ZynqMP SOC Signed-off-by: Praveen Teja Kundanala --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 59 +++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index b61fc99cd911..b7433e6b9d6c 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -194,14 +194,69 @@ zynqmp_power: zynqmp-power { mbox-names = "tx", "rx"; }; - nvmem_firmware { + nvmem-firmware { compatible = "xlnx,zynqmp-nvmem-fw"; #address-cells = <1>; #size-cells = <1>; - soc_revision: soc_revision@0 { + soc_revision: soc-revision@0 { reg = <0x0 0x4>; }; + /* efuse access */ + efuse_dna: efuse-dna@c { + reg = <0xc 0xc>; + }; + efuse_usr0: efuse-usr0@20 { + reg = <0x20 0x4>; + }; + efuse_usr1: efuse-usr1@24 { + reg = <0x24 0x4>; + }; + efuse_usr2: efuse-usr2@28 { + reg = <0x28 0x4>; + }; + efuse_usr3: efuse-usr3@2c { + reg = <0x2c 0x4>; + }; + efuse_usr4: efuse-usr4@30 { + reg = <0x30 0x4>; + }; + efuse_usr5: efuse-usr5@34 { + reg = <0x34 0x4>; + }; + efuse_usr6: efuse-usr6@38 { + reg = <0x38 0x4>; + }; + efuse_usr7: efuse-usr7@3c { + reg = <0x3c 0x4>; + }; + efuse_miscusr: efuse-miscusr@40 { + reg = <0x40 0x4>; + }; + efuse_chash: efuse-chash@50 { + reg = <0x50 0x4>; + }; + efuse_pufmisc: efuse-pufmisc@54 { + reg = <0x54 0x4>; + }; + efuse_sec: efuse-sec@58 { + reg = <0x58 0x4>; + }; + efuse_spkid: efuse-spkid@5c { + reg = <0x5c 0x4>; + }; + efuse_aeskey: efuse-aeskey@60 { + reg = <0x60 0x20>; + }; + efuse_ppk0hash: efuse-ppk0hash@a0 { + reg = <0xa0 0x30>; + }; + efuse_ppk1hash: efuse-ppk1hash@d0 { + reg = <0xd0 0x30>; + }; + efuse_pufuser: efuse-pufuser@100 { + reg = <0x100 0x7F>; + }; }; zynqmp_pcap: pcap { From patchwork Thu Oct 19 06:06:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveen Teja Kundanala X-Patchwork-Id: 155322 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp185146vqb; Wed, 18 Oct 2023 23:08:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfRTpAHoXkv5RfihNXglgklM52w/bTBjwfciIJSsNK2DUpcegLNLOqHm9IP16bc7n3gAwU X-Received: by 2002:a05:6a00:994:b0:692:822a:2250 with SMTP id u20-20020a056a00099400b00692822a2250mr1209217pfg.17.1697695682805; Wed, 18 Oct 2023 23:08:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697695682; cv=pass; d=google.com; s=arc-20160816; b=NTcMy6do4psPceMW9ySBSTBbciRX1xCCYUxeLdzOoC1oXVqxGlfk+/erMmnqqnC3XK EIYjmcg9++zjM1tckP8u5NsS7/lXbrzmha6baQ0D2dAAQsPQyA5GlUL1eLjL3psRYevI k+8XDEspCwGG1WMelenPRAMCaVberNVOGenlXr+Ip+WzB6o6ew7vOENVJ+0QXVWOLYFv bHQ7Q8WfWOTIPIJwGHCRHLPghPRIop0NyFHB9qun14NE3NVufAizsU+eIZf2CNzSK6+v fckOVVdH3ZbzXyH6i/7VTPVNacVNgISIoH/4ZcrYNl3LYSmTyDqHUyv1FLgWAU0hFWme PTAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sasqC5F3n24UWPne3LcQUDbYxohSknvTxX8edcy5lAY=; fh=h74EhHnmePiZva0LLBypFrrtUixImQL5AbqouYp3GNA=; b=jo9xt2pTLvsZB0OeYJV9c9bejcq2qPRzfiE7SsOTGK04GAW0sfjLPu0dk1qvcNYGiU 3g64fW20+eUpwJiYpqERmDmV4IUazAMxiddgESS1GO5WJl6WUuei/5GATzFgxQ4pGEqz f3Ao3VxehBraNPFkq8t8380uQo8BgCh6hQtT4jLVkJ2BnIRV8RHP6Oj4LNLLRPWM+/TA rY7SetKa9KYmRMvTUNDp1slclQujD4ykxrMs6W9pEFMz3Otxjgq8LadmzHGzeGpL4hOV asnNrCJHpPnWTwBA60g5Z3esIvsaBvvqcfq7Xw+trTT1P1XOT5vD4qGmiju//fVrwSb4 dETA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=rzlfhvkX; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id l7-20020a056a00140700b006902507d409si5769934pfu.174.2023.10.18.23.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=rzlfhvkX; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3B73A810AF72; Wed, 18 Oct 2023 23:07:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232658AbjJSGHj (ORCPT + 24 others); Thu, 19 Oct 2023 02:07:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232670AbjJSGHh (ORCPT ); Thu, 19 Oct 2023 02:07:37 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2077.outbound.protection.outlook.com [40.107.220.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3863612F; Wed, 18 Oct 2023 23:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eHUuv0Kx1e6X3xdkyrMF56/hnPYE5ZBINKeCsd+N6iMlw3EFFXKPTl8ofcizsW3W7HxHFfwzH5aNptB/G/qQ5SpEcmppELlMHNFXUNPBLIJboUekaYkqDUqRQrRmLrVa8vCQ5KHPtkoJvjcwbuqmRbSpmYX4LacdDGi5L2mSQOoTUnxEM9A1dM90EPJV39JyJJK9tt7vp5OnxbJtH3OHIgNHi0bzmBu9F33uPaNbZaaF3UVbmkYx7Maq9zrccnP1jJad78/FKVsq7UHcGtAHJmUgydXBJ8kQe6amdxNkAEhDyKCZz3qx2Xb/rQAbLEIofqUDmWCKtkZ1cBD1ZzRj1Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sasqC5F3n24UWPne3LcQUDbYxohSknvTxX8edcy5lAY=; b=S9s2DurD90XLoKTNrvCg9hhWYBBU7yDtM2EILje6WkNESJ46f5D+RE0fCGItOADue7uQvdqLd2vpcmsYXH5MSBo6Hjux5GUbTXOUr8kYNVue1X0FpIKdOmBrKx9epyyr0SqX1Xni6GYlQsdDXUpIo7yqJixv+wZD5W24A8w4I5hFoc8Eg3lzXupmnzCChu+cireSy++yWfRJ35Jgfur7jOKxBrtVizrMtXXsAKVZda4DHsHAUBaqRY3DO1aidWT6EMxo1RhjZ9iPd7AKdy0C+MwnxvxYJbldbzpNjobAOv0wXShk/N/Z+qMmRJESWuvGdWMr0JkE4YEu4xpNjKYpRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sasqC5F3n24UWPne3LcQUDbYxohSknvTxX8edcy5lAY=; b=rzlfhvkXuDWF0f1vG/TP9LF7QGfjCIZGxkFsnklW+AFXO5VWQuA8h5lzweZiDCwpg+ISfdxTx8ltcXIg1dPAcmfX6Ig8/VmqdarRR7NGb2tA+OMM4HHvV43M2TFdGSlIO3OxNGhSjfeiXLyag6zpfNDfnMQfeFv11gl5FqXgNJo= Received: from DS7PR03CA0235.namprd03.prod.outlook.com (2603:10b6:5:3ba::30) by LV3PR12MB9234.namprd12.prod.outlook.com (2603:10b6:408:1a0::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.44; Thu, 19 Oct 2023 06:07:31 +0000 Received: from CY4PEPF0000EDD0.namprd03.prod.outlook.com (2603:10b6:5:3ba:cafe::38) by DS7PR03CA0235.outlook.office365.com (2603:10b6:5:3ba::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.21 via Frontend Transport; Thu, 19 Oct 2023 06:07:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CY4PEPF0000EDD0.mail.protection.outlook.com (10.167.241.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Thu, 19 Oct 2023 06:07:31 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:30 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:29 -0500 Received: from xhdharshah40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Thu, 19 Oct 2023 01:07:27 -0500 From: Praveen Teja Kundanala To: , , , , , , , CC: Subject: [PATCH V2 4/5] nvmem: zynqmp_nvmem: Add support to access efuse Date: Thu, 19 Oct 2023 11:36:50 +0530 Message-ID: <20231019060651.23341-5-praveen.teja.kundanala@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> References: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EDD0:EE_|LV3PR12MB9234:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f76ae6e-c629-4ea1-1625-08dbd069adf5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: soelFM+XG3D1fIe++r3eWVTlakSORIiqhB2n/hezVIZ1muxoGkkbHW5iPgfDlBhuV4ERNMobBjcP7w1rbdEQmXzH4O1RXrcmlfUrmaM2bC3G/mtv1SyD5hL8yoJ0DXviUS2mGy835oSovQBkhI8VNmjxFGrYFnjU9vveXhUqpQ0eXlALy0lsx2AOEth2f4QvPvQXGJoOQ6Hgr/Gxd/leVc51s8vd0rLymtFvjE6eU6yWdPsEWd2YCVDjbVEtPT28Y7kTeeHO5Icl0JzzXlG623Lj9crEbpaHwfsWormfIUQaPivh7L1r/9RgOSdAWJmtmSjQbEVy1iUPf3M52emQiABIHOxPD+TWGW1FLZif9zpOdgu+DVvsHEpcVBTHC+5LjC7hwxTf5QjnTFcxsGOHpw8BYOrj2A4/LCLB1eA63ZaeU07AZsSnFO49eIGTXhpS2fldPE040DAVyaa4MWpH0AzMO49YYb3bShagQAUNCxbObVN56OU8IzqaHCWevp93dpy+cFl8QXFVN7d8hrWeV+9GT93Ws5SUunoPwrGxhViT74DWyUmOgDHA6w/VjvIAwnF76hYV06dKMgU5VYM6XKc1vgxi8QN1+GhJ3P4Z4GiRFBi8K1eOcHieaeYWzzBIi97f6KW4BjMn+OYbkVsXGrGI4e3fmRoxCIPc7YwQmOq+nbZQrheS1kCQwmYTdVqTYgDBrovKgHNK9V6Faa4CCOEd7UaK/98ZRcK/zdRNROWw9nYrEs+EbzqHgA9h+d9PKCmaBasy2mZdHMkdGNWwOg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(376002)(136003)(346002)(39860400002)(396003)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(82310400011)(46966006)(36840700001)(40470700004)(83380400001)(2906002)(6666004)(86362001)(103116003)(36756003)(336012)(426003)(41300700001)(47076005)(5660300002)(81166007)(478600001)(2616005)(26005)(40460700003)(316002)(70206006)(36860700001)(8936002)(356005)(4326008)(40480700001)(8676002)(82740400003)(110136005)(1076003)(70586007)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 06:07:31.0627 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6f76ae6e-c629-4ea1-1625-08dbd069adf5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EDD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9234 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:07:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780162948295613417 X-GMAIL-MSGID: 1780162948295613417 Add support to read/write efuse memory map of ZynqMP Below are the offsets of ZynqMP efuse memory map 0 - SOC version(read only) 0xC - 0xFC -ZynqMP specific purpose efuses 0x100 - 0x17F - Physical Unclonable Function(PUF) efuses repurposed as user efuses Signed-off-by: Praveen Teja Kundanala --- drivers/nvmem/zynqmp_nvmem.c | 218 ++++++++++++++++++++++++++++++----- 1 file changed, 186 insertions(+), 32 deletions(-) diff --git a/drivers/nvmem/zynqmp_nvmem.c b/drivers/nvmem/zynqmp_nvmem.c index 7f15aa89a9d0..a3bb8c3a831b 100644 --- a/drivers/nvmem/zynqmp_nvmem.c +++ b/drivers/nvmem/zynqmp_nvmem.c @@ -1,8 +1,10 @@ // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2019 Xilinx, Inc. + * Copyright (C), 2022 - 2023 Advanced Micro Devices, Inc. */ +#include #include #include #include @@ -10,36 +12,190 @@ #include #define SILICON_REVISION_MASK 0xF +#define P_USER_0_64_UPPER_MASK GENMASK(31, 16) +#define P_USER_127_LOWER_4_BIT_MASK GENMASK(3, 0) +#define WORD_INBYTES 4 +#define SOC_VER_SIZE 0x4 +#define EFUSE_MEMORY_SIZE 0x177 +#define UNUSED_SPACE 0x8 +#define ZYNQMP_NVMEM_SIZE (SOC_VER_SIZE + UNUSED_SPACE + \ + EFUSE_MEMORY_SIZE) +#define SOC_VERSION_OFFSET 0x0 +#define EFUSE_START_OFFSET 0xC +#define EFUSE_END_OFFSET 0xFC +#define EFUSE_PUF_START_OFFSET 0x100 +#define EFUSE_PUF_MID_OFFSET 0x140 +#define EFUSE_PUF_END_OFFSET 0x17F +#define EFUSE_NOT_ENABLED 29 -struct zynqmp_nvmem_data { - struct device *dev; - struct nvmem_device *nvmem; +/* + * efuse access type + */ +enum efuse_access { + EFUSE_READ = 0, + EFUSE_WRITE +}; + +/** + * struct xilinx_efuse - the basic structure + * @src: address of the buffer to store the data to be write/read + * @size: read/write word count + * @offset: read/write offset + * @flag: 0 - represents efuse read and 1- represents efuse write + * @pufuserfuse:0 - represents non-puf efuses, offset is used for read/write + * 1 - represents puf user fuse row number. + * + * this structure stores all the required details to + * read/write efuse memory. + */ +struct xilinx_efuse { + u64 src; + u32 size; + u32 offset; + enum efuse_access flag; + u32 pufuserfuse; }; -static int zynqmp_nvmem_read(void *context, unsigned int offset, - void *val, size_t bytes) +static int zynqmp_efuse_access(void *context, unsigned int offset, + void *val, size_t bytes, enum efuse_access flag, + unsigned int pufflag) { + struct device *dev = context; + struct xilinx_efuse *efuse; + dma_addr_t dma_addr; + dma_addr_t dma_buf; + size_t words = bytes / WORD_INBYTES; int ret; - int idcode, version; - struct zynqmp_nvmem_data *priv = context; - - ret = zynqmp_pm_get_chipid(&idcode, &version); - if (ret < 0) - return ret; + int value; + char *data; + + if (bytes % WORD_INBYTES != 0) { + dev_err(dev, "Bytes requested should be word aligned\n"); + return -EOPNOTSUPP; + } + + if (pufflag == 0 && offset % WORD_INBYTES) { + dev_err(dev, "Offset requested should be word aligned\n"); + return -EOPNOTSUPP; + } + + if (pufflag == 1 && flag == EFUSE_WRITE) { + memcpy(&value, val, bytes); + if ((offset == EFUSE_PUF_START_OFFSET || + offset == EFUSE_PUF_MID_OFFSET) && + value & P_USER_0_64_UPPER_MASK) { + dev_err(dev, "Only lower 4 bytes are allowed to be programmed in P_USER_0 & P_USER_64\n"); + return -EOPNOTSUPP; + } + + if (offset == EFUSE_PUF_END_OFFSET && + (value & P_USER_127_LOWER_4_BIT_MASK)) { + dev_err(dev, "Only MSB 28 bits are allowed to be programmed for P_USER_127\n"); + return -EOPNOTSUPP; + } + } + + efuse = dma_alloc_coherent(dev, sizeof(struct xilinx_efuse), + &dma_addr, GFP_KERNEL); + if (!efuse) + return -ENOMEM; - dev_dbg(priv->dev, "Read chipid val %x %x\n", idcode, version); - *(int *)val = version & SILICON_REVISION_MASK; + data = dma_alloc_coherent(dev, sizeof(bytes), + &dma_buf, GFP_KERNEL); + if (!data) { + ret = -ENOMEM; + goto efuse_data_fail; + } + + if (flag == EFUSE_WRITE) { + memcpy(data, val, bytes); + efuse->flag = EFUSE_WRITE; + } else { + efuse->flag = EFUSE_READ; + } + + efuse->src = dma_buf; + efuse->size = words; + efuse->offset = offset; + efuse->pufuserfuse = pufflag; + + zynqmp_pm_efuse_access(dma_addr, (u32 *)&ret); + if (ret != 0) { + if (ret == EFUSE_NOT_ENABLED) { + dev_err(dev, "efuse access is not enabled\n"); + ret = -EOPNOTSUPP; + } else { + dev_err(dev, "Error in efuse read %x\n", ret); + ret = -EPERM; + } + goto efuse_access_err; + } + + if (flag == EFUSE_READ) + memcpy(val, data, bytes); +efuse_access_err: + dma_free_coherent(dev, sizeof(bytes), + data, dma_buf); +efuse_data_fail: + dma_free_coherent(dev, sizeof(struct xilinx_efuse), + efuse, dma_addr); + + return ret; +} - return 0; +static int zynqmp_nvmem_read(void *context, unsigned int offset, void *val, size_t bytes) +{ + struct device *dev = context; + int ret; + int pufflag = 0; + int idcode; + int version; + + if (offset >= EFUSE_PUF_START_OFFSET && offset <= EFUSE_PUF_END_OFFSET) + pufflag = 1; + + switch (offset) { + /* Soc version offset is zero */ + case SOC_VERSION_OFFSET: + if (bytes != SOC_VER_SIZE) + return -EOPNOTSUPP; + + ret = zynqmp_pm_get_chipid((u32 *)&idcode, (u32 *)&version); + if (ret < 0) + return ret; + + dev_dbg(dev, "Read chipid val %x %x\n", idcode, version); + *(int *)val = version & SILICON_REVISION_MASK; + break; + /* Efuse offset starts from 0xc */ + case EFUSE_START_OFFSET ... EFUSE_END_OFFSET: + case EFUSE_PUF_START_OFFSET ... EFUSE_PUF_END_OFFSET: + ret = zynqmp_efuse_access(context, offset, val, + bytes, EFUSE_READ, pufflag); + break; + default: + *(u32 *)val = 0xDEADBEEF; + ret = 0; + break; + } + + return ret; } -static struct nvmem_config econfig = { - .name = "zynqmp-nvmem", - .owner = THIS_MODULE, - .word_size = 1, - .size = 1, - .read_only = true, -}; +static int zynqmp_nvmem_write(void *context, + unsigned int offset, void *val, size_t bytes) +{ + int pufflag = 0; + + if (offset < EFUSE_START_OFFSET || offset > EFUSE_PUF_END_OFFSET) + return -EOPNOTSUPP; + + if (offset >= EFUSE_PUF_START_OFFSET && offset <= EFUSE_PUF_END_OFFSET) + pufflag = 1; + + return zynqmp_efuse_access(context, offset, + val, bytes, EFUSE_WRITE, pufflag); +} static const struct of_device_id zynqmp_nvmem_match[] = { { .compatible = "xlnx,zynqmp-nvmem-fw", }, @@ -50,21 +206,19 @@ MODULE_DEVICE_TABLE(of, zynqmp_nvmem_match); static int zynqmp_nvmem_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct zynqmp_nvmem_data *priv; - - priv = devm_kzalloc(dev, sizeof(struct zynqmp_nvmem_data), GFP_KERNEL); - if (!priv) - return -ENOMEM; + struct nvmem_config econfig = {}; - priv->dev = dev; + econfig.name = "zynqmp-nvmem"; + econfig.owner = THIS_MODULE; + econfig.word_size = 1; + econfig.size = ZYNQMP_NVMEM_SIZE; econfig.dev = dev; econfig.add_legacy_fixed_of_cells = true; + econfig.priv = dev; econfig.reg_read = zynqmp_nvmem_read; - econfig.priv = priv; - - priv->nvmem = devm_nvmem_register(dev, &econfig); + econfig.reg_write = zynqmp_nvmem_write; - return PTR_ERR_OR_ZERO(priv->nvmem); + return PTR_ERR_OR_ZERO(devm_nvmem_register(dev, &econfig)); } static struct platform_driver zynqmp_nvmem_driver = { @@ -77,6 +231,6 @@ static struct platform_driver zynqmp_nvmem_driver = { module_platform_driver(zynqmp_nvmem_driver); -MODULE_AUTHOR("Michal Simek , Nava kishore Manne "); +MODULE_AUTHOR("Kalyani Akula , Praveen Teja Kundanala "); MODULE_DESCRIPTION("ZynqMP NVMEM driver"); MODULE_LICENSE("GPL"); From patchwork Thu Oct 19 06:06:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveen Teja Kundanala X-Patchwork-Id: 155323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp185269vqb; Wed, 18 Oct 2023 23:08:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBu+RvbKCnpKBLGGunZlitvO2HpkoauWYnu3pzpt5KOOv/oj6gHHOywV9b3AFpgXER1uaa X-Received: by 2002:a05:6a20:158f:b0:16b:f3b1:c03d with SMTP id h15-20020a056a20158f00b0016bf3b1c03dmr1410987pzj.36.1697695699016; Wed, 18 Oct 2023 23:08:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697695699; cv=pass; d=google.com; s=arc-20160816; b=FmmhVxULGpAuEz8tboUyv53k9V1qQFnsNEPWhlBACSS11dFqLL4Q3riZuPXAkpzTFQ 4LlEoXQzUtDis8Jj5RcbZis+a7f59SeSInuw5wvDI1COU0SIYqaayptIx92SjhJfYDGi 8AHqehizT2nGerzwt3Bp0u6qh8GYXUfZYOTHeXNJYSfThnsZ44kO/E2+bkFv2NOBRrGL 0PnKgAwwn2Eu9mWK67jRSrgSeH9t10MxOICFX/5/nIxziW2db344op11o9gZu9cVdO9q PHqqS/l0HpbGaTKJVSoMVAAOle5uuwNdJrsETleg2uX1fIn+rOlkGRXdX0YrIznzXD2P DxNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KqiQxZyeK7Brz0Iu5BP0YywdYsG8vDPqqiZaQc5xYEA=; fh=h74EhHnmePiZva0LLBypFrrtUixImQL5AbqouYp3GNA=; b=dYy4l1S3Zlf4hyDQFF4+i09aRgwKy9HgbZ+1k3oNmf5N3+KRuf5913hEPpSr1KN7D9 D0Vf0qOu5hN85ZpKkMtag8NPrMNTvX0L7K17RcXHFS3JMnUvGgZdx0Mv+D4IA5I0X9of fk/Ir6tZwSpQWkZj4uTGNkO+q0EXKkJFVD1RRf/mt8ImW/D+AarhBC0J1uZmimB6KUMX RaLsnC7Phx4cLS2lor6QKVbbtHxbzI3ke2abo03vs5ZGDA66WRjALJHKy5Fad8fdc/Re js+7BSB/NU7T3UgsOgCR+X8b+YR8NidfYMX6A7vFPK+spvYAuBImW1dfZU2no3WIpQQ5 m00A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=soUttBYT; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id t7-20020a17090abc4700b0027d0bf1eef1si1343809pjv.98.2023.10.18.23.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:08:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=soUttBYT; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E6710810AF63; Wed, 18 Oct 2023 23:08:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232753AbjJSGHp (ORCPT + 24 others); Thu, 19 Oct 2023 02:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232690AbjJSGHk (ORCPT ); Thu, 19 Oct 2023 02:07:40 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2084.outbound.protection.outlook.com [40.107.223.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD538116; Wed, 18 Oct 2023 23:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CqRoeEedrx6losrgCCdVJJ/sDd4PJqQGotdSZCPZiBqxnO2NdBXrHc9lXwyr4Bnh70fPtNLb+kMf5FTCWT3RkirdmmQ5dgi6bfU2ulFj1NobDpUyCIYHAENo0QCEWQZeZjBD+fjlinqM8AmA8wh+lBp44lG2PS3vG4zx3n2CYnFNDuevvW/zixNvZHeRW3dIbKk8BiYMqLmXYHqbqZS3uX3QsAHb99hvsS7ENdnCyWxBGsDg9kg6po088crJIXmgYcOQcRVBQ4VhAD4Hg0iX55eSebxtcXhwaU/74atPnMdl4LqHACnLhvJrXkgUdlPZGDV6DMesAPdDbVFkslQx6g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KqiQxZyeK7Brz0Iu5BP0YywdYsG8vDPqqiZaQc5xYEA=; b=dAmQ683pBLjbgbM3ux4/T64/pIboln/dy17lSEKU3XbrbctHca957mHr6JIVp5A4pm0+VtB2g8zlxBRWNXspgcaDqkZ/boGT8no7/k4GFGCfwOuxHZV9xHSI9RbEqQMfw3CuaEcig/2BaU0PzJwg4ED/6d6LOwSxNjzu23hD5K0pfQOh1hJ1Q6hnT7YFn6KmnQS5FMfBnVc/CxiFyzsVptaHPD2PFZ9z2bC98hGVVqPN4NHZ2f19djfgiuapYZlwyklLsYzAXMSN+lt0ign9uoo9FXHzMcxgciQ/v41OzQ/vY8XmQ++1oJ3Ab3Lho5zIJzgLfvKmnbDVKdYPMpH1WA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KqiQxZyeK7Brz0Iu5BP0YywdYsG8vDPqqiZaQc5xYEA=; b=soUttBYT/mLiS2R2LxmPWi3GPwzgONR+PC+aC8QF6Aq+TrczdrutOuChWmC64b5uGXGbC4MQP/Sryj/V5IVO2j5LTcKFV/tF6Tn/EF/vt7t0NJ9gLkh9lcj0FwkAPPHZX2B2OMDfJM6tqLeE/M8q7J8TM+K0dl8omSFMxTrXUvM= Received: from DS0PR17CA0019.namprd17.prod.outlook.com (2603:10b6:8:191::8) by LV2PR12MB5798.namprd12.prod.outlook.com (2603:10b6:408:17a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Thu, 19 Oct 2023 06:07:36 +0000 Received: from DS3PEPF000099D7.namprd04.prod.outlook.com (2603:10b6:8:191:cafe::d7) by DS0PR17CA0019.outlook.office365.com (2603:10b6:8:191::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.24 via Frontend Transport; Thu, 19 Oct 2023 06:07:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS3PEPF000099D7.mail.protection.outlook.com (10.167.17.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6907.20 via Frontend Transport; Thu, 19 Oct 2023 06:07:36 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:34 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 19 Oct 2023 01:07:32 -0500 Received: from xhdharshah40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Thu, 19 Oct 2023 01:07:30 -0500 From: Praveen Teja Kundanala To: , , , , , , , CC: Subject: [PATCH V2 5/5] MAINTAINERS: Add maintainers for ZynqMP NVMEM driver Date: Thu, 19 Oct 2023 11:36:51 +0530 Message-ID: <20231019060651.23341-6-praveen.teja.kundanala@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> References: <20231019060651.23341-1-praveen.teja.kundanala@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099D7:EE_|LV2PR12MB5798:EE_ X-MS-Office365-Filtering-Correlation-Id: 6647c2ec-62e8-4154-7ee1-08dbd069b137 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ckkPxVTZoHn9qE0utLsYp1HuAkV3lozSBldTk9xAn66JPK/UIslPrqGIBAJnx/ku/3pX//wcxmblzrhynHpEpW67f7g7vqcnFyJb6ZzpPR7T+vRipAzxH41CytPUYyiyYr4fJ5idLJIDY9GIKiB48YWLdsrS3Qv8AxrBOi5vXtZXKMrFq1Jz5N3KaLu8/V/duPvMaIG1Wf0gyXBARTmotV9tlFs52kfOi4xbxpdpwE+S1sISCOoZySC+Gu78qDlh9UQ4NHKSJ/pHLC5i52DAKaYCMD8GgF68cGD1aWATcjsQnGKN3/lSKGSaDXF8EW36qJPmJldoEU28qgVAF4OYeiFWyLaCmwXWPTVBql9c794AqLyjnqFs+DULY+h40UGn1TqH9rQdBpCnBL5O8b82AkY9V4SoTDpCUU+3cxk0FjcSC51LTSD/0ITvv/9t8AwgP4Ej9aPnJOw/fq/y7qUO8beN5cGNJFWCfqmtfQqpSurURiFcJ+GK0JiOJkGyrQT6NDbA5AQFxB7r23rmeWS8gqyzjrreHbVcXL38W0tmQP1baLB7bqhSYVQQZ6t+jwmDae8wvRDc4Rd5/4oWrNFKb9P/4Wl3sh9mBvRMlFpHvPls3D96OxdGAXdig+vIpLwkUKqeYe7pVjZDHX1eqLDhg+auy818gkyvYH+tERdP6LrW1YDGc/TrnR9AHEB9/Cd0O/qIncI7rsGBl98dTwq/NOcAn/IqGcKtUCwVyLYXJlTlFcZuojrNTcxHQx1B9uuCosI6nfF7dstzXkHA+X1qbA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(376002)(346002)(39860400002)(136003)(396003)(230922051799003)(186009)(64100799003)(451199024)(82310400011)(1800799009)(46966006)(36840700001)(40470700004)(103116003)(70586007)(70206006)(316002)(426003)(47076005)(110136005)(6666004)(36756003)(336012)(4744005)(2906002)(478600001)(4326008)(8936002)(41300700001)(36860700001)(40460700003)(26005)(356005)(82740400003)(8676002)(2616005)(40480700001)(86362001)(1076003)(5660300002)(81166007)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 06:07:36.5623 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6647c2ec-62e8-4154-7ee1-08dbd069b137 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF000099D7.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5798 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:08:14 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780162965218582301 X-GMAIL-MSGID: 1780162965218582301 Add maintainers for ZynqMP NVMEM driver and driver document. Signed-off-by: Praveen Teja Kundanala --- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 90f13281d297..c3370a8a7709 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23765,6 +23765,14 @@ M: Harsha S: Maintained F: drivers/crypto/xilinx/zynqmp-sha.c +XILINX ZYNQMP NVMEM DRIVER +M: Praveen Teja Kundanala +M: Kalyani Akula +R: Michal Simek +S: Maintained +F: Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml +F: drivers/nvmem/zynqmp_nvmem.c + XILLYBUS DRIVER M: Eli Billauer L: linux-kernel@vger.kernel.org