From patchwork Sun Nov 6 08:50:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 16093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1397561wru; Sun, 6 Nov 2022 01:51:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5BLEvI2Pm3w5JK7NUWUJtKnurxdHTJTjdB2OIRPLcHCfVHszYW34+7TvZG8HIrtjtCSHPz X-Received: by 2002:a63:f206:0:b0:446:eb31:47e0 with SMTP id v6-20020a63f206000000b00446eb3147e0mr38758809pgh.491.1667724691201; Sun, 06 Nov 2022 01:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667724691; cv=none; d=google.com; s=arc-20160816; b=0x7kwdHGvis7CGKBP3kAOjftNzawewPbscCU7B1PfQDd3D9KZDhm/S7cmvQnvbY2l2 dVLEZVH8U3og3OcmaD7TIjn3jxK85FW5p+nY/dsFNXoloDyDqSLSct/8UfkJJ6clPhp7 K9dAPKgQnv2AtDA+nEHrq1odgBQjWu4O/s9RXk6/DbLkE/8XwbEgQeBZPiz+LZThUtoP gbnTSxA9Y1h7SR1xdl78+43OiMeUTBfZACE9PU7ji/OYVQbSutDaCRAyePae6lWvvFmv vEeBA++12lq57kQHZxUm8lsYxF4nAgZ7lOjgfCa12ZdjnIE2gUQtJ08XysHJ2KQDUrIg v5qw== ARC-Message-Signature: i=1; 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=qPaMmZqaVOBbVqc55wuqKdkhRgNoXT7scgWLMFxVc9s=; b=AYp34vZn7t3mIi3+e/G0BHWeRRWvMJJDtZBmPodVvR1ZDmG7JIUocbbPkrw/j3pWag Q1O3ajt3H6QsrM2juwE2PMgC7JoXr44CdU8/Vcmm52JJHHGyxZ9qomp/lxNXVrbIEvor C/M1FdaYkG3dHqiS69Iba8MOprYGeVNB0P6nc+Xn35bXOtB+hVsuYNWz+X+dMPsBJ4eB 355Wy+V17wUdfhTJyn+jmQIqXxrwiKWeuFsxLHBaZ104XOwQrPNMgUl63mLSNa2gKBMP wg9235LMnQ8jMBNuS/TUK87W6j23mk1lcPCpJ9hXickWehmlQkwnud5vayiPJjaHYmKF zXZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="Eh30pVi/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a170902ce8900b0016dcf421fe9si7007540plg.486.2022.11.06.01.51.18; Sun, 06 Nov 2022 01:51:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="Eh30pVi/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229828AbiKFIux (ORCPT + 99 others); Sun, 6 Nov 2022 03:50:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbiKFIuq (ORCPT ); Sun, 6 Nov 2022 03:50:46 -0500 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C2682BC2; Sun, 6 Nov 2022 01:50:44 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id 8F167604D1; Sun, 6 Nov 2022 08:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1667724642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qPaMmZqaVOBbVqc55wuqKdkhRgNoXT7scgWLMFxVc9s=; b=Eh30pVi/5l1Zf4aEFcAxNLGboew1N1jSuPf4cbV8NhOkuguW+F8DGn2EhxHLLPzytjr9lu nGkkBj4oxbTfRwh7gE5Y5XqH+N+NDw0NhFGssv/4VQKC44VurpbNLIlaoU+ExYwhzi2/jV 9F+MyzRd+fnoJW+7+3SKm/62RVtaZVg= Received: from frank-G5.. (fttx-pool-80.245.79.199.bambit.de [80.245.79.199]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id D4AEE360707; Sun, 6 Nov 2022 08:50:41 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sam Shih , Vic Wu Subject: [RFC v3 04/11] arm64: dts: mt7986: add crypto related device nodes Date: Sun, 6 Nov 2022 09:50:27 +0100 Message-Id: <20221106085034.12582-5-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221106085034.12582-1-linux@fw-web.de> References: <20221106085034.12582-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: d7ac33d4-4e76-4322-8a82-3ff1893e0786 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748736085806223293?= X-GMAIL-MSGID: =?utf-8?q?1748736085806223293?= From: Sam Shih This patch adds crypto engine support for MT7986. Signed-off-by: Vic Wu Signed-off-by: Sam Shih Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 4 ++++ arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 15 +++++++++++++++ arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 4 ++++ 3 files changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts index de5d771e5251..2b5d7ea31b4d 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts +++ b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts @@ -43,6 +43,10 @@ reg_5v: regulator-5v { }; }; +&crypto { + status = "okay"; +}; + ð { status = "okay"; diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index 58bbecfbab98..1c7a973c28ca 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -205,6 +205,21 @@ trng: rng@1020f000 { status = "disabled"; }; + crypto: crypto@10320000 { + compatible = "inside-secure,safexcel-eip97"; + reg = <0 0x10320000 0 0x40000>; + interrupts = , + , + , + ; + interrupt-names = "ring0", "ring1", "ring2", "ring3"; + clocks = <&infracfg CLK_INFRA_EIP97_CK>; + clock-names = "infra_eip97_ck"; + assigned-clocks = <&topckgen CLK_TOP_EIP_B_SEL>; + assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>; + status = "disabled"; + }; + uart0: serial@11002000 { compatible = "mediatek,mt7986-uart", "mediatek,mt6577-uart"; diff --git a/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts b/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts index cd1763fa7f19..a98025112b5a 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts +++ b/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts @@ -43,6 +43,10 @@ reg_5v: regulator-5v { }; }; +&crypto { + status = "okay"; +}; + ð { status = "okay";