From patchwork Mon May 30 18:09:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vabhav Sharma X-Patchwork-Id: 12864860 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C84E9C433F5 for ; Mon, 30 May 2022 18:09:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242426AbiE3SJ5 (ORCPT ); Mon, 30 May 2022 14:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241124AbiE3SJx (ORCPT ); Mon, 30 May 2022 14:09:53 -0400 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20053.outbound.protection.outlook.com [40.107.2.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5845B8A054; Mon, 30 May 2022 11:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fE1JDGoyA+R81ZqSrYz6TXGukYWviSjwUI80g7cPh4VXRJOyny1MxEED6ON5dY+yyDCDQRCsL4DdVK9N/oVyxlQREQnJVRQ4yHH3nw/aABOQtkafUdgCxiQ+v8q4mfB0dCteIPxdTr8BcGZm8qnJaXkn1wD9cFJiHr7yUxPvKJwFpaJgSq0Exde1dzX3i3DYXaLPmItEE9UFwtxqyuEv7O9UmP8OroXHiMu3k5mzbNAxNqTImNU4HmHnRB58YFoodJDRNO0exCvAuff/ay8z/GPVMdIEYGW/ZqKer6Lc908ATgSI0eXdHq0squ1JgVdLteJC6zCAJd/uke8md1BFzQ== 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=uRrljajkmCpyW1/NHWx4lNkd+GqOd7VoemtMfuUIMUk=; b=WReDSNgJP5L1UCcBYFmL2b3wE8dKMMY2gMoY/RJJMXE1XVQOk9fBin9fhmtZMD90OK9udmYqinshQMf4Fjegbfh0kEJP4chXNqaNN0yZfxsXptJysNhYIr+HGIq/gTLUG7BB1QW6tUj4U5E6Lecy7GwcufkbVPnqfJi4nip8mtaU/WGBVKB/rbt72rV2RZEDe2RpBk7D0/RkaQCNbsi2qLh2z2nH6seC2BJbzFvRvJwJ2Lw3MTRC2XYzAVbgwmHYstA3RfKOk5rJCjGsu8LCCQHJliiD6twMIdIZoPcGVluEw2L6MK2stuwkOzFVXRdKQhe/B+/Cd3neUsTEEJbaXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uRrljajkmCpyW1/NHWx4lNkd+GqOd7VoemtMfuUIMUk=; b=Wpd4ug1LR4zzzwnog8dcdH/eiFbUIoEGVfKvAM7n9i4aqVzPO8RBwT2t1Vk4ybUBJsc28AViBpByoreSsyBE69v6EYVv+SiWlP7lhdVnkVvK0tO6BbUoJ6eM2A/RP3QLnCJ9097HVXIiymDZ0I+iI2U2cK5GB0WiFZpGoXXdfK4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS1PR04MB9358.eurprd04.prod.outlook.com (2603:10a6:20b:4dc::19) by VI1PR04MB4462.eurprd04.prod.outlook.com (2603:10a6:803:65::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19; Mon, 30 May 2022 18:09:49 +0000 Received: from AS1PR04MB9358.eurprd04.prod.outlook.com ([fe80::1076:5516:ef4:7c6d]) by AS1PR04MB9358.eurprd04.prod.outlook.com ([fe80::1076:5516:ef4:7c6d%9]) with mapi id 15.20.5293.019; Mon, 30 May 2022 18:09:48 +0000 From: Vabhav Sharma To: horia.geanta@nxp.com, gaurav.jain@nxp.com, pankaj.gupta@nxp.com, herbert@gondor.apana.org.au, davem@davemloft.net, shawnguo@kernel.org, robh+dt@kernel.org Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, silvano.dininno@nxp.com, V.Sethi@nxp.com Subject: [PATCH 0/3] add entropy delay device tree property Date: Mon, 30 May 2022 23:39:21 +0530 Message-Id: <20220530180924.1792399-1-vabhav.sharma@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SI2PR01CA0051.apcprd01.prod.exchangelabs.com (2603:1096:4:193::6) To AS1PR04MB9358.eurprd04.prod.outlook.com (2603:10a6:20b:4dc::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67d532b9-ae5d-4bc5-d6d0-08da4267952e X-MS-TrafficTypeDiagnostic: VI1PR04MB4462:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q7AzUVTkGj3YVe2Tuman87b5NLOiNZ2Prfvjve9Nv55A977RKSIURF9W6O5s8duB0pKhUK9Bb9YkyiEIJzITQYYBR+XDij4Kbgkdzx9ENYTj/K6LRpljm0rDW/gEsNnvvVlQoAeY+cWfy87DmtWB5WMf+vekNPBz96qZ7LekfUk5nw2s9jmHxrQWTAowdTJ1La8vh+sVuiI1QTrmHex+ZmVB/yLyKL0mdkCNhDWF6ImlEHLMDqjIMvYtIOMKKLE6evWFOflTTIjPczEcb2z7R+UNoV1DQbbiqe/iJvzujhYoBAPf9OGia0yMJCez25syKMDYIc/vSuLIbxqaJ9fyONYDNxaV0rPheCdqJUohsauN/nx2aK3osMOaVqXvisDGeDzKB4M6EtoXqWydDCojRq9dmDAJk3FilC8sdG6rsKHUwt9xveUE6C3p3o0GutsRkqdVJl0/+SDIw3L/ZFNkRAY0LrJbuzVz4mRPcYiBPM0pMWVgF9QS7wCpxt7Rm9KV1LlsbZs+cvNzxQqHaFpN1oq5CA9GDOj0BVvF/RwOVJyHzJlcJ0grCF7QRLuLplo/8DJrlVcYefFlK5qFwJ4Baj0f3ON5ydsnRJsyzQIriibtqTmyVHD/Q1EMGQg+YhCEQdoMQiLW2m7ZqQNTVpg48AdEYgGF2AwMwLHiPn25AYAX0qNIe/KPFJgBAf/gjfB+Mfzp4rvrh1U5eeVF4jzKJA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS1PR04MB9358.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(316002)(38350700002)(8936002)(36756003)(6486002)(508600001)(44832011)(86362001)(4744005)(5660300002)(38100700002)(4326008)(66946007)(66556008)(66476007)(8676002)(6512007)(26005)(6506007)(6666004)(52116002)(2906002)(55236004)(186003)(2616005)(1076003)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LsSroSnJA51P1IhpmchJVStukHkF1RR5fzzTi/Kfurv4+A/sJy6KvSDaepIXrnHgAUibgLaC5Nue4YrqyigryX2p5+f8oBioQdOnZAZ/6IEQXpmDcLd5wi/k4tLoJPE1gM/AEFMouVRh0tcQj9TPur9hWzeChJiqOchRxLBuWhN3XPbLb0MBk3LC7OjX8Dp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MK03ARzsyl/ZdFKp1tV5LU0PQI1b4Avqq+j+UirT8Y5lewJQnLQ+CjNXJIC9ysl7cdQbHRpLnuiSQjWgHmpxAFojFv+fZtwVvXEIt0A/ghoEXadYmmSghoViBmB14sh7fQw6UPP8ITl8XuJY7i1WZoTdTvr3TdfpPrc9p4nxuP27Crn3Ywxj2DoReeZiQ/uGZN+4G+6uzmkX/iLw5ktR841xCwtEDSGIJhGFOsO7PMzvcRu4OWuOt7LYHoj6FWFGI/kmdrOQ8ESVYPhl5MnPPTBPt2269TrXiFiAThhCSQSF5S59vCil0pRJQo4Ot2gq3CA5qnPacc7ktLDs4S7Jhk6v51WAoQ1NTEBNeWzznpbrvox2KOZWZy1MZjRHLSSr+aWtajYYTeaZadqfmA48PVYoTAqCfDuZvYjdNU5EQ014N2yjNWdddZKwbEcZhgVQZqbBRzaoJ/IO6jlMmpoB27hv7F1c9gqp/w== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67d532b9-ae5d-4bc5-d6d0-08da4267952e X-MS-Exchange-CrossTenant-AuthSource: AS1PR04MB9358.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2022 18:09:48.6252 (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-CrossTenant-UserPrincipalName: oZt2CBqkJ23zY6riq87IwDbVjLjsqkpwyVq5+wkNIzbGe2igEDZAhZDms7LNRrnw/TsnejyaJWTsVz4la46g7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4462 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add entropy delay device tree property,TRNG self test are run to determine the correct entropy delay. Firmware test is executed with different voltage and temperature to identify the worst case value for entropy delay on imx6sx platform, after adding a margin value(1000),entropy delay should be at least 12000. - Add dt-bindings - updated imx6sx device tree - modify caam driver to read the property Vabhav Sharma (3): dt-bindings: crypto: fsl: add entropy delay property arm: dts: imx6sx: Add entropy delay property crypto: caam: read entropy delay from device tree .../devicetree/bindings/crypto/fsl-sec4.txt | 6 ++++++ arch/arm/boot/dts/imx6sx.dtsi | 1 + drivers/crypto/caam/ctrl.c | 16 ++++++++++++---- 3 files changed, 19 insertions(+), 4 deletions(-)