diff options
author | Shraddha Chaudhari <Shraddha.Chaudhari@imgtec.com> | 2015-07-29 12:15:30 +0530 |
---|---|---|
committer | Abhijit Mahajani <Abhijit.Mahajani@imgtec.com> | 2015-11-19 11:38:07 +0100 |
commit | 61b6b6014d4af8dbcb9f22d89f0804d1cabd883f (patch) | |
tree | 0b129c95ecf898cbb286f0171e1f79c97111de5a /Documentation | |
parent | ead0fffa158a2a5ead3608efe8b7d8fe0d0f7fcd (diff) | |
download | v4.1-61b6b6014d4af8dbcb9f22d89f0804d1cabd883f.tar.gz |
cc2520: add support for extclock-freq configuration
cc2520 support generation of external clock on GPIOn pins. This
patch adds an optional 'extclock-freq' property in device tree for
configuring the frequency.
cc2520 supports a limited number of frequencies, please check
datasheet for the exact value to be set.
extclock is disabled if this property is set to 0, if not specified
extclock is set to 1MHz which is the default value of cc2520 after reset.
Change-Id: I327b8af13a66d20babc86578d93dfea1fcd32cfc
Signed-off-by: Shraddha Chaudhari <Shraddha.Chaudhari@imgtec.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/net/ieee802154/cc2520.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/ieee802154/cc2520.txt b/Documentation/devicetree/bindings/net/ieee802154/cc2520.txt index fb6d49f184e..3e1356b6fca 100644 --- a/Documentation/devicetree/bindings/net/ieee802154/cc2520.txt +++ b/Documentation/devicetree/bindings/net/ieee802154/cc2520.txt @@ -15,6 +15,10 @@ Required properties: - reset-gpio: GPIO spec for the RESET pin Optional properties: - amplified: include if the CC2520 is connected to a CC2591 amplifier + - extclock-freq: frequency setting of external clock generator, should be + between 1000000-16000000 (check datasheet for supported values) + extclock is disabled if extclock-freq = <0>, if not specified + defaults to 1MHz (reset value) Example: cc2520@0 { @@ -30,4 +34,5 @@ Example: cca-gpio = <&gpio1 16 0>; vreg-gpio = <&gpio0 31 0>; reset-gpio = <&gpio1 12 0>; + extclock-freq = <16000000>; }; |