From patchwork Fri Jun 3 19:34:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylvain Lemieux X-Patchwork-Id: 9153941 X-Patchwork-Delegate: mturquette@baylibre.com 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 344D76082E for ; Fri, 3 Jun 2016 19:34:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2250B20120 for ; Fri, 3 Jun 2016 19:34:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 166EB28335; Fri, 3 Jun 2016 19:34:50 +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=-6.0 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2E2F20120 for ; Fri, 3 Jun 2016 19:34:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbcFCTet (ORCPT ); Fri, 3 Jun 2016 15:34:49 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:34725 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752432AbcFCTes (ORCPT ); Fri, 3 Jun 2016 15:34:48 -0400 Received: by mail-io0-f195.google.com with SMTP id l9so11726633ioe.1 for ; Fri, 03 Jun 2016 12:34:48 -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=3OCaI13Cg8P+xcejOvPSa95mPKoUmTbAzxT4v5CgPdw=; b=ncQEU3iumko4c7JQM43NSpZdRc/VZZ34SGcbXuoJFW63TjShHwjDufNzMg1VyT+rJQ Y0rscE4yg67+DMZSxnbyDO3hdobHtTLZiMNUa4CUkD8KKLcoLx2xFdp25DhPj7YfyWFh JL79SKee6JdfiEz24345VuzBL3KbhZDpkqQOqVj7l+q1P2rzmot0jAAw2lRT6QocexPJ n/bGLCNJ+8IIcWYlIA/YfTsg/6+pteh7OhlGScV6LTzE0eH7Vs+nRVKhgrlwtAmw4KRF gQTmgoqPfaoUZm8FUEL2MuN/cnBjaPbXUfAB9HbhfBlRc0XtsLXjEF4Do3UcnIf+8uCS eDhQ== 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=3OCaI13Cg8P+xcejOvPSa95mPKoUmTbAzxT4v5CgPdw=; b=T43wx9OCmloMocY9AnqKG23KoeTfqKm4GsSRbL8wXhoNOMr8DG6KzFglEPD1NFhPME 13o8TQGvsNuGoF11lNUPoWyW6w5T/x3oldd1FnqjmLWPNiEMooHLNQNo0g2BDUIYDEGn SuY1bPV/Os6yZ/gdcB5QzNJoRXcM/Hm6EmhG+6NHz6el5Z5CS7/QyJRoPxgrR+Iz4Yp9 E/OBlueHE/M0KnoxQ3Bcmeyy8OJih1JwE7Mj7Ag6YHTy8oZa0iSh4n/3nalkC1R3TChV v0zwKdoKBRNPQr+hz2HFVjPKLlWpX9uMbEKKIZ22ny1hBC174oqsyy/pYA5TJPnY+cRA fE3w== X-Gm-Message-State: ALyK8tJRU5osQ8iWOCJjPXDQoNKLuHPf9KhbNeEYb72ejiaHEtrYJ6PZb0wG1DUbHJX4Kw== X-Received: by 10.107.7.161 with SMTP id g33mr1451310ioi.64.1464982487480; Fri, 03 Jun 2016 12:34:47 -0700 (PDT) Received: from CABRO3AP00510.americas.tsp.ad ([74.51.240.241]) by smtp.gmail.com with ESMTPSA id i128sm3414294ioa.41.2016.06.03.12.34.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jun 2016 12:34:46 -0700 (PDT) From: Sylvain Lemieux To: vz@mleia.com, sboyd@codeaurora.org, mturquette@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH] clk: lpc32xx: allow peripheral clock selection in device tree Date: Fri, 3 Jun 2016 15:34:35 -0400 Message-Id: <1464982475-24738-1-git-send-email-slemieux.tyco@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sylvain Lemieux This patch add the support to select the peripheral clock (PERIPH) as a parent clock source using the "assigned-clock-parents" parameter in the device tree. Signed-off-by: Sylvain Lemieux Acked-by: Vladimir Zapolskiy --- drivers/clk/nxp/clk-lpc32xx.c | 3 +-- include/dt-bindings/clock/lpc32xx-clock.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c index 481b264..90d740a 100644 --- a/drivers/clk/nxp/clk-lpc32xx.c +++ b/drivers/clk/nxp/clk-lpc32xx.c @@ -87,7 +87,7 @@ enum { enum { /* Start from the last defined clock in dt bindings */ - LPC32XX_CLK_ADC_DIV = LPC32XX_CLK_HCLK_PLL + 1, + LPC32XX_CLK_ADC_DIV = LPC32XX_CLK_PERIPH + 1, LPC32XX_CLK_ADC_RTC, LPC32XX_CLK_TEST1, LPC32XX_CLK_TEST2, @@ -99,7 +99,6 @@ enum { LPC32XX_CLK_HCLK_DIV_PERIPH, LPC32XX_CLK_HCLK_DIV, LPC32XX_CLK_HCLK, - LPC32XX_CLK_PERIPH, LPC32XX_CLK_ARM, LPC32XX_CLK_ARM_VFP, diff --git a/include/dt-bindings/clock/lpc32xx-clock.h b/include/dt-bindings/clock/lpc32xx-clock.h index d41b6fe..e624d3a 100644 --- a/include/dt-bindings/clock/lpc32xx-clock.h +++ b/include/dt-bindings/clock/lpc32xx-clock.h @@ -48,6 +48,7 @@ #define LPC32XX_CLK_PWM2 33 #define LPC32XX_CLK_ADC 34 #define LPC32XX_CLK_HCLK_PLL 35 +#define LPC32XX_CLK_PERIPH 36 /* LPC32XX USB clocks */ #define LPC32XX_USB_CLK_I2C 1