[PATCH 1/2] misc: add cc1101 devicetree binding

From: Heiko Schocher
Date: Sun Sep 22 2019 - 02:04:52 EST


add devicetree binding for cc1101 misc driver.

Signed-off-by: Heiko Schocher <hs@xxxxxxx>
---

.../devicetree/bindings/misc/cc1101.txt | 27 +++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Documentation/devicetree/bindings/misc/cc1101.txt

diff --git a/Documentation/devicetree/bindings/misc/cc1101.txt b/Documentation/devicetree/bindings/misc/cc1101.txt
new file mode 100644
index 0000000000000..afea6acf4a9c5
--- /dev/null
+++ b/Documentation/devicetree/bindings/misc/cc1101.txt
@@ -0,0 +1,27 @@
+driver cc1101 Low-Power Sub-1 GHz RF Transceiver chip from Texas
+Instruments.
+
+Requires node properties:
+- compatible : should be "ti,cc1101";
+- reg : Chip select address of device, see:
+ Documentation/devicetree/bindings/spi/spi-bus.txt
+- gpios : list of 2 gpios, first gpio is for GDO0 pin
+ second for GDO2 pin, see more:
+ Documentation/devicetree/bindings/gpio/gpio.txt
+
+Recommended properties:
+ - spi-max-frequency: Definition as per
+ Documentation/devicetree/bindings/spi/spi-bus.txt
+ - freq : used spi frequency for communication with cc1101 chip
+
+example:
+
+&ecspi4 {
+ cc1101@0 {
+ compatible = "ti,cc1101";
+ spi-max-frequency = <10000000>;
+ reg = <0>;
+ freq = <5000000>;
+ gpios = <&gpio2 11 GPIO_ACTIVE_HIGH &gpio5 8 GPIO_ACTIVE_HIGH>;
+ };
+};
--
2.21.0