Searched hist:"1892 e87a3e9170146549779622cb844582f1e2bb" (Results 1 – 2 of 2) sorted by relevance
/linux/arch/powerpc/boot/dts/ |
H A D | warp.dts | diff 1892e87a3e9170146549779622cb844582f1e2bb Tue Sep 27 08:03:25 CEST 2022 Dmitry Torokhov <dmitry.torokhov@gmail.com> powerpc/warp: switch to using gpiod API
This switches PIKA Warp away from legacy gpio API and to newer gpiod API, so that we can eventually deprecate the former.
Because LEDs are normally driven by leds-gpio driver, but the platform code also wants to access the LEDs during thermal shutdown, and gpiod API does not allow locating GPIO without requesting it, the platform code is now responsible for locating GPIOs through device tree and requesting them. It then constructs platform data for leds-gpio platform device and registers it. This allows platform code to retain access to LED GPIO descriptors and use them when needed.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/YzKSLcrYmV5kjyeX@google.com
|
/linux/arch/powerpc/platforms/44x/ |
H A D | warp.c | diff 1892e87a3e9170146549779622cb844582f1e2bb Tue Sep 27 08:03:25 CEST 2022 Dmitry Torokhov <dmitry.torokhov@gmail.com> powerpc/warp: switch to using gpiod API
This switches PIKA Warp away from legacy gpio API and to newer gpiod API, so that we can eventually deprecate the former.
Because LEDs are normally driven by leds-gpio driver, but the platform code also wants to access the LEDs during thermal shutdown, and gpiod API does not allow locating GPIO without requesting it, the platform code is now responsible for locating GPIOs through device tree and requesting them. It then constructs platform data for leds-gpio platform device and registers it. This allows platform code to retain access to LED GPIO descriptors and use them when needed.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/YzKSLcrYmV5kjyeX@google.com
|