From patchwork Wed Dec 18 13:06:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11300669 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00063921 for ; Wed, 18 Dec 2019 13:06:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D137D2176D for ; Wed, 18 Dec 2019 13:06:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NIn4VVao"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gAtIS8Y4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D137D2176D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zXrAEWUNcy30epdFATunT27mONjtjFLkUF36/E79LI4=; b=NIn4VVaoRLC3yy C3NQ1WADZlC7Kcx1PQBrXqeqgVhEq95+wm2Xug8SQ9wzCybVLcQbjIYlZaGGolxBmLMmVIyeA3UE5 +7iYERjQzhuJKON+tbop4utbRMtWGBhwZ/GdqVaWHakbqv/UFI1eq3bLilkvD3COFG4O/3c2zwqdu S/z9qwEh7MeIroB1/Gz4AyjFcChPze6En953yELdQmNnU2IiOR8NMQ1Tx3vXEwXIqsLFcAwZl7r0O c0aoqCcp7nJ/zxACEabN0XCw4roDO03hfYNj4Xk07cmUqHzsyudE/VNynuaAOBDiTb8dR3IaxOZoO Ov/B2xbRaGOewu93TWhQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ihZ2H-00029b-Dq; Wed, 18 Dec 2019 13:06:41 +0000 Received: from mail-yb1-xb43.google.com ([2607:f8b0:4864:20::b43]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ihZ28-0001y4-4m for linux-arm-kernel@lists.infradead.org; Wed, 18 Dec 2019 13:06:33 +0000 Received: by mail-yb1-xb43.google.com with SMTP id f130so695252ybb.5 for ; Wed, 18 Dec 2019 05:06:31 -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=u7mxG5yAwNcZ8Cq1r7PPlmVBfCoyrOeHrNys7o6+Upg=; b=gAtIS8Y40e2CtCol5C3ukspjDFRT53f8NQhU8u8alkLhXE+ez5VdZHRuadEUjYHKHe rK9QHYE1vhmRuMP090hZ4WVIf4ufpzGOlPOF/WSWZ8DCEm1EJ+gJJ0v6QgyMmNaqk/Ug lScZRUMllfrRTJLQgHziR6DaVqVqSVdbkhnU742Wm4LPhliy3NMGvm1zhTxo26P2CYDK Jf8ckgX9dnss2E56V4pBDBhrnQkJZYC/W7N3aFVaY0VDYY/BlQYRMjSbXTJ/UV7xeM27 8gpb1jaRUoe/6KHOfMrQ0KvItWucHwBv/Yo6dO+JpOE/OiD2HGFGnhfHWIhmSM/+CTJt VpAQ== 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=u7mxG5yAwNcZ8Cq1r7PPlmVBfCoyrOeHrNys7o6+Upg=; b=ZB3Tpz9ELh2KvUmDe2ozOlJUcOUEamYFsCS8TTgGhBvQfhXfQSaTawe5vUiyxnYkdB UqNjaDSC66pp4uwhma3XDsaFbpaCd7lh4iEhIJryPy+wpKaREWaPh1ya9xL2+guuRaA3 d7sSIXXu1vnRwpVUMbwaD9W7rsWoLlxJwrjYeJy2UKXWlkxrO83erb7ZjA4MCsKwoxCC xxInQPdih2rBU1aG4RSyrJ2tRMOH2sVMLOebJAQFP6oAQ7umRYoerXe/5JSjkHXFLmdF +qG/5zWPMM/j75wgLL4IzdlUlTaZBcoUQ/XjQde10odGaH0tB9Es/MCx1I6on/Lb8DPD D4Ig== X-Gm-Message-State: APjAAAVAYv8TCsLWIuGOtBIsKYh9QemJjeBx9UiAb2D4sDIwYR9o7sH2 Ic/a4AlAKvPfPJ9r0TO2z0RSNN0e8Po= X-Google-Smtp-Source: APXvYqz95pC6V0l8GBRfWqEiASGWI8aAKkIuqVpJZnPm3TZNYHLJeElu5fGmJrutxOzi6ru9Cj9WVA== X-Received: by 2002:a25:7557:: with SMTP id q84mr1755022ybc.76.1576674390127; Wed, 18 Dec 2019 05:06:30 -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 r64sm909603ywg.84.2019.12.18.05.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 05:06:29 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V3 2/3] arm64: dts: imx8mm: Add Crypto CAAM support Date: Wed, 18 Dec 2019 07:06:15 -0600 Message-Id: <20191218130616.13860-2-aford173@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191218130616.13860-1-aford173@gmail.com> References: <20191218130616.13860-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191218_050632_181449_B2A8BEED X-CRM114-Status: GOOD ( 13.28 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:b43 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aford173[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aford173[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Aymen Sghaier , Fabio Estevam , Herbert Xu , =?utf-8?q?Horia_Geant=C4=83?= , devicetree@vger.kernel.org, Adam Ford , Sascha Hauer , linux-kernel@vger.kernel.org, Will Deacon , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Catalin Marinas , Shawn Guo , "David S. Miller" , linux-crypto@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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. This patch places it into the device tree. Signed-off-by: Adam Ford Reviewed-by: Horia Geantă --- V3: Fix typo in commit message. no code changes V2: Don't disable it by default diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 6edbdfe2d0d7..cbe80a3f048c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -641,6 +641,36 @@ 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"; + + 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>;