From: pawelo@king.net.pl (Paul Osmialowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC
Date: Thu, 2 Jul 2015 12:08:39 +0200 (CEST) [thread overview]
Message-ID: <alpine.LNX.2.00.1507021206410.13210@localhost.localdomain> (raw)
In-Reply-To: <alpine.LNX.2.00.1507011756140.14440@localhost.localdomain>
Nah, I've found this code hard to maintain. I'm attaching simplified
version.
Thanks,
Paul
On Wed, 1 Jul 2015, Paul Osmialowski wrote:
> Hi Arnd,
>
> Can you look at attached candidate for the third iteration? Is it any better
> now?
>
> Thanks,
> Paul
>
> On Tue, 30 Jun 2015, Arnd Bergmann wrote:
>
>> 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 <pawelo@king.net.pl>
>> > ---
>> > .../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 at 40064000 {
>> > + compatible = "fsl,kinetis-cmu";
>> > + reg = <0x40064000 0x14>, <0x40047000 0x1100>;
>> > +
>> > + mcg_outclk: fixed-rate-root at mcgout {
>> > + device_type = "mcgout";
>> > + #clock-cells = <0>;
>> > + };
>> > +
>> > + mcg_cclk: fixed-rate at 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
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-arm-twr-k70f120m-clock-driver-for-Kinetis-SoC.patch
Type: text/x-diff
Size: 17977 bytes
Desc:
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150702/d7ac194b/attachment-0001.bin>
next prev parent reply other threads:[~2015-07-02 10:08 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 12:27 [PATCH v2 0/9] [New BSP] Add initial support for Freescale Kinetis TWR-K70F120M development kit Paul Osmialowski
2015-06-30 12:27 ` [PATCH v2 1/9] arm: allow copying of vector table to internal SRAM memory Paul Osmialowski
2015-06-30 12:27 ` [PATCH v2 2/9] arm: twr-k70f120m: basic support for Kinetis TWR-K70F120M Paul Osmialowski
2015-06-30 12:27 ` [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC Paul Osmialowski
2015-06-30 20:36 ` Arnd Bergmann
2015-07-01 15:57 ` Paul Osmialowski
2015-07-02 10:08 ` Paul Osmialowski [this message]
2015-07-02 12:40 ` Arnd Bergmann
2015-07-02 21:42 ` Paul Osmialowski
2015-07-02 22:08 ` Thomas Gleixner
2015-07-03 17:40 ` Paul Osmialowski
2015-07-04 19:54 ` Arnd Bergmann
2015-07-04 21:50 ` Paul Osmialowski
2015-07-06 20:57 ` Paul Osmialowski
2015-07-24 3:42 ` Michael Turquette
2015-07-26 20:24 ` Paul Osmialowski
2015-07-28 16:03 ` Michael Turquette
2015-07-28 20:30 ` Paul Osmialowski
2015-07-29 23:05 ` Michael Turquette
2015-07-30 21:40 ` Paul Osmialowski
2015-08-01 0:58 ` Michael Turquette
2015-08-01 15:27 ` Paul Osmialowski
2015-08-05 19:27 ` Michael Turquette
2015-07-14 9:03 ` Linus Walleij
2015-07-15 7:31 ` Paul Osmialowski
2015-07-15 17:34 ` Paul Osmialowski
2015-06-30 12:27 ` [PATCH v2 4/9] arm: twr-k70f120m: timer " Paul Osmialowski
2015-06-30 20:43 ` Arnd Bergmann
2015-07-01 11:44 ` Paul Osmialowski
2015-07-05 14:39 ` Rob Herring
2015-07-01 7:51 ` Thomas Gleixner
2015-07-01 8:42 ` Paul Osmialowski
2015-07-01 13:28 ` Thomas Gleixner
2015-07-01 14:20 ` Paul Osmialowski
2015-07-14 8:59 ` Linus Walleij
2015-06-30 12:27 ` [PATCH v2 5/9] arm: twr-k70f120m: IOMUX " Paul Osmialowski
2015-07-14 8:55 ` Linus Walleij
2015-06-30 12:27 ` [PATCH v2 6/9] arm: twr-k70f120m: extend Freescale eDMA driver with the ability to support " Paul Osmialowski
2015-07-05 6:45 ` Vinod Koul
2015-07-05 9:45 ` Paul Osmialowski
2015-06-30 12:27 ` [PATCH v2 7/9] arm: twr-k70f120m: use Freescale eDMA driver with " Paul Osmialowski
2015-06-30 20:49 ` Arnd Bergmann
2015-07-01 6:54 ` Paul Osmialowski
2015-06-30 12:27 ` [PATCH v2 8/9] arm: twr-k70f120m: extend Freescale lpuart driver with ability to support " Paul Osmialowski
2015-06-30 12:27 ` [PATCH v2 9/9] arm: twr-k70f120m: use Freescale lpuart driver with " Paul Osmialowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.1507021206410.13210@localhost.localdomain \
--to=pawelo@king.net.pl \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox