Lines Matching +full:ipc +full:- +full:3

1 // SPDX-License-Identifier: GPL-2.0
3 * Siemens SIMATIC IPC driver for GPIO based LEDs
16 #include <linux/platform_data/x86/simatic-ipc-base.h>
18 #include "simatic-ipc-leds-gpio.h"
26 .dev_id = "leds-gpio",
28 GPIO_LOOKUP_IDX("gpio-f7188x-2", 0, NULL, 0, GPIO_ACTIVE_LOW),
29 GPIO_LOOKUP_IDX("gpio-f7188x-2", 1, NULL, 1, GPIO_ACTIVE_LOW),
30 GPIO_LOOKUP_IDX("gpio-f7188x-2", 2, NULL, 2, GPIO_ACTIVE_LOW),
31 GPIO_LOOKUP_IDX("gpio-f7188x-2", 3, NULL, 3, GPIO_ACTIVE_LOW),
32 GPIO_LOOKUP_IDX("gpio-f7188x-2", 4, NULL, 4, GPIO_ACTIVE_LOW),
33 GPIO_LOOKUP_IDX("gpio-f7188x-2", 5, NULL, 5, GPIO_ACTIVE_LOW),
41 GPIO_LOOKUP_IDX("gpio-f7188x-3", 6, NULL, 6, GPIO_ACTIVE_HIGH),
42 GPIO_LOOKUP_IDX("gpio-f7188x-3", 7, NULL, 7, GPIO_ACTIVE_HIGH),
48 .dev_id = "leds-gpio",
50 GPIO_LOOKUP_IDX("gpio-f7188x-2", 0, NULL, 0, GPIO_ACTIVE_LOW),
51 GPIO_LOOKUP_IDX("gpio-f7188x-2", 3, NULL, 1, GPIO_ACTIVE_LOW),
52 GPIO_LOOKUP_IDX("gpio-f7188x-5", 3, NULL, 2, GPIO_ACTIVE_LOW),
53 GPIO_LOOKUP_IDX("gpio-f7188x-5", 2, NULL, 3, GPIO_ACTIVE_LOW),
54 GPIO_LOOKUP_IDX("gpio-f7188x-7", 7, NULL, 4, GPIO_ACTIVE_LOW),
55 GPIO_LOOKUP_IDX("gpio-f7188x-7", 4, NULL, 5, GPIO_ACTIVE_LOW),
62 const struct simatic_ipc_platform *plat = dev_get_platdata(&pdev->dev); in simatic_ipc_leds_gpio_f7188x_probe()
65 led_tables = devm_kzalloc(&pdev->dev, sizeof(*led_tables), GFP_KERNEL); in simatic_ipc_leds_gpio_f7188x_probe()
67 return -ENOMEM; in simatic_ipc_leds_gpio_f7188x_probe()
69 switch (plat->devmode) { in simatic_ipc_leds_gpio_f7188x_probe()
71 led_tables->led_lookup_table = &simatic_ipc_led_gpio_table_227g; in simatic_ipc_leds_gpio_f7188x_probe()
72 led_tables->led_lookup_table_extra = &simatic_ipc_led_gpio_table_extra_227g; in simatic_ipc_leds_gpio_f7188x_probe()
75 led_tables->led_lookup_table = &simatic_ipc_led_gpio_table_bx_59a; in simatic_ipc_leds_gpio_f7188x_probe()
78 return -ENODEV; in simatic_ipc_leds_gpio_f7188x_probe()
82 return simatic_ipc_leds_gpio_probe(pdev, led_tables->led_lookup_table, in simatic_ipc_leds_gpio_f7188x_probe()
83 led_tables->led_lookup_table_extra); in simatic_ipc_leds_gpio_f7188x_probe()
90 simatic_ipc_leds_gpio_remove(pdev, led_tables->led_lookup_table, in simatic_ipc_leds_gpio_f7188x_remove()
91 led_tables->led_lookup_table_extra); in simatic_ipc_leds_gpio_f7188x_remove()
106 MODULE_SOFTDEP("pre: simatic-ipc-leds-gpio-core gpio_f7188x");