Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2482603ybt; Fri, 3 Jul 2020 10:08:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuH6bqrdsG1yIfUHlhCve0y03TF8VpXcb00eC+XlknjtH8jiz9pc912upLsrip0ppEZ42w X-Received: by 2002:a17:906:240d:: with SMTP id z13mr31044862eja.346.1593796098385; Fri, 03 Jul 2020 10:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593796098; cv=none; d=google.com; s=arc-20160816; b=RwJe9ZCZ+EpBIMk3/KksLR+Ry2DTGtaCCXofpaqVWpYIqN212ELl2cKweOWXL9k5p9 sbC18IQwsckScKFhgBQ+0JNc0DCVBOp5A64IoyzaJKKQ6y5ljxsfj1Cc4tEPE+nR+O07 nbND2VbLcxr3m3T/op73yf2Ws4adh+zsS5segrSrFEAAZNBg7r74nNzZb/vVcJyXVM4u NxT9qMt1zv5UrMa0uCt9xfR/8VY9Exa2LoKjniUAT68p19FS+O8+mo/2OjMXs1RCEGey YoiVqsMUPs9lFstEBrxt3m7xELIyprkJviYbcUepgoFbWT1eENIyL/xQs5IMRe1mwwR5 5tJA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cfJDNDiCKk3+L9P05A8vdENIHzaVIv1gfHJ7Qxk7/lY=; b=qljUG3M1vOUP6kX+XjrFyVAWRcV7fEZpYB4/grt8mbYiBf+gmBLkXgJN6nVt3AIVrL M0FaaaLwq9zCvnJWg56OMxzIpy2oRlWIyd6/+ghR+WlvEqvpqTvfG9dq5cadZFb8+o6b vFqhaUo7nzPkiiQlnRJf93xGGlWV2NzXS1D35L684Zyx+QvdOWVp33+8OQ2xQZh9nl1s ivDGNA8m5CSTrgEY/S9bDB95/l73SkAvPkdLBrgGbBc95wySCtON9Sct+9nFn3Qfifbd WaluTpttwSL0lHupULBMt4D1Q1gTZWFUJWSyxDeFAlcwOd/FMpOYmkyvv83ToR60lTpt oZQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="cxJ/zlkh"; 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 v13si8210364ejc.348.2020.07.03.10.07.55; Fri, 03 Jul 2020 10:08:18 -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="cxJ/zlkh"; 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 S1727105AbgGCRF0 (ORCPT + 99 others); Fri, 3 Jul 2020 13:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbgGCRFU (ORCPT ); Fri, 3 Jul 2020 13:05:20 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 765EDC061794; Fri, 3 Jul 2020 10:05:20 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id d15so28387001edm.10; Fri, 03 Jul 2020 10:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cfJDNDiCKk3+L9P05A8vdENIHzaVIv1gfHJ7Qxk7/lY=; b=cxJ/zlkhVpDFRvY8eKaErKfPf453gMsXeNFz4QypzWdZi63qTNka1fMoUUEJGKRE2G e16WSv3Zqh49oe3xef8fFA8X9dburGZZrdUc1a1qbWuO44HpMZCqHwoU9Lb+jSsN4QWD /zNvN4+YmJh4feH/kKtuvXT4cMA82Y8nq/cwKRZ0dR1T/8h2o9ZXCMtHUexMVBf5JdZ2 vyn0ovkMBowyTm8F/m19hvc7mxxf/hHFwEkpDcBJyyQIoh6sTkufmNrrJr0N0SeL1xmh sBXy05rDRU+Hrp/bSPqEiCur+2sWHkxR0Tp1r3CRrp05dqiz4JKZF/aG3d1jwZabPRxO ZgBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cfJDNDiCKk3+L9P05A8vdENIHzaVIv1gfHJ7Qxk7/lY=; b=r2mSgbQx+Phb9LCOD8UCnpV4X2us6b0P3ROmDgW2vpzBzO8Pzl8f1e4mS6t2wVU9ox I2kjox936oXX35InvFtjmA2NNoZ+/uOvZ7QEn+4AhTUS/n6SvBhhHYK+pUXJQqyAExVh ZqHGJDnNsdGUe2OMYJu1W0/cI/q+t73wONcI0ySwiEeDZyfLU1h1o6LcHHU0ClZDmzqG EejKukGU+1Thcdt8Jb4q7d0zFW0bPj1Z96s46LyEp0pXXDQD4wPSTL3/HEz2a3R7m6+v RDH8I1BVe04FHbCjYMmdt5UVaa/SYmmlWzE1JZaOxaqYrj5143SgbMad1uUQzaawR8FI wnQA== X-Gm-Message-State: AOAM531IgIwwelUL7viFsj1AaAYIDiuPtEFeS7N1fzmeo/jh7vKewMED +9Flxp5RuYIv32st37GOdws= X-Received: by 2002:a05:6402:1d35:: with SMTP id dh21mr36412319edb.186.1593795919224; Fri, 03 Jul 2020 10:05:19 -0700 (PDT) Received: from localhost.localdomain ([188.24.137.55]) by smtp.gmail.com with ESMTPSA id dg8sm14342272edb.56.2020.07.03.10.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 10:05:18 -0700 (PDT) From: Cristian Ciocaltea To: Stephen Boyd , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Manivannan Sadhasivam , Rob Herring , Michael Turquette , Philipp Zabel Cc: 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: [PATCH v3 3/6] clk: actions: Add APB, DMAC, GPIO clock support for Actions S500 SoC Date: Fri, 3 Jul 2020 20:05:09 +0300 Message-Id: <87964ae012e513597b8b4c7be2e7ac332a70087a.1593788312.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the missing APB, DMAC and GPIO clocks in the Actions Semi S500 SoC clock driver. Signed-off-by: Cristian Ciocaltea --- 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