From patchwork Tue Dec 3 07:35:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SmFtZXMgVGFpIFvmiLTlv5fls7Bd?= X-Patchwork-Id: 11270653 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 6C782139A for ; Tue, 3 Dec 2019 07:36:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 35E732068E for ; Tue, 3 Dec 2019 07:36:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DVjlJSIN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 35E732068E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type: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=1XxiA5QazVob0TWDqeNkSL+1GWrUEUXScN5aUWv3EKs=; b=DVjlJSINUVfI4Z UbJTXZApiJUvZ4V7Et1LyGv1knC+HH08mxV6XmIpEYcgh5qhLx2WUg9Q8pA4r81pCkzZWfTAv3TG8 VFb9emkqq8g5p9/rzAZ3tSRRXLQoJTf362A48E6xpj1mSb0b42cy8DuL6+5SCk29BexZ+Oox0R383 r7iwLT92G7XdnNsNj1f81rpZt889oHfi83PxBlSihnvaFbiIzBSGZTXlQSOwF9CmzmCEHhFshrKAT uuUD/C0Iy88E+nF6czfLuokL0aWI7+I+8l2Ga+rX+es059YoMxssceJMsV+qU5CpxMQjyMihQndX8 wc4p9DDIlrktArivcy8Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ic2jB-0000Ju-ID; Tue, 03 Dec 2019 07:36:09 +0000 Received: from rtits2.realtek.com ([211.75.126.72] helo=rtits2.realtek.com.tw) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ic2iu-00007O-Oc; Tue, 03 Dec 2019 07:35:54 +0000 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID xB37ZkLc014023, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id xB37ZkLc014023 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 3 Dec 2019 15:35:46 +0800 Received: from james-BS01.localdomain (172.21.190.33) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Tue, 3 Dec 2019 15:35:45 +0800 From: James Tai To: =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 0/6] arm64: Realtek RTD1619 clock and reset controllers Date: Tue, 3 Dec 2019 15:35:34 +0800 Message-ID: <20191203073540.9321-1-james.tai@realtek.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191202_233552_950348_7E17984E X-CRM114-Status: UNSURE ( 7.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [211.75.126.72 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-riscv@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, Cheng-Yu Lee , Palmer Dabbelt , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Paul Walmsley , Matthias Brugger , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org Hi Andreas, This series adds clock and reset controllers for the Realtek RTD1619 SoC. Cc: Andreas Färber Cc: Cheng-Yu Lee Cc: devicetree@vger.kernel.org cylee12 (6): dt-bindings: clock: add bindings for RTD1619 clocks dt-bindings: reset: add bindings for rtd1619 reset controls clk: realtek: add common clock support for Realtek SoCs clk: realtek: add reset controller support for Realtek SoCs clk: realtek: add rtd1619 controllers dt-bindings: clk: realtek: add rtd1619 clock controller bindings .../bindings/clock/realtek,clocks.txt | 38 ++ drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/realtek/Kconfig | 21 + drivers/clk/realtek/Makefile | 12 + drivers/clk/realtek/clk-pll-dif.c | 81 +++ drivers/clk/realtek/clk-pll-psaud.c | 120 ++++ drivers/clk/realtek/clk-pll.c | 400 +++++++++++++ drivers/clk/realtek/clk-pll.h | 151 +++++ drivers/clk/realtek/clk-regmap-gate.c | 89 +++ drivers/clk/realtek/clk-regmap-gate.h | 26 + drivers/clk/realtek/clk-regmap-mux.c | 63 ++ drivers/clk/realtek/clk-regmap-mux.h | 26 + drivers/clk/realtek/clk-rtd1619-cc.c | 553 ++++++++++++++++++ drivers/clk/realtek/clk-rtd1619-ic.c | 112 ++++ drivers/clk/realtek/common.c | 320 ++++++++++ drivers/clk/realtek/common.h | 123 ++++ drivers/clk/realtek/reset.c | 107 ++++ drivers/clk/realtek/reset.h | 37 ++ include/dt-bindings/clock/rtk,clock-rtd1619.h | 88 +++ include/dt-bindings/reset/rtk,reset-rtd1619.h | 124 ++++ 21 files changed, 2493 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/realtek,clocks.txt create mode 100644 drivers/clk/realtek/Kconfig create mode 100644 drivers/clk/realtek/Makefile create mode 100644 drivers/clk/realtek/clk-pll-dif.c create mode 100644 drivers/clk/realtek/clk-pll-psaud.c create mode 100644 drivers/clk/realtek/clk-pll.c create mode 100644 drivers/clk/realtek/clk-pll.h create mode 100644 drivers/clk/realtek/clk-regmap-gate.c create mode 100644 drivers/clk/realtek/clk-regmap-gate.h create mode 100644 drivers/clk/realtek/clk-regmap-mux.c create mode 100644 drivers/clk/realtek/clk-regmap-mux.h create mode 100644 drivers/clk/realtek/clk-rtd1619-cc.c create mode 100644 drivers/clk/realtek/clk-rtd1619-ic.c create mode 100644 drivers/clk/realtek/common.c create mode 100644 drivers/clk/realtek/common.h create mode 100644 drivers/clk/realtek/reset.c create mode 100644 drivers/clk/realtek/reset.h create mode 100644 include/dt-bindings/clock/rtk,clock-rtd1619.h create mode 100644 include/dt-bindings/reset/rtk,reset-rtd1619.h