From: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
To: Tero Kristo <t-kristo-l0cyMroinI0@public.gmane.org>
Cc: bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 14/20] ARM: dts: omap4: add clkctrl nodes
Date: Thu, 7 Dec 2017 13:14:35 -0800 [thread overview]
Message-ID: <20171207211435.GC28152@atomide.com> (raw)
In-Reply-To: <1512636413-25243-15-git-send-email-t-kristo-l0cyMroinI0@public.gmane.org>
Hi,
* Tero Kristo <t-kristo-l0cyMroinI0@public.gmane.org> [171207 08:50]:
> Add clkctrl nodes for OMAP4 SoC. These are going to be acting as
> replacement for part of the existing clock data and the existing
> clkctrl hooks under hwmod data.
...
> --- a/arch/arm/boot/dts/omap4.dtsi
> +++ b/arch/arm/boot/dts/omap4.dtsi
> @@ -9,6 +9,7 @@
> #include <dt-bindings/gpio/gpio.h>
> #include <dt-bindings/interrupt-controller/arm-gic.h>
> #include <dt-bindings/pinctrl/omap.h>
> +#include <dt-bindings/clock/omap4.h>
We have the clkctrl defines above to keep things understandable for
humans, so let's use them. Otherwise we'll easily get errors deducting
the TRM register offset value from the 0x20 offset.
And I really like being able to easily verify the values against the
clockdomain offsets in include/dt-bindings/clock/omap4.h and see that
a correct clockdomain is being used. And without the preprocessor defines,
generating these clock nodes will be impossible for anybody except you
although looks like you've done it for all of the existing ones :)
> / {
> compatible = "ti,omap4430", "ti,omap4";
> @@ -683,7 +684,7 @@
> reg-names = "sys", "gdd";
> ti,hwmods = "hsi";
>
> - clocks = <&hsi_fck>;
> + clocks = <&l3_init_clkctrl 0x18 0>;
> clock-names = "hsi_fck";
>
> interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&l3_init_clkctrl OMAP4_HSI_CLKCTRL 0>;
> @@ -982,7 +983,7 @@
> interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
> ti,hwmods = "timer1";
> ti,timer-alwon;
> - clocks = <&dmt1_clk_mux>;
> + clocks = <&l4_wkup_clkctrl 0x20 24>;
> clock-names = "fck";
> };
clocks = <&l4_wkup_clkctrl OMAP4_TIMER1_CLKCTRL 24>;
> @@ -1214,7 +1215,7 @@
> reg = <0x58000000 0x80>;
> status = "disabled";
> ti,hwmods = "dss_core";
> - clocks = <&dss_dss_clk>;
> + clocks = <&l3_dss_clkctrl 0 8>;
> clock-names = "fck";
> #address-cells = <1>;
> #size-cells = <1>;
clocks = <&l3_dss_clkctrl OMAP4_DSS_CORE_CLKCTRL 8>;
And so on.
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-12-07 21:14 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-07 8:46 [PATCH 00/20] ARM: dts: add omap clkctrl support Tero Kristo
[not found] ` <1512636413-25243-1-git-send-email-t-kristo-l0cyMroinI0@public.gmane.org>
2017-12-07 8:46 ` [PATCH 01/20] ARM: dts: omap5: add fck under timer1 Tero Kristo
2017-12-07 8:46 ` [PATCH 02/20] ARM: dts: omap4: " Tero Kristo
2017-12-07 8:46 ` [PATCH 03/20] ARM: dts: am33xx: add fck under timers1/2 Tero Kristo
2017-12-07 8:46 ` [PATCH 04/20] ARM: dts: am43xx: " Tero Kristo
2017-12-07 8:46 ` [PATCH 05/20] ARM: dts: dra7: add fck under timer1 Tero Kristo
2017-12-07 8:46 ` [PATCH 06/20] ARM: dts: dm814x: add fck under timers1/2 Tero Kristo
2017-12-07 8:46 ` [PATCH 07/20] ARM: dts: dm816x: " Tero Kristo
2017-12-07 8:46 ` [PATCH 08/20] ARM: dts: omap5: add bus functionality to base PRCM nodes Tero Kristo
2017-12-07 8:46 ` [PATCH 09/20] ARM: dts: omap4: " Tero Kristo
2017-12-07 8:46 ` [PATCH 10/20] ARM: dts: dra7: " Tero Kristo
2017-12-07 8:46 ` [PATCH 11/20] ARM: dts: am33xx: add bus functionality to base PRCM node Tero Kristo
2017-12-07 8:46 ` [PATCH 12/20] ARM: dts: am43xx: " Tero Kristo
2017-12-07 8:46 ` [PATCH 13/20] ARM: dts: dm816x: " Tero Kristo
2017-12-07 8:46 ` [PATCH 14/20] ARM: dts: omap4: add clkctrl nodes Tero Kristo
[not found] ` <1512636413-25243-15-git-send-email-t-kristo-l0cyMroinI0@public.gmane.org>
2017-12-07 21:14 ` Tony Lindgren [this message]
2017-12-07 8:46 ` [PATCH 15/20] ARM: dts: omap5: " Tero Kristo
2017-12-07 8:46 ` [PATCH 16/20] ARM: dts: dra7: " Tero Kristo
2017-12-07 8:46 ` [PATCH 17/20] ARM: dts: am33xx: " Tero Kristo
2017-12-07 8:46 ` [PATCH 18/20] ARM: dts: am43xx: " Tero Kristo
2017-12-07 8:46 ` [PATCH 19/20] ARM: dts: dm814x: " Tero Kristo
2017-12-07 8:46 ` [PATCH 20/20] ARM: dts: dm816x: " Tero Kristo
2017-12-07 21:16 ` [PATCH 00/20] ARM: dts: add omap clkctrl support Tony Lindgren
[not found] ` <20171207211620.GD28152-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-12-08 6:58 ` Tero Kristo
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=20171207211435.GC28152@atomide.com \
--to=tony-4v6ys6ai5vpbdgjk7y7tuq@public.gmane.org \
--cc=bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=t-kristo-l0cyMroinI0@public.gmane.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;
as well as URLs for NNTP newsgroup(s).