Lines Matching +full:gpio +full:- +full:keys
1 // SPDX-License-Identifier: GPL-2.0+
4 * PC-Engines APUv2/APUv3 board platform driver
5 * for GPIO buttons and LEDs
20 #include <linux/gpio/machine.h>
22 #include <linux/platform_data/gpio/gpio-amd-fch.h>
25 * NOTE: this driver only supports APUv2/3 - not APUv1, as this one
38 /* Order in which the GPIO lines are defined in the register list */
47 /* GPIO device */
60 [APU2_GPIO_LINE_LED1] = "front-led1",
61 [APU2_GPIO_LINE_LED2] = "front-led2",
62 [APU2_GPIO_LINE_LED3] = "front-led3",
63 [APU2_GPIO_LINE_MODESW] = "front-button",
75 /* GPIO LEDs device */
89 .dev_id = "leds-gpio",
101 /* GPIO keyboard device */
119 .name = "apu2-keys",
123 .dev_id = "gpio-keys-polled",
253 return -ENODEV; in apu_board_init()
261 id->driver_data, in apu_board_init()
265 "leds-gpio", in apu_board_init()
270 "gpio-keys-polled", in apu_board_init()
291 MODULE_DESCRIPTION("PC Engines APUv2/APUv3 board GPIO/LEDs/keys driver");
294 MODULE_SOFTDEP("pre: platform:" AMD_FCH_GPIO_DRIVER_NAME " platform:leds-gpio platform:gpio_keys_po…