From patchwork Mon Mar 13 10:47:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 68738 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1112716wrd; Mon, 13 Mar 2023 03:59:08 -0700 (PDT) X-Google-Smtp-Source: AK7set/JrSHxQNVo1lSe/sCq2l4tsVB6LdVtyDUG5YohMU4A5w6RuirfVs0OB43nq+RffHLQEfGx X-Received: by 2002:a17:903:190:b0:19d:2542:96a4 with SMTP id z16-20020a170903019000b0019d254296a4mr43875604plg.4.1678705148461; Mon, 13 Mar 2023 03:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678705148; cv=none; d=google.com; s=arc-20160816; b=FC02vi+pwj7AsNpRsNaCnY/8CuDvYsY5zRUpsnugxTObe/aO1iJJD0IVYrM3uhx6VG 9wQiYYvLtKs/iyX2qymgYcrK0bIcfV8zEqDQqU4F5fY+eTTQwgThd0pqWtqGhYHnP/vH gP3IeeyoVd8Cx9XBrMXOOYkmGCueSwC/NndsCbqjxQ31P0nU7DvCF19+uOzzP1qpQZxA XP98bA7MBxy/AObjHlJn5Yq+KTC4DDKct49YX0t9iSKih6gbGFwLwwFWWr1wH6OYFuxX XW/AJ0QBKnyUxFDjrmfU0SbfHCCThcUHDHJ1U4n3KI8u6+unN/hvP6melA5rZi6HhA6i xPFg== 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=Drp+DNgfmOYJXmrRk5m+FDN6zK4WlOkcfGcQhr3nuX0=; b=PFHnNizoMchs1TKGnY0acrh/AlXHoQoF+6XV6o0jY4GMy8mFRYuIoop8maKcGqQR33 vPkDaKBvUyncuS631nyJD9NAXuiGORL/iSa/VL6usbRGL2H5vxtaEnqcK7WcoQrMFdZN kezQie7yEE9pirROAEat5jHgmf9k8baOtkZhJ/X1jT/zstLBy1vKL5ADBwB4bSj7V1fL 2lt8YC4Zmvv4wNVX1UlORkbL1CMHfpAtnpbGSyQp4M3W1qMrGJHn6PqAWq/M+QHlzp+A aLrEF4ErLzhkG0o0T0E/ZdTvTvAQB/B5CMrKE6E0NrLI+LH6QQBXomqsVc+nf2o/21R/ IlXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hMEA+8fV; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id li15-20020a170903294f00b001967f72c227si6235059plb.390.2023.03.13.03.58.56; Mon, 13 Mar 2023 03:59:08 -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=@ti.com header.s=ti-com-17Q1 header.b=hMEA+8fV; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbjCMKrz (ORCPT + 99 others); Mon, 13 Mar 2023 06:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjCMKrp (ORCPT ); Mon, 13 Mar 2023 06:47:45 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BC3658C27; Mon, 13 Mar 2023 03:47:37 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32DAlQYX061397; Mon, 13 Mar 2023 05:47:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678704446; bh=Drp+DNgfmOYJXmrRk5m+FDN6zK4WlOkcfGcQhr3nuX0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hMEA+8fVbdlUbjpA/+8Bu+eouPizHSg01SFT1AZ6BmSITTDtQHe0Fy1voOztlysaF f+RbE9Ka8IMns1ixf9PSGjoy4LIzXUABdukprlXTYrcShVozFXqcfRhYw+07ksMvJi TWS4lwjr2wTSXb1b9+nyJmQYz+P9hSPcENubDJlk= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DAlQ1T113788 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 05:47:26 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 05:47:25 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 13 Mar 2023 05:47:25 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32DAlPPE055040; Mon, 13 Mar 2023 05:47:25 -0500 From: Jayesh Choudhary To: , CC: , , , , , , , Subject: [PATCH 2/2] arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator Date: Mon, 13 Mar 2023 16:17:21 +0530 Message-ID: <20230313104721.407071-3-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230313104721.407071-1-j-choudhary@ti.com> References: <20230313104721.407071-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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?1760249930014461638?= X-GMAIL-MSGID: =?utf-8?q?1760249930014461638?= Add the node for SA2UL to support hardware crypto algorithms, including SHA-1/256/512, AES, 3DES and AEAD suites. Add rng node for hardware random number generator. Signed-off-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index 80a1b08c51a8..8c1474a7bd0f 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -72,6 +72,25 @@ main_pmx0: pinctrl@11c000 { pinctrl-single,function-mask = <0xffffffff>; }; + main_crypto: crypto@4e00000 { + compatible = "ti,j721e-sa2ul"; + reg = <0x00 0x4e00000 0x00 0x1200>; + power-domains = <&k3_pds 369 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x04e00000 0x00 0x04e00000 0x00 0x30000>; + + dmas = <&main_udmap 0xca40>, <&main_udmap 0x4a40>, + <&main_udmap 0x4a41>; + dma-names = "tx", "rx1", "rx2"; + + rng: rng@4e10000 { + compatible = "inside-secure,safexcel-eip76"; + reg = <0x00 0x4e10000 0x00 0x7d>; + interrupts = ; + }; + }; + main_uart0: serial@2800000 { compatible = "ti,j721e-uart", "ti,am654-uart"; reg = <0x00 0x02800000 0x00 0x200>;