Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp401170ybh; Sun, 12 Jul 2020 09:58:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJk5pcp39ma1tRTUOclulHpotnyhYH4C8i7nALdcpM64I1oiZ1gfYz3O7ggQiIL/M6Q2Yc X-Received: by 2002:a50:ccc7:: with SMTP id b7mr45421195edj.9.1594573115109; Sun, 12 Jul 2020 09:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594573115; cv=none; d=google.com; s=arc-20160816; b=LbOfcRfF90B8saQe3IzF2982b1Hn4KNv1cVjqL6MnrKTrUMi8ixN4GJNT/2cTSZ50D o/sF+FUkkE5fbqaHpT7fgLc4tC9DrfFevUycoBaKYVe0h4P2qDMCwYOc1iUYcajq1X+Z KHLcWXHcWuCeVVVkc+HBQ/jZx33OSRbpVSRct9vAL3oNppOslA9d0BIUE2OWxA/fqydR 3QuT+Qa7ZIhqRMySDGU4AbVfsPNc9W32A87qASI/wpZBvP8jbPAR3domvP9Q/MOrcG9B VqYCjdOS+SKbytJdr2vZ4lHWLdLNWY/l0qNLioplS203zv6cR1oMNJW+UTgkZhbRm/vs UR4Q== 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:dkim-signature; bh=CPkl/fwjqSvU16542/LkecvuecxR0K2ncOMxvrSe7NE=; b=oWj/Vv8bs80xX6a/QAUsBcn8vC6zQhxRf7JUZ4Nu/Apvyv0mUx964isuIHleIOVHGx Ib7Ajq/WD4s0a+on7yvP7dLeN2YlGkhjC0GuBpLuEBCi76uRNyvJA6t4IHn6PLcRnD4y VyXlCKyI6AyvatOKXyekidUhIgCI+5WSJR6NbHyPjLps+bq1P53Kas8kwMlBUZn+mk7+ XytOww3v0CxsICLl1vTCbe9SidEhe97QxI+6wCYhdtmfQvbvtfACyT3xjNt1jCBHvY68 c4WSvgBZn64vtmepBrALPBf1fo4moSBVw6ELUSogD0Ov6cBFkTRvvHqhllBZun0ZX/bN 5GGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ri/8DHJC"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq6si7264427ejb.108.2020.07.12.09.58.12; Sun, 12 Jul 2020 09:58:35 -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=@linaro.org header.s=google header.b="ri/8DHJC"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728862AbgGLQ5X (ORCPT + 99 others); Sun, 12 Jul 2020 12:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728859AbgGLQ5W (ORCPT ); Sun, 12 Jul 2020 12:57:22 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 532C8C08C5DB for ; Sun, 12 Jul 2020 09:57:22 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id f2so4430743plr.8 for ; Sun, 12 Jul 2020 09:57:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CPkl/fwjqSvU16542/LkecvuecxR0K2ncOMxvrSe7NE=; b=ri/8DHJCrZj2aPu+BZBBMbrgWxU5X0reDn4yF7oiqicN18H9KEWTnfWiwU6o0lFv0j CR+gKIE8y1H5nja1iD9lv4MbYDB56AWfHLrRzEMKluhzZHtl8/UBt85cMOlSh3lAz8TW Jmxoc5Rx7P+L6I80/zIqR7i3xvTmZEej9PL/iDj4gJgUCVoVJud8SFqzVa3ZSJpO7Lv5 YhOILn3AfbcjufDc6fkqxa0XyXEMvTeWETtoaj3hbpktip/dQFGOy5/HF7YdKoZtBkqE jBJdvbl5S8kH2vyUhT2lghLdXksq5KPriM2jwUx7FxZctbMI4nQSlfO4zp8iYs7PzVj7 vbYw== 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=CPkl/fwjqSvU16542/LkecvuecxR0K2ncOMxvrSe7NE=; b=B5g1QnOIY+4zEAZDG6zMeWd7u3fzH/ci+orwD2n6zYmL56RulEoAII8oquvUzXofDc 5gUiUgJuPBECKUSm6HrCuKW5g3b17gB01B3GMLRKfWq6qyCNrIqlblsoyXq4TF1/TcKt +9jrDvaQpCtuKBLNcZO9GRIrJIu/OCFiEBEnJL5uACTfBc2k+fGJFpQRkN08sfra/Foo cuw4tOfAO+GAm4MbUSRDZ9tQz0dusMvigRoUg96OqB8RPSlGdYPGdXy46qnAajzKsVoj OtJD7Jcpc7WO4u+t82assCbrjqEwX3CvH1OIxUQcIofyHFJ40zzU0fRYq2BS9RxypjU+ LP8A== X-Gm-Message-State: AOAM532o5V7hG1VBMl1KrAvVrtX6BOWvMQzD5iLZzTVt6foMh5KXG7Ld LtOk7PMhAonwrC9AJppzqJbP X-Received: by 2002:a17:902:b682:: with SMTP id c2mr57166264pls.273.1594573041785; Sun, 12 Jul 2020 09:57:21 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2409:4072:6c81:c187:70f5:3123:b5de:e77f]) by smtp.gmail.com with ESMTPSA id n18sm13093540pfd.99.2020.07.12.09.57.17 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jul 2020 09:57:21 -0700 (PDT) Date: Sun, 12 Jul 2020 22:27:15 +0530 From: Manivannan Sadhasivam To: Cristian Ciocaltea Cc: Stephen Boyd , Andreas =?iso-8859-1?Q?F=E4rber?= , Rob Herring , Michael Turquette , Philipp Zabel , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-actions@lists.infradead.org Subject: Re: [PATCH v3 3/6] clk: actions: Add APB, DMAC, GPIO clock support for Actions S500 SoC Message-ID: <20200712165715.GB6110@Mani-XPS-13-9360> References: <87964ae012e513597b8b4c7be2e7ac332a70087a.1593788312.git.cristian.ciocaltea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87964ae012e513597b8b4c7be2e7ac332a70087a.1593788312.git.cristian.ciocaltea@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 03, 2020 at 08:05:09PM +0300, Cristian Ciocaltea wrote: > Add support for the missing APB, DMAC and GPIO clocks in the Actions > Semi S500 SoC clock driver. > > Signed-off-by: Cristian Ciocaltea Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > Changes in v3: > - None > > Changes in v2: > - None > > drivers/clk/actions/owl-s500.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/clk/actions/owl-s500.c b/drivers/clk/actions/owl-s500.c > index 0eb83a0b70bc..025a8f6d6482 100644 > --- a/drivers/clk/actions/owl-s500.c > +++ b/drivers/clk/actions/owl-s500.c > @@ -175,6 +175,8 @@ static OWL_MUX(dev_clk, "dev_clk", dev_clk_mux_p, CMU_DEVPLL, 12, 1, CLK_SET_RAT > static OWL_MUX(ahbprediv_clk, "ahbprediv_clk", ahbprediv_clk_mux_p, CMU_BUSCLK1, 8, 3, CLK_SET_RATE_PARENT); > > /* gate clocks */ > +static OWL_GATE(gpio_clk, "gpio_clk", "apb_clk", CMU_DEVCLKEN0, 18, 0, 0); > +static OWL_GATE(dmac_clk, "dmac_clk", "h_clk", CMU_DEVCLKEN0, 1, 0, 0); > static OWL_GATE(spi0_clk, "spi0_clk", "ahb_clk", CMU_DEVCLKEN1, 10, 0, CLK_IGNORE_UNUSED); > static OWL_GATE(spi1_clk, "spi1_clk", "ahb_clk", CMU_DEVCLKEN1, 11, 0, CLK_IGNORE_UNUSED); > static OWL_GATE(spi2_clk, "spi2_clk", "ahb_clk", CMU_DEVCLKEN1, 12, 0, CLK_IGNORE_UNUSED); > @@ -184,6 +186,7 @@ static OWL_GATE(hdmi_clk, "hdmi_clk", "hosc", CMU_DEVCLKEN1, 3, 0, 0); > > /* divider clocks */ > static OWL_DIVIDER(h_clk, "h_clk", "ahbprediv_clk", CMU_BUSCLK1, 12, 2, NULL, 0, 0); > +static OWL_DIVIDER(apb_clk, "apb_clk", "ahb_clk", CMU_BUSCLK1, 14, 2, NULL, 0, 0); > static OWL_DIVIDER(rmii_ref_clk, "rmii_ref_clk", "ethernet_pll_clk", CMU_ETHERNETPLL, 1, 1, rmii_ref_div_table, 0, 0); > > /* factor clocks */ > @@ -428,6 +431,9 @@ static struct owl_clk_common *s500_clks[] = { > &spdif_clk.common, > &nand_clk.common, > &ecc_clk.common, > + &apb_clk.common, > + &dmac_clk.common, > + &gpio_clk.common, > }; > > static struct clk_hw_onecell_data s500_hw_clks = { > @@ -484,6 +490,9 @@ static struct clk_hw_onecell_data s500_hw_clks = { > [CLK_SPDIF] = &spdif_clk.common.hw, > [CLK_NAND] = &nand_clk.common.hw, > [CLK_ECC] = &ecc_clk.common.hw, > + [CLK_APB] = &apb_clk.common.hw, > + [CLK_DMAC] = &dmac_clk.common.hw, > + [CLK_GPIO] = &gpio_clk.common.hw, > }, > .num = CLK_NR_CLKS, > }; > -- > 2.27.0 >