Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-05-02 Thread Maxime Coquelin
2016-04-30 13:32 GMT+02:00 Linus Walleij : > On Fri, Apr 29, 2016 at 1:19 PM, Maxime Coquelin > wrote: >> It looks like this: http://pastebin.com/raw/cs2WiNKZ >> You can directly check section 12.2.5 of the stm32f429 reference manual: >>

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-05-02 Thread Maxime Coquelin
2016-04-30 13:32 GMT+02:00 Linus Walleij : > On Fri, Apr 29, 2016 at 1:19 PM, Maxime Coquelin > wrote: >> It looks like this: http://pastebin.com/raw/cs2WiNKZ >> You can directly check section 12.2.5 of the stm32f429 reference manual: >>

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-30 Thread Linus Walleij
On Fri, Apr 29, 2016 at 1:19 PM, Maxime Coquelin wrote: > 2016-04-29 10:53 GMT+02:00 Linus Walleij : >> On Tue, Apr 19, 2016 at 11:04 AM, Maxime Coquelin >> wrote: >>> 2016-04-08 11:43 GMT+02:00 Linus Walleij

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-30 Thread Linus Walleij
On Fri, Apr 29, 2016 at 1:19 PM, Maxime Coquelin wrote: > 2016-04-29 10:53 GMT+02:00 Linus Walleij : >> On Tue, Apr 19, 2016 at 11:04 AM, Maxime Coquelin >> wrote: >>> 2016-04-08 11:43 GMT+02:00 Linus Walleij : On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin wrote: > +static

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-29 Thread Maxime Coquelin
2016-04-29 10:53 GMT+02:00 Linus Walleij : > On Tue, Apr 19, 2016 at 11:04 AM, Maxime Coquelin > wrote: >> 2016-04-08 11:43 GMT+02:00 Linus Walleij : >>> On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin >>>

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-29 Thread Maxime Coquelin
2016-04-29 10:53 GMT+02:00 Linus Walleij : > On Tue, Apr 19, 2016 at 11:04 AM, Maxime Coquelin > wrote: >> 2016-04-08 11:43 GMT+02:00 Linus Walleij : >>> On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin >>> wrote: >>> +static int stm32_gpio_to_irq(struct gpio_chip *chip, unsigned offset)

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-29 Thread Linus Walleij
On Fri, Apr 29, 2016 at 10:53 AM, Linus Walleij wrote: > On Tue, Apr 19, 2016 at 11:04 AM, Maxime Coquelin > wrote: >> 2016-04-08 11:43 GMT+02:00 Linus Walleij : >>> On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-29 Thread Linus Walleij
On Fri, Apr 29, 2016 at 10:53 AM, Linus Walleij wrote: > On Tue, Apr 19, 2016 at 11:04 AM, Maxime Coquelin > wrote: >> 2016-04-08 11:43 GMT+02:00 Linus Walleij : >>> On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin >>> wrote: >>> +static int stm32_gpio_to_irq(struct gpio_chip *chip,

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-29 Thread Linus Walleij
On Tue, Apr 19, 2016 at 11:04 AM, Maxime Coquelin wrote: > 2016-04-08 11:43 GMT+02:00 Linus Walleij : >> On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin >> wrote: >> >>> +static int stm32_gpio_to_irq(struct

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-29 Thread Linus Walleij
On Tue, Apr 19, 2016 at 11:04 AM, Maxime Coquelin wrote: > 2016-04-08 11:43 GMT+02:00 Linus Walleij : >> On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin >> wrote: >> >>> +static int stm32_gpio_to_irq(struct gpio_chip *chip, unsigned offset) >>> +{ >>> + struct stm32_pinctrl *pctl =

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-19 Thread Maxime Coquelin
Hi Linus 2016-04-08 11:43 GMT+02:00 Linus Walleij : > On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin > wrote: > >> +static int stm32_gpio_to_irq(struct gpio_chip *chip, unsigned offset) >> +{ >> + struct stm32_pinctrl *pctl =

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-19 Thread Maxime Coquelin
Hi Linus 2016-04-08 11:43 GMT+02:00 Linus Walleij : > On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin > wrote: > >> +static int stm32_gpio_to_irq(struct gpio_chip *chip, unsigned offset) >> +{ >> + struct stm32_pinctrl *pctl = dev_get_drvdata(chip->parent); >> + struct

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-08 Thread Linus Walleij
On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin wrote: > +static int stm32_gpio_to_irq(struct gpio_chip *chip, unsigned offset) > +{ > + struct stm32_pinctrl *pctl = dev_get_drvdata(chip->parent); > + struct stm32_gpio_bank *bank = gpiochip_get_data(chip);

Re: [PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-04-08 Thread Linus Walleij
On Thu, Mar 31, 2016 at 5:09 PM, Maxime Coquelin wrote: > +static int stm32_gpio_to_irq(struct gpio_chip *chip, unsigned offset) > +{ > + struct stm32_pinctrl *pctl = dev_get_drvdata(chip->parent); > + struct stm32_gpio_bank *bank = gpiochip_get_data(chip); > + unsigned int

[PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-03-31 Thread Maxime Coquelin
This patch adds IRQ support to STM32 gpios. The EXTI controller has 16 lines dedicated to GPIOs. EXTI line n can be connected to only line n of one of the GPIO ports, for example EXTI0 can be connected to either PA0, or PB0, or PC0... This port selection is done by specifying the port number into

[PATCH v2 6/9] pinctrl: Add IRQ support to STM32 gpios

2016-03-31 Thread Maxime Coquelin
This patch adds IRQ support to STM32 gpios. The EXTI controller has 16 lines dedicated to GPIOs. EXTI line n can be connected to only line n of one of the GPIO ports, for example EXTI0 can be connected to either PA0, or PB0, or PC0... This port selection is done by specifying the port number into