]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: clock: ti: add latching support to mux and divider clocks
authorTero Kristo <t-kristo@ti.com>
Thu, 15 Feb 2018 07:44:52 +0000 (09:44 +0200)
committerTero Kristo <t-kristo@ti.com>
Thu, 8 Mar 2018 09:42:04 +0000 (11:42 +0200)
Certain hardware configurations, like dra76x, have some of the clock
registers partitioned in a funky manner that requires the clock
control setup to be latched for PRCM to be notified of the change. This
is accomplished with a separate control bit under the register. Add
support for this clock latching support to divider and mux clocks.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/clock/ti/divider.txt
Documentation/devicetree/bindings/clock/ti/mux.txt

index 35a6f5c7e5c26fd7ccf0bff9c7ab2f2f55667082..9b13b32974f9926874d1a893fa00be961c5aef4d 100644 (file)
@@ -75,6 +75,9 @@ Optional properties:
 - ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0,
   see [2]
 - ti,set-rate-parent : clk_set_rate is propagated to parent
+- ti,latch-bit : latch the divider value to HW, only needed if the register
+  access requires this. As an example dra76x DPLL_GMAC H14 divider implements
+  such behavior.
 
 Examples:
 dpll_usb_m2_ck: dpll_usb_m2_ck@4a008190 {
index 2d0d170f80013d4e57390461c1392ac7e699d9a6..eec8994b9be876752795bc4a37dc526329b9e453 100644 (file)
@@ -48,6 +48,9 @@ Optional properties:
   zero
 - ti,set-rate-parent : clk_set_rate is propagated to parent clock,
   not supported by the composite-mux-clock subtype
+- ti,latch-bit : latch the mux value to HW, only needed if the register
+  access requires this. As an example, dra7x DPLL_GMAC H14 muxing
+  implements such behavior.
 
 Examples: