All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	Dmitry Torokhov
	<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Maxime Ripard
	<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
	linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines
Date: Thu, 10 Sep 2015 12:25:14 -0500	[thread overview]
Message-ID: <55F1BCFA.5010404@kernel.org> (raw)
In-Reply-To: <1441789886-5868-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 09/09/2015 04:11 AM, Hans de Goede wrote:
> This header provides evdev constants for linux,code, and linux,input-*
> properties.
> 
> Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  include/dt-bindings/input/evdev.h | 76 +++++++++++++++++++++++++++++++++++++++

This looks fine, but please just add to input/input.h.

Rob

>  1 file changed, 76 insertions(+)
>  create mode 100644 include/dt-bindings/input/evdev.h
> 
> diff --git a/include/dt-bindings/input/evdev.h b/include/dt-bindings/input/evdev.h
> new file mode 100644
> index 0000000..c1f7e0d
> --- /dev/null
> +++ b/include/dt-bindings/input/evdev.h
> @@ -0,0 +1,76 @@
> +/*
> + * This header provides evdev constants for linux,code, and linux,input-*
> + * properties.
> + */
> +
> +#ifndef _DT_BINDINGS_INPUT_LINUX_H
> +#define _DT_BINDINGS_INPUT_LINUX_H
> +
> +/*
> + * Event types
> + */
> +
> +#define EV_SYN			0x00
> +#define EV_KEY			0x01
> +#define EV_REL			0x02
> +#define EV_ABS			0x03
> +#define EV_MSC			0x04
> +#define EV_SW			0x05
> +#define EV_LED			0x11
> +#define EV_SND			0x12
> +#define EV_REP			0x14
> +#define EV_FF			0x15
> +#define EV_PWR			0x16
> +#define EV_FF_STATUS		0x17
> +#define EV_MAX			0x1f
> +
> +/*
> + * Relative axes
> + */
> +
> +#define REL_X			0x00
> +#define REL_Y			0x01
> +#define REL_Z			0x02
> +#define REL_RX			0x03
> +#define REL_RY			0x04
> +#define REL_RZ			0x05
> +#define REL_HWHEEL		0x06
> +#define REL_DIAL		0x07
> +#define REL_WHEEL		0x08
> +#define REL_MISC		0x09
> +#define REL_MAX			0x0f
> +
> +/*
> + * Absolute axes
> + */
> +
> +#define ABS_X			0x00
> +#define ABS_Y			0x01
> +#define ABS_Z			0x02
> +#define ABS_RX			0x03
> +#define ABS_RY			0x04
> +#define ABS_RZ			0x05
> +#define ABS_THROTTLE		0x06
> +#define ABS_RUDDER		0x07
> +#define ABS_WHEEL		0x08
> +#define ABS_GAS			0x09
> +#define ABS_BRAKE		0x0a
> +#define ABS_HAT0X		0x10
> +#define ABS_HAT0Y		0x11
> +#define ABS_HAT1X		0x12
> +#define ABS_HAT1Y		0x13
> +#define ABS_HAT2X		0x14
> +#define ABS_HAT2Y		0x15
> +#define ABS_HAT3X		0x16
> +#define ABS_HAT3Y		0x17
> +#define ABS_PRESSURE		0x18
> +#define ABS_DISTANCE		0x19
> +#define ABS_TILT_X		0x1a
> +#define ABS_TILT_Y		0x1b
> +#define ABS_TOOL_WIDTH		0x1c
> +
> +#define ABS_VOLUME		0x20
> +
> +#define ABS_MISC		0x28
> +
> +#endif /* _DT_BINDINGS_INPUT_LINUX_H */
> 

WARNING: multiple messages have this Message-ID (diff)
From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines
Date: Thu, 10 Sep 2015 12:25:14 -0500	[thread overview]
Message-ID: <55F1BCFA.5010404@kernel.org> (raw)
In-Reply-To: <1441789886-5868-2-git-send-email-hdegoede@redhat.com>

On 09/09/2015 04:11 AM, Hans de Goede wrote:
> This header provides evdev constants for linux,code, and linux,input-*
> properties.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
>  include/dt-bindings/input/evdev.h | 76 +++++++++++++++++++++++++++++++++++++++

This looks fine, but please just add to input/input.h.

Rob

