Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp437198rwi; Wed, 26 Oct 2022 02:55:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4I2H4bIb2QsV/cpKkzvDKXJAIQZF8V/hPp/eYO10iPrgvVdEeWwfiWL+djWDuRqHKRcRBz X-Received: by 2002:a65:63ce:0:b0:43a:2103:b7b8 with SMTP id n14-20020a6563ce000000b0043a2103b7b8mr38120925pgv.59.1666778156540; Wed, 26 Oct 2022 02:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666778156; cv=none; d=google.com; s=arc-20160816; b=PFnmoeSrdkztfFf+8oWZ+1FSm/ZXri8yK/gcnFTIgH87J/7irUO5RJg4qOkpBiNFNJ QKuQKlsKfERbpX2zLTwAQWKRROEvR13OYRx++zzplTQwsOWBnTvV0rIqzaEFOvi5eI3G Uk6/HBdvTX/W43dRvhNhJPChRLhUu5Lp2fhlMMIgYumeXIbmtdBY8X9RfGiyl2p9wO9K kcZj0aqUm3comzLIKjSr8QxL+pgTyLwZoZiuh1peyRECebf773kNn/7+Cu6hN9EZYP5A wICpQA2EkKTHFktmZZ8F2jJOBimOTfsGDShQGWAf2TaBeIsUoDqhYx7oQmOyxI9G7Bv+ uZRA== 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=GPkdV8jK8LwqKiUZHvLM5/ybW+iAGu5D/Lrre1Gni/XtwK9YVnP+vdufCfWZWgfaaZ +wdF6pTM8so/qhIGTR+NEvqa7j65IvNQPb5jSwoP3pxXq3nInGFK/JfNKsw/0nnVnHt+ wIoi7J7lgEuSP9KVDJRdAIm+VUDitEj/pJtaiNr9mNjWozqECd+nshPyr6S+7jdsEyoF 3LgVWa65bJZQI/EBxM57K2DAFPR292ugIcMRkyGzFhWjvNe8bXiqnHEJtXUEYiCxvOkF JtjA9Bpi8OvKm/1dZZnxVv1z1ku6N554yvUD4FCBUipv51ZEOxxQnkPVc3WzKkE3Wxnn LnLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="jft9/6Fm"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a17090aad4600b00202b78e2adasi1832558pjv.102.2022.10.26.02.55.45; Wed, 26 Oct 2022 02:55:56 -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="jft9/6Fm"; 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 S233409AbiJZJhY (ORCPT + 99 others); Wed, 26 Oct 2022 05:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233390AbiJZJhF (ORCPT ); Wed, 26 Oct 2022 05:37:05 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F45CBB383; Wed, 26 Oct 2022 02:37:04 -0700 (PDT) Received: from mxbox4.masterlogin.de (unknown [192.168.10.79]) by mxout4.routing.net (Postfix) with ESMTP id C13F010264B; Wed, 26 Oct 2022 09:37:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666777022; 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=jft9/6FmV9Adsms6UtY7JVDmWilcTgttU9+dCUc01tNh1vRhuRRgMnXUYRAuQ66fxqLOLE 73P4lGDaWePho4EGTa296J7d6iCDJFnT0W4g/X2UfCNsjFPHfxQ0AuU2XYs9MY0oC0YNfV 7iS7rmYmGeWfwH5Dc56bS1PuCb16L+Y= Received: from frank-G5.. (fttx-pool-80.245.72.174.bambit.de [80.245.72.174]) by mxbox4.masterlogin.de (Postfix) with ESMTPSA id 01978803B1; Wed, 26 Oct 2022 09:37:01 +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 v2 4/7] arm64: dts: mt7986: add crypto related device nodes Date: Wed, 26 Oct 2022 11:36:47 +0200 Message-Id: <20221026093650.110290-5-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221026093650.110290-1-linux@fw-web.de> References: <20221026093650.110290-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: f18327e7-a19f-4daf-b55c-de53ec6234ad 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,URIBL_BLOCKED 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 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"; -- 2.34.1