Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5274060rdb; Wed, 13 Dec 2023 04:21:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRUR2jgK6BmNXYWBi7gKSEEG2np86Sm4WS/SqhbadWSowbTlse+8TAOZw7cYzV2xqu57g0 X-Received: by 2002:a17:906:738d:b0:a1d:c7a:d66c with SMTP id f13-20020a170906738d00b00a1d0c7ad66cmr2283567ejl.200.1702470076739; Wed, 13 Dec 2023 04:21:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702470076; cv=pass; d=google.com; s=arc-20160816; b=iAH6pqntcH44fMG2ThtfUzyAHRit2vWTPn2bABmV76jZxQcrSX6Pxp9NsiIvmPB1qd r4by6pyoY2TzmW1iz8Q4300ew/uVcgE6Yf98pLo84vcIEng221mC9kiIbK72UIntiIbe DxHqlrfdPEd8V8xid/Xck8tb4QunDd8nc1/euf4j58tTAb+aLpOVL7FStGxBZFU0e5fj 1gLZBTihYFr71bo7jWx4igRL+JvvmI6D7zLl3SbPUABNzG4PwpkOMbPL+0YaRJQz0HTX mykiPXSO7fAC4l3uhegdWju7ADFE3ZosF8pOGf+QMxh3/PEpwFeRZewwhXFXKOt4Fyob FuZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6F+fwkli5ySzed5nng9i/+9HcEYwL9hkkpL5cGhqaQI=; fh=DD8VcrZVd0m1qVJzoLx4VSksZyrwMrkqXeri//oOatA=; b=ds2t0Roizu1RThnqvutR8y43onH+QlmDdQuVeljTJrmrZQuoqews81RtyQuys4bQT4 krSjo7U5mBWq5VyluHGaG5Oon/Rj/R0WeE6GnLWYHOXZBWyfW7kM7dxB7CP7pE2kAMQU UcjYTCv56VjNcCJw0MLkGtDBWdDTbkHsXGqJMPzpXh8DIUjgB4yuoXR177/IF2AYTdGD JnwnP2/ZhWTcQqWDjaUhIXAp7sj8U0cXYC+7M3dXqk8YLFsxQP43OxyzpW/Ccyokq4UH WUt7gc6cO3C/H976nd8XrXNkYuBCod8JW97KIBnXBuapb+zj14Q5x4C0ZeHrQwSU82J/ Iv9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=CQhYnwhK; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-crypto+bounces-794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q10-20020a170906b28a00b00a1b8262090dsi5422199ejz.259.2023.12.13.04.21.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 04:21:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=CQhYnwhK; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-crypto+bounces-794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 672331F212E1 for ; Wed, 13 Dec 2023 12:21:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B273728E1E; Wed, 13 Dec 2023 12:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="CQhYnwhK" X-Original-To: linux-crypto@vger.kernel.org Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2063.outbound.protection.outlook.com [40.107.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E55CF; Wed, 13 Dec 2023 04:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HJJQlSVmtR7ZMMySK0PjJjuVxcXidSxSxdQkdzW/gQK8uNlYbLphSpL1ZRq62kWp3Q3mMxhgDV8b9vobJMcGYFhvsvkZJDtIOccLdKQG/0DHCiXr+AnhK3Pp1w2/PeEkB6K1dYRVRo7gbZR6IxuriBALxxoYgEgf12szCJ7IqOrwNZ5botsAB7+wGdWg4c+1zDKBiRROmJe8w6e1VdDMOBnLAWyF3zLeOfdtznHBPAKA5PEbm/1xTjTNLuqcxeszyDPJRWBA5IBag2ciNDF6JG2Ul7oEf/weRS/hYHJCNlemsM8MsBd41vehT+7UKAct337hycPPoILQbflT3PEvkA== 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=6F+fwkli5ySzed5nng9i/+9HcEYwL9hkkpL5cGhqaQI=; b=PWZFmg9RU+0g0b8Pc73i/otOWYEQRgXm8DLYmGqMH+PmrXyjvenq+Ar/nNQWIiflXES5vdoVerTHDxWsXMRuu0ZKHoBYIW3pwUjr0K3qlVL18q8OzFjKqKzpWuvisBytyWkV3EIgHntBvDB26uWL6QFoFjkzLX668SuRWO6rW16MvOFA4FBU5TYdmi1cnMF+Zdr1rlztT2IZDSCn/KlJZG4QyN334iuzFCVu9npP2bSL3pLcI5ZQbVGir3jTPRs6YhioH1InmmEyUk34H3cEsM+UTIxg2Do+7xCMB3NaK0nUlLT3exgDcOj4ilszva7Jy2ETPvb7VXtP5i0SsYX+Gw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=gondor.apana.org.au smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6F+fwkli5ySzed5nng9i/+9HcEYwL9hkkpL5cGhqaQI=; b=CQhYnwhKumfwrjPxq2SC962XqlaiI5V7xvSpv/v4kogQWTwJMldMIrj8h7+7P7TK2cLWtnoPSxRkWkFNeW/ohOHfQLY/+rbqmn8FymBrLqN393ei53lJGRrnEAq56pXHMtI6w85GGxz4XW+6f5sHux6sLHd2OsL60SGrp2vF4QksVmF6J9TYE0Ys9qIlKe3lzqg4yNiBO1p4dwzo1BW9cRmhY9W2xJqTE0NYRLdR/pSsT0iKgOMJR9oEv2hUVWE+rVnvA6wq03myWzhIAb4XXX5t6BFVjpO9nlAGKRC6w6BOkk7IZ/8NcNJa40r47QuaxoNBOYtGM82zZfNCRG5r8A== Received: from CY8PR10CA0028.namprd10.prod.outlook.com (2603:10b6:930:4b::18) by DM4PR12MB7718.namprd12.prod.outlook.com (2603:10b6:8:102::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Wed, 13 Dec 2023 12:21:07 +0000 Received: from CY4PEPF0000EE38.namprd03.prod.outlook.com (2603:10b6:930:4b:cafe::8a) by CY8PR10CA0028.outlook.office365.com (2603:10b6:930:4b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26 via Frontend Transport; Wed, 13 Dec 2023 12:21:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CY4PEPF0000EE38.mail.protection.outlook.com (10.167.242.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26 via Frontend Transport; Wed, 13 Dec 2023 12:21:06 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 13 Dec 2023 04:20:57 -0800 Received: from drhqmail202.nvidia.com (10.126.190.181) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 13 Dec 2023 04:20:57 -0800 Received: from BUILDSERVER-IO-L4T.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.181) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Wed, 13 Dec 2023 04:20:54 -0800 From: Akhil R To: , , , , , , CC: Akhil R Subject: [PATCH 1/5] dt-bindings: crypto: Add Tegra SE DT binding doc Date: Wed, 13 Dec 2023 17:50:26 +0530 Message-ID: <20231213122030.11734-2-akhilrajeev@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231213122030.11734-1-akhilrajeev@nvidia.com> References: <20231213122030.11734-1-akhilrajeev@nvidia.com> X-NVConfidentiality: public Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE38:EE_|DM4PR12MB7718:EE_ X-MS-Office365-Filtering-Correlation-Id: 4074e96a-6571-45b8-e579-08dbfbd5fb2f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rF6EmaByxpA4tYcE8SP7xoJr/208BMXjOCm80nTi2XkXcZjVbfy7W1a0LyrljEuqnR1oolN8z+2KoOMVnJmWp5h12Fk+Sjx65mAsl5Uo6kwFNgtZHBx9iPM281YnOaf5bK8YVX2KUbp3lcugtTg38TDCPlASJ7YfRIHpQ1N6sqkZhWsg38uxeyEJ6fKYbFGhYO+aJNPkm8RCZCGG+QzVlaxY8j5oBJNA/FYHTILHDplG/1TRTsxhJ5ugNY7q+dG+S+C94H8UBPRoYO+RuuJD6EfykhXTH026X/sVyFdaBil7Vh1oX1dx48IpHZdw5o+XdEVdL26kLIBHCmsypyU633DqKUKru5R3mGLnCmrCpStwsgL9Vvn/0KVL4utf+SDdLB2kuKQktMhtxdixbhcSPY4w8cWnFwmBeeHeJ/JC9qeHqnP3/QyGT5TQU65EzOs35CyqS5g+EGm3Zi85RXjzYPFQkIoTYtcDdMupGBwsvIvWE0Xzy7aJZplmM0/TmPe5p1OaSMFA7ic2vrMOnk4N3p5gOCZf6vSNwjNFkr+bgZxwY2/FqhfpYTv8nsCx7qgNznB3Pg0I3nlWW+duPV4B/YN3aUZtsbflC+xmqlyXZAwTXmNck+GDV6QezFYYH98UoC+yKolD1uzonopbk3GElX+5nLNuqRTg/XajZ6H4mi6bp0kPwCbPSjkeDTT/XwxyhTzytI5ySqGkBbDgfUbSNI9cKp8f/uY6iA7xzOQp3cLDW3KPDO5Eq46VFMSWbxrkdQlCK70HLv+tNVQxrARaK1t3tpbEfH4rypu9gwxWX5c= X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230031)(4636009)(396003)(346002)(136003)(376002)(39860400002)(230922051799003)(186009)(64100799003)(82310400011)(451199024)(1800799012)(36840700001)(40470700004)(46966006)(40480700001)(5660300002)(8676002)(4326008)(8936002)(2906002)(316002)(70586007)(110136005)(40460700003)(70206006)(36860700001)(47076005)(966005)(2616005)(107886003)(1076003)(478600001)(6666004)(356005)(336012)(426003)(36756003)(41300700001)(26005)(7636003)(83380400001)(86362001)(82740400003)(7696005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 12:21:06.2945 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4074e96a-6571-45b8-e579-08dbfbd5fb2f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE38.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7718 Add DT binding document for Tegra Security Engine. The AES and HASH algorithms are handled independently by separate engines within the Security Engine. These engines are registered as two separate crypto engine drivers. Signed-off-by: Akhil R --- .../crypto/nvidia,tegra234-se-aes.yaml | 53 +++++++++++++++++++ .../crypto/nvidia,tegra234-se-hash.yaml | 53 +++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-aes.yaml create mode 100644 Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-hash.yaml diff --git a/Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-aes.yaml b/Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-aes.yaml new file mode 100644 index 000000000000..35c2e701bd42 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-aes.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/nvidia,tegra234-se-aes.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra Security Engine for AES algorithms + +description: | + The Tegra Security Engine accelerates the following AES encryption/decryption + algorithms. + AES-ECB, AES-CBC, AES-OFB, AES-XTS, AES-CTR, AES-GCM, AES-CCM, AES-CMAC + +maintainers: + - Akhil R + +properties: + compatible: + const: nvidia,tegra234-se2-aes + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + iommus: + maxItems: 1 + + dma-coherent: true + +required: + - compatible + - reg + - clocks + - iommus + +additionalProperties: false + +examples: + - | + #include + #include + #include + + crypto@15820000 { + compatible = "nvidia,tegra234-se2-aes"; + reg = <0x15820000 0x10000>; + clocks = <&bpmp TEGRA234_CLK_SE>; + iommus = <&smmu TEGRA234_SID_SES_SE1>; + dma-coherent; + }; +... diff --git a/Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-hash.yaml b/Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-hash.yaml new file mode 100644 index 000000000000..e3848e9a53b5 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/nvidia,tegra234-se-hash.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/nvidia,tegra234-se-hash.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra Security Engine for HASH algorithms + +description: | + The Tegra Security HASH Engine accelerates the following HASH functions. + SHA1, SHA224, SHA256, SHA384, SHA512, SHA3-224, SHA3-256, SHA3-384, SHA3-512 + HMAC(SHA224), HMAC(SHA256), HMAC(SHA384), HMAC(SHA512) + +maintainers: + - Akhil R + +properties: + compatible: + const: nvidia,tegra234-se4-hash + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + iommus: + maxItems: 1 + + dma-coherent: true + +required: + - compatible + - reg + - clocks + - iommus + +additionalProperties: false + +examples: + - | + #include + #include + #include + + crypto@15840000 { + compatible = "nvidia,tegra234-se4-hash"; + reg = <0x15840000 0x10000>; + clocks = <&bpmp TEGRA234_CLK_SE>; + iommus = <&smmu TEGRA234_SID_SES_SE2>; + dma-coherent; + }; +... -- 2.17.1