linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Oleh Kravchenko <oleg@kaa.org.ua>
Cc: linux-input@vger.kernel.org,
	Benjamin Tissoires <benjamin.tissoires@redhat.com>,
	Device Tree mailing list <devicetree@vger.kernel.org>,
	Jiri Kosina <jikos@jikos.cz>,
	Patchwork Bot <patchwork-bot@kernel.org>
Subject: Re: [PATCH] input: add SparkFun Qwiic Joystick driver
Date: Tue, 1 Jun 2021 15:55:46 -0500	[thread overview]
Message-ID: <20210601205546.GA1017434@robh.at.kernel.org> (raw)
In-Reply-To: <YLXRNVBG0ewhVUxD@google.com>

On Mon, May 31, 2021 at 11:18:29PM -0700, Dmitry Torokhov wrote:
> Hi Oleh,
> 
> On Mon, May 31, 2021 at 04:32:43PM +0300, Oleh Kravchenko wrote:
> > A simple analog joystick built on Low Power ATtiny85 Microcontroller.
> > Directional movements are measured with two 10 kΩ potentiometers
> > connected with a gimbal mechanism that separates the horizontal and
> > vertical movements. This joystick also has a select button that is actuated
> > when the joystick is pressed down.
> > 
> > Input events polled over the I2C bus.
> 
> Thank you for the driver.
> 
> > 
> > Product page:
> > https://www.sparkfun.com/products/15168
> > Firmware and hardware sources:
> > https://github.com/sparkfun/Qwiic_Joystick
> > 
> > Tested on RPi4B and O4-iMX-NANO boards.
> > 
> > Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> > Cc: Device Tree mailing list <devicetree@vger.kernel.org>
> > Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > Cc: Jiri Kosina <jikos@jikos.cz>
> > Cc: Patchwork Bot <patchwork-bot@kernel.org>
> > Signed-off-by: Oleh Kravchenko <oleg@kaa.org.ua>
> > ---
> >  .../bindings/input/qwiic-joystick.yaml        |  31 ++++
> >  .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
> >  drivers/input/joystick/Kconfig                |   9 +
> >  drivers/input/joystick/Makefile               |   1 +
> >  drivers/input/joystick/qwiic-joystick.c       | 169 ++++++++++++++++++
> >  5 files changed, 212 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/input/qwiic-joystick.yaml
> >  create mode 100644 drivers/input/joystick/qwiic-joystick.c
> > 
> > diff --git a/Documentation/devicetree/bindings/input/qwiic-joystick.yaml b/Documentation/devicetree/bindings/input/qwiic-joystick.yaml
> > new file mode 100644
> > index 000000000000..51cadeb350f2
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/input/qwiic-joystick.yaml
> > @@ -0,0 +1,31 @@
> > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > +# Copyright 2021 Oleh Kravchenko
> > +%YAML 1.2
> > +---
> > +$id: "http://devicetree.org/schemas/input/qwiic-joystick.yaml#"
> > +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
> > +
> > +title: SparkFun Qwiic Joystick
> > +
> > +maintainers:
> > +  - Oleh Kravchenko <oleg@kaa.org.ua>
> > +
> > +description: |
> > +  Bindings for SparkFun Qwiic Joystick (COM-15168).
> > +  https://www.sparkfun.com/products/15168
> > +
> > +properties:
> > +  compatible:
> > +    const: sparkfun,qwiic-joystick
> 
> Rob, is this compatible acceptable?

Yes.

> 
> > +
> > +required:
> > +  - compatible
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > +  - |
> > +    qwiic@20 {
> > +        compatible = "sparkfun,qwiic-joystick";
> > +        reg = <0x20>;
> > +    };
> 
> I think this device would be covered by
> Documentation/devicetree/bindings/trivial-devices.yaml so please add its
> compatible there.

That's fine. Or not.

Please make bindings a separate patch.

Rob

  reply	other threads:[~2021-06-01 20:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31 13:32 [PATCH] input: add SparkFun Qwiic Joystick driver Oleh Kravchenko
2021-05-31 22:58 ` Jeff LaBundy
2021-06-01  6:18 ` Dmitry Torokhov
2021-06-01 20:55   ` Rob Herring [this message]
2021-06-01 13:32 ` Rob Herring
  -- strict thread matches above, loose matches on Subject: below --
2021-05-31  9:54 Oleh Kravchenko
2021-05-31 13:16 ` kernel test robot
2021-05-28  8:44 Oleh Kravchenko
2021-05-28 15:11 ` Oleh Kravchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210601205546.GA1017434@robh.at.kernel.org \
    --to=robh@kernel.org \
    --cc=benjamin.tissoires@redhat.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jikos@jikos.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=oleg@kaa.org.ua \
    --cc=patchwork-bot@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).