Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp9802686ybc; Sat, 30 Nov 2019 14:54:51 -0800 (PST) X-Google-Smtp-Source: APXvYqx/W6Dp3kBTR9/nKm8T7vHGLzeYfG6Kkis6e27Jh79KGbJ9REq94ofshMCV3HwRiqkETPbR X-Received: by 2002:aa7:d90b:: with SMTP id a11mr8901875edr.24.1575154491293; Sat, 30 Nov 2019 14:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575154491; cv=none; d=google.com; s=arc-20160816; b=nYk1ezAUp3gctacLcXBJW+c2I11418RJEmf3e0EVbXCvVNnyREvxn1rPRSEWJtqC99 SDCsb9dIaiTap2/qPXpoo7qDhZcDITUTUATx13ZJrXn0mKIT/3exAT6gjtHWmUKUa+pU zsDlb+GllvHg8c55YrDiolKElnwPNNycS5dmTeHsZ76b1uKFNkyxxq2c+Ql5v6YzM6A/ rzC1wfJxFy+X7AvghkNI/Re4h2eZvzrwSYA3ltoSIeTTyQHinogID/37b3vnwYoFoxPG bKjEK7BQo2rvC2xKTZ0cMoDfJPCJ9huHtgSGnht1MqkmA94tG6teQCZwErgwKhHj1BOS 6lag== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w0VTjeAbtSqemOM43UsO8Hem8cE/aNSTS/UBVqjVywc=; b=XlvFzE5rJJGAstk3RxbGglpnRYLX7wnTCAcZBZ64BveAgX9oFJhyQjEmUDZz4TwScz xkMNA0W1v1gdIC3lyazr/8cGIsUeQIWXmjFz8tCsdkPSr+VqrqvOzq84tA3qDteDYNs1 QhvaJ29L9Vzm8XVZNekLBaRmKR9kugTuffHnwj7BWWJpRJvyVUO0juURixfFybMKLvy3 RuVubZd4H1F20NU8Lk59JBCC+q6wAlkQBsQdb0+53m2mVqRCbdWcTpthfyLD1vGcd+jC 7/QAH1xLYaJvVubl+zcuw9fBqIAb+/n4jouXrj2Jysbfh2nuZHL5TrBVI2deNXra8vuY IbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YiL4AirM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o28si19945739edc.353.2019.11.30.14.54.26; Sat, 30 Nov 2019 14:54:51 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YiL4AirM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727416AbfK3WwK (ORCPT + 99 others); Sat, 30 Nov 2019 17:52:10 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:37441 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727025AbfK3WwK (ORCPT ); Sat, 30 Nov 2019 17:52:10 -0500 Received: by mail-yw1-f67.google.com with SMTP id 4so11964526ywx.4; Sat, 30 Nov 2019 14:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w0VTjeAbtSqemOM43UsO8Hem8cE/aNSTS/UBVqjVywc=; b=YiL4AirMTqr6aGYwyZ/Lh+rb4JR2HtOA76xqsjBh8p9VTZB4W1DziDewVMuiAdJkjJ OkKzSzIx8F3HkzmEmJYvl2eIeguK0Z28QHhdjUlB4/ko7cASISyWnqSPn2PRjM4wUiVU bZhKc33ydp+uW+wz4pNucl/F8ZuhVVGEhjUkpugcy0hOiFL4mahvEYfpU9ORvevutFpF nOVNslyAnLBqF4YrSu5k5/Ye0bz/LSDnG0tDZhNc3+ldghQGwgs0vPnOONowz8uAGkfh 71xCP/NHJ/aB6UP27pGXaCSZZpgOUlGIcmvSJefbCI6hVG8JpAJ9Cukhkbds5TeVFzQG QNDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w0VTjeAbtSqemOM43UsO8Hem8cE/aNSTS/UBVqjVywc=; b=LeHd1MDncI3+E/uOslMWWwfKakrDvY3S7sG+aA9hER/0rEPZb9Z+/+WpulJjl+/8Cg OGHzLcrij8e7E/+9og+mTR/C9ONQq4/7gWPnkYWI/fmyYU7bT0LvEeULlzj+9mk0nkD5 37W+r7GSjr11fzxbDkA/zJf3XicsZi4MRBHHoO18lLe2JiyJKNuMYGjbFLU17DwXChLA bkYa8+hQzTpHhU5VKhaIIGJ7kcrD0hxdtSsiac9dR6aWf7iy+T5KhDXoo+3p1+PI9cml sIDXU3Y8+u302YCd6yIcSfEmC8v8mbj4KoV8L5D+f2oCueuPuYdDsrxI699UYylI6Hud 7A8A== X-Gm-Message-State: APjAAAVuQoVM5YepJs8SHEMPJrslXLIdt1eDE3+GqpwWNWwPt40vEMka A18f8+Nh9aSE/83/UujIhK3L9/4xdAo= X-Received: by 2002:a81:53c2:: with SMTP id h185mr16235156ywb.113.1575154327481; Sat, 30 Nov 2019 14:52:07 -0800 (PST) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id y9sm2028163ywc.19.2019.11.30.14.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2019 14:52:06 -0800 (PST) From: Adam Ford To: linux-crypto@vger.kernel.org Cc: Adam Ford , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , =?UTF-8?q?Horia=20Geant=C4=83?= , Aymen Sghaier , Herbert Xu , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: imx8mm: Add Crypto CAAM support Date: Sat, 30 Nov 2019 16:51:52 -0600 Message-Id: <20191130225153.30111-2-aford173@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191130225153.30111-1-aford173@gmail.com> References: <20191130225153.30111-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The i.MX8M Mini supports the same crypto engine as what is in the i.MX8MQ, but it is not currently present in the device tree, because it may be resricted by security features. This patch places in into the device tree and marks it as disabled, but anyone not restricting the CAAM with secure mode functions can mark it as enabled. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 2ed1a3537f05..68c7c1adeb60 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -723,6 +723,37 @@ status = "disabled"; }; + crypto: crypto@30900000 { + compatible = "fsl,sec-v4.0"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x30900000 0x40000>; + ranges = <0 0x30900000 0x40000>; + interrupts = ; + clocks = <&clk IMX8MM_CLK_AHB>, + <&clk IMX8MM_CLK_IPG_ROOT>; + clock-names = "aclk", "ipg"; + status = "disabled"; + + sec_jr0: jr@1000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x1000 0x1000>; + interrupts = ; + }; + + sec_jr1: jr@2000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x2000 0x1000>; + interrupts = ; + }; + + sec_jr2: jr@3000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x3000 0x1000>; + interrupts = ; + }; + }; + i2c1: i2c@30a20000 { compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c"; #address-cells = <1>; -- 2.20.1