Message ID | 20190723073641.27801-4-alexandru.ardelean@analog.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | iio: imu: Add support for the ADIS16460 IMU | expand |
On Tue, 23 Jul 2019 10:36:40 +0300 Alexandru Ardelean <alexandru.ardelean@analog.com> wrote: > This change adds device-tree bindings for the ADIS16460. > > Reviewed-by: Rob Herring <robh@kernel.org> > Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Really trivial, but convention (as driven by what git am -s does if nothing else, is to add extra tags in chronological order. So Rob would be after you. I tweaked it which I don't always remember to do. It's not consistent across the kernel but I'll fight for my little corner to be :) Applied. Thanks, Jonathan > --- > .../bindings/iio/imu/adi,adis16460.yaml | 53 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 54 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml > > diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml > new file mode 100644 > index 000000000000..0c53009ba7d6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml > @@ -0,0 +1,53 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/imu/adi,adis16460.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices ADIS16460 and similar IMUs > + > +maintainers: > + - Dragos Bogdan <dragos.bogdan@analog.com> > + > +description: | > + Analog Devices ADIS16460 and similar IMUs > + https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16460.pdf > + > +properties: > + compatible: > + enum: > + - adi,adis16460 > + > + reg: > + maxItems: 1 > + > + spi-cpha: true > + > + spi-cpol: true > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + > +examples: > + - | > + #include <dt-bindings/gpio/gpio.h> > + #include <dt-bindings/interrupt-controller/irq.h> > + spi0 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + imu@0 { > + compatible = "adi,adis16460"; > + reg = <0>; > + spi-max-frequency = <5000000>; > + spi-cpol; > + spi-cpha; > + interrupt-parent = <&gpio0>; > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index f7de89e82e35..07105e43ea1e 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -951,6 +951,7 @@ S: Supported > L: linux-iio@vger.kernel.org > W: http://ez.analog.com/community/linux-device-drivers > F: drivers/iio/imu/adis16460.c > +F: Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml > > ANALOG DEVICES INC ADP5061 DRIVER > M: Stefan Popa <stefan.popa@analog.com>
On Sat, Jul 27, 2019 at 12:56 PM Jonathan Cameron <jic23@kernel.org> wrote: > > On Tue, 23 Jul 2019 10:36:40 +0300 > Alexandru Ardelean <alexandru.ardelean@analog.com> wrote: > > > This change adds device-tree bindings for the ADIS16460. > > > > Reviewed-by: Rob Herring <robh@kernel.org> > > Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> > > Really trivial, but convention (as driven by what git am -s does if nothing > else, is to add extra tags in chronological order. So Rob would be after > you. I tweaked it which I don't always remember to do. I'd argue it is in chronological order as the submitter added my tag and then sent it out. If you applied it and added my tag, then it would be after (but before yours). > It's not consistent across the kernel but I'll fight for my little corner > to be :) More consistency would be nice then there's less tribal knowledge about maintainers for submitters to learn. Rob
On Mon, 29 Jul 2019 17:24:40 -0600 Rob Herring <robh+dt@kernel.org> wrote: > On Sat, Jul 27, 2019 at 12:56 PM Jonathan Cameron <jic23@kernel.org> wrote: > > > > On Tue, 23 Jul 2019 10:36:40 +0300 > > Alexandru Ardelean <alexandru.ardelean@analog.com> wrote: > > > > > This change adds device-tree bindings for the ADIS16460. > > > > > > Reviewed-by: Rob Herring <robh@kernel.org> > > > Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> > > > > Really trivial, but convention (as driven by what git am -s does if nothing > > else, is to add extra tags in chronological order. So Rob would be after > > you. I tweaked it which I don't always remember to do. > > I'd argue it is in chronological order as the submitter added my tag > and then sent it out. If you applied it and added my tag, then it > would be after (but before yours). Bike shedding to follow... Possibly but given you gave the Reviewed-by for v2, and it hasn't changed is Alex's the same Signed-off-by as seen on V2, or a new one reflecting the addition of your Reviewed-by? :) > > > It's not consistent across the kernel but I'll fight for my little corner > > to be :) > > More consistency would be nice then there's less tribal knowledge > about maintainers for submitters to learn. Agreed. Jonathan > > Rob
diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml new file mode 100644 index 000000000000..0c53009ba7d6 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/imu/adi,adis16460.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADIS16460 and similar IMUs + +maintainers: + - Dragos Bogdan <dragos.bogdan@analog.com> + +description: | + Analog Devices ADIS16460 and similar IMUs + https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16460.pdf + +properties: + compatible: + enum: + - adi,adis16460 + + reg: + maxItems: 1 + + spi-cpha: true + + spi-cpol: true + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/irq.h> + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + imu@0 { + compatible = "adi,adis16460"; + reg = <0>; + spi-max-frequency = <5000000>; + spi-cpol; + spi-cpha; + interrupt-parent = <&gpio0>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index f7de89e82e35..07105e43ea1e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -951,6 +951,7 @@ S: Supported L: linux-iio@vger.kernel.org W: http://ez.analog.com/community/linux-device-drivers F: drivers/iio/imu/adis16460.c +F: Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml ANALOG DEVICES INC ADP5061 DRIVER M: Stefan Popa <stefan.popa@analog.com>