Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp131525ybt; Thu, 18 Jun 2020 20:40:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOgaPKBUxtO+Ju2Hoz57GpIYe8G3P/QbNDYLoo0QiBbZStiG75xhZ7vhWQ8EovtWgpIi8i X-Received: by 2002:a17:906:b7cd:: with SMTP id fy13mr1670325ejb.443.1592538011546; Thu, 18 Jun 2020 20:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592538011; cv=none; d=google.com; s=arc-20160816; b=uXbP0UVY3QHIYEbtVW6NZJantLau8F2CsKSUBJTZsiW+BOqyDuLWdk7+/cT+EIGJEh nnJY/dbRGtR6iAwNeRs19UiTiaKlIuCRjZE0gjc+oNDjRKMGVduHfqbOp1bH8Nx26wNJ dKJIJYnE2lsem5KzJOOIU1OrgvUKG4Z/AqMZTp2MPJ6SshNkemTmlZjOKcHjvDiDhrR/ 4WObnBpHHZFHRu4+oxPooBZRas3/+bjFzMNmcwwI1P30VC0MLYJvCsCuZKy/H27g9oWC rC1QCoJPwLS/XvXXBeX5wv2mg43Hf7+1s7mPEi0mWZIhifRicEwM0E39jkGQ+0IR95O0 xz5w== 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=XVvgSNSDtsxcUWZQpJFepMFACRYXaU7328HldZ9nvGo=; b=be+N7LWARkyjC0yH4PaVxkh50IekSYx3Fqs8YfGeDRIsH7S7TbMMWKuDBlxhTEFj5O 8C/WT+Rga7HznDsT+eoyn+KJVePFlRxhZy/+53QYAdIuQQiVXdBL4agVur907SQmy8UV fcv3pKekl8hRiSic4ysi1fg8KOh1EhMB4D7gFWWxAo1rRFJ0adWx4ZNr4m4xwbPh0Gfw h0sX5dViDm8wrGssAwsFXOhomaiKQPq57++iPRabQb6H4ZcDP++Q/6qyV/lewqIjToZb omV6YqvzJYzSlpUv29epXlAEldBAerP6iCcthmzuAQK9fLGpgCEX4NAI0rB6Iw0vwpsB u7hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jMf6x7Ak; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 a20si2948310edv.497.2020.06.18.20.39.49; Thu, 18 Jun 2020 20:40:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=jMf6x7Ak; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729392AbgFSD24 (ORCPT + 99 others); Thu, 18 Jun 2020 23:28:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726927AbgFSD2z (ORCPT ); Thu, 18 Jun 2020 23:28:55 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAD27C06174E for ; Thu, 18 Jun 2020 20:28:54 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id r2so9740255ioo.4 for ; Thu, 18 Jun 2020 20:28:54 -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=XVvgSNSDtsxcUWZQpJFepMFACRYXaU7328HldZ9nvGo=; b=jMf6x7AkGagBU8CyXfuVwgwRFffghhZ7JHnellb+sRxNosxaJio3mRR0LAOyRX2+qZ vjjgNxrithNnI4exr4UwISSe6gzcdUAuh0oJvz3C784tgKJFatJubDqVqVUn4Msf4ntL TbVgaghvDjefMpY+m6d2RUsmA0Ppxfj87x+upM9L3TVLXNxjdh2mODNiI1ltaDmnDfuL EBwsgPlfmx/tl67f94G9hpfdDtH/UlQRzlHGhosKhM6+HJmYlrtX5n3Hw5yrSTbzg7pv yQRGUrfo9jxW3OovY/rL0fmWt4W+jwz5DLeSFlbMiV+ON8Pki+7ccYIsA3OxQFQUBY40 a8+Q== 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=XVvgSNSDtsxcUWZQpJFepMFACRYXaU7328HldZ9nvGo=; b=rKYAkLXMWsMy4DliZh357d57D4+TDo9B1yTAdj65lwp1JBoQNgxsv0Yjmf7PPgfyve RwXM67BuZzHDWhFBw4+e5bQ+EIE12Cf6MkYPynekZj++s7l8xsOcYEGipDQSD6ZYq3tB w8OBHoI2EzX+ZYFdk5uDgkvNguqgnVa1t9sWkCluNPT5/R95W0GLfRNT451OViBNEZB8 +Tg2xe9FHjkqwcGgsWCis1wEGI/GkpsVeE8OpRyC3XSWDMJ4y6hUgJpcCOZXn9u4V446 vlXsXTqlbZJKD5iLGX7wcVtXOEGM2rhB6umgwr+mbaO/9Uf06f7MWPOwFYzSWo8lNJtR RONA== X-Gm-Message-State: AOAM533DtO2bCALLIBsFOc2HC7pauyJepAEtb0awotFBPVUv2td4aCe9 IFb0cussOd9PVrPdtYtFMPKpEGkMaCRISlckUZo= X-Received: by 2002:a05:6602:2c0a:: with SMTP id w10mr2152043iov.46.1592537334338; Thu, 18 Jun 2020 20:28:54 -0700 (PDT) MIME-Version: 1.0 References: <20200601230607.31740-1-andrew.smirnov@gmail.com> In-Reply-To: <20200601230607.31740-1-andrew.smirnov@gmail.com> From: Chris Healy Date: Thu, 18 Jun 2020 20:28:19 -0700 Message-ID: Subject: Re: [PATCH] clk: imx: vf610: add CAAM clock To: Andrey Smirnov Cc: linux ARM , =?UTF-8?Q?Horia_Geant=C4=83?= , Shawn Guo , Fabio Estevam , linux-kernel , linux-imx@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On a Vybrid VF610 based platform I tested this with 5.8-rc1. With the necessary DTS patch, the CAAM worked correctly for me. Tested-by: Chris Healy On Mon, Jun 1, 2020 at 4:06 PM Andrey Smirnov wr= ote: > > According to Vybrid Security RM, CCM_CCGR11[CG176] can be used to gate > CAAM ipg clock. > > Signed-off-by: Horia Geant=C4=83 > Signed-off-by: Andrey Smirnov > Cc: Chris Healy > Cc: Shawn Guo > Cc: Fabio Estevam > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-imx@nxp.com > --- > drivers/clk/imx/clk-vf610.c | 1 + > include/dt-bindings/clock/vf610-clock.h | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c > index cd04e7dc1878..5129ef8e1d6e 100644 > --- a/drivers/clk/imx/clk-vf610.c > +++ b/drivers/clk/imx/clk-vf610.c > @@ -438,6 +438,7 @@ static void __init vf610_clocks_init(struct device_no= de *ccm_node) > clk[VF610_CLK_SNVS] =3D imx_clk_gate2("snvs-rtc", "ipg_bus", CCM_= CCGR6, CCM_CCGRx_CGn(7)); > 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)); > > 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.21.3