From patchwork Wed Jun 24 17:47:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 11623899 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 316181392 for ; Wed, 24 Jun 2020 17:50:28 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 08BF9206C3 for ; Wed, 24 Jun 2020 17:50:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lACmDJaJ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mTNlK59S" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 08BF9206C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kqw+D949BNaX1f/iR2ITiMOJXxDaD5EOopAMwwntbw0=; b=lACmDJaJVQrWutsw671p2rjPC De8MyvHiFGuaWAtZJopLaDDGDUBRRP08fBQVU9D4rR2mWclwYjo+ZhanxRPe11GyDB2p8MHLKISUF CP4ove+9Vw5pQp3Vl3a61tySznC6E5hO+KzADpvzAl8qa8VNkShu6cf51JOziZEKwOrPDf1INQ0j7 HKfRT1NQ4uEqzdx20caOs9DLaujR+mKnDh+q6HzFR9Y64/jHivhEc6pX76ytPNTarWNnietvl2Wsr zQUdsifziJy0ErlKpMTXeilBF+9QV+HRy/cKh4i85WvfeaoTDuWSYzSR5bU5pgRXCcfSwss6sUMJp XkOOmbkdA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jo9VZ-000189-Vc; Wed, 24 Jun 2020 17:48:26 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jo9VF-0000wP-Cm; Wed, 24 Jun 2020 17:48:06 +0000 Received: by mail-ed1-x544.google.com with SMTP id e15so2147281edr.2; Wed, 24 Jun 2020 10:48:05 -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=QrtlUREQq2lhgOt3whoJddN27v5YME2qlHZx5rQeOQQ=; b=mTNlK59SgtgH3xgd7hSS4TlXWhJQfTLzCQ7KDPqXwIiiX4DNtPjVfk/IIPfpk3FK7t ZJH8z2wotpsqXXz0A+nwxAXR2KZjHP3E97n8v4r3CLjEKtN7/xpG+DvS1OQDEKkGB9D0 5/bl5uqkdqxUBuX+pfL8r8Pn0Dm2qQI6Y72Nx+xiPBs063dkbVrhaJSYnhEdUZbSSVUo piQ+C9q+YJsDU2bw+8yLCKZHyJ6J/PBTzFD4Rc1invD38GMXTgL14E+FKunNenA3Evcl ei1S//3sqdbAlVKc2ok/JH/sEYhMrhaFKRftAVE475w+1g8X4KABtf2pI+Q3IkSzF9AT MynQ== 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=QrtlUREQq2lhgOt3whoJddN27v5YME2qlHZx5rQeOQQ=; b=U1Gtu91pbrFgMNFCooy4BQFMNL3+r+urNc6d5pxLL3On25ZhRYEFjFdw4Tm3ICukDw ssgDUga+eJznLhpQtFSSLpvLXxSpHZYaYS2E9kZjXR1MYB44s3p8l7gkBZdzaL/Kd0ss YGhcn9B7U8PoHTVh08QUNzLln8/ochzCnKDWLjTOk5j65bLUjkDdfSrSfckpt57FtF6b YlWS+fDzPaSXu5EZ6II3K+Z5tGL0LjNMv65oDhANMnO5OF2Tq94N1/Bo37DKH3IoAL/F tWYtA6p6RJ8DiLPVy1eO5Ly5X9ja5Z/Y2qojk8wYSJ/RF9xDkJORRdtwT+vcQ74rTXpl mMpQ== X-Gm-Message-State: AOAM532XTjEda1Nsm7KrtZsu0sp97tV1pB6/TMGw776/XJtyE6YRmZQf zyYvmnqpSu+z+NtDTYOaD0s= X-Google-Smtp-Source: ABdhPJwcHJuThPgeqtWDTFBFLi15quHbrXpJ8gAAL5yjdhw7yYY01eVW5g/aGXwqodMR8N6IOYOkIg== X-Received: by 2002:a50:d302:: with SMTP id g2mr28172690edh.312.1593020884180; Wed, 24 Jun 2020 10:48:04 -0700 (PDT) Received: from localhost.localdomain ([188.24.137.55]) by smtp.gmail.com with ESMTPSA id s14sm8044146edq.36.2020.06.24.10.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 10:48:03 -0700 (PDT) From: Cristian Ciocaltea To: Stephen Boyd , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Rob Herring , Michael Turquette , Philipp Zabel Subject: [PATCH v2 3/6] clk: actions: Add APB, DMAC, GPIO clock support for Actions S500 SoC Date: Wed, 24 Jun 2020 20:47:54 +0300 Message-Id: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:544 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [cristian.ciocaltea[at]gmail.com] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add support for the missing APB, DMAC and GPIO clocks in the Actions Semi S500 SoC clock driver. Signed-off-by: Cristian Ciocaltea --- 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, };