Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7774050ybi; Thu, 6 Jun 2019 01:03:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTRiK80eLf9POqlnRpjz7T2ZpE85PZOWBsNQ8kJUf9em1TU3xy6d+QoC3+sFEIZRAwngjO X-Received: by 2002:a62:188d:: with SMTP id 135mr48312148pfy.222.1559808239579; Thu, 06 Jun 2019 01:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559808239; cv=none; d=google.com; s=arc-20160816; b=IjqOwwJVrdKI5MtKbYNWmgup9sG07L8g9yrLP5LONJJuiGF9oJAXmf2IeaVwJbF9eS DzWDxyl584LllXtUQerMiWboxAI91Ft+LyQoLPAj6aIbz445d4d7z9rKVZXNgjZB2Df1 uYnIs8pShE4pvcgkJzNKSRSKQwTsJk1zIiaai3Is+Cn3H83jEM5Ll1h5/maHbLJIUsD5 q9EdZPAOG6vzIDP3Nv4bCcFO88Qiod77eT/CZbyYIbaR4+2Ynd1b1bAUHReYd7w89iQZ HKjRBiD/gBulbOEhjcYNdf8iqsH9dCRA4cj0Ykmf41Qq8fT7vOGDTlEQqEUBcfkucs1P JDCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WgYQWy6fDU+E9yBIiKOTzcD+V1gDmPDMRCFViz6Fx2Q=; b=Fq9W3fXAGxAOp/TS3sNg40iOlikONuL5jHZ9US4X+8zr+dLzDAfZ+dzkswhx6Tn2mn KxsQQIsaZoVIL4Y9RsJdHf0XPKXSF0WGTbKJGvdqOdV9THPryeXvTt4T4et3ZMCk7uHD BpuF2my18/YamkY4fHDT4bAO6aKpc5qgsBazYz3uHY2fBS+fydVLbCgLK+WKRO5jGbVC szduBJWq+MtsVVGg7BlvvRqHoapjrpFPAvbxa9J9xMy5F5ybAcMCqcqxUPcjRRdvxQRW LaYVDbCFMyavUVI9bal9l1lqI+8ueOWWrfIA+Cl76FBddd54tkfyIAar9oMNKTB6MUmj pRcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w129si1245636pfw.149.2019.06.06.01.03.37; Thu, 06 Jun 2019 01:03:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726157AbfFFIDK (ORCPT + 99 others); Thu, 6 Jun 2019 04:03:10 -0400 Received: from inva021.nxp.com ([92.121.34.21]:54246 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbfFFIDK (ORCPT ); Thu, 6 Jun 2019 04:03:10 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0E911200A0C; Thu, 6 Jun 2019 10:03:08 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 016FC200A13; Thu, 6 Jun 2019 10:03:08 +0200 (CEST) Received: from fsr-ub1864-014.ea.freescale.net (fsr-ub1864-014.ea.freescale.net [10.171.95.219]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 5069B205C7; Thu, 6 Jun 2019 10:03:07 +0200 (CEST) From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu , "David S. Miller" , Shawn Guo , Sascha Hauer , Rob Herring , Mark Rutland Cc: Aymen Sghaier , Iuliana Prodan , Franck Lenormand , linux-crypto@vger.kernel.org, Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: imx7ulp: add crypto support Date: Thu, 6 Jun 2019 11:02:55 +0300 Message-Id: <20190606080255.25504-1-horia.geanta@nxp.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Iuliana Prodan Add crypto node in device tree for CAAM support. Noteworthy is that on 7ulp the interrupt line is shared between the two job rings. Signed-off-by: Iuliana Prodan Signed-off-by: Franck LENORMAND Signed-off-by: Horia Geantă --- I've just realized that this patch should be merged through the crypto tree, else bisectability could be affected due to cryptodev-2.6 commit 385cfc84a5a8 ("crypto: caam - disable some clock checks for iMX7ULP") ( https://patchwork.kernel.org/patch/10970017/ ) which should come first. arch/arm/boot/dts/imx7ulp.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index d6b711011cba..e20483714be5 100644 --- a/arch/arm/boot/dts/imx7ulp.dtsi +++ b/arch/arm/boot/dts/imx7ulp.dtsi @@ -100,6 +100,29 @@ reg = <0x40000000 0x800000>; ranges; + crypto: crypto@40240000 { + compatible = "fsl,sec-v4.0"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x40240000 0x10000>; + ranges = <0 0x40240000 0x10000>; + clocks = <&pcc2 IMX7ULP_CLK_CAAM>, + <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>; + clock-names = "aclk", "ipg"; + + sec_jr0: jr0@1000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x1000 0x1000>; + interrupts = ; + }; + + sec_jr1: jr1@2000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x2000 0x1000>; + interrupts = ; + }; + }; + lpuart4: serial@402d0000 { compatible = "fsl,imx7ulp-lpuart"; reg = <0x402d0000 0x1000>; -- 2.17.1