From patchwork Mon Sep 26 18:54:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylvain Lemieux X-Patchwork-Id: 9351203 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 3CBF26077A for ; Mon, 26 Sep 2016 18:56:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23D1028831 for ; Mon, 26 Sep 2016 18:56:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15EE628B11; Mon, 26 Sep 2016 18:56:46 +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=-0.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 463EB28831 for ; Mon, 26 Sep 2016 18:56:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bob3E-0004Wi-U4; Mon, 26 Sep 2016 18:54:52 +0000 Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bob3B-0004VD-4U for linux-arm-kernel@lists.infradead.org; Mon, 26 Sep 2016 18:54:49 +0000 Received: by mail-io0-x242.google.com with SMTP id z135so11511670ioe.3 for ; Mon, 26 Sep 2016 11:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=6SsE/uZgJIkvZDh1F97en3+w/SMrM70kcb4C4HO63dI=; b=DtC14eR0rvjqmzvhmifi9M38yVLBbiFG1Yyl1D4lPyU7mrCp+ROgIe3PndZWn2tmhb 6W9O5FbNhs1WpcuxfAR3Rw7chS8EMQX4+SgUBX2afQJNfOInYlUYQLqctB35Uqvl4BBd 8Zvqg6xOzG0NWOIiWN2HKQi5iBknnfr5esESrbbpwOCfy13afSsSZ+IK+H9byVXyB//1 u2tIds3Gc0nnBMTzstMEIbPQ0P9JAgb38NjYCLRK+77+LhL7U/E5FGHGc+2jc3XN+4VY 41QVwj9IscHbO7dSNvXVK01pmXR3mM19/u7DGKSxAzFqMqIxSUZxrsFfN4nc4Ad8hkG3 VjMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6SsE/uZgJIkvZDh1F97en3+w/SMrM70kcb4C4HO63dI=; b=hqf5vke9kbTERmBT3m53f3+tmW3ZNU2xeYaW6jzIfUbH82a1WL6DOsc+sRb808LeyS qUtEAQaB+DG2UUx3WFK3hCRgUjnQcHnUmMFB021Umqumy6/sh794cgOpsttSSgKDcp0r krraHFR4M9jiXGZ4Sxs6AoclIH/lS89b6ej9XYrAIk1OUvI1KRwe4nUQjAFMyCin5w6n 3qgREQhVah/ny4jke4QuJrZxEcFEc6xLZU9DxYpAXZrpXMKsxXusLOk8g1POnC3FnJD/ BaoofvpjSITZ/QyL502u4dsfFy2F2Anf7/8/of13ZUZ6zvTyIaBt3nhpAvHh1VibIXVn jMhQ== X-Gm-Message-State: AE9vXwNLCowNDrhTKSbslGeRbz4HR6JIfY3c7NRAvCXKtmCrJnIpNDy8Kf7DD8hW8nXYpw== X-Received: by 10.107.142.147 with SMTP id q141mr24135143iod.67.1474916068439; Mon, 26 Sep 2016 11:54:28 -0700 (PDT) Received: from CABRO3AP00510.localdomain ([74.51.240.241]) by smtp.gmail.com with ESMTPSA id g65sm8710211ioj.24.2016.09.26.11.54.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Sep 2016 11:54:27 -0700 (PDT) From: Sylvain Lemieux To: vz@mleia.com Subject: [PATCH] ARM: dts: lpc32xx: set pwm1 & pwm2 default clock rate Date: Mon, 26 Sep 2016 14:54:16 -0400 Message-Id: <1474916056-11336-1-git-send-email-slemieux.tyco@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160926_115449_261779_25875474 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.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 From: Sylvain Lemieux Probably most of NXP LPC32xx boards have 13MHz main oscillator and therefore for HCLK PLL and ARM core clock rate default hardware setting of 16 * 13MHz = 208MHz and the AHB bus clock rate of 208MHz / 2 = 104MHz. The change explicitly defines the peripheral PWM1/PWM2 default clock output rate of 104MHz. If needed it can be redefined in a board DTS file. Signed-off-by: Sylvain Lemieux --- Note: * There is a dependency on the following patch: "ARM: dts: lpc32xx: set default parent clock for pwm1 & pwm2" http://www.spinics.net/lists/arm-kernel/msg530277.html * This patch should be apply after "ARM: dts: lpc32xx: add pwm-cells to base dts file" http://www.spinics.net/lists/arm-kernel/msg534050.html - There is no dependency between the patches. arch/arm/boot/dts/lpc32xx.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/lpc32xx.dtsi b/arch/arm/boot/dts/lpc32xx.dtsi index c031c94..d669200 100644 --- a/arch/arm/boot/dts/lpc32xx.dtsi +++ b/arch/arm/boot/dts/lpc32xx.dtsi @@ -471,6 +471,7 @@ clocks = <&clk LPC32XX_CLK_PWM1>; assigned-clocks = <&clk LPC32XX_CLK_PWM1>; assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>; + assigned-clock-rates = <104000000>; status = "disabled"; #pwm-cells = <2>; }; @@ -481,6 +482,7 @@ clocks = <&clk LPC32XX_CLK_PWM2>; assigned-clocks = <&clk LPC32XX_CLK_PWM2>; assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>; + assigned-clock-rates = <104000000>; status = "disabled"; #pwm-cells = <2>; };