Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1424536
| From | Hoan Tran <hotran@apm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] Documentation: dt: clock: Add fractional scale binding |
| Date | 2016-06-17 01:50 +0200 |
| Message-ID | <rKPcR-6J3-19@gated-at.bofh.it> (permalink) |
| References | <rKPcR-6J3-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add fractional scale clock DTS binding.
Signed-off-by: Hoan Tran <hotran@apm.com>
Signed-off-by: Loc Ho <lho@apm.com>
---
.../bindings/clock/fractional-scale-clock.txt | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/fractional-scale-clock.txt
diff --git a/Documentation/devicetree/bindings/clock/fractional-scale-clock.txt b/Documentation/devicetree/bindings/clock/fractional-scale-clock.txt
new file mode 100644
index 0000000..864a77ea
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/fractional-scale-clock.txt
@@ -0,0 +1,31 @@
+Binding for fractional scale clock source.
+
+This binding uses the common clock binding[1].
+
+[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
+
+Required properties:
+- compatible : shall be "fractional-scale-clock".
+- clocks : shall be the input parent clock phandle for the clock.
+- #clock-cells : shall be set to 1.
+- reg : shall be the physical register address for the clock.
+- clock-output-names : shall be the name of the clock referenced by derive clock.
+- clock-shift: Bit shift of the clock register. Default is 0.
+- clock-width: Width of the clock register. Default is 32.
+- clock-denom: shall be the denominator value. Default is 2^32.
+
+Optional properties:
+- clock-inverted: shall be 1 if the numerator is inverted.
+- clock-names : shall be the name of the clock. If missing, use the device name.
+
+Example:
+ clock {
+ compatible = "fractional-scale-clock";
+ clocks = <&parentclk>;
+ #clock-cells = <1>;
+ reg = <0x0 0xFFFF0000 0x0 0x10>
+ clock-shift = <8>;
+ clock-width = <3>;
+ clock-denom = <8>;
+ clock-inverted = <1>;
+ };
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] clk: Add fractional scale clock support Hoan Tran <hotran@apm.com> - 2016-06-17 01:50 +0200
[PATCH 1/2] Documentation: dt: clock: Add fractional scale binding Hoan Tran <hotran@apm.com> - 2016-06-17 01:50 +0200
Re: [PATCH 1/2] Documentation: dt: clock: Add fractional scale binding Rob Herring <robh@kernel.org> - 2016-06-20 15:20 +0200
[PATCH 2/2] clk: Add fractional scale clock support Hoan Tran <hotran@apm.com> - 2016-06-17 01:50 +0200
Re: [PATCH 2/2] clk: Add fractional scale clock support kbuild test robot <lkp@intel.com> - 2016-06-17 03:30 +0200
Re: [PATCH 2/2] clk: Add fractional scale clock support kbuild test robot <lkp@intel.com> - 2016-06-17 04:00 +0200
Re: [PATCH 2/2] clk: Add fractional scale clock support kbuild test robot <lkp@intel.com> - 2016-06-17 04:00 +0200
Re: [PATCH 2/2] clk: Add fractional scale clock support Geert Uytterhoeven <geert@linux-m68k.org> - 2016-06-17 08:50 +0200
Re: [PATCH 2/2] clk: Add fractional scale clock support Hoan Tran <hotran@apm.com> - 2016-06-17 18:40 +0200
csiph-web