From patchwork Mon Jul 9 22:41:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 10515857 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A372603D7 for ; Mon, 9 Jul 2018 22:41:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A52F28E35 for ; Mon, 9 Jul 2018 22:41:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4896728E3B; Mon, 9 Jul 2018 22:41:38 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 F1E3D28E35 for ; Mon, 9 Jul 2018 22:41:37 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=s1cBePV1ta1Jfecffqe8qagnCUsyutG6DpJwnwXKctk=; b=SzH ux3NyH86IsSBvO+zkqaPqBZIP6cPmy+ixv8HG7rCUpjqMPyu1u8kEv2+WHychZE/X3Q4k+zv/3e+s ir2Rdky1f2aXklpok3pACtparhSiC3IonxauRKxqGPB4BT43/TOTw2sHw/GvROEHGWTK0cZas0DuP 72dImGv3zyBDsI5YkyTvE3UC3+20YcdD2vGcKsB4kFtQKg4Eku9gXWarVoJQosqOlsZ2rmSw18rFd fkJCQy6Pf4E9NSpFn7MV1KVShGItpV0XeeXdCDbbL+FS68tvMdUDEpP4/PWrYoVnxtT79Q0AHGVFg NURvCUN8ZEi8NAzf7tlt6LahTspjLUQ==; 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 1fceqc-0006EM-NR; Mon, 09 Jul 2018 22:41:34 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fceqa-0006CB-AF for linux-arm-kernel@lists.infradead.org; Mon, 09 Jul 2018 22:41:33 +0000 Received: from localhost.localdomain (cpe-70-114-128-244.austin.res.rr.com [70.114.128.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF7A22086B; Mon, 9 Jul 2018 22:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531176081; bh=5sKBBdX09kF/wykMLUM24yiZk+Do8HocpXD4GhdUMUo=; h=From:To:Cc:Subject:Date:From; b=t1JCXWD6VZ5WPN7AM/iFdqKxX5HjofrgL5jusWkZ6Cm7F/UWaTHUkB7bC3SVz/nrN Yc1XkuTfZYA+5NurNJkVpDtcUGupveVjU9fLBI7V8E1BqRiVbeq0JaQ2oE8+UPDo7C SqYmRpzFOcq7bo2jPrqJIQEjjXoEqACSa5Vee8gU= From: Dinh Nguyen To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] ARM: dts: arria10: update NAND clocking Date: Mon, 9 Jul 2018 17:41:02 -0500 Message-Id: <1531176063-30140-1-git-send-email-dinguyen@kernel.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180709_154132_374189_D10ADAB2 X-CRM114-Status: GOOD ( 10.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, marex@denx.de, yamada.masahiro@socionext.com, dinguyen@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The NAND IP needs 2 clocks(nand_x_clk and nand_clk). This patch adds a nand_x_clk, which is derived from the nand_clk, but has a fixed divider of 4. Update the NAND node to use the additional clock. Signed-off-by: Dinh Nguyen --- arch/arm/boot/dts/socfpga_arria10.dtsi | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi index a4dcb68..558b5ea 100644 --- a/arch/arm/boot/dts/socfpga_arria10.dtsi +++ b/arch/arm/boot/dts/socfpga_arria10.dtsi @@ -377,13 +377,21 @@ clk-gate = <0xC8 11>; }; - nand_clk: nand_clk { + nand_x_clk: nand_x_clk { #clock-cells = <0>; compatible = "altr,socfpga-a10-gate-clk"; clocks = <&l4_mp_clk>; clk-gate = <0xC8 10>; }; + nand_clk: nand_clk { + #clock-cells = <0>; + compatible = "altr,socfpga-a10-gate-clk"; + clocks = <&nand_x_clk>; + fixed-divider = <4>; + clk-gate = <0xC8 10>; + }; + spi_m_clk: spi_m_clk { #clock-cells = <0>; compatible = "altr,socfpga-a10-gate-clk"; @@ -650,7 +658,8 @@ reg-names = "nand_data", "denali_reg"; interrupts = <0 99 4>; dma-mask = <0xffffffff>; - clocks = <&nand_clk>; + clocks = <&nand_clk>, <&nand_x_clk>; + clock-names = "nand", "nand_x"; status = "disabled"; };