[PATCH 1/2] dt-bindings: add adpd188 schema

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Drimbarean <andrei.drimbarean@xxxxxxxxxx>

Signed-off-by: Andrei Drimbarean <andrei.drimbarean@xxxxxxxxxx>
---
 .../bindings/iio/light/adi,adpd188.yaml       | 72 +++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/light/adi,adpd188.yaml

diff --git a/Documentation/devicetree/bindings/iio/light/adi,adpd188.yaml b/Documentation/devicetree/bindings/iio/light/adi,adpd188.yaml
new file mode 100644
index 000000000000..3c08b0904803
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/adi,adpd188.yaml
@@ -0,0 +1,72 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+# Copyright 2019 Analog Devices Inc.
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/adi,adpd188.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices ADPD188 device driver
+
+maintainers:
+  - Andrei Drimbarean <andrei.drimbarean@xxxxxxxxxx>
+
+description: |
+  Bindings for the Analog Devices ADPD188 device. The device support both SPI and I2C
+  interfaces. Datasheet can be found here:
+    https://www.analog.com/media/en/technical-documentation/data-sheets/adpd188bi.pdf
+properties:
+  compatible:
+    enum:
+      - adi,adpd188
+
+  reg:
+    description: SPI chip select number or I2C slave address
+    maxItems: 1
+
+  interrupts:
+    description: IRQ line for the device or device chain
+    maxItems: 1
+
+  spi-cpol: true
+
+  spi-cpha: true
+
+  spi-max-frequency:
+    maximum: 10000000
+
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 0
+
+  status:
+    const: 'okay'
+
+  adi,no-of-devices:
+    description: Number of daisy-chained devices on an I2C bus
+      string
+    $ref: "http://devicetree.org/schemas/types.yaml#/definitions/uint8";
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+examples:
+  - |
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+      status = "okay";
+
+      adpd188@64 {
+        compatible = "adi,adpd188";
+        reg = <0x64>;
+        interrupts = <9 1>;
+        interrupt-parent = <&gpio>;
+        adi,no-of-devices = <8>;
+      };
+    };
+
+additionalProperties: false
-- 
2.25.1




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux