lkml.org 
[lkml]   [2017]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 1/4] dt-bindings: iio: accel: adxl345: Add optional interrupt-names support
    Date
    Add interrupt-names property in order to specify interrupt pin in use.

    Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
    Acked-by: Rob Herring <robh@kernel.org>
    ---
    Change in v2:
    * Add Rob's Acked-by tag

    Documentation/devicetree/bindings/iio/accel/adxl345.txt | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/Documentation/devicetree/bindings/iio/accel/adxl345.txt b/Documentation/devicetree/bindings/iio/accel/adxl345.txt
    index e7111b0..a7c9022 100644
    --- a/Documentation/devicetree/bindings/iio/accel/adxl345.txt
    +++ b/Documentation/devicetree/bindings/iio/accel/adxl345.txt
    @@ -15,6 +15,8 @@ Optional properties:
    in Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
    - interrupts: interrupt mapping for IRQ as documented in
    Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
    + - interrupt-names: specify INTx pin in use. Should be "INT1" for INT1 pin or
    + "INT2" for INT2 pin.

    Example for a I2C device node:

    @@ -23,6 +25,7 @@ Example for a I2C device node:
    reg = <0x53>;
    interrupt-parent = <&gpio1>;
    interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
    + interrupt-names = "INT1";
    };

    Example for a SPI device node:
    @@ -35,4 +38,5 @@ Example for a SPI device node:
    spi-cpha;
    interrupt-parent = <&gpio1>;
    interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
    + interrupt-names = "INT1";
    };
    --
    2.7.4
    \
     
     \ /
      Last update: 2017-04-29 09:50    [W:5.452 / U:0.404 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site