mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] add specified-clock DT binding
@ 2013-11-13 21:49 James Hogan
  2013-11-13 21:49 ` [PATCH v2 1/2] dt: binding: add specified-clock for discoverable rate clocks James Hogan
  2013-11-13 21:50 ` [PATCH v2 2/2] clk-fixed-rate: support specified-clock binding James Hogan
  0 siblings, 2 replies; 3+ messages in thread
From: James Hogan @ 2013-11-13 21:49 UTC (permalink / raw)
  To: Mike Turquette, linux-arm-kernel
  Cc: Ian Campbell, Mark Rutland, Pawel Moll, Rob Herring,
	Stephen Warren, devicetree, linux-metag, Tomasz Figa,
	linux-kernel, James Hogan

The frequency of some fixed rate external oscillators on some SoCs (for
example TZ1090's XTAL1) are specified by the board using pull-ups and
pull-downs of configuration pins which are automatically latched on
reset and available in an SoC register, so that the boot ROM and OS can
automatically discover it.

The first patch adds a separate binding for these clocks to describe how
to discover the frequency. I could easily have extended the fixed-rate
binding instead, but there'd be no properties in common except the
standard common clock properties so it seemed like it deserved a
separate binding. I'm open to arguments to the contrary or better
compatible string names though.

The second patch implements the binding, which sets up a normal fixed
rate clock just like the normal fixed-clock binding except it discovers
the frequency instead of using the clock-frequency property.

Changes in v2:
 * Split out bindings patch for ease of review.
 * Rewrite to use a fixed clock instead of an entirely new clock type.
 * Borrow bit-mask and bit-shift bindings from Mike's mux clock binding
   proposals.

James Hogan (2):
  dt: binding: add specified-clock for discoverable rate clocks
  clk-fixed-rate: support specified-clock binding

 .../devicetree/bindings/clock/specified-clock.txt  | 38 ++++++++++++++++
 drivers/clk/clk-fixed-rate.c                       | 51 ++++++++++++++++++++++
 include/linux/clk-provider.h                       |  1 +
 3 files changed, 90 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/specified-clock.txt

-- 
1.8.1.2



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-13 21:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 21:49 [PATCH v2 0/2] add specified-clock DT binding James Hogan
2013-11-13 21:49 ` [PATCH v2 1/2] dt: binding: add specified-clock for discoverable rate clocks James Hogan
2013-11-13 21:50 ` [PATCH v2 2/2] clk-fixed-rate: support specified-clock binding James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®