All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ludovic Desroches <ludovic.desroches@microchip.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>,
	<linux-input@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>, <dmitry.torokhov@gmail.com>,
	<nicolas.ferre@microchip.com>, <linux-kernel@vger.kernel.org>,
	Ludovic Desroches <ludovic.desroches@atmel.com>
Subject: Re: [PATCH 1/4] input: misc: introduce Atmel PTC driver
Date: Tue, 4 Apr 2017 08:47:16 +0200	[thread overview]
Message-ID: <20170404064716.6uibtyin73otpqsd@rfolt0960.corp.atmel.com> (raw)
In-Reply-To: <20170403155840.vln4wg56iunrmdcw@piout.net>

On Mon, Apr 03, 2017 at 05:58:40PM +0200, Alexandre Belloni wrote:
> On 31/03/2017 at 17:22:47 +0200, Ludovic Desroches wrote:
> > From: Ludovic Desroches <ludovic.desroches@atmel.com>
> 
> I think you probably want to switch to your microchip email.
> 
> Also, this requires a proper commit message.

I'll fix this, I'll take the cover letter as commit message and update
the mail address.

> 
> > 
> > Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> > +struct atmel_ptc {
> > +	void __iomem		*ppp_regs;
> > +	void __iomem		*firmware;
> > +	int			irq;
> > +	uint8_t			imr;
> > +	volatile struct atmel_qtm_mailbox __iomem	*qtm_mb;
> > +	struct clk		*clk_per;
> > +	struct clk		*clk_int_osc;
> > +	struct clk		*clk_slow;
> > +	struct device		*dev;
> > +	struct completion	ppp_ack;
> > +	unsigned int		button_keycode[ATMEL_PTC_MAX_NODES];
> > +	struct input_dev	*buttons_input;
> > +	struct input_dev	*scroller_input[ATMEL_PTC_MAX_SCROLLERS];
> > +	bool			buttons_registered;
> > +	bool			scroller_registered[ATMEL_PTC_MAX_SCROLLERS];
> > +	uint32_t		button_event[ATMEL_PTC_MAX_NODES/32];
> > +	uint32_t		button_state[ATMEL_PTC_MAX_NODES/32];
> > +	uint32_t		scroller_event;
> > +	uint32_t		scroller_state;
> 
> You should use u8, u16 and u32 instead of uint8_t, uint16_t and
> uint32_t.

Do you want me to also change the atmel_ptc.h header and use __u8 and co?
Since I share it with bare metal software, uintxx_t was more convenient.

> 
> > diff --git a/include/uapi/linux/atmel_ptc.h b/include/uapi/linux/atmel_ptc.h
> > new file mode 100644
> > index 0000000..d15c4df
> > --- /dev/null
> > +++ b/include/uapi/linux/atmel_ptc.h
> 
> 
> Is there any sample application showing how to configure the PTC?
> 

Tooling and examples are in development.

The tool allows you to produce the atmel_ptc.conf binary or to tweak the
configuration in real time with commands such as:
- set node_group_conf count 10
- get node_config 0
- dump_conf
- export_conf atmel_ptc.conf

The application only use input devices.


Ludovic

WARNING: multiple messages have this Message-ID (diff)
From: Ludovic Desroches <ludovic.desroches@microchip.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: devicetree@vger.kernel.org, dmitry.torokhov@gmail.com,
	linux-kernel@vger.kernel.org,
	Ludovic Desroches <ludovic.desroches@microchip.com>,
	Ludovic Desroches <ludovic.desroches@atmel.com>,
	linux-input@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/4] input: misc: introduce Atmel PTC driver
Date: Tue, 4 Apr 2017 08:47:16 +0200	[thread overview]
Message-ID: <20170404064716.6uibtyin73otpqsd@rfolt0960.corp.atmel.com> (raw)
In-Reply-To: <20170403155840.vln4wg56iunrmdcw@piout.net>

On Mon, Apr 03, 2017 at 05:58:40PM +0200, Alexandre Belloni wrote:
> On 31/03/2017 at 17:22:47 +0200, Ludovic Desroches wrote:
> > From: Ludovic Desroches <ludovic.desroches@atmel.com>
> 
> I think you probably want to switch to your microchip email.
> 
> Also, this requires a proper commit message.

I'll fix this, I'll take the cover letter as commit message and update
the mail address.

> 
> > 
> > Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> > +struct atmel_ptc {
> > +	void __iomem		*ppp_regs;
> > +	void __iomem		*firmware;
> > +	int			irq;
> > +	uint8_t			imr;
> > +	volatile struct atmel_qtm_mailbox __iomem	*qtm_mb;
> > +	struct clk		*clk_per;
> > +	struct clk		*clk_int_osc;
> > +	struct clk		*clk_slow;
> > +	struct device		*dev;
> > +	struct completion	ppp_ack;
> > +	unsigned int		button_keycode[ATMEL_PTC_MAX_NODES];
> > +	struct input_dev	*buttons_input;
> > +	struct input_dev	*scroller_input[ATMEL_PTC_MAX_SCROLLERS];
> > +	bool			buttons_registered;
> > +	bool			scroller_registered[ATMEL_PTC_MAX_SCROLLERS];
> > +	uint32_t		button_event[ATMEL_PTC_MAX_NODES/32];
> > +	uint32_t		button_state[ATMEL_PTC_MAX_NODES/32];
> > +	uint32_t		scroller_event;
> > +	uint32_t		scroller_state;
> 
> You should use u8, u16 and u32 instead of uint8_t, uint16_t and
> uint32_t.

Do you want me to also change the atmel_ptc.h header and use __u8 and co?
Since I share it with bare metal software, uintxx_t was more convenient.

> 
> > diff --git a/include/uapi/linux/atmel_ptc.h b/include/uapi/linux/atmel_ptc.h
> > new file mode 100644
> > index 0000000..d15c4df
> > --- /dev/null
> > +++ b/include/uapi/linux/atmel_ptc.h
> 
> 
> Is there any sample application showing how to configure the PTC?
> 

Tooling and examples are in development.

The tool allows you to produce the atmel_ptc.conf binary or to tweak the
configuration in real time with commands such as:
- set node_group_conf count 10
- get node_config 0
- dump_conf
- export_conf atmel_ptc.conf

The application only use input devices.


Ludovic

WARNING: multiple messages have this Message-ID (diff)
From: ludovic.desroches@microchip.com (Ludovic Desroches)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] input: misc: introduce Atmel PTC driver
Date: Tue, 4 Apr 2017 08:47:16 +0200	[thread overview]
Message-ID: <20170404064716.6uibtyin73otpqsd@rfolt0960.corp.atmel.com> (raw)
In-Reply-To: <20170403155840.vln4wg56iunrmdcw@piout.net>

