Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1327963ybi; Wed, 17 Jul 2019 13:18:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsYwIhxykybNgZyJazI827eVyntM5TiUPRC3J0IeqTUXmmNCFonCy6aqfXl4bBMd12vzrt X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr47712490pje.11.1563394688208; Wed, 17 Jul 2019 13:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563394688; cv=none; d=google.com; s=arc-20160816; b=040IyGfGfrO5I48Kd29AuyKbfH0XG2YLbgUl78VHqEWXPuK+9q69WW0iBDynshFT20 MzHZ5yglgOod4vrCQp/AWLuE8zlLo5J2ZUKSxsawEH58poCuIF5v/PiEgwASlisAqpSz hsENLyXufbeZfumCOXqkaPxtdl6CgD4NH/GH0alTSaTJL+m2Lqrv1MnUBxNssZKpNFAB QIVEoV6IrD/Pj3TSEAsjABSvlAC5+J13ild5LWDVs0anciMHGs3z3UeP2MNh3dQCmEp3 MBFr6gzkwLWevNYA7ubPJhah/Cuy3O681bR23Af3ZID1XTFxDJ6gJAQ+MRNwhM47LnTV GHzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jDSjE56feL4M57HMVhhU1D7CrADaIyXAujaY2b7p0Rs=; b=uPlgBmBe1NRlc74EdgHTxPfnZx87AOu5OhKI40riw5zy18+FXWiuMuf2ZPYpJT1zuM jJTcN13KEzd4HqE4acEMOgS2iWW8YcgeFi2Dx/2VlxzWHkz5jzrpDFaLi23hC6kmFCzf SCEwCGU8JmItTlfsdtJnk9saPhYfbwVGIQZeBk0ftprZQyPTBf2dH3Y06N9L65ezhw6R xHDikCMjl5TjBs2PV3Inyfk/IGFKl0G32TiJdzHYtcOQ9qkWNT1/dSR7MZXWFFyw+tqQ QKh7HDDckoOympr+QozIr6PySkj0QiTt8CJedbfV4BYs7GLGHt3B90z2WtSvwrdELtCG 2GOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h5g8BUNG; 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; 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 k22si23593214pll.168.2019.07.17.13.17.51; Wed, 17 Jul 2019 13:18:08 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=h5g8BUNG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727386AbfGQURd (ORCPT + 99 others); Wed, 17 Jul 2019 16:17:33 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34894 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbfGQURd (ORCPT ); Wed, 17 Jul 2019 16:17:33 -0400 Received: by mail-wm1-f65.google.com with SMTP id l2so23387736wmg.0; Wed, 17 Jul 2019 13:17:31 -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; bh=jDSjE56feL4M57HMVhhU1D7CrADaIyXAujaY2b7p0Rs=; b=h5g8BUNGvMProBfMdpTh+q7hvyw/nnXkMstQBN2l2v0wVMu9JjnNFLf8G8UBbs8VVJ ZK1iHpAE+DvFSamesInpnEeoVI7xvalKz1Gr9FkCem95LcYk+5ODLi/XzMcjGid6sc8C pfG2Z66DSfSavp1cmi6zv6zOx7BuBuZbevyK4SKIOAgNp8oueRhPqcaoS0ZdE6CvUW7d n7GO8Ye+0B1LccBd5UAITT+B1QMYYalCoox9TW0MC1y9eG5iGRKYKj1n91/3N9VLJPwU mXp7GJRKEKpnMrR5jvH6/JMvGAIHZj5mS0z2YZ6N6pSWA0C+f3B2Xrhtt5JBsIJ6ESqR esww== 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; bh=jDSjE56feL4M57HMVhhU1D7CrADaIyXAujaY2b7p0Rs=; b=MfD0TSgf9bD5elKxGlPNsVnC/kCNiO6o+2yVj3PuJtX9ymls4hJ9rRIiu06AY5Cnod xoi2csMYg1lN46nD6era4WD7+zC27M6L+guC81MsSC0ABFELa2dzShUH8AxznHZospKr jPfa12ufAvlWy3aeoNMWXqC+cmO+BUTvovBHXiNgZzk60Z6mgCySWwgRRldJD1weBy2a DWFdsmgf3U5nSdq5UtxFOfaweFFEpufBsscOacfTQltB7cXBESaqXeO5JkViiHyBcJeo 1LWe6mncJOo0HBt47cqVdDvRd6rbni+3ITUkowHzgf/Nq4RIHTSh2SjINXZtc+M3Fybn xAkg== X-Gm-Message-State: APjAAAXc7TznpNMV4nHjCGKc9YKyvMCvSDkITYKQDHUmpOd7rNy24Q1R RDgcHrV9HvAel9lMDuZ4Vjv+R24nnHv0tgUKyu4= X-Received: by 2002:a1c:96c7:: with SMTP id y190mr35132650wmd.87.1563394650383; Wed, 17 Jul 2019 13:17:30 -0700 (PDT) MIME-Version: 1.0 References: <20190702152007.12190-1-daniel.baluta@nxp.com> In-Reply-To: <20190702152007.12190-1-daniel.baluta@nxp.com> From: Daniel Baluta Date: Wed, 17 Jul 2019 23:17:19 +0300 Message-ID: Subject: Re: [PATCH] clk: imx8: Add DSP related clocks To: Daniel Baluta , Jacky Bai Cc: Shawn Guo , Michael Turquette , Stephen Boyd , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , Rob Herring , Mark Rutland , Aisheng Dong , weiyongjun1@huawei.com, linux-clk@vger.kernel.org, linux-arm-kernel , Linux Kernel Mailing List , Devicetree List , "S.j. Wang" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Aisheng/Jacky, Can you help with review on this? On Tue, Jul 2, 2019 at 6:22 PM Daniel Baluta wrote: > > i.MX8QXP contains Hifi4 DSP. There are four clocks > associated with DSP: > * dsp_lpcg_core_clk > * dsp_lpcg_ipg_clk > * dsp_lpcg_adb_aclk > * ocram_lpcg_ipg_clk > > Signed-off-by: Daniel Baluta > --- > drivers/clk/imx/clk-imx8qxp-lpcg.c | 5 +++++ > include/dt-bindings/clock/imx8-clock.h | 6 +++++- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c > index fb6edf1b8aa2..c0aff7ca6374 100644 > --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c > +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c > @@ -72,6 +72,11 @@ static const struct imx8qxp_lpcg_data imx8qxp_lpcg_adma[] = { > { IMX_ADMA_LPCG_I2C2_CLK, "i2c2_lpcg_clk", "i2c2_clk", 0, ADMA_LPI2C_2_LPCG, 0, 0, }, > { IMX_ADMA_LPCG_I2C3_IPG_CLK, "i2c3_lpcg_ipg_clk", "dma_ipg_clk_root", 0, ADMA_LPI2C_3_LPCG, 16, 0, }, > { IMX_ADMA_LPCG_I2C3_CLK, "i2c3_lpcg_clk", "i2c3_clk", 0, ADMA_LPI2C_3_LPCG, 0, 0, }, > + > + { IMX_ADMA_LPCG_DSP_CORE_CLK, "dsp_lpcg_core_clk", "dma_ipg_clk_root", 0, ADMA_HIFI_LPCG, 28, 0, }, > + { IMX_ADMA_LPCG_DSP_IPG_CLK, "dsp_lpcg_ipg_clk", "dma_ipg_clk_root", 0, ADMA_HIFI_LPCG, 20, 0, }, > + { IMX_ADMA_LPCG_DSP_ADB_CLK, "dsp_lpcg_adb_clk", "dma_ipg_clk_root", 0, ADMA_HIFI_LPCG, 16, 0, }, > + { IMX_ADMA_LPCG_OCRAM_IPG_CLK, "ocram_lpcg_ipg_clk", "dma_ipg_clk_root", 0, ADMA_OCRAM_LPCG, 16, 0, }, > }; > > static const struct imx8qxp_ss_lpcg imx8qxp_ss_adma = { > diff --git a/include/dt-bindings/clock/imx8-clock.h b/include/dt-bindings/clock/imx8-clock.h > index 4236818e3be5..673a8c662340 100644 > --- a/include/dt-bindings/clock/imx8-clock.h > +++ b/include/dt-bindings/clock/imx8-clock.h > @@ -283,7 +283,11 @@ > #define IMX_ADMA_LPCG_PWM_IPG_CLK 38 > #define IMX_ADMA_LPCG_LCD_PIX_CLK 39 > #define IMX_ADMA_LPCG_LCD_APB_CLK 40 > +#define IMX_ADMA_LPCG_DSP_ADB_CLK 41 > +#define IMX_ADMA_LPCG_DSP_IPG_CLK 42 > +#define IMX_ADMA_LPCG_DSP_CORE_CLK 43 > +#define IMX_ADMA_LPCG_OCRAM_IPG_CLK 44 > > -#define IMX_ADMA_LPCG_CLK_END 41 > +#define IMX_ADMA_LPCG_CLK_END 45 > > #endif /* __DT_BINDINGS_CLOCK_IMX_H */ > -- > 2.17.1 >