Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp39914iog; Thu, 23 Jun 2022 21:48:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vwOdl2wIE8r552ihOKfboCpKswGcQ/L63OKVQSV5saRRwaJH9RywS87djJ8AsJinqyUIj8 X-Received: by 2002:a05:6a00:18a4:b0:525:532e:76de with SMTP id x36-20020a056a0018a400b00525532e76demr7867268pfh.18.1656046124304; Thu, 23 Jun 2022 21:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656046124; cv=none; d=google.com; s=arc-20160816; b=cnjAcEg4sefvFQyQ139qx8SOAIeDMe5M5hY8vVsMUI2len5/GzQzri8jPAWOpT5I/c 7oc+WxlhZACRiAvlHnBXyTmagH5gzV8vdqTW3tr1hIRWfExDCYdC1AxKRGtWlZpK2X1N JLWjWY/EvHsINH4i7eFcETqJapgoH94sH3duzwk/yNElongnwMh1rI3LO9iyaaOkeJTj 3fjlm+Kz31MQoxt8A2tw7yN+9axQu5LvUFURhorKEN1riN5eFkFumz+JFFX43HsJaXW6 /6b7ZYuiVQ+kjWtRrXIbJSKLcsz83Z0GHH3/eozVYr7lkNGWZQ4dv8GNUCX55YEkOTYK NADw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=Qr7kwL8JoQVm3lN/8hS8jovzJ7eb7o2KHm2DeVEvAWU=; b=yiwC9BxSjxOPA27yLl+Xn8l2zMO81OIznZ6eGOv3u1Wt8TW4ThMbzLwZZ6Tofe9TEz swsuW+PkTTDHZWcNaNDyIejMattjLRoLV0bB53OWSyVKAI3ME7SxvIN/BqqZrTGfD2UO ggc6YHkoSwtyaJqzJ6Pq6EU6ypZ/sPI8rylurrmGdGnVP0oqrFOzK8s+RlfPcJi8jMNQ 6gSdN3/DEB+wuI3otQVc7z2jua2iuBlfXwBOYFVNb6ULLMiJiUoV78Ruj8kyvZJN+1yW 7qodgP+EMmWWgz4lSEDTvDauEo5nJ/fOSHy1be0sluNMHho5jO/Bsnu2fRcXL9PLPEwx HjUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ta3MbIfG; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe15-20020a17090b4f8f00b001ece6b376absi4736303pjb.37.2022.06.23.21.48.32; Thu, 23 Jun 2022 21:48:44 -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=Ta3MbIfG; 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 S229598AbiFXEjT (ORCPT + 99 others); Fri, 24 Jun 2022 00:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbiFXEjS (ORCPT ); Fri, 24 Jun 2022 00:39:18 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC40651598; Thu, 23 Jun 2022 21:39:17 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 25O4d6qS068763; Thu, 23 Jun 2022 23:39:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1656045546; bh=Qr7kwL8JoQVm3lN/8hS8jovzJ7eb7o2KHm2DeVEvAWU=; h=From:To:CC:Subject:Date; b=Ta3MbIfGZIeJ9bSjXBbGrMG5kKQD0/UF6u6aKdCGmIKqzG+gHD6BGgGRSL38c4FL4 Zt0lKkjRdqn+BE1LQvzD7l0tom+b0A3sWclizsulsE1XzuAHdh+uDOqDZxjWT7Cp1N xVAyXqoB71K1SEDr9Caj/++LYIaKpPrFOSd2AZ1k= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 25O4d6qC023184 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 23 Jun 2022 23:39:06 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 23 Jun 2022 23:39:06 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 23 Jun 2022 23:39:06 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 25O4d547018862; Thu, 23 Jun 2022 23:39:05 -0500 From: Jayesh Choudhary To: CC: , , , , , , , Subject: [PATCH v2] arm64: dts: ti: k3-am62-main: Enable crypto accelerator Date: Fri, 24 Jun 2022 10:09:05 +0530 Message-ID: <20220624043905.129207-1-j-choudhary@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.0 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_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Add the node for sa3ul crypto accelerator. Signed-off-by: Jayesh Choudhary --- On local testing, crypto self-tests and tcrypt tests were passing for SHA256, SHA512, ECB-AES and CBC-AES algorithms. RNG node has not been added due to the indirect access of the hardware random number generator from OP-TEE. Changelog v1->v2: - Change the flag from TI_SCI_PD_EXCLUSIVE to TI_SCI_PD_SHARED since sa3ul hardware is also used by OP-TEE and so it should be requested using shared TI-SCI flag arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index df3b9883e887..8bb9cb5d4c1a 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -165,6 +165,19 @@ }; }; + crypto: crypto@40900000 { + compatible = "ti,am62-sa3ul"; + reg = <0x00 0x40900000 0x00 0x1200>; + power-domains = <&k3_pds 70 TI_SCI_PD_SHARED>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>; + + dmas = <&main_pktdma 0xf501 0>, <&main_pktdma 0x7506 0>, + <&main_pktdma 0x7507 0>; + dma-names = "tx", "rx1", "rx2"; + }; + main_pmx0: pinctrl@f4000 { compatible = "pinctrl-single"; reg = <0x00 0xf4000 0x00 0x2ac>; -- 2.17.1