From patchwork Tue Feb 12 16:28:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10808253 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 78D4E746 for ; Tue, 12 Feb 2019 16:29:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6795E2A23B for ; Tue, 12 Feb 2019 16:29:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C1502A86B; Tue, 12 Feb 2019 16:29:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0D7032A54E for ; Tue, 12 Feb 2019 16:29:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=jLjfyzcPIOkTZTVQmY5gog+Nhsa+Rdk4x9SZ4qsqNWU=; b=n7yIaMk3RnE1a8 oDiZjYWNayMSZS+dBvFkn3YqKTVlu0HNOkKM/inhRTbrXgSN17hhbpl0DqKvSEqTgxp3MlsOBm2+K RC1ZyQJwUi4IX5+XvySr1yweIZNb0jGql2U1//X7XANjBz47RhA7UqiZIDxuwNVLfc3DVfbzixjSb aEUrF1+ScqXXg2M/ovO6e2s/WLISRewlV2HC1N0LDpknSLEqgO5LjcnPDQeKIxkL3k/u6++cCCuDr bqDb48NLPiy+0z2ZSKfbTmClZMZA+DcK5Yue2c6rzGkeTQeqjwjQQ9xavXC65h4tnH5e9qxPFAsW8 8hwhbY7mAeEIgGU1btwA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtavk-000728-LN; Tue, 12 Feb 2019 16:29:08 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtavg-0006zq-Fu for linux-amlogic@lists.infradead.org; Tue, 12 Feb 2019 16:29:06 +0000 Received: by mail-wr1-x444.google.com with SMTP id l9so3329147wrt.13 for ; Tue, 12 Feb 2019 08:29:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c4mSsCon6GBdcpXgNWgQbQrrv5VNk+/N3Jshnb+5ts0=; b=EYNMnV5sNrocF3iwg2e/cigLaHz3u46sUAY2IMLd1kQVCvsVlT6E1M+TCyeRlzi1Ee OGPR82Olaayvqjshmjzf8ljY+Be0a8XlYfZ2ELHT8r3VXpz+Ba7WLEzi8YYoyG8rmuz2 e+tJHdsBUwZ3b69w5lYtBDDWorao1ykUkIo0llc0QrvEzXs5fnsQ+rbD1jO7sMdLyfQa U1gBOpgpGerIn/P3REMsGP8CWFBFDSzH/hGtWW6Scs56p8ROIcK4ZYlLp46O3oObx8pK b2Zr9YbGy0iMfmor00avHsafnOTazaf7om+PG91NshuDn3x6gfr+bbwpiwKRuOA/0DCQ szwQ== 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:mime-version :content-transfer-encoding; bh=c4mSsCon6GBdcpXgNWgQbQrrv5VNk+/N3Jshnb+5ts0=; b=ml8XiPQljHEmWI67DgkDUN3khSsbNCKBsq7IPA+8seFYeG2B0vMqHCh88MGyEPObZ1 LHWcK/viZj+o8XwOSbOryxCIToaM3oUvzYI235vMNgBGm9QxHeFBhveL9TdIZuDQIzZR UdeE1hwlcBoSXKRW2DF5fyjCOPJBkq9U6wUpTkcrsqjlIFIa/tgn0epVcc4JOuWnQdf+ eJee5fdOZe21NbuozgsQqXwU9NJTx0wJpkPrSLjZr4WDFChZ50ESJqgdcVD7uM7e9HDA fknxKcf0vLgXEJWF2lCPjpg621r61p3/8VCmuKDnWlb2CcgAh1pAOmwovTNuZXhM/bNA qCZQ== X-Gm-Message-State: AHQUAuZEkH/Tt4AplIc45fndPbgqXLGEdsggVKQzIkgidlN8Am86y2iK Ktn6Lr0013VVtvHjAueqVU0xOg== X-Google-Smtp-Source: AHgI3IaQ2zjXoLynNNuxjOAdM0y1ZygLbnhTGP/eGVeg5u2m9LLrFped1p8aXSRHPDTmLhkLU8B9Jw== X-Received: by 2002:adf:8068:: with SMTP id 95mr3563270wrk.181.1549988941394; Tue, 12 Feb 2019 08:29:01 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id z1sm7800876wrw.28.2019.02.12.08.29.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Feb 2019 08:29:00 -0800 (PST) From: Neil Armstrong To: jbrunet@baylibre.com Subject: [PATCH v2 0/2] clk: meson: Add G12A AO Clock + Reset Controller Date: Tue, 12 Feb 2019 17:28:57 +0100 Message-Id: <20190212162859.20743-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190212_082904_592126_4A46488D X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset add support for the Amlogic G12A SoC family Always-On clock and reset controller. This adds support for clocks on the Always-On domain like : - Always-On UARTS & I2C Controllers - CEC Controllers - SARADC source and bus clock - Infrared Decoder/Encoder bus clock - USB 32K reference clock This also adds resets lines for : - Always-On UARTS & I2C Controllers - SARADC, Infrared Decoder/Encoder This patchset depends on the ("clk: meson: rework drivers dependencies") from Jerome Brunet at [1]. Changes from v1 at [2]: - Moved unused bindings ID out of the dt-bindings header - Added comment about CLK_IGNORE_UNUSED [1] https://lkml.kernel.org/r/20190201125841.26785-1-jbrunet@baylibre.com [2] https://lkml.kernel.org/r/20190204091331.9298-1-narmstrong@baylibre.com Neil Armstrong (2): dt-bindings: clk: add G12A AO Clock and Reset Bindings clk: meson: Add G12A AO Clock + Reset Controller .../bindings/clock/amlogic,gxbb-aoclkc.txt | 1 + drivers/clk/meson/Kconfig | 2 + drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/g12a-aoclk.c | 454 ++++++++++++++++++ drivers/clk/meson/g12a-aoclk.h | 34 ++ include/dt-bindings/clock/g12a-aoclkc.h | 34 ++ include/dt-bindings/reset/g12a-aoclkc.h | 18 + 7 files changed, 544 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/meson/g12a-aoclk.c create mode 100644 drivers/clk/meson/g12a-aoclk.h create mode 100644 include/dt-bindings/clock/g12a-aoclkc.h create mode 100644 include/dt-bindings/reset/g12a-aoclkc.h Acked-by: Jerome Brunet