Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp771905ybt; Wed, 24 Jun 2020 10:48:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaj3CrPhmYDiIJYLz//qUOeV4RRkgABsMI3euaNXJ56tFu4abUo3dCe0lJ2PDSHLGzGNNr X-Received: by 2002:a17:906:27c9:: with SMTP id k9mr20589995ejc.74.1593020936196; Wed, 24 Jun 2020 10:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593020936; cv=none; d=google.com; s=arc-20160816; b=Tvdd2SCRHv39+42y7Y6hnHsN3kRnG1PHiQM7nw3l8bXSLySc7qd8H9j2U58WdR40My DudI9SJM0qQN2WR6DGRAeVEr4aol+JItYdiOQQPj8TJdhBeKNHlYjzy3ITjlvLZX+XN3 9Cta7t6By3e6JvE1YALI0qXxgzPqIHnQLrPnbQJm91cRE80FiqfoW1PxluhSJN4BNHCi E3R52Or+Ggs2atr0fnI3LNWRG0JMAdlrTJEvTS093Orp4rR4W0Cb3NLYAlYs0RRjNuGQ VGQFDUfI2UdnafAbvQYhpUoApsmDVoV6/GqBg9AIQHlIducTMwlvkVCvvZ3JSafjILG5 sh1Q== 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=QrtlUREQq2lhgOt3whoJddN27v5YME2qlHZx5rQeOQQ=; b=dC5Wh3urgu5i4sMmnsCC3Tx8CRouzZZzwtwgP3/jNZqfHoMHok3VYeD8PwYV0F+nMy Zmn2hsSd8hWAfKR7KzYilGjRKwoYT+Ss8WTZSgtoIHCWVq63SQp0kjnbAn9mjMqaiqLI Qrdg6xTaZkGK9V8BkQy0dS4XuvthVgg+/i62NmxA/uzOfLyqRWLEJo0zS2J0pUWQO52R avYicIPVNxtfQWbIrYwg/z7ND4za6rtfUtxYbRMehmrby63sMP5YklIyyPSRUmAZQxLp PGUa8AL/O9s6WPPtgvGNZMqcxGE714xPz5f5x9PabQcmv4lilKuq6lkQn6M3PlW2r1wT WFkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mTNlK59S; 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 r1si13465426ejh.683.2020.06.24.10.48.32; Wed, 24 Jun 2020 10:48:56 -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=mTNlK59S; 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 S2405714AbgFXRsL (ORCPT + 99 others); Wed, 24 Jun 2020 13:48:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405622AbgFXRsH (ORCPT ); Wed, 24 Jun 2020 13:48:07 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA1DC0613ED; Wed, 24 Jun 2020 10:48:07 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id t21so2117751edr.12; Wed, 24 Jun 2020 10:48:07 -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=QBoKMy4rSaD9Iq4DkD0ga1FIK5+001xWZZC3BrSBpiBPfzKxpQdIJ3p2OT56cxMVBw AnZspKfIXc4HFDgtgSsodsFCiVMFOLFPYzDdjTFAsCnNLjw/3tOuBfnJkKzl5bRUxtmH q5ktFhEokkun+hp03wqW4ntI1Vds1wychARpyOomqMFk8Rx1VHv6sucCnTkjZo9E7fmQ w5XogSu4Cygd1uQqajjDY5fyhAbHOEkIhYrlTOwc0ImKxzhgqFzw9xLm7f7IkPF8rB2K yRgDrUSMIHxRvfCHnPtXIDTKh0ogleozFT4ueB7t6Qz10DXcc+fxBNm2nT1DCBZomkc4 GeHw== X-Gm-Message-State: AOAM531gsczE+4+73/y0Dyc/9BV1jMi1JeHBkp2fDNlyUdjgYccJaTJv +GYcs2KbkteH6lI2ooncElU= 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=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 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 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 --- 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