Files
OrangePi_CM5/include/linux
Grant Likely 766e6a4ec6 clk: add DT clock binding support
Based on work 1st by Ben Herrenschmidt and Jeremy Kerr, then by Grant
Likely, this patch adds support to clk_get to allow drivers to retrieve
clock data from the device tree.

Platforms scan for clocks in DT with of_clk_init and a match table, and
the register a provider through of_clk_add_provider. The provider's
clk_src_get function will be called when a device references the
provider's OF node for a clock reference.

v6 (Rob Herring):
    - Return error values instead of NULL to match clock framework
      expectations

v5 (Rob Herring):
    - Move from drivers/of into common clock subsystem
    - Squashed "dt/clock: add a simple provider get function" and
      "dt/clock: add function to get parent clock name"
    - Rebase to 3.4-rc1
    - Drop CONFIG_OF_CLOCK and just use CONFIG_OF
    - Add missing EXPORT_SYMBOL to various functions
    - s/clock-output-name/clock-output-names/
    - Define that fixed-clock binding is a single output

v4 (Rob Herring):
    - Rework for common clk subsystem
    - Add of_clk_get_parent_name function

v3: - Clarified documentation

v2: - fixed errant ';' causing compile error
    - Editorial fixes from Shawn Guo
    - merged in adding lookup to clkdev
    - changed property names to match established convention. After
      working with the binding a bit it really made more sense to follow the
      lead of 'reg', 'gpios' and 'interrupts' by making the input simply
      'clocks' & 'clock-names' instead of 'clock-input-*', and to only use
      clock-output* for the producer nodes. (Sorry Shawn, this will mean
      you need to change some code, but it should be trivial)
    - Add ability to inherit clocks from parent nodes by using an empty
      'clock-ranges' property.  Useful for busses.  I could use some feedback
      on the new property name, 'clock-ranges' doesn't feel right to me.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Reviewed-by: Shawn Guo <shawn.guo@freescale.com>
Cc: Sascha Hauer <kernel@pengutronix.de>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
2012-07-11 17:58:45 -07:00
..
…
2012-05-07 15:39:35 -07:00
…
2012-04-23 14:23:32 +03:00
…
2012-05-15 17:30:30 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-03-20 21:29:46 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-07-11 17:58:45 -07:00
…
…
…
2012-02-28 16:02:54 +01:00
…
2012-01-03 22:54:57 -05:00
…
…
…
…
2012-03-29 15:38:31 +10:30
…
…
…
2012-03-23 16:58:38 -07:00
…
…
2011-12-13 09:26:45 +00:00
…
…
2012-04-14 15:24:26 -04:00
…
2012-02-20 19:46:36 +11:00
…
…
2012-05-02 14:15:27 -05:00
…
…
2012-05-25 12:46:23 +05:30
…
…
…
…
2012-05-10 12:00:56 +02:00
…
…
…
2012-04-30 15:30:18 -07:00
…
…
…
…
…
2011-12-11 18:25:16 -05:00
2012-05-17 15:36:35 -04:00
…
…
2012-05-29 23:28:33 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2012-04-25 12:25:05 +02:00
…
…
…
2012-02-28 17:10:21 +00:00
2012-04-27 10:46:45 +08:00
…
…
…
…
…
2012-05-22 11:32:31 +02:00
…
…
…
…
…
…
…
…
…
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-05-12 14:28:14 +02:00
…
2012-03-26 21:47:19 +02:00
…
…
…
…
…
…
…
…
…
2012-03-27 22:45:26 -04:00
…
…
…
…
…
2012-04-21 16:26:33 -04:00
…
…
…
…
…
…
…
…
2012-06-11 23:57:22 -07:00
…
…
…
2012-03-20 12:47:48 +01:00
…
2012-05-07 10:58:57 -06:00
2012-03-20 12:47:47 +01:00
…
…
2012-01-03 22:55:17 -05:00
…
…
2012-06-30 15:56:40 -07:00
…
…
…
…
2012-04-09 11:16:55 -07:00
…
…
…
…
…
…
…
…
2012-03-08 10:50:35 -08:00
2012-05-31 17:49:30 -07:00
…
2012-05-31 17:49:32 -07:00
…
…
…
…
2012-05-31 17:49:26 -07:00
2012-05-31 17:49:30 -07:00
2012-03-08 10:50:35 -08:00
2012-05-11 10:56:56 +01:00
…
2012-01-17 15:40:51 -08:00
…
…
…
…
…
2012-07-02 21:10:30 -03:00
2011-12-27 11:26:41 +02:00
…
…
2012-05-29 23:28:41 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2012-03-15 21:41:34 +01:00
…
…
2012-03-03 15:04:45 -05:00
…
2012-05-09 13:58:06 -07:00
…
…
…
2012-05-22 15:20:28 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-05-29 22:33:55 -04:00
2012-05-08 20:25:42 +02:00
…
…
2012-04-12 15:10:33 -04:00
…
…
2012-05-26 14:17:30 -04:00
2012-03-05 15:26:47 -05:00
2012-06-05 18:38:47 -04:00
…
2012-05-16 15:17:08 -04:00
…
…
…
…
…
…
…
2012-05-21 14:31:48 +01:00
…
2012-03-21 17:55:01 -07:00
…
…
2012-06-20 14:39:36 -07:00
…
…
2012-01-06 12:10:26 -08:00
…
…
2012-05-14 14:15:32 -07:00
2012-06-06 17:08:00 +02:00
…
…
…
…
…
…
…
…
2012-05-12 15:53:42 -04:00
…
…
2011-12-13 09:26:45 +00:00
…
…
…
…
…
…
…
…
2012-03-20 21:29:38 -04:00
2012-01-03 22:55:07 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
2012-03-28 18:30:03 +01:00
…
…
…
…
…
…
…
…
2012-04-18 15:57:31 -07:00
…
2012-01-09 09:33:57 +09:00
…
…
2012-06-01 12:58:52 -04:00
2012-06-15 15:30:15 -07:00
2012-05-31 17:49:26 -07:00
…
…
…
2012-05-08 12:35:06 +02:00
2012-03-19 16:53:08 -04:00
2012-04-15 12:44:40 -04:00
…
…
…
…
…
2011-12-13 09:26:45 +00:00
2012-06-13 21:16:42 +02:00
…
2012-05-14 18:53:19 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2012-05-21 16:16:58 -07:00
…
…
…
2012-03-22 19:43:43 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-05-22 12:16:16 +09:30
2012-03-31 08:09:50 +05:30
…
…
…
…
…
2012-03-28 18:30:03 +01:00
…
…
…
…
…
…
…
…
…
…
…
…