Re: [RFD] Sharing GPIOs for input (buttons) and output (LEDs)

2016-03-22 Thread Linus Walleij
On Tue, Mar 22, 2016 at 2:59 PM, Vaibhav Hiremath wrote: > On Thursday 17 March 2016 03:48 PM, Linus Walleij wrote: > but recently I came across another usecase of shared gpio, > > Say, for example, we have multiple external I2C peripheral which share > interrupt

Re: [RFD] Sharing GPIOs for input (buttons) and output (LEDs)

2016-03-22 Thread Linus Walleij
On Tue, Mar 22, 2016 at 2:59 PM, Vaibhav Hiremath wrote: > On Thursday 17 March 2016 03:48 PM, Linus Walleij wrote: > but recently I came across another usecase of shared gpio, > > Say, for example, we have multiple external I2C peripheral which share > interrupt line over gpio (ofcourse irq

Re: [RFD] Sharing GPIOs for input (buttons) and output (LEDs)

2016-03-22 Thread Vaibhav Hiremath
On Thursday 17 March 2016 03:48 PM, Linus Walleij wrote: On Mon, Feb 22, 2016 at 1:14 PM, Geert Uytterhoeven wrote: On the Renesas Salvator-X development board, 3 GPIO pins are connected to both push buttons and LEDs. Not exactly related to buttons and leds, but

Re: [RFD] Sharing GPIOs for input (buttons) and output (LEDs)

2016-03-22 Thread Vaibhav Hiremath
On Thursday 17 March 2016 03:48 PM, Linus Walleij wrote: On Mon, Feb 22, 2016 at 1:14 PM, Geert Uytterhoeven wrote: On the Renesas Salvator-X development board, 3 GPIO pins are connected to both push buttons and LEDs. Not exactly related to buttons and leds, but recently I came across

Re: [RFD] Sharing GPIOs for input (buttons) and output (LEDs)

2016-03-19 Thread Linus Walleij
On Mon, Feb 22, 2016 at 1:14 PM, Geert Uytterhoeven wrote: > On the Renesas Salvator-X development board, 3 GPIO pins are connected to both > push buttons and LEDs. > - If the GPIO is configured for output, it can control the LED, > - If the GPIO is configured for

Re: [RFD] Sharing GPIOs for input (buttons) and output (LEDs)

2016-03-19 Thread Linus Walleij
On Mon, Feb 22, 2016 at 1:14 PM, Geert Uytterhoeven wrote: > On the Renesas Salvator-X development board, 3 GPIO pins are connected to both > push buttons and LEDs. > - If the GPIO is configured for output, it can control the LED, > - If the GPIO is configured for input, the push button

[RFD] Sharing GPIOs for input (buttons) and output (LEDs)

2016-02-22 Thread Geert Uytterhoeven
TL;DR: If a GPIO is connected to both a push button and an LED, can we (1) still use both, or can we (2) chose which one to use? This affects both the hardware description in DT and user policies. Introduction On the Renesas Salvator-X development board, 3 GPIO pins are connected

[RFD] Sharing GPIOs for input (buttons) and output (LEDs)

2016-02-22 Thread Geert Uytterhoeven
TL;DR: If a GPIO is connected to both a push button and an LED, can we (1) still use both, or can we (2) chose which one to use? This affects both the hardware description in DT and user policies. Introduction On the Renesas Salvator-X development board, 3 GPIO pins are connected