From patchwork Tue Feb 11 11:37:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 3626321 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 51DBDBF418 for ; Tue, 11 Feb 2014 11:38:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86BF9201F2 for ; Tue, 11 Feb 2014 11:38:40 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 9C1FF201EF for ; Tue, 11 Feb 2014 11:38:39 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDBff-0003ZO-Od; Tue, 11 Feb 2014 11:38:35 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDBfd-0007iU-6N; Tue, 11 Feb 2014 11:38:33 +0000 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDBfa-0007hM-9F for linux-arm-kernel@lists.infradead.org; Tue, 11 Feb 2014 11:38:30 +0000 Received: from e106331-lin.cambridge.arm.com (e106331-lin.cambridge.arm.com [10.1.205.154]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id s1BBbFkj008527; Tue, 11 Feb 2014 11:38:01 GMT From: Mark Rutland To: devicetree@vger.kernel.org Subject: [PATCH 1/7] Documentation: devicetree: fix up pl011 clocks Date: Tue, 11 Feb 2014 11:37:06 +0000 Message-Id: <1392118632-11312-2-git-send-email-mark.rutland@arm.com> X-Mailer: git-send-email 1.8.1.1 In-Reply-To: <1392118632-11312-1-git-send-email-mark.rutland@arm.com> References: <1392118632-11312-1-git-send-email-mark.rutland@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140211_063830_552684_D027A8E1 X-CRM114-Status: GOOD ( 12.68 ) X-Spam-Score: -7.5 (-------) Cc: Mark Rutland , Russell King , pawel.moll@arm.com, Arnd Bergmann , robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 The "arm,pl011" device tree binding only describes the apb_pclk clock input, which is not sufficient to use the device. Knowledge of the uartclk clock input is required to be able to change the baud rate, as the baud rate is derived from the reference uartclk input. On systems where the uartclk input is not initially enabled, it is also required to use the device in any fashion. This patch adds the uartclk input to the pl011 device tree binding. The clock-names property is also described, as it is an implied requirement of the primecell binding the pl011 binding is derived from. Signed-off-by: Mark Rutland Cc: Russell King Cc: Arnd Bergmann Cc: Rob Herring Cc: Pawel Moll --- Documentation/devicetree/bindings/serial/pl011.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/pl011.txt b/Documentation/devicetree/bindings/serial/pl011.txt index 5d2e840..f0a9e77 100644 --- a/Documentation/devicetree/bindings/serial/pl011.txt +++ b/Documentation/devicetree/bindings/serial/pl011.txt @@ -8,8 +8,10 @@ Required properties: Optional properties: - pinctrl: When present, must have one state named "sleep" and one state named "default" -- clocks: When present, must refer to exactly one clock named - "apb_pclk" +- clocks: When present, must refer to a clock named + "apb_pclk", and optionally "uartclk". +- clock-names: When present, should include "apb_pclk" and + "uartclk", matching the clocks property. - dmas: When present, may have one or two dma channels. The first one must be named "rx", the second one must be named "tx".