On Mon, Apr 03, 2017 at 05:58:40PM +0200, Alexandre Belloni wrote:
> On 31/03/2017 at 17:22:47 +0200, Ludovic Desroches wrote:
> > From: Ludovic Desroches <ludovic.desroches@atmel.com>
> 
> I think you probably want to switch to your microchip email.
> 
> Also, this requires a proper commit message.

I'll fix this, I'll take the cover letter as commit message and update
the mail address.

> 
> > 
> > Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> > +struct atmel_ptc {
> > +	void __iomem		*ppp_regs;
> > +	void __iomem		*firmware;
> > +	int			irq;
> > +	uint8_t			imr;
> > +	volatile struct atmel_qtm_mailbox __iomem	*qtm_mb;
> > +	struct clk		*clk_per;
> > +	struct clk		*clk_int_osc;
> > +	struct clk		*clk_slow;
> > +	struct device		*dev;
> > +	struct completion	ppp_ack;
> > +	unsigned int		button_keycode[ATMEL_PTC_MAX_NODES];
> > +	struct input_dev	*buttons_input;
> > +	struct input_dev	*scroller_input[ATMEL_PTC_MAX_SCROLLERS];
> > +	bool			buttons_registered;
> > +	bool			scroller_registered[ATMEL_PTC_MAX_SCROLLERS];
> > +	uint32_t		button_event[ATMEL_PTC_MAX_NODES/32];
> > +	uint32_t		button_state[ATMEL_PTC_MAX_NODES/32];
> > +	uint32_t		scroller_event;
> > +	uint32_t		scroller_state;
> 
> You should use u8, u16 and u32 instead of uint8_t, uint16_t and
> uint32_t.

Do you want me to also change the atmel_ptc.h header and use __u8 and co?
Since I share it with bare metal software, uintxx_t was more convenient.

> 
> > diff --git a/include/uapi/linux/atmel_ptc.h b/include/uapi/linux/atmel_ptc.h
> > new file mode 100644
> > index 0000000..d15c4df
> > --- /dev/null
> > +++ b/include/uapi/linux/atmel_ptc.h
> 
> 
> Is there any sample application showing how to configure the PTC?
> 

Tooling and examples are in development.

The tool allows you to produce the atmel_ptc.conf binary or to tweak the
configuration in real time with commands such as:
- set node_group_conf count 10
- get node_config 0
- dump_conf
- export_conf atmel_ptc.conf

The application only use input devices.


Ludovic

  reply	other threads:[~2017-04-04  6:48 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-31 15:22 [PATCH 0/4] Introduce the Atmel PTC subsystem Ludovic Desroches
2017-03-31 15:22 ` Ludovic Desroches
2017-03-31 15:22 ` Ludovic Desroches
2017-03-31 15:22 ` [PATCH 1/4] input: misc: introduce Atmel PTC driver Ludovic Desroches
2017-03-31 15:22   ` Ludovic Desroches
2017-03-31 15:22   ` Ludovic Desroches
2017-04-03 15:58   ` Alexandre Belloni
2017-04-03 15:58     ` Alexandre Belloni
2017-04-03 15:58     ` Alexandre Belloni
2017-04-04  6:47     ` Ludovic Desroches [this message]
2017-04-04  6:47       ` Ludovic Desroches
2017-04-04  6:47       ` Ludovic Desroches
2017-03-31 15:22 ` [PATCH 2/4] ARM: dts: at91: sama5d2: add PTC subsystem device Ludovic Desroches
2017-03-31 15:22   ` Ludovic Desroches
2017-03-31 15:22   ` Ludovic Desroches
2017-03-31 15:22 ` [PATCH 3/4] MAINTAINERS: add Atmel PTC entries Ludovic Desroches
2017-03-31 15:22   ` Ludovic Desroches
2017-03-31 15:22   ` Ludovic Desroches
2017-03-31 15:22 ` [PATCH 4/4] dt-bindings: input: Add Atmel PTC subsystem bindings Ludovic Desroches
2017-03-31 15:22   ` Ludovic Desroches
2017-03-31 15:22   ` Ludovic Desroches
2017-04-03 15:59   ` Alexandre Belloni
2017-04-03 15:59     ` Alexandre Belloni
2017-04-03 15:59     ` Alexandre Belloni
2017-04-03 16:50   ` Rob Herring
2017-04-03 16:50     ` Rob Herring
2017-04-03 16:50     ` 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=20170404064716.6uibtyin73otpqsd@rfolt0960.corp.atmel.com \
    --to=ludovic.desroches@microchip.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ludovic.desroches@atmel.com \
    --cc=nicolas.ferre@microchip.com \
    /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.