Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2034141rbb; Tue, 27 Feb 2024 08:38:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW7dxvsfJlvDh4ohkfUROxxHj+u5GaBqdf0ss9cjdIPZyVq2LyZ3WPPySbzlg/Uv53xIp36ufDT77ci6R0FROEh8zE6jQ7j9TMMeiuY3w== X-Google-Smtp-Source: AGHT+IF9MxFQfXSENI30vw22QK9Le9EiWu3CKgsABYhGqrzyV+vC4sEQQ3+qaSsuzoddUAiE5hff X-Received: by 2002:a05:6808:238a:b0:3c1:af9f:a866 with SMTP id bp10-20020a056808238a00b003c1af9fa866mr1957121oib.45.1709051928449; Tue, 27 Feb 2024 08:38:48 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a22-20020a05620a103600b00787b4d3d3bcsi7516339qkk.361.2024.02.27.08.38.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:38:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-crypto+bounces-2342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2342-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0E0901C24AF2 for ; Tue, 27 Feb 2024 16:38:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6879238DEF; Tue, 27 Feb 2024 16:38:18 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2095.outbound.protection.partner.outlook.cn [139.219.17.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78D2B208A3; Tue, 27 Feb 2024 16:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.17.95 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051898; cv=fail; b=WB2NINGvVwxQC4+xqZYWn2V2HVZkB9opMeeIOyyKHZdzj5E6aDDW1dXarpZAHl8GlnMfHlN6Gc4TfeqjorUP274Nr3JWfbKbhAhAP6/BOBRRiHccMw9i5koAG4m+n54YSajv6iw+84hml3jhdqRTjHUfVTzDOLruZTfGMQ8m7yc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051898; c=relaxed/simple; bh=wfVs5+YZnoQc8CcxqlenIofRy9YTq5OUy9r4NsL1wS0=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=gkmCecv++o9I0Xe/5WIelKNKXP2WG7kjOo82zIBga62sz4P7IStGWcZJl31vhykH2JhBS9n767Ex2JsIo7IdfzrNkqhJ/HAILUXdX8ngDmkhuZnKagi1bslJcL1alPQW1D2AaeQJ8rKF3vA4ed3mKrXMa6NETR9FzrUCQdvkfmQ= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.17.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kYNjhkqe88LsiEoGYWHeycnEZ0FlOs3kE6/CS+EXz4Yv6t6lhU22JcyOQwvhk8H2BowBRIwHgnpPpRbxHO7X6vmBQ2lWZiR2mtmwbWVsXzeTQHG3w/qWvdeyFHvwPbnSPjfzjC3arb/uHxNsWZTmdzPTevxR0zD+le1hXV554aA3hIbNTpqoIvOwiePYn+FPLCdYNILbAT5cX100B+WaTuhUwbYZhbmQuAcz3vLxhKLOAzFejKjlsingMqWomFWh3+twcDX2zXzwyfoPZuAWprVXU0pHke9UCR27dRDByhNrSqhr9g0AhP0C9hptD8woKy1rbBDa8SMOqyEtIl2IHQ== 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=gvkjuJQgBaQMbXcQsb5bU6na+3fU18CU/GW7PffI/30=; b=YmtRGkm1IlpHXhYwrn1G9UWBlPaFCbUiySsXux56mtkb4kiXsnMeKdk72dcD/JC/gzMcFtt+0jJpwvgKQdtvqyOHDf4BzDukcrEB3Pn2M11KA+GDIe1UIyJAACG3sqHCDILs3bKgV9ZjpIj+CsFRf/jXWXRbXd0LibzFqJ8FBt3GiG1WyphevYZJM48xf6r/6M+y7+jTOaDMp+drKpkHNjP1Fi1aLu6Vp/idEzC4aHVu+Tcefj4qnr5xhlnHZnB4q8IdrKBwImFCxkVuFu69ZnkP+nz9s5Y1ivZGcmZaKdmW3BJU2hxkCeNTc2nsGppgFYjCUOb0K/U5WvZ/sJe5AA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from SHXPR01MB0670.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:26::16) by SHXPR01MB0685.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:27::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.42; Tue, 27 Feb 2024 16:38:08 +0000 Received: from SHXPR01MB0670.CHNPR01.prod.partner.outlook.cn ([fe80::9ffd:1956:b45a:4a5d]) by SHXPR01MB0670.CHNPR01.prod.partner.outlook.cn ([fe80::9ffd:1956:b45a:4a5d%6]) with mapi id 15.20.7249.041; Tue, 27 Feb 2024 16:38:08 +0000 From: Jia Jie Ho To: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Eugeniy Paltsev , Vinod Koul , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v3 1/6] dt-bindings: crypto: starfive: Add jh8100 support Date: Wed, 28 Feb 2024 00:37:53 +0800 Message-Id: <20240227163758.198133-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227163758.198133-1-jiajie.ho@starfivetech.com> References: <20240227163758.198133-1-jiajie.ho@starfivetech.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: NT0PR01CA0014.CHNPR01.prod.partner.outlook.cn (2406:e500:c510::16) To SHXPR01MB0670.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:26::16) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SHXPR01MB0670:EE_|SHXPR01MB0685:EE_ X-MS-Office365-Filtering-Correlation-Id: 846691b7-858d-415d-22c9-08dc37b27a98 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NflUOejmdlGd0aPEjSgCH9n9XtaGaPWSeED4g/8XRaRSXGEOOFzeAfYO1OxRhqK0NBWmY5mlYqLOeuDHHXAAELMncEDYf2ze0pQyulAYlyN+1Ad0pOsYrbvmt3Uda8PW/ujL7FWE8b8meygN9hwpp1RkN39msoUqybGG7LPSnCEpeA4vUP/HEGxoi+DGDtcocuC5723wmmHf/CyiOGQ/PlwOJ3Mvyvl8d9R65oXZPs4BYFky7oSnYkQHGwUHB4cXxOik/y9sUfbFJ6knmrc0s5rs/ODhqMg/a6mHZBqmkIL/yvsM1oryT5vvNAThJqbRK29G48ROKy936UTJrRSuc01/v+9ylD/NemTT4PEGdl6jTUmD2mGq5cU4hmlx9q3TDFA0Lnk0sCatME9QgUw/d8fFKLQgPa1fI6WDrDq1DYBURpAVhdOvp+jwSpeMLoDQlkF8459Pl7wITUQGEafVDLjE9tyWV+v0bI7gmcn9ST/xMlS/dRpDQu+0y7FHyJLRVgNpp9nP75ri21iTurpxA+SzNaajoBYQR78X6oq4ACRLBzOtDqqYFJajEpwlDfu1uJJZEzYAz9bC4bO7Z9riHTBzOdJ02N60yOUodfBvzK7N0LUjHl+XLul9wStefRijNvTD568MPuyRZtTy4jQomQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SHXPR01MB0670.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?EH2CV9SEOmj4/30CuCNEEkGB1+0zKllgLj0hJchCFWtc2BViJw5fLLmGYzJA?= =?us-ascii?Q?xqOQ3nwl2lhCN69pXaiX0dozt5K8UQVveHL9UshdklWSOE9zJq6ALp2/lNWk?= =?us-ascii?Q?/Zjp0CVF36g0S/j37IwUoB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?us-ascii?Q?Wj7k+1GP3Ws86onOlaiksIk8lnu2k7KzvUl7+R/rEPTaWoCovDxaUQvx0Y9G?= =?us-ascii?Q?9yjyOBXi5oOuF0LuwqcV+yTfAL+SpZ2i8f0NpEVIz2/aKgK4HCZCeOLxvHzq?= =?us-ascii?Q?e78lClV7CzO/vT5j8/AqLcbwebDBZidxNTvjQtbranSC1qZUn7bqmCG+JPDt?= =?us-ascii?Q?W3+5glsJNVWMCXdQK6BwLf0iQepU0XCfFYdd7g4qI32Ebcu5xWTgeJICJvVb?= =?us-ascii?Q?RfvoZVed8UUYlGgYKKR7mqom9tfNiBUsIug9Jx8jD+OvuAzNFc+RSFAOCvfP?= =?us-ascii?Q?AToVUFFp0PihBssieFvIlRVKOUHK/26ikGbW282NPhEjcNldsJz0shZ7ryg5?= =?us-ascii?Q?c3rIRlNh479HS67AIcfLNkMfeZXqLP86ExrROj/jm1sdoR3tCoF7Gg81zL/R?= =?us-ascii?Q?LdwTNyvoiKP+ybMwv7+1i4RDeVBwl/FJUSYHGqKUd/UkbpK6yMMh7kcTJB8S?= =?us-ascii?Q?tHov3EQPWKhrUNjDohLMSx8TTImxNVa8p8aVovkrxhRlAYIIX5c29quLu8f/?= =?us-ascii?Q?kIQaCwn9A5DgNR5qqpcezp+fGtulNrG/AiZkTPwt4fdcCcd4NRrwIH7uyqlC?= =?us-ascii?Q?Tg=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 846691b7-858d-415d-22c9-08dc37b27a98 X-MS-Exchange-CrossTenant-AuthSource: SHXPR01MB0670.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 16:38:08.1053 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ycJ8qfjnjfOOVT4YkV+Pukbkr901ikG81JvRujFb8MDX++zvT652wJzFCGvsyuorZWtNJTIAACfJdp/3WlIeAwpDMiHnJjW3Tc1y+HD/9fk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SHXPR01MB0685 Add compatible string and additional interrupt for StarFive JH8100 crypto engine. Signed-off-by: Jia Jie Ho --- .../crypto/starfive,jh7110-crypto.yaml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml b/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml index 71a2876bd6e4..d44d77908966 100644 --- a/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml +++ b/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml @@ -12,7 +12,9 @@ maintainers: properties: compatible: - const: starfive,jh7110-crypto + enum: + - starfive,jh8100-crypto + - starfive,jh7110-crypto reg: maxItems: 1 @@ -28,7 +30,10 @@ properties: - const: ahb interrupts: - maxItems: 1 + minItems: 1 + items: + - description: SHA2 module irq + - description: SM3 module irq resets: maxItems: 1 @@ -54,6 +59,27 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + const: starfive,jh7110-crypto + + then: + properties: + interrupts: + maxItems: 1 + + - if: + properties: + compatible: + const: starfive,jh8100-crypto + + then: + properties: + interrupts: + maxItems: 2 + examples: - | crypto: crypto@16000000 { -- 2.34.1