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: 9153943 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 793026082E for ; Fri, 3 Jun 2016 19:36:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 647E928333 for ; Fri, 3 Jun 2016 19:36:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5762E28336; Fri, 3 Jun 2016 19:36:35 +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=-3.3 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=ham 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 DF88028333 for ; Fri, 3 Jun 2016 19:36:34 +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 1b8usC-0004y9-82; Fri, 03 Jun 2016 19:35:12 +0000 Received: from mail-io0-x243.google.com ([2607:f8b0:4001:c06::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8us8-0003Qw-PL for linux-arm-kernel@lists.infradead.org; Fri, 03 Jun 2016 19:35:09 +0000 Received: by mail-io0-x243.google.com with SMTP id k19so11704793ioi.2 for ; Fri, 03 Jun 2016 12:34:47 -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=YIlLPExUdHJJMtjrUShSyjqTrqqxMt1GbjW7uUuYzyE2pPPVhlRrnmB5UXwwfjfoWv RI+QZgkpmd4e7yV/gryt3yCP92rENvrHgdV/63XucH8gYBQTDQy5vF3kj5XH/m6zEK9/ ynxMv+gdDZEkDfhuTAhiPBR319iPU2qbsqEFF7NwevwPsKpOMZTIhv93tsoB+ILmrk7X ACyBs0t9UoHIRz5geOBHSZwRH+Fl1Mv+kd3xk4q2QOCidMuyPLIwUUgFKzvx7X8/Xx6G D/4wCXEvq69U4Hb2Ez3pSfIpRziva+FCkmSb6C1tWwYoDQ8jG39KZN8uHVfqj0/WxJjb 0xFg== X-Gm-Message-State: ALyK8tI2sa/8OpLcMTZt/KN3AJeRrULHVOQIn1z/hx5f6fvX9iLiXP6v2XecXEf/QmcZFA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160603_123508_971372_B1A20E42 X-CRM114-Status: GOOD ( 12.64 ) 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-clk@vger.kernel.org, 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 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 --- 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