From patchwork Fri Apr 10 20:56:26 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: 6199401 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 A86E69F1C4 for ; Fri, 10 Apr 2015 21:04:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D3BE920351 for ; Fri, 10 Apr 2015 21:04:43 +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 DE46F2034A for ; Fri, 10 Apr 2015 21:04:42 +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 1Ygg4Y-0004cx-Es; Fri, 10 Apr 2015 21:02:42 +0000 Received: from mail-by2on0100.outbound.protection.outlook.com ([207.46.100.100] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ygg4R-0004KR-NQ for linux-arm-kernel@lists.infradead.org; Fri, 10 Apr 2015 21:02:36 +0000 Received: from DM2PR03CA0027.namprd03.prod.outlook.com (10.141.96.26) by CY1PR0301MB0601.namprd03.prod.outlook.com (0.160.142.20) with Microsoft SMTP Server (TLS) id 15.1.130.23; Fri, 10 Apr 2015 21:02:01 +0000 Received: from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:157) by DM2PR03CA0027.outlook.office365.com (2a01:111:e400:2428::26) with Microsoft SMTP Server (TLS) id 15.1.136.25 via Frontend Transport; Fri, 10 Apr 2015 21:02:00 +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 BN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) with Microsoft SMTP Server (TLS) id 15.1.142.12 via Frontend Transport; Fri, 10 Apr 2015 21:01:59 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.204) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 10 Apr 2015 13:59:40 -0700 Received: from linux-builds1.altera.com (64.129.157.38) by CY1PR03MB1374.namprd03.prod.outlook.com (25.163.16.28) with Microsoft SMTP Server (TLS) id 15.1.112.19; Fri, 10 Apr 2015 21:01:54 +0000 From: To: , Subject: [PATCH] ARM: socfpga: dts: Add a ciu clock node for sdmmc Date: Fri, 10 Apr 2015 15:56:26 -0500 Message-ID: <1428699386-2622-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: BLUPR05CA0075.namprd05.prod.outlook.com (10.141.20.45) To CY1PR03MB1374.namprd03.prod.outlook.com (25.163.16.28) Authentication-Results: codeaurora.org; dkim=none (message not signed) header.d=none; X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1374; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0601; X-Microsoft-Antispam-PRVS: X-Forefront-Antispam-Report-Untrusted: BMV:1; SFV:NSPM; SFS:(10009020)(6009001)(50226001)(46102003)(47776003)(19580405001)(48376002)(50466002)(229853001)(53416004)(42186005)(19580395003)(86152002)(86362001)(40100003)(92566002)(77156002)(33646002)(50986999)(122386002)(66066001)(87976001)(62966003)(129583001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1374; H:linux-builds1.altera.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(5002010); SRVR:CY1PR03MB1374; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1374; BCL:0; PCL:0; RULEID:(601004)(5002010)(5005006); SRVR:CY1PR0301MB0601; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0601; X-Forefront-PRVS: 054231DC40 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1374 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD002.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)(199003)(189002)(33646002)(16796002)(229853001)(86362001)(50226001)(106466001)(19580405001)(87936001)(122386002)(77156002)(105606002)(19580395003)(47776003)(66066001)(6806004)(50986999)(62966003)(92566002)(53416004)(50466002)(86152002)(40100003)(48376002)(85426001)(46102003)(7099026)(129583001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0601; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; MLV:ovrnspm; A:0; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Forefront-PRVS: 054231DC40 X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2015 21:01:59.9458 (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: CY1PR0301MB0601 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150410_140235_841057_FB177E13 X-CRM114-Status: UNSURE ( 6.42 ) 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 , 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) clock is used by the dw_mmc IP to clock an SD card. The ciu_clk is the sdmmc_clk passed through a fixed divider of 4. This patch adds the ciu_clk node and makes the sdmmc_clk it's parent. Signed-off-by: Dinh Nguyen --- 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..25418ee 100644 --- a/arch/arm/boot/dts/socfpga.dtsi +++ b/arch/arm/boot/dts/socfpga.dtsi @@ -451,6 +451,14 @@ clk-phase = <0 135>; }; + ciu_clk: ciu_clk { + #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>, <&ciu_clk>; clock-names = "biu", "ciu"; };