Message ID | 20240110201216.18016-18-avromanov@salutedevices.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-22709-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1031933dyi; Wed, 10 Jan 2024 12:16:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGi0dBuWl3RvQ6ZeSbAGzvoy5JDKGLdl5s5Gy+kchCgqpUNIAIUpem11FccFOFSGL8B9oQb X-Received: by 2002:a05:620a:1aa8:b0:783:3c3c:2e49 with SMTP id bl40-20020a05620a1aa800b007833c3c2e49mr216934qkb.9.1704917805297; Wed, 10 Jan 2024 12:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704917805; cv=none; d=google.com; s=arc-20160816; b=qZBREfcjYg/xqUv8NRuK/Fh412F9K5V0PIvZLxPQLr8Yq3y8j2UbzW2hufO86cxkYX cCNXiQOsrF+DsEDGxUU+BSDrrLAbFukX9HNTneQH0U1x+ZhZHR3VteKy/0d0A/dB9eDJ jz2P2V/WWRVQPGrCDd/yNoHJNcrXjExRh7CdQSW/RpuGb9eOm7sEErlHPqhHkAgcY01d xFEcaO65WetODWdpUPPRQVb4rHOg5LjJVkOQH2+6jUYongjls9egFrBZqmvjvoj+xykd Wmp9JhgmOJDtaopj4Wp6RyHkobu4nqTUBidXhKiGmNX9tIv47JazYExd/Jl+l435flZj AoVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=Nq4668hODKW2ZBif0xdc/BqV+5a2OsgdDwzKopFV7Zo=; fh=0p1Kpk55kVc6lC+al+CDnSnq4czU1u1X+MgcW9lnQNo=; b=hklK3SZck5EDSRUO7kOQvp1Rac7TGhpXKX1tsa/IoO0WgWw7CtLPLwM3SL8lzp4bnu +YE0UjXTmm5chHFcT3SL+HQB7uQmxevppHfcD6CJZrdzcfEQ8axyesRndb3QjD5DwTNP py21CBeDnO3RMoWuxiszzXhQGgxCFJJ1+zyPBOgg7Gc992LdIvcwpYUj3lc3s+JPuFh1 BqBDnjFeT7o9SL+uHBA6kotu90X02O8jw9t0nn69gmFlSx6jVuXxqPhF0UXSg0XmbXYS p3gFeF3Hs6i+5J+HVQpEGk0QJXEeSruiTzZQ4fFC4Fb+eRjKro+H097ivwgjyRa8ZZLm mmZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b="dY1VP/Yz"; spf=pass (google.com: domain of linux-kernel+bounces-22709-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22709-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bi33-20020a05620a31a100b0078335d4541csi2086731qkb.353.2024.01.10.12.16.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 12:16:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22709-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b="dY1VP/Yz"; spf=pass (google.com: domain of linux-kernel+bounces-22709-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22709-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 18D831C2090A for <ouuuleilei@gmail.com>; Wed, 10 Jan 2024 20:16:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB2BC56477; Wed, 10 Jan 2024 20:12:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="dY1VP/Yz" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (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 5CA5851C5F; Wed, 10 Jan 2024 20:12:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 9F96110001C; Wed, 10 Jan 2024 23:12:41 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 9F96110001C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1704917561; bh=Nq4668hODKW2ZBif0xdc/BqV+5a2OsgdDwzKopFV7Zo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=dY1VP/YzXLAECz4YTMkI4nkddWWLu5oyoJPQ6W15MgoKpLAsUwKUqztUZaeCpkQSI RRqKFFvNkQxKwq4qzDAJ/ebGx3I6QF203peSSvq4RVKIM9s8yMs8M4GU5c8dOkfl07 9sAggWenZ9HrTUbKxOhLVMBP1lgUrv1FZ7JaeNRrreSffdJB2qVwIjLrjUnzZhJbdv x2F2oBSTZddwjZGeATy4NCMUV4e7lZGm6dTBDR2nDfodfsDMK/C4yADkrGnQo9vkXp +GmmN2XTca/zOPQx0Y3KcflxsDCpdFJBO9iehr55f26D4TqcYVOqKv1odRXBsTulO6 jq+An61iIhGTA== Received: from smtp.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Wed, 10 Jan 2024 23:12:41 +0300 (MSK) Received: from localhost.localdomain (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 10 Jan 2024 23:12:41 +0300 From: Alexey Romanov <avromanov@salutedevices.com> To: <narmstrong@baylibre.com>, <neil.armstrong@linaro.org>, <clabbe@baylibre.com>, <herbert@gondor.apana.org.au>, <davem@davemloft.net>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <khilman@baylibre.com>, <jbrunet@baylibre.com>, <artin.blumenstingl@googlemail.com> CC: <linux-crypto@vger.kernel.org>, <linux-amlogic@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <kernel@salutedevices.com>, Alexey Romanov <avromanov@salutedevices.com> Subject: [PATCH v1 17/24] arch: arm64: dts: meson: a1: add crypto node Date: Wed, 10 Jan 2024 23:11:33 +0300 Message-ID: <20240110201216.18016-18-avromanov@salutedevices.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240110201216.18016-1-avromanov@salutedevices.com> References: <20240110201216.18016-1-avromanov@salutedevices.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 182544 [Jan 10 2024] X-KSMG-AntiSpam-Version: 6.1.0.3 X-KSMG-AntiSpam-Envelope-From: avromanov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a, {Tracking_from_domain_doesnt_match_to}, 127.0.0.199:7.1.2;100.64.160.123:7.1.2;smtp.sberdevices.ru:5.0.1,7.1.1;salutedevices.com:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/01/10 17:01:00 #23071477 X-KSMG-AntiVirus-Status: Clean, skipped X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787735892360985156 X-GMAIL-MSGID: 1787735892360985156 |
Series |
Support more Amlogic SoC families in crypto driver
|
|
Commit Message
Alexey Romanov
Jan. 10, 2024, 8:11 p.m. UTC
This patch adds a crypto node declaration. With the
Amlogic crypto driver we can use HW implementation
of SHA1/224/256 and AES algo.
Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
---
arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
On 10/01/2024 21:11, Alexey Romanov wrote: > This patch adds a crypto node declaration. With the > Amlogic crypto driver we can use HW implementation > of SHA1/224/256 and AES algo. > > Signed-off-by: Alexey Romanov <avromanov@salutedevices.com> > --- > arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi > index cf150f568335..879e0ce0b2ea 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi > @@ -653,6 +653,14 @@ sd_emmc: sd@10000 { > power-domains = <&pwrc PWRC_SD_EMMC_ID>; > status = "disabled"; > }; > + > + crypto: crypto@6000 { > + compatible = "amlogic,g12a-crypto"; > + reg = <0x0 0x6000 0x0 0x48>; > + interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_RISING>; > + power-domains = <&pwrc PWRC_DMA_ID>; > + status = "disabled"; Why disabled ? Usually we always leave the embedded HW enabled by default. The comment is valid for the other dtsi changes, Neil > + }; > }; > > usb: usb@fe004400 {
diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi index cf150f568335..879e0ce0b2ea 100644 --- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi @@ -653,6 +653,14 @@ sd_emmc: sd@10000 { power-domains = <&pwrc PWRC_SD_EMMC_ID>; status = "disabled"; }; + + crypto: crypto@6000 { + compatible = "amlogic,g12a-crypto"; + reg = <0x0 0x6000 0x0 0x48>; + interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_RISING>; + power-domains = <&pwrc PWRC_DMA_ID>; + status = "disabled"; + }; }; usb: usb@fe004400 {