>  1 file changed, 76 insertions(+)
>  create mode 100644 include/dt-bindings/input/evdev.h
> 
> diff --git a/include/dt-bindings/input/evdev.h b/include/dt-bindings/input/evdev.h
> new file mode 100644
> index 0000000..c1f7e0d
> --- /dev/null
> +++ b/include/dt-bindings/input/evdev.h
> @@ -0,0 +1,76 @@
> +/*
> + * This header provides evdev constants for linux,code, and linux,input-*
> + * properties.
> + */
> +
> +#ifndef _DT_BINDINGS_INPUT_LINUX_H
> +#define _DT_BINDINGS_INPUT_LINUX_H
> +
> +/*
> + * Event types
> + */
> +
> +#define EV_SYN			0x00
> +#define EV_KEY			0x01
> +#define EV_REL			0x02
> +#define EV_ABS			0x03
> +#define EV_MSC			0x04
> +#define EV_SW			0x05
> +#define EV_LED			0x11
> +#define EV_SND			0x12
> +#define EV_REP			0x14
> +#define EV_FF			0x15
> +#define EV_PWR			0x16
> +#define EV_FF_STATUS		0x17
> +#define EV_MAX			0x1f
> +
> +/*
> + * Relative axes
> + */
> +
> +#define REL_X			0x00
> +#define REL_Y			0x01
> +#define REL_Z			0x02
> +#define REL_RX			0x03
> +#define REL_RY			0x04
> +#define REL_RZ			0x05
> +#define REL_HWHEEL		0x06
> +#define REL_DIAL		0x07
> +#define REL_WHEEL		0x08
> +#define REL_MISC		0x09
> +#define REL_MAX			0x0f
> +
> +/*
> + * Absolute axes
> + */
> +
> +#define ABS_X			0x00
> +#define ABS_Y			0x01
> +#define ABS_Z			0x02
> +#define ABS_RX			0x03
> +#define ABS_RY			0x04
> +#define ABS_RZ			0x05
> +#define ABS_THROTTLE		0x06
> +#define ABS_RUDDER		0x07
> +#define ABS_WHEEL		0x08
> +#define ABS_GAS			0x09
> +#define ABS_BRAKE		0x0a
> +#define ABS_HAT0X		0x10
> +#define ABS_HAT0Y		0x11
> +#define ABS_HAT1X		0x12
> +#define ABS_HAT1Y		0x13
> +#define ABS_HAT2X		0x14
> +#define ABS_HAT2Y		0x15
> +#define ABS_HAT3X		0x16
> +#define ABS_HAT3Y		0x17
> +#define ABS_PRESSURE		0x18
> +#define ABS_DISTANCE		0x19
> +#define ABS_TILT_X		0x1a
> +#define ABS_TILT_Y		0x1b
> +#define ABS_TOOL_WIDTH		0x1c
> +
> +#define ABS_VOLUME		0x20
> +
> +#define ABS_MISC		0x28
> +
> +#endif /* _DT_BINDINGS_INPUT_LINUX_H */
> 

  parent reply	other threads:[~2015-09-10 17:25 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09  9:11 [PATCH 1/4] devicetree: bindings: Update gpio-keys-polled with support for abs/rel axis Hans de Goede
2015-09-09  9:11 ` Hans de Goede
2015-09-09  9:11 ` [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines Hans de Goede
2015-09-09  9:11   ` Hans de Goede
     [not found]   ` <1441789886-5868-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-10 17:25     ` Rob Herring [this message]
2015-09-10 17:25       ` Rob Herring
2015-09-10 18:34       ` Dmitry Torokhov
2015-09-10 18:34         ` Dmitry Torokhov
     [not found]         ` <CAKdAkRRFcn5+SXNfU4J+v4tcFyA1mZR1hMhT2y3QJeQJ1tTDYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-10 18:40           ` Hans de Goede
2015-09-10 18:40             ` Hans de Goede
     [not found]             ` <55F1CE8B.5050302-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-10 18:42               ` Dmitry Torokhov
2015-09-10 18:42                 ` Dmitry Torokhov
2015-09-10 18:50                 ` Hans de Goede
2015-09-10 18:50                   ` Hans de Goede
2015-09-10 22:48                   ` Rob Herring
2015-09-10 22:48                     ` Rob Herring
     [not found]                     ` <55F208BA.5030507-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-09-12 18:04                       ` Dmitry Torokhov
2015-09-12 18:04                         ` Dmitry Torokhov
2015-09-09  9:11 ` [PATCH 4/4] ARM: dts: sun4i: inet9f-rev03: Add support for game buttons / joysticks Hans de Goede
2015-09-09  9:11   ` Hans de Goede
     [not found] ` <1441789886-5868-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-09  9:11   ` [PATCH 3/4] input: gpio_keys_polled: input_sync once after polling all the buttons Hans de Goede
2015-09-09  9:11     ` Hans de Goede
2015-09-10 17:45   ` [PATCH 1/4] devicetree: bindings: Update gpio-keys-polled with support for abs/rel axis Rob Herring
2015-09-10 17:45     ` Rob Herring

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=55F1BCFA.5010404@kernel.org \
    --to=robh-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    --cc=robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.