From patchwork Tue Apr 14 16:05:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinguyen@opensource.altera.com X-Patchwork-Id: 6217021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 207E39F1C4 for ; Tue, 14 Apr 2015 16:13:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5242A20172 for ; Tue, 14 Apr 2015 16:13:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6416D2015E for ; Tue, 14 Apr 2015 16:13:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yi3Qc-0004S4-7X; Tue, 14 Apr 2015 16:11:10 +0000 Received: from mail-bn1on0067.outbound.protection.outlook.com ([157.56.110.67] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yi3QU-0004L8-T2 for linux-arm-kernel@lists.infradead.org; Tue, 14 Apr 2015 16:11:04 +0000 Received: from DM2PR03MB463.namprd03.prod.outlook.com (10.141.85.20) by DM2PR03MB432.namprd03.prod.outlook.com (10.141.85.21) with Microsoft SMTP Server (TLS) id 15.1.136.17; Tue, 14 Apr 2015 16:10:40 +0000 Received: from CO2PR03CA0036.namprd03.prod.outlook.com (10.141.194.163) by DM2PR03MB463.namprd03.prod.outlook.com (10.141.85.20) with Microsoft SMTP Server (TLS) id 15.1.136.17; Tue, 14 Apr 2015 16:10:38 +0000 Received: from BY2FFO11FD025.protection.gbl (2a01:111:f400:7c0c::154) by CO2PR03CA0036.outlook.office365.com (2a01:111:e400:1414::35) with Microsoft SMTP Server (TLS) id 15.1.118.21 via Frontend Transport; Tue, 14 Apr 2015 16:10:37 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; codeaurora.org; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BY2FFO11FD025.mail.protection.outlook.com (10.1.15.214) with Microsoft SMTP Server (TLS) id 15.1.142.12 via Frontend Transport; Tue, 14 Apr 2015 16:10:37 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.142) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 14 Apr 2015 09:08:13 -0700 Received: from linux-builds1.altera.com (64.129.157.38) by BN3PR03MB1365.namprd03.prod.outlook.com (25.163.34.151) with Microsoft SMTP Server (TLS) id 15.1.118.21; Tue, 14 Apr 2015 16:10:33 +0000 From: To: , Subject: [PATCHv2] ARM: socfpga: dts: Add a clock node for sdmmc CIU Date: Tue, 14 Apr 2015 11:05:19 -0500 Message-ID: <1429027519-22209-1-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.2.1 MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BN1PR08CA0011.namprd08.prod.outlook.com (10.242.217.139) To BN3PR03MB1365.namprd03.prod.outlook.com (25.163.34.151) Authentication-Results: codeaurora.org; dkim=none (message not signed) header.d=none; X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1365; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR03MB463; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR03MB432; X-Forefront-Antispam-Report-Untrusted: BMV:1; SFV:NSPM; SFS:(10009020)(6009001)(53416004)(46102003)(33646002)(86362001)(122386002)(92566002)(19580395003)(19580405001)(50986999)(50466002)(4001410100001)(42186005)(40100003)(87976001)(47776003)(86152002)(48376002)(62966003)(66066001)(50226001)(229853001)(77156002)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1365; H:linux-builds1.altera.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5002010)(5005006); SRVR:BN3PR03MB1365; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1365; BCL:0; PCL:0; RULEID:(601004)(5005006)(5002010); SRVR:DM2PR03MB463; BCL:0; PCL:0; RULEID:; SRVR:DM2PR03MB463; X-Forefront-PRVS: 054642504A X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1365 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BY2FFO11FD025.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236; CTRY:US; IPV:NLI; EFV:NLI; BMV:1; SFV:NSPM; SFS:(10009020)(6009001)(339900001)(189002)(199003)(6806004)(86362001)(19580405001)(229853001)(48376002)(16796002)(47776003)(77156002)(50466002)(122386002)(33646002)(4001540100001)(50986999)(4001410100001)(40100003)(62966003)(86152002)(19580395003)(66066001)(92566002)(46102003)(50226001)(85426001)(106466001)(87936001)(105606002)(53416004)(7099027)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB463; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:0; PTR:InfoDomainNonexistent; LANG:en; X-Forefront-PRVS: 054642504A X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2015 16:10:37.2403 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB463 X-OriginatorOrg: opensource.altera.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150414_091103_112239_76C188DE X-CRM114-Status: UNSURE ( 6.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, dinh.linux@gmail.com, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, dianders@chromium.org, setka@vsis.cz, robh+dt@kernel.org, galak@codeaurora.org, Dinh Nguyen , s.trumtrar@pengutronix.de, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dinh Nguyen The CIU(Card Interface Unit) get its clock from the sdmmc_clk_divided clock which is used to clock the card. The sdmmc_clk_divided clock is the sdmmc_clk passed through a fixed divider of 4. This patch adds the sdmmc_clk_divided node and makes the sdmmc_clk it's parent. Signed-off-by: Dinh Nguyen --- v2: renamed ciu_clk to sdmmc_clk_divided --- arch/arm/boot/dts/socfpga.dtsi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi index d9176e6..be4beda 100644 --- a/arch/arm/boot/dts/socfpga.dtsi +++ b/arch/arm/boot/dts/socfpga.dtsi @@ -451,6 +451,14 @@ clk-phase = <0 135>; }; + sdmmc_clk_divided: sdmmc_clk_divided { + #clock-cells = <0>; + compatible = "altr,socfpga-gate-clk"; + clocks = <&sdmmc_clk>; + clk-gate = <0xa0 8>; + fixed-divider = <4>; + }; + nand_x_clk: nand_x_clk { #clock-cells = <0>; compatible = "altr,socfpga-gate-clk"; @@ -635,7 +643,7 @@ fifo-depth = <0x400>; #address-cells = <1>; #size-cells = <0>; - clocks = <&l4_mp_clk>, <&sdmmc_clk>; + clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>; clock-names = "biu", "ciu"; };