Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp212138ybk; Tue, 19 May 2020 20:18:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBuEXQNDljkDnrxW59L/+HIScvwPBo4pxgoh8DtYV14as9chdCPXM4tE1BKdSqe6Zgfk4X X-Received: by 2002:a17:906:4088:: with SMTP id u8mr2215866ejj.500.1589944701648; Tue, 19 May 2020 20:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589944701; cv=none; d=google.com; s=arc-20160816; b=0MON6X87WN6VfBS5ju8UHFMlC6wBQm4HobMfrjqhgCNhxq/fhI/OPfWTAjnbrCf9fe D5fFpDv1zMqv5IAUfxRZVJHcVZwki9/Z+EtXKfU/SRpa2r8LoVkbTfk87giQDSEme1z+ 7WAd9dgLYnJh1Wzi+pXtT3f3wjOopIy3Xa4R+A7rnNUa9SLCUfAfPvPu/3ereejmTxRF ZZo8pIgplQmHqpsoTmz0Ewgt73Dwo+91YjWaTJPZ/KOq1YkA26oAIIEeo7adRz50ZG3z aBHvAxxOgw/+JvLkpYI5qtFzoih3DC75sXhLhcSAGYgKhWkmA/luA6KVAWbUrTrI60da O/ng== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2nEgJxLKt7sGcW4byyIraWO1xaiKoTWBDlRHFJajGbA=; b=kBW38CdxLMlAMN2SgX2H2yDdeRjVAKUCzTWK8Gp4mEiY/LQWEVTpL412FeZBYR7Ca7 6wfS3ivXxyYRFU6Oxx3/4SVSEt9rZqcmN8WPlLx/LngdDaiimboMNSTgD3c5jGjNLqEv YdXORbJij0a+oL0NiInMvj+XAtBt+lJ0Cpg/UidSWh/MmzjP16dT3qv9QF8urkSCu0yO bJ6nbqc8nG7hbSPSyByeICai/q6zNkwF8tkb4s+wpeJ5Rk7CaUtPps1FpLDFdRgCRb6P yrYzKTuSQKlhNsQT4mz/BrN+psVmLapabQHukWW3WvlN1I8UDgQPX58HCur0vIc5OKA9 MG7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="pVrZ/6JY"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id r23si727270edp.515.2020.05.19.20.17.48; Tue, 19 May 2020 20:18:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="pVrZ/6JY"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 S1728415AbgETDQu (ORCPT + 99 others); Tue, 19 May 2020 23:16:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728129AbgETDQu (ORCPT ); Tue, 19 May 2020 23:16:50 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41D5EC061A0E; Tue, 19 May 2020 20:16:50 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id u1so1190769wmn.3; Tue, 19 May 2020 20:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=2nEgJxLKt7sGcW4byyIraWO1xaiKoTWBDlRHFJajGbA=; b=pVrZ/6JYUCpdV2hhkhm7yrMiS01LBziQOrCkZ6n0GgF/zakoeC3l8pUyrUqJQSnpr5 CJWskLnBBEGyi+WQU6/AKHCItey6jDnYeEC6yEUHqUncP3LgVUErZdFoItEOxfC9O3gD OARa/Ia9GOS3xcjEeOOis//2hccJ/63PkdQqXnSphetieu/le6wV3X3ZA9zMM1WqH7KT FwnMJKe/v+GNdlPE4T5KcOCGHOU94BUjWa28lktuvIdHSf0tPCD7eAey47N5DvdvSbFB 2Nxkiqifr7JEgNuIOFkREHViK0S3cxUjcej+1WtMfP9bT4BRUB4LeBRt6gRZx4HOavtn zrDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=2nEgJxLKt7sGcW4byyIraWO1xaiKoTWBDlRHFJajGbA=; b=hD5UVDpjsx6EZpp3tAY7g5RSOskM0LnBzn+cqwRoMrWe257pI6V4dZ5kIMpFOPULIJ CFba0Ex8VEr5vR/FBXt6/MoZvSvoWsINKyurIhMdQa3xq99psWdwrwvFQeqhBxXeDbmo 1CVEe9Xi2WPPWCTvyVCCYcQM3vgEs3bPk2XBsQ5COh+74K6cTD3ceENYq8ZymkJkSPHE pTtc38uUgOGAcp7SRX2rGdLXzrTfxo12rmKLIlXlYkosXOdqvS5+xbLTdDWUF7L6oRMj uPumfnieARCgtDOx1tX0FAN1VrrQShu/zw7Z7DyDE1kwksPgO1/NCF2dE2YhR1wurKdl m0og== X-Gm-Message-State: AOAM530YKos5Jv8anRLVBsAlMQoTIuDT717aZehuyKzulQpA4dhSnM2u SHbJwubFmtI/it4P9+C1+3aMDp9JlMZI9nVKSBo= X-Received: by 2002:a7b:c413:: with SMTP id k19mr2459883wmi.124.1589944608931; Tue, 19 May 2020 20:16:48 -0700 (PDT) MIME-Version: 1.0 References: <20200516042303.6070-1-andrew.smirnov@gmail.com> In-Reply-To: From: Andrey Smirnov Date: Wed, 20 May 2020 03:16:37 +0000 Message-ID: Subject: Re: [PATCH] crypto: caam - make soc match data optional To: =?UTF-8?Q?Horia_Geant=C4=83?= Cc: "linux-crypto@vger.kernel.org" , Chris Healy , Herbert Xu , Fabio Estevam , dl-linux-imx , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, May 18, 2020 at 6:59 PM Horia Geant=C4=83 wr= ote: > > On 5/16/2020 7:23 AM, Andrey Smirnov wrote: > > Vyrbrid devices don't have any clock that need to be taken care of, so > > make clock data optional on i.MX. > > > Vybrid Security RM states that IPG clock used by CAAM > can be gated by CCM_CCGR11[CG176]. > Cool, looks like I missed this when I was looking through RM. > Clock driver needs to be updated accordingly, > and so will CAAM driver and DT node. > > I don't have a board at hand, so patch below is not tested. > I'll take it from here and test/submit appropriate patches. Thanks! > Horia > > ------ >8 ------ > > Subject: [PATCH] clk: imx: vf610: add CAAM clock > > According to Vybrid Security RM, CCM_CCGR11[CG176] can be used to > gate CAAM ipg clock. > > Signed-off-by: Horia Geant=C4=83 > --- > drivers/clk/imx/clk-vf610.c | 2 ++ > include/dt-bindings/clock/vf610-clock.h | 3 ++- > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c > index cd04e7dc1878..4f3066cf1b89 100644 > --- a/drivers/clk/imx/clk-vf610.c > +++ b/drivers/clk/imx/clk-vf610.c > @@ -439,6 +439,8 @@ static void __init vf610_clocks_init(struct device_no= de *ccm_node) > clk[VF610_CLK_DAP] =3D imx_clk_gate("dap", "platform_bus", CCM_CC= SR, 24); > clk[VF610_CLK_OCOTP] =3D imx_clk_gate("ocotp", "ipg_bus", CCM_CCG= R6, CCM_CCGRx_CGn(5)); > > + clk[VF610_CLK_CAAM] =3D imx_clk_gate2("caam", "ipg_bus", CCM_CCGR= 11, CCM_CCGRx_CGn(0)); > + > imx_check_clocks(clk, ARRAY_SIZE(clk)); > > clk_set_parent(clk[VF610_CLK_QSPI0_SEL], clk[VF610_CLK_PLL1_PFD4]= ); > diff --git a/include/dt-bindings/clock/vf610-clock.h b/include/dt-binding= s/clock/vf610-clock.h > index 95394f35a74a..0f2d60e884dc 100644 > --- a/include/dt-bindings/clock/vf610-clock.h > +++ b/include/dt-bindings/clock/vf610-clock.h > @@ -195,6 +195,7 @@ > #define VF610_CLK_WKPU 186 > #define VF610_CLK_TCON0 187 > #define VF610_CLK_TCON1 188 > -#define VF610_CLK_END 189 > +#define VF610_CLK_CAAM 189 > +#define VF610_CLK_END 190 > > #endif /* __DT_BINDINGS_CLOCK_VF610_H */ > -- > 2.17.1