Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752429AbbF3UhI (ORCPT ); Tue, 30 Jun 2015 16:37:08 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:54415 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751534AbbF3UhA (ORCPT ); Tue, 30 Jun 2015 16:37:00 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Paul Osmialowski , Greg Kroah-Hartman , Ian Campbell , Jiri Slaby , Kumar Gala , Linus Walleij , Mark Rutland , Michael Turquette , Pawel Moll , Rob Herring , Russell King , Stephen Boyd , Vinod Koul , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, Nicolas Pitre , Sergei Poselenov , Paul Bolle , Jingchang Lu , Yuri Tikhonov , Rob Herring , Geert Uytterhoeven , Uwe Kleine-Koenig , Alexander Potashev , Frank Li , Thomas Gleixner , Anson Huang Subject: Re: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC Date: Tue, 30 Jun 2015 22:36:38 +0200 Message-ID: <28154735.0HeJqZBqop@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1435667250-28299-4-git-send-email-pawelo@king.net.pl> References: <1435667250-28299-1-git-send-email-pawelo@king.net.pl> <1435667250-28299-4-git-send-email-pawelo@king.net.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:BsIZ41oW3r2OVLvQrdhMTHHZ/yb4XQaoqUx44gyD36OuqH6I8G1 AhDMhkkSIb6/a5CeBerIlO+KdwMt7LuQHbsLBlTQt28e7Chr58tLDql2C79JftlH/LpSZHW ouuIUBciAL9q9dLAmNX7HTUwj8vL2ngaQOuuT9dof3O26bV9BUlmIvEzdko2GhJ/MUjA+4m FebGq/nHexEkPixho0roQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:uAUN8fWiMz0=:vqtIUIeYq2DzJRiiymwOMA 4Swgw8BbfMslhpu4NNu1txpRdCWPdh0N/y00laTBVIelLJtWG/IXH80f0/EWWlnQugk5PwcEO wgedjsUk94A6zxrWRZD3F3JVvAkkt33uAXIE1jXhmI96jDMRnqklrbTvj+FNtkYFAyLxcl9mN KvBOviya49MrdkKxvoLdYT7TsrDXLkAcuHM0Jdp6a4blW6tx8VozKigJY7BLYXj99bA3dIHCk aRUxrctMxG26obuV71ExAbOL/290f7CNC9TKzc0DEfY3n2xHDddQ55ph9WRD905L95a0Jlvo8 i3mysDaCrUjM6os5nuEvZ0tRhFLxEGGQzIitQn7iThJjM8Zu7dpqCUDXX/8BOORUIPG8JtjpC aO4+vsmq3ujf7FE4/MxnNaKDjCnFmDoiJRvd/v+Njog37n/UbAs5A9gqdjkfO0ryQiha1jiDO +myN1ARwE0oZEUQRnZ+Bzj1tpm/L2BOIwMzkmlFkCHC4/RBG8WWiHDPWwTXQn6Rul9mpcF2JQ 70MxKdPPqTizWEbqzUj3rBr5qqiI8z8kOwqmGM+MRyYlL+QZisQmgdre2qASe5BTT7bEzSDGM YvKHMzl4yy6wfqehX7gINeNbr0z5gtl4ltSwNrUKmweZfMhLYTWgSHnx+1bnX/mNWpmNWNreH w9EaS+dW0N8XBSn2pWW5NSoJsEHvynCUs3ivIjTILCz0vZg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2594 Lines: 71 On Tuesday 30 June 2015 14:27:24 Paul Osmialowski wrote: > Based on K70P256M150SF3RM.pdf K70 Sub-Family Reference Manual, Rev. 3. > > Signed-off-by: Paul Osmialowski > --- > .../devicetree/bindings/clock/kinetis-clock.txt | 63 +++ > arch/arm/boot/dts/kinetis.dtsi | 36 ++ > drivers/clk/Makefile | 1 + > drivers/clk/clk-kinetis.c | 463 +++++++++++++++++++++ > 4 files changed, 563 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/kinetis-clock.txt > create mode 100644 drivers/clk/clk-kinetis.c > > diff --git a/Documentation/devicetree/bindings/clock/kinetis-clock.txt b/Documentation/devicetree/bindings/clock/kinetis-clock.txt > new file mode 100644 > index 0000000..63af6a5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/kinetis-clock.txt > @@ -0,0 +1,63 @@ > +* Clock bindings for Freescale Kinetis SoC > + > +Required properties: > +- compatible: Should be "fsl,kinetis-cmu". > +- reg: Two address ranges, one for the Clock Genetator register set, > + one for System Integration Module register set. > +- Set of clock devices: one fixed-rate-root, fixed-rate clocks and clock-gates. > + > +For clock-gate addresses see K70 Sub-Family Reference Manual, Rev. 3 pg. 341 > +and later. Notice that addresses are zero-based, so SIM_SCGC1 has address 0, > +SIM_SCGC2 has address 1 and so on. The second address component is the bit > +index. Please document the sub-nodes that are allowed, and the format of the clock specifiers. > + > +Example: > + > +cmu@40064000 { > + compatible = "fsl,kinetis-cmu"; > + reg = <0x40064000 0x14>, <0x40047000 0x1100>; > + > + mcg_outclk: fixed-rate-root@mcgout { > + device_type = "mcgout"; > + #clock-cells = <0>; > + }; > + > + mcg_cclk: fixed-rate@cclk { '@' is a reserved character here that is used before the address of the device, so this has to be a hexadecimal number without leading '0x', and it should match the 'reg' property of the device. > + device_type = "cclk"; > + #clock-cells = <0>; > + clocks = <&mcg_outclk>; > + }; The device_type property here is not a standard identifier, and you don't list it as an optional or mandatory property. Please remove it and instead use the compatible property, the name or the address. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/