Received: by 10.223.176.46 with SMTP id f43csp1332851wra; Wed, 24 Jan 2018 14:49:02 -0800 (PST) X-Google-Smtp-Source: AH8x226ZHTpT8boezymGvmjaU2lGLbpQ13OJNOf7FfuxcWRm5shTw86tzc88Dm98zLNgNJg5ovwW X-Received: by 10.101.71.130 with SMTP id e2mr11793801pgs.396.1516834142021; Wed, 24 Jan 2018 14:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516834141; cv=none; d=google.com; s=arc-20160816; b=JLfUZNO0cHZAebp5L/s9Drm0zaLk/UwJJzXxCHgIhywNhJHk6pKPzR4J3zgHcvQrgj tql51auPbLmzWi7AdenLKskHaHQ/XWTsEWdhr67ugNAr635BbXqidFNZweI7EgzdzrdN u60kclfO4j3CwTVdp2pZ314lX6Xn7Rg+iPd8B6q5i9puwINqSiLg7ZVa7rSE2pfFWAWG SEcijIifsfHdszW3HefYnO0dKlIXyB/cDwEGzkULYipQjrUnKYC3uXs/61TCe/Qjx3uK 08MHLwcD3hnwEzKUc5IqzgfY1clNGRNpE5rIeyWfiPfckzNwTcv/xbpLd0HGwTigKJNA 91jw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Mf1Re/Hu8ApoLIEqCLamK1mh7VlO8NMQ/BB1CG/4QZk=; b=EkAza+aGNfw3mZ8wyWcG4WUOVy5eXdqKvb522la0GJMtjGw6aVguGP05rP15S+QqN/ Rhq68D+XozeUpipbR1qAa0zp8fXxsRRoaRmv0zAkjE7JVqEZw70CPi32VTD4ouGlt5s3 zjXHEcu5nvqh4uVpSIBoYXuRzCp5xHsCH9cLXiomWuqIjOlxPIX6VuMmilkGSmf592jT 44WS4M0Cmi0drJ1KkzbB/9CTblxX1LxfNVOUIOr5pM6mMsOIG5gPUAtXiOovcM53VkjX 7RJWkhtrA/ZQpTnpx81Q1z1XxbCJsozRnBP8dOxTWghZHhVT4TqYvvfRzkPFxP5vHaXz G5IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=SJbpfPj/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10-v6si849568plk.255.2018.01.24.14.48.46; Wed, 24 Jan 2018 14:49:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=SJbpfPj/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932973AbeAXWsX (ORCPT + 99 others); Wed, 24 Jan 2018 17:48:23 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:42360 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932845AbeAXWsW (ORCPT ); Wed, 24 Jan 2018 17:48:22 -0500 Received: by mail-wm0-f68.google.com with SMTP id r71so11385405wmd.1 for ; Wed, 24 Jan 2018 14:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Mf1Re/Hu8ApoLIEqCLamK1mh7VlO8NMQ/BB1CG/4QZk=; b=SJbpfPj/dDxRSEnayhNlI20ao8rmKMH6z7BlowVhkq+bbLzzLnrPd6sz/RFDn+9iIB 5pY6NV9/5l0Fe901ICmx3JmnL2d+2e6vjIkg4TYX6tUBEVJ+zjlYIqArrhfBtsFDJ6q/ CCvp+WWN4+dT1av1iIhCtxhn1o9ESiW/j/lY/Vh+AGJfem4EI45t1kF/Ydg9jMvek/oy +CFGkk6ZPjbU3N+Yo86H/b8GhwdwThO0VXRZj2PHz9KC1mYkUDFZJPZZ1UatR2F1Chun RWttEitAqH0xfjJtiM3T0QL+xaA+cAdEwBsasL1ItRN6Oi5JGYrOiTzZm3LCp0mYQD0Q RIvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Mf1Re/Hu8ApoLIEqCLamK1mh7VlO8NMQ/BB1CG/4QZk=; b=V/KDs1irX8BXRJ5GP9Z4Ihfy6hxyiTsWtmkiK8+E3HS4vWmpyDRdcfz1aGTOMkjdVs ExjVEOmS2MKrbk8X4320qG8CFZuJVeFdj/Va2wEOTPKXz4/2EVyp123m8KyZJaXXenJ0 nrg8EaKm3IpbBopAeI+JUBNyitl+01a6G8ZHgT6ooDkc2h5ylQX0pw3B/6pDAQnMXgbT Xf/bn0XWTPi7ALrhqnRU9X8IQjCqckAPbtLjrKjsYK8VL0iIABioT/dAT453zvg/DEbY kEOWKZ/OtlkjTbAO3YETaBv/ss/9ImgjDFtlJ7uDasDIGREm9QJuM6xl74okWLwI0hNq VvSQ== X-Gm-Message-State: AKwxytdyPfbhl7ps6eY9sx9vvSF5Ii6crut9mFfTq1uGA13ZGaKL7xMW u60MoWdA3py4XRqAJlk2csjOTw== X-Received: by 10.80.213.28 with SMTP id u28mr26235090edi.224.1516834100546; Wed, 24 Jan 2018 14:48:20 -0800 (PST) Received: from [192.168.192.35] ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id p57sm705951edc.33.2018.01.24.14.48.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 14:48:19 -0800 (PST) Subject: Re: [RESEND PATCH 3/6] ARM: dts: imx7s: add CAAM device node To: "Auer, Lukas" , "linux-kernel@vger.kernel.org" , "aymen.sghaier@nxp.com" , "horia.geanta@nxp.com" , "linux-crypto@vger.kernel.org" Cc: "peng.fan@nxp.com" , "davem@davemloft.net" , "ryan.harkin@linaro.org" , "fabio.estevam@nxp.com" , "rui.silva@linaro.org" , "herbert@gondor.apana.org.au" References: <1516805435-15034-1-git-send-email-pure.logic@nexus-software.ie> <1516805435-15034-4-git-send-email-pure.logic@nexus-software.ie> <1516817565.29323.74.camel@aisec.fraunhofer.de> From: Bryan O'Donoghue Message-ID: <0b3c415f-64e4-1fcf-45ef-c447d65e8e89@nexus-software.ie> Date: Wed, 24 Jan 2018 22:48:20 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <1516817565.29323.74.camel@aisec.fraunhofer.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/01/18 18:12, Auer, Lukas wrote: > On Wed, 2018-01-24 at 14:50 +0000, Bryan O'Donoghue wrote: >> From: Rui Miguel Silva >> >> Add CAAM device node to the i.MX7s device tree. >> >> Signed-off-by: Rui Miguel Silva >> Cc: "Horia Geantă" >> Cc: Aymen Sghaier >> Cc: Fabio Estevam >> Cc: Peng Fan >> Cc: Herbert Xu >> Cc: "David S. Miller" >> Cc: Lukas Auer >> Signed-off-by: Bryan O'Donoghue >> --- >> arch/arm/boot/dts/imx7s.dtsi | 26 ++++++++++++++++++++++++++ >> 1 file changed, 26 insertions(+) >> >> diff --git a/arch/arm/boot/dts/imx7s.dtsi >> b/arch/arm/boot/dts/imx7s.dtsi >> index 82ad26e..0da146e 100644 >> --- a/arch/arm/boot/dts/imx7s.dtsi >> +++ b/arch/arm/boot/dts/imx7s.dtsi >> @@ -805,6 +805,32 @@ >> status = "disabled"; >> }; >> >> + crypto: caam@30900000 { >> + compatible = "fsl,sec-v4.0"; >> + fsl,sec-era = <4>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + reg = <0x30900000 0x10000>; >> + ranges = <0 0x30900000 0x10000>; >> + clocks = <&clks IMX7D_CAAM_MEM_CLK>, >> + <&clks >> IMX7D_CAAM_ACLK_CLK>, >> + <&clks IMX7D_CAAM_IPG_CLK>, >> + <&clks IMX7D_EIM_ROOT_CLK>; >> + clock-names = "mem", "aclk", "ipg", >> "emi_slow"; >> + >> + sec_jr0: jr0@1000 { >> + compatible = "fsl,sec-v4.0- >> job-ring"; >> + reg = <0x1000 0x1000>; >> + interrupts = > IRQ_TYPE_LEVEL_HIGH>; >> + }; >> + >> + sec_jr1: jr1@2000 { >> + compatible = "fsl,sec-v4.0- >> job-ring"; >> + reg = <0x2000 0x1000>; >> + interrupts = > IRQ_TYPE_LEVEL_HIGH>; >> + }; >> + }; >> + >> flexcan1: can@30a00000 { >> compatible = "fsl,imx7d-flexcan", >> "fsl,imx6q-flexcan"; >> reg = <0x30a00000 0x10000>; > > Looking at the device tree from the NXP kernel [1], the job ring and > clock configurations should be slightly different. > > The job ring configuration has one additional job ring at offset 3000 > and interrupt 114. Yes true, that should be added. We will do that in v2, thanks for spotting. > The clock configuration has changed to just one CAAM-specific clock in > addition to the ahb clock. This also means that additional > modifications to the CAAM driver are necessary or it will complain that > it doesn't find all clocks. Sure - but, those clock changes aren't merged to upstream just yet, so we won't those changes to this DTS addition yet. Thanks for the review. --- bod