Received: by 10.213.65.68 with SMTP id h4csp878823imn; Sun, 18 Mar 2018 06:00:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELtM45B38tRVZqUOMx/JGkima97qT2EX87DkcvARNRXkWaETeq4EUPwsgAO1JZCutE3gcm8y X-Received: by 2002:a17:902:4222:: with SMTP id g31-v6mr9118112pld.335.1521378048238; Sun, 18 Mar 2018 06:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521378048; cv=none; d=google.com; s=arc-20160816; b=bat9c+9oVoUAI/KQor8H28kq7pfKnTSiLYUvNOPYxb8uroS6DRlQo3lxeP0rcuBYcm czrvYI/mFZukTMFXiT8SQ4iTLMAnmA2YHXFLuxW2vM/h+DVtcJ5OHN2o+xOrCn3RR9QK CIH0FgnH0y99AzKCc936wQ+xoAg4BLufzAz42dMbeN++vmYdmqWTqP2hJLT5s0/qBsNr XEtMitg2homILFwil6ZbS0RGkx8mYC/m0n4M73GmpiyM1S9tFegPBNAUDiyiiKuryb0V unFH4jsRH/GXpwyIy949Uycf9dddq3oKGDK+K4fmh3sZJnWuvdM6t7i0TgZvmZrfotIf q1eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=/dsy8Xk2fIsG0iyPKbbR0wFnne3xi5KE0clg0m83sfc=; b=POucXbSmTxf9RHeQhXBKGPI+672Zyt3CqbqmTdYCpD5pqCsk0RrOq3F5qwk05O8v1a yJjR21AGd2PFizWXTrcXujHICVHpWZ0AvLEkV2ND9S4dwuyOxBqabeS8MWXcbxQJuHx2 u/7/EyzLMi1+064RZIQdwdLZ3r9w9MAltLsiAGqP+k8smW7dYId7fPKz3uvptLH6jnmR m+wWkPU2avDrAPaEH3A8ooBZa7N4n6tSYd1Y1HuQgu6C/cgNadq0DvCBPEbIcDjMf8oe LOlxnKTrH1jhE1/MYABaE4PEfefx6dFqdeJj03fLSYn4lRbPpJm9zraSGd8NYz89PtFg zvhw== ARC-Authentication-Results: i=1; mx.google.com; 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 j10si938240pfe.276.2018.03.18.06.00.33; Sun, 18 Mar 2018 06:00:48 -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; 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 S1753209AbeCRMsA (ORCPT + 99 others); Sun, 18 Mar 2018 08:48:00 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:46587 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751713AbeCRMr4 (ORCPT ); Sun, 18 Mar 2018 08:47:56 -0400 Received: by mail-pg0-f65.google.com with SMTP id g8so2744715pgq.13; Sun, 18 Mar 2018 05:47:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/dsy8Xk2fIsG0iyPKbbR0wFnne3xi5KE0clg0m83sfc=; b=LqvBNaqfYAW9ezQb/iUnDeGqNJsRCRr+TNrSy7bivT46v54fNRiHJ/RngR0LXhK8FI Qw20OFO2XEpoqb8147nmFB4MWZA3MGPFpZSbhoUC+VSHg+lRLcahBBAsJT3BVfOxd1Dz IkAM1df06xJ5LH4h2JiFvIt9dBO+CaYRVYA5ituLJYZ6GT9uwyj3tbdsk4cmwFO2fWIY 9IqMfFVgS1FCi8BYraP7KZq1tHlVN0X7rCIkTXNmjq7SrMl1MlPNe7MKRGt7Vcqe6PHa fn4ofs83zFnlWkptDsD0EmOj/Wqas7x7wYkjsP1jwNWyzxWpV0yuHOwiwOz21jYAVgQP fIuw== X-Gm-Message-State: AElRT7HjEnmX694MoB6Wb3RIvVL0fWJbyT7l1zye66oFRR0tkS5ye23m 8wgNQct4+0R2+RHam/Cc+g== X-Received: by 10.101.100.216 with SMTP id t24mr6505671pgv.59.1521377276075; Sun, 18 Mar 2018 05:47:56 -0700 (PDT) Received: from localhost (165084180235.ctinets.com. [165.84.180.235]) by smtp.gmail.com with ESMTPSA id c11sm28410732pfe.109.2018.03.18.05.47.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 05:47:55 -0700 (PDT) Date: Sun, 18 Mar 2018 07:47:53 -0500 From: Rob Herring To: gabriel.fernandez@st.com Cc: sboyd@kernel.org, Mark Rutland , Lee Jones , Maxime Coquelin , Alexandre Torgue , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, gabriel.fernandez.st@gmail.com, olivier.bideau@st.com, Loic PALLARDY , benjamin GAIGNARD Subject: Re: [PATCH RESEND 2/2] clk: stm32: Add DSI clock for STM32F469 Board Message-ID: <20180318124753.nbjbs5deslihl7ir@rob-hp-laptop> References: <1520578651-28849-1-git-send-email-gabriel.fernandez@st.com> <1520578651-28849-3-git-send-email-gabriel.fernandez@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520578651-28849-3-git-send-email-gabriel.fernandez@st.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 09, 2018 at 07:57:31AM +0100, gabriel.fernandez@st.com wrote: > From: Gabriel Fernandez > > This patch adds DSI clock for STM32F469 board > > Signed-off-by: Gabriel Fernandez > --- > drivers/clk/clk-stm32f4.c | 11 ++++++++++- > include/dt-bindings/clock/stm32fx-clock.h | 3 ++- > 2 files changed, 12 insertions(+), 2 deletions(-) Reviewed-by: Rob Herring > > diff --git a/drivers/clk/clk-stm32f4.c b/drivers/clk/clk-stm32f4.c > index 96c6b6b..d15bae6 100644 > --- a/drivers/clk/clk-stm32f4.c > +++ b/drivers/clk/clk-stm32f4.c > @@ -521,7 +521,7 @@ struct stm32f4_pll_data { > }; > > static const struct stm32f4_pll_data stm32f469_pll[MAX_PLL_DIV] = { > - { PLL, 50, { "pll", "pll-q", NULL } }, > + { PLL, 50, { "pll", "pll-q", "pll-r" } }, > { PLL_I2S, 50, { "plli2s-p", "plli2s-q", "plli2s-r" } }, > { PLL_SAI, 50, { "pllsai-p", "pllsai-q", "pllsai-r" } }, > }; > @@ -1047,6 +1047,8 @@ static struct clk_hw *stm32_register_cclk(struct device *dev, const char *name, > "no-clock", "lse", "lsi", "hse-rtc" > }; > > +static const char *dsi_parent[2] = { NULL, "pll-r" }; > + > static const char *lcd_parent[1] = { "pllsai-r-div" }; > > static const char *i2s_parents[2] = { "plli2s-r", NULL }; > @@ -1156,6 +1158,12 @@ struct stm32f4_clk_data { > NO_GATE, 0, > 0 > }, > + { > + CLK_F469_DSI, "dsi", dsi_parent, ARRAY_SIZE(dsi_parent), > + STM32F4_RCC_DCKCFGR, 29, 1, > + STM32F4_RCC_APB2ENR, 27, > + CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT > + }, > }; > > static const struct stm32_aux_clk stm32f746_aux_clk[] = { > @@ -1450,6 +1458,7 @@ static void __init stm32f4_rcc_init(struct device_node *np) > stm32f4_gate_map = data->gates_map; > > hse_clk = of_clk_get_parent_name(np, 0); > + dsi_parent[0] = hse_clk; > > i2s_in_clk = of_clk_get_parent_name(np, 1); > > diff --git a/include/dt-bindings/clock/stm32fx-clock.h b/include/dt-bindings/clock/stm32fx-clock.h > index 4d523b0..58d8b51 100644 > --- a/include/dt-bindings/clock/stm32fx-clock.h > +++ b/include/dt-bindings/clock/stm32fx-clock.h > @@ -35,8 +35,9 @@ > #define CLK_SAIQ_PDIV 13 > #define CLK_HSI 14 > #define CLK_SYSCLK 15 > +#define CLK_F469_DSI 16 > > -#define END_PRIMARY_CLK 16 > +#define END_PRIMARY_CLK 17 > > #define CLK_HDMI_CEC 16 > #define CLK_SPDIF 17 > -- > 1.9.1 >