Received: by 10.223.185.82 with SMTP id b18csp203832wrg; Thu, 8 Mar 2018 22:59:45 -0800 (PST) X-Google-Smtp-Source: AG47ELu6cxsd5eWl+4SUnvlSQ+3x1YPDXKBftfdQetaBEDz2fAPLroiwY4dMU8H+Er/qFkCUxwYn X-Received: by 10.98.186.2 with SMTP id k2mr27353609pff.225.1520578785565; Thu, 08 Mar 2018 22:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520578785; cv=none; d=google.com; s=arc-20160816; b=LzTLPOlT50bZDyn5i3GvXIW3Z1bJp+MNPcSaA6bdnhG9eg+MNZFGMnGL+Q9otlu5hP QuoPhttLkzfGKcif4n4jBEoLGH4ezgyZ3Ln4YXn01epY3JJkGDNnHFzuG/tv8wG9MdxR SB0ntCUh8sIV3O+70kFnYh2gceNJDWM93jjIewj+N5lDeMP2KVLTem8VHIFbrDJyFMLg w9vCV7Ps1sKkkdzvtG2MOd/h0Lrrw8SCMP45Antiejrt7Wqo3zC/jXTtQtDq+WCI8BQ6 jG8bj1tXwRzv/H17W136qXAq4sVN1jbllyUcu1SSVIYAwuXtp1cCMiSt3F/n7OT9qAqb C4VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=9ZVVVPIVKbkjv//m+dBkEE6YoV4kAdOfKcUeXdlWBSA=; b=GtRnnYPVoX7vKJBBoCqDuS4ReAZdkxIi4y3ZhYvvSpJZOvAYB3SgTP8zIgsWp4p8aX Eyr5zUeIHlY/lQOFLABeefNBbnnM/JbvNafOE0gNlNLKkTZLAPe/7QrVAJHUmITaghdv BSeCAKCTOcFA+Lb8n1h9zm5sIi/ipRTrLYl0lgXI9FkskyBmntWZaQ9b9BuzUAz4vKz/ Tk3Usj1XlQW2aRYFhePet/Ln4f2yFBmSXhwFh7u/mwXS7VYedI/AfVvWjyfJ4zy3rDaO +8H7vXpfiY6dJiSFxzGM2E6MGle54eyhIn4dV9L8rVesF5BxUh8X3tb3atNbrZ1QZQj8 Zh4g== 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 99-v6si378252plf.56.2018.03.08.22.59.31; Thu, 08 Mar 2018 22:59:45 -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; 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 S1751231AbeCIG6N (ORCPT + 99 others); Fri, 9 Mar 2018 01:58:13 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:35425 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbeCIG6L (ORCPT ); Fri, 9 Mar 2018 01:58:11 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w296nUF0025277; Fri, 9 Mar 2018 07:57:48 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2gkjvp0nch-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 09 Mar 2018 07:57:48 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3F62131; Fri, 9 Mar 2018 06:57:48 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag4node2.st.com [10.75.127.11]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0A07C13F3; Fri, 9 Mar 2018 06:57:48 +0000 (GMT) Received: from localhost (10.75.127.48) by SFHDAG4NODE2.st.com (10.75.127.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 9 Mar 2018 07:57:47 +0100 From: To: , Rob Herring , Mark Rutland , Lee Jones , Maxime Coquelin , Alexandre Torgue , Michael Turquette , Stephen Boyd , Gabriel Fernandez CC: , , , , , , Loic PALLARDY , benjamin GAIGNARD Subject: [PATCH RESEND 2/2] clk: stm32: Add DSI clock for STM32F469 Board Date: Fri, 9 Mar 2018 07:57:31 +0100 Message-ID: <1520578651-28849-3-git-send-email-gabriel.fernandez@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520578651-28849-1-git-send-email-gabriel.fernandez@st.com> References: <1520578651-28849-1-git-send-email-gabriel.fernandez@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG6NODE1.st.com (10.75.127.16) To SFHDAG4NODE2.st.com (10.75.127.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-09_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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