From patchwork Tue Mar 14 15:26:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 69699 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1829832wrd; Tue, 14 Mar 2023 08:38:49 -0700 (PDT) X-Google-Smtp-Source: AK7set8NQJb8aS8cTyDQUXzHBVzf+0SKRDCHIC8byzj/TvSvYNT2qDZYl5lq6DZnVkwiSehx8SKE X-Received: by 2002:a17:902:f691:b0:19d:1fce:c9ec with SMTP id l17-20020a170902f69100b0019d1fcec9ecmr45552404plg.37.1678808329406; Tue, 14 Mar 2023 08:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678808329; cv=none; d=google.com; s=arc-20160816; b=yG2z6AfFZ0/29rKWH58VCNvWu1jEnFyntCvlbjYQ4GhebXHXG1hGOWClulBijn6tvP 88+GCIlfh/+kwQXWgsRkgv/2EZDZaoJHg7rrunSIbga/j2Ae6jM4A863SkiuF+lpjwcP D8MMgkTOTGfoLb/DczYFiSyFpkhem2ouPUvEeDMyebLEm4/ymumJphwfhUjn2oZ/tqnT 7ppwLWXz3BW0pwVltr8+Ev4TTnbAn24v6/z2SkqIabTBb0WE44eM7eurXelbmsKJdYop fJzvfc4mHbOmsBWJ2RIieRf8IT2QtTP+BEljXIl/WS2UrEDuzsow2TgJ050Eh69k10i1 YuYg== 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=9iZDmzGcYKdwnzSPR5idaD1Gp7AU/u25eDWk+ChwTkc=; b=m+tmyRhmQAZa/Y+G4BJMNCQY1O1FwZPhR7eo87WT3jQdrQj2sGn/fFHhTW4Yb7vrz6 YvdsdhJgn1f5fcdrgPtiNgRxEuc/Cwh8G2O+djvZtZPUo5WglhgYszyX99jFvVbf+Gsl IM0t9sKxVjG2hSh8jOcmgVuKAFAbyVXwW4EMAygkbFWeaBwjtzNOQEdCcyVJ4HT/7h2h vLi5bLEJK2ShHcFJUY9gOG+zpWPh2YdorqSUjeeCB+bA2UPNd0xrtMh3S1x9GUA9RM47 JVYSVPRrwujPJs/dx5Vb8aEXaqbsYEz9UHmLfoV9Q/UE69G3bfHHJ0KNKcI0QRWmIQVI wwcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Z23FOTdi; 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 q17-20020a170902edd100b0019e6d854facsi2618322plk.349.2023.03.14.08.38.32; Tue, 14 Mar 2023 08:38:49 -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=Z23FOTdi; 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 S231503AbjCNP02 (ORCPT + 99 others); Tue, 14 Mar 2023 11:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbjCNP0Y (ORCPT ); Tue, 14 Mar 2023 11:26:24 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BA7AA8EBB; Tue, 14 Mar 2023 08:26:21 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32EFQEHk033130; Tue, 14 Mar 2023 10:26:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678807574; bh=9iZDmzGcYKdwnzSPR5idaD1Gp7AU/u25eDWk+ChwTkc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Z23FOTdia8b1so6KxFsPf+4n6p54g0hW2/KAQopEc2ucRk9dVk4l+iXOl6h4k3kfl ZJHYsqFP2JXkl+mHJhik+RnVXMMj8iC0wykesbLCx83zYkBnRcR4hz3drG7e8/Bg89 l4JLaOj/LGypNZJSAKCFpL0aISUeafwyAj3+kD1s= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32EFQEF8007507 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 14 Mar 2023 10:26:14 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 14 Mar 2023 10:26:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.2507.16 via Frontend Transport; Tue, 14 Mar 2023 10:26:13 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32EFQD3X059623; Tue, 14 Mar 2023 10:26:13 -0500 From: Jayesh Choudhary To: , CC: , , , , , , , , , Subject: [PATCH v2 1/2] arm64: dts: ti: k3-j784s4-*: Add 'ti,sci-dev-id' for NAVSS nodes Date: Tue, 14 Mar 2023 20:56:10 +0530 Message-ID: <20230314152611.140969-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230314152611.140969-1-j-choudhary@ti.com> References: <20230314152611.140969-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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760358122952108585?= X-GMAIL-MSGID: =?utf-8?q?1760358122952108585?= TISCI device ID for main_navss and mcu_navss nodes are missing in the device tree. Add them. Fixes: 4664ebd8346a ("arm64: dts: ti: Add initial support for J784S4 SoC") Signed-off-by: Jayesh Choudhary Reviewed-by: Kamlesh Gurudasani --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 1 + arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index 7edf324ac159..80a1b08c51a8 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -398,6 +398,7 @@ main_navss: bus@30000000 { #address-cells = <2>; #size-cells = <2>; ranges = <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>; + ti,sci-dev-id = <280>; dma-coherent; dma-ranges; diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi index 93952af618f6..64bd3dee14aa 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi @@ -209,6 +209,7 @@ mcu_navss: bus@28380000{ #address-cells = <2>; #size-cells = <2>; ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>; + ti,sci-dev-id = <323>; dma-coherent; dma-ranges; From patchwork Tue Mar 14 15:26:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 69694 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1829475wrd; Tue, 14 Mar 2023 08:38:04 -0700 (PDT) X-Google-Smtp-Source: AK7set8dqIJ36uGttZuL2vho2DDLuM4WAtd5z/RWAK5h9OUwDI7MM+Of+TiOIfCssfN7YW/A7E73 X-Received: by 2002:a05:6a20:690c:b0:c7:60ad:9af7 with SMTP id q12-20020a056a20690c00b000c760ad9af7mr12752329pzj.1.1678808283748; Tue, 14 Mar 2023 08:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678808283; cv=none; d=google.com; s=arc-20160816; b=glHd43ezuaOF27KirEJxEtSRRzVkypvGmygIIfRPwSrnkNszqNJ6Xs3raTDYJ+0gNZ OhetnfSVaB0GGoBlEqsLqNEJwL9llvqt5HXQwUX2fb8sLI8FCGRxZUZnua5PbszssHEP PHPkMMYC/oDBVoTq6nOAKHziyG+kdqgUwpX8BPG69XZSGxTgcEKh/robClTt4bUA4Gmi ULCLx3sbVmMKJtbXh/DYdx7J5bZP/8J89omWBGtioEi1Iq4luRQZCvV7aYPtHYfmjfO1 aEIrfH3M4nS160iF3k4CC0S5cCAafcoKEFkJHpblXaDzzcBNBf1WWzyy3uYRvZomH1oi GSvQ== 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=bUlS1XDh1SiyLkHKtty1uerUX/cPuFQFnrDu+X2hbBU=; b=YW/a8QD1Tw5PL04T4YaY1jlkocuqfBqBBFWRyJJXVnO5x+JxnbqA7DV99bwITf5ulY m2nNhyR2eLmw+uKtkXEAi3DWSXs4m9l4w2jqzP7VnmP4b3xS8W3dMyQBMIwQ/+AUalna WwVF4Qf+YYR18t5k2lJ7XIqixmQ9AzLGxs7kAllW+/wGXFcwIHWfQoO/Y7VELZdgtQVq 98GyM7wRXIbZwgMyfhc8Gy+CjiS8KDjdkCWn1TXWtVYF89nbLTuMMLDmCX2yQnDvsTXt l7P7mkjNNuSnuyZR89CouZhxBD9kwbPKzyVx/CTogEVnKeali+zil3F/tOqlzFRMGjK6 /CRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v1ROpvPo; 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 c29-20020a631c5d000000b004fbbbc81456si2407543pgm.293.2023.03.14.08.37.47; Tue, 14 Mar 2023 08:38:03 -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=v1ROpvPo; 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 S231663AbjCNP0d (ORCPT + 99 others); Tue, 14 Mar 2023 11:26:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231588AbjCNP02 (ORCPT ); Tue, 14 Mar 2023 11:26:28 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4E72A90AF; Tue, 14 Mar 2023 08:26:24 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32EFQFvp034003; Tue, 14 Mar 2023 10:26:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678807575; bh=bUlS1XDh1SiyLkHKtty1uerUX/cPuFQFnrDu+X2hbBU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=v1ROpvPoYgZhvmN0kmxNO7/Ua/Gt/K9VQ+BEewFnfIIu6Txs5LJC4wn06hKOTzRBO CBPSjPbJvi4V5AVl8Ia7eJ6d6MlZ10AiG9JqjaE49nngPVPaY+yiFJUF9sFf+1BmNG 8vjWe/zJeFimZ8qv/GM8l1GNX5an2wmxqY6aBKwY= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32EFQFQa007520 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 14 Mar 2023 10:26:15 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 14 Mar 2023 10:26:15 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) 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; Tue, 14 Mar 2023 10:26:15 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32EFQEAv017680; Tue, 14 Mar 2023 10:26:15 -0500 From: Jayesh Choudhary To: , CC: , , , , , , , , , Subject: [PATCH v2 2/2] arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator Date: Tue, 14 Mar 2023 20:56:11 +0530 Message-ID: <20230314152611.140969-3-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230314152611.140969-1-j-choudhary@ti.com> References: <20230314152611.140969-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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760358075257380904?= X-GMAIL-MSGID: =?utf-8?q?1760358075257380904?= 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 Reviewed-by: Kamlesh Gurudasani --- 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>;