Home
last modified time | relevance | path

Searched full:gpiochip (Results 1 – 25 of 214) sorted by relevance

123456789

/kernel/linux/linux-6.6/drivers/i2c/muxes/
Di2c-mux-ltc4306.c48 struct gpio_chip gpiochip; member
158 data->gpiochip.label = dev_name(dev); in ltc4306_gpio_init()
159 data->gpiochip.base = -1; in ltc4306_gpio_init()
160 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init()
161 data->gpiochip.parent = dev; in ltc4306_gpio_init()
162 data->gpiochip.can_sleep = true; in ltc4306_gpio_init()
163 data->gpiochip.get_direction = ltc4306_gpio_get_direction; in ltc4306_gpio_init()
164 data->gpiochip.direction_input = ltc4306_gpio_direction_input; in ltc4306_gpio_init()
165 data->gpiochip.direction_output = ltc4306_gpio_direction_output; in ltc4306_gpio_init()
166 data->gpiochip.get = ltc4306_gpio_get; in ltc4306_gpio_init()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/muxes/
Di2c-mux-ltc4306.c49 struct gpio_chip gpiochip; member
159 data->gpiochip.label = dev_name(dev); in ltc4306_gpio_init()
160 data->gpiochip.base = -1; in ltc4306_gpio_init()
161 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init()
162 data->gpiochip.parent = dev; in ltc4306_gpio_init()
163 data->gpiochip.can_sleep = true; in ltc4306_gpio_init()
164 data->gpiochip.get_direction = ltc4306_gpio_get_direction; in ltc4306_gpio_init()
165 data->gpiochip.direction_input = ltc4306_gpio_direction_input; in ltc4306_gpio_init()
166 data->gpiochip.direction_output = ltc4306_gpio_direction_output; in ltc4306_gpio_init()
167 data->gpiochip.get = ltc4306_gpio_get; in ltc4306_gpio_init()
[all …]
/kernel/linux/linux-6.6/drivers/gpio/
Dgpio-msc313.c613 struct gpio_chip *gpiochip; in msc313_gpio_probe() local
647 gpiochip = devm_kzalloc(dev, sizeof(*gpiochip), GFP_KERNEL); in msc313_gpio_probe()
648 if (!gpiochip) in msc313_gpio_probe()
651 gpiochip->label = DRIVER_NAME; in msc313_gpio_probe()
652 gpiochip->parent = dev; in msc313_gpio_probe()
653 gpiochip->request = gpiochip_generic_request; in msc313_gpio_probe()
654 gpiochip->free = gpiochip_generic_free; in msc313_gpio_probe()
655 gpiochip->direction_input = msc313_gpio_direction_input; in msc313_gpio_probe()
656 gpiochip->direction_output = msc313_gpio_direction_output; in msc313_gpio_probe()
657 gpiochip->get = msc313_gpio_get; in msc313_gpio_probe()
[all …]
DTODO79 Get rid of <linux/gpio/legacy-of-mm-gpiochip.h>
175 directory per gpiochip and one file entry per line:
177 /sys/kernel/debug/gpiochip/gpiochip0
178 /sys/kernel/debug/gpiochip/gpiochip0/gpio0
179 /sys/kernel/debug/gpiochip/gpiochip0/gpio1
180 /sys/kernel/debug/gpiochip/gpiochip0/gpio2
181 /sys/kernel/debug/gpiochip/gpiochip0/gpio3
183 /sys/kernel/debug/gpiochip/gpiochip1
184 /sys/kernel/debug/gpiochip/gpiochip1/gpio0
185 /sys/kernel/debug/gpiochip/gpiochip1/gpio1
Dgpio-sama5d2-piobu.c112 * sama5d2_piobu_get_direction() - gpiochip get_direction
127 * sama5d2_piobu_direction_input() - gpiochip direction_input
136 * sama5d2_piobu_direction_output() - gpiochip direction_output
151 * sama5d2_piobu_get() - gpiochip get
170 * sama5d2_piobu_set() - gpiochip set
213 dev_err(&pdev->dev, "Failed to add gpiochip %d\n", ret); in sama5d2_piobu_probe()
Dgpio-ixp4xx.c45 * @gc: gpiochip for this instance
268 * the fixed gpiochip base. in ixp4xx_gpio_probe()
284 dev_err(dev, "failed to add SoC gpiochip\n"); in ixp4xx_gpio_probe()
Dgpiolib.c401 * is using more than one gpiochip per the same device. We have to stop in gpiochip_set_names()
408 …dev_warn(dev, "gpio-line-names too short (length %d), cannot map names for the gpiochip at offset … in gpiochip_set_names()
426 * When more that one gpiochip per device is used, 'count' can in gpiochip_set_names()
1004 "REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED\n"); in gpiochip_remove()
1007 * The gpiochip side puts its use of the device to rest here: in gpiochip_remove()
1174 * to a gpiochip
1175 * @gc: the gpiochip to set the irqchip hierarchical handler to
1454 * @hwirq: the local IRQ/GPIO line offset on this gpiochip
1457 * gpiochip by assigning the gpiochip as chip data, and using the irqchip
1458 * stored inside the gpiochip.
[all …]
/kernel/linux/linux-5.10/tools/gpio/
Dgpio-utils.c25 * Provide the api of gpiochip for chardev interface. There are two
36 * gpiotools_request_linehandle() - request gpio lines in a gpiochip
37 * @device_name: The name of gpiochip without prefix "/dev/",
105 * gpiotools_request_line() - request gpio lines in a gpiochip
106 * @device_name: The name of gpiochip without prefix "/dev/",
219 * gpiotools_release_linehandle(): Release the line(s) of gpiochip
240 * gpiotools_release_line(): Release the line(s) of gpiochip
262 * @device_name: The name of gpiochip without prefix "/dev/",
284 * @device_name: The name of gpiochip without prefix "/dev/",
289 * @values: The array of values get from gpiochip.
[all …]
Dgpio-watch.c37 perror("unable to open gpiochip"); in main()
98 printf("%s: <gpiochip> <line0> <line1> ...\n", argv[0]); in main()
/kernel/linux/linux-6.6/tools/gpio/
Dgpio-utils.c25 * Provide the api of gpiochip for chardev interface. There are two
37 * gpiotools_request_line() - request gpio lines in a gpiochip
38 * @device_name: The name of gpiochip without prefix "/dev/",
151 * gpiotools_release_line() - Release the line(s) of gpiochip
173 * @device_name: The name of gpiochip without prefix "/dev/",
195 * @device_name: The name of gpiochip without prefix "/dev/",
200 * @values: The array of values get from gpiochip.
234 * @device_name: The name of gpiochip without prefix "/dev/",
252 * @device_name: The name of gpiochip without prefix "/dev/",
257 * @values: The array of values set to gpiochip, must be
Dgpio-watch.c37 perror("unable to open gpiochip"); in main()
98 printf("%s: <gpiochip> <line0> <line1> ...\n", argv[0]); in main()
/kernel/linux/linux-6.6/drivers/iio/dac/
Dad5592r-base.c136 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init()
137 st->gpiochip.base = -1; in ad5592r_gpio_init()
138 st->gpiochip.ngpio = 8; in ad5592r_gpio_init()
139 st->gpiochip.parent = st->dev; in ad5592r_gpio_init()
140 st->gpiochip.can_sleep = true; in ad5592r_gpio_init()
141 st->gpiochip.direction_input = ad5592r_gpio_direction_input; in ad5592r_gpio_init()
142 st->gpiochip.direction_output = ad5592r_gpio_direction_output; in ad5592r_gpio_init()
143 st->gpiochip.get = ad5592r_gpio_get; in ad5592r_gpio_init()
144 st->gpiochip.set = ad5592r_gpio_set; in ad5592r_gpio_init()
145 st->gpiochip.request = ad5592r_gpio_request; in ad5592r_gpio_init()
[all …]
/kernel/linux/linux-5.10/drivers/iio/dac/
Dad5592r-base.c133 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init()
134 st->gpiochip.base = -1; in ad5592r_gpio_init()
135 st->gpiochip.ngpio = 8; in ad5592r_gpio_init()
136 st->gpiochip.parent = st->dev; in ad5592r_gpio_init()
137 st->gpiochip.can_sleep = true; in ad5592r_gpio_init()
138 st->gpiochip.direction_input = ad5592r_gpio_direction_input; in ad5592r_gpio_init()
139 st->gpiochip.direction_output = ad5592r_gpio_direction_output; in ad5592r_gpio_init()
140 st->gpiochip.get = ad5592r_gpio_get; in ad5592r_gpio_init()
141 st->gpiochip.set = ad5592r_gpio_set; in ad5592r_gpio_init()
142 st->gpiochip.request = ad5592r_gpio_request; in ad5592r_gpio_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-sama5d2-piobu.c112 * sama5d2_piobu_get_direction() - gpiochip get_direction
127 * sama5d2_piobu_direction_input() - gpiochip direction_input
136 * sama5d2_piobu_direction_output() - gpiochip direction_output
151 * sama5d2_piobu_get() - gpiochip get
170 * sama5d2_piobu_set() - gpiochip set
215 dev_err(&pdev->dev, "Failed to add gpiochip %d\n", ret); in sama5d2_piobu_probe()
Dgpiolib.c594 /* If the gpiochip has an assigned OF node this takes precedence */ in gpiochip_add_data_with_key()
853 "REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED\n"); in gpiochip_remove()
856 * The gpiochip side puts its use of the device to rest here: in gpiochip_remove()
961 * gpiochip_set_cascaded_irqchip() - connects a cascaded irqchip to a gpiochip
962 * @gc: the gpiochip to set the irqchip chain to
966 * coming out of the gpiochip. If the interrupt is nested rather than
1007 * gpiochip_set_nested_irqchip() - connects a nested irqchip to a gpiochip
1008 * @gc: the gpiochip to set the irqchip nested handler to
1009 * @irqchip: the irqchip to nest to the gpiochip
1025 * to a gpiochip
[all …]
Dgpio-ixp4xx.c49 * @gc: gpiochip for this instance
278 * the fixed gpiochip base. in ixp4xx_gpio_probe()
294 dev_err(dev, "failed to add SoC gpiochip\n"); in ixp4xx_gpio_probe()
Dgpiolib.h19 #define GPIOCHIP_NAME "gpiochip"
29 * @chip: pointer to the corresponding gpiochip, holding static
/kernel/linux/linux-5.10/tools/testing/selftests/gpio/
Dgpio-mockup-sysfs.sh101 echo `ls -d $GPIO_DRV_SYSFS/gpiochip* 2>/dev/null`
121 gpiochip=`list_chip $module`
122 if [ X"$gpiochip" = X ]; then
130 for chip in $gpiochip; do
Dgpio-mockup.sh161 echo "1. Test dynamic allocation of gpio successful means insert gpiochip and"
172 echo "2. Do basic test: successful means insert gpiochip and"
178 echo "3. Error test: successful means insert gpiochip failed"
193 echo "3.3.2 Test inserting invalid second gpiochip"
Dgpio-mockup-chardev.c151 if (check_prefix(ent->d_name, "gpiochip")) { in list_gpiochip()
191 err(EXIT_FAILURE, "list gpiochip failed: %s", strerror(*ret)); in list_gpiochip()
264 * gpio_chip_name_prefix: The prefix of gpiochip you want to test. E.g.
287 printf("Test gpiochip %s: ", prefix); in main()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dgpio-cdev1 What: /dev/gpiochip[0-9]+
6 The character device files /dev/gpiochip* are the interface
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dgpio-cdev1 What: /dev/gpiochip[0-9]+
6 The character device files /dev/gpiochip* are the interface
/kernel/linux/linux-6.6/tools/testing/selftests/gpio/
Dgpio-mockup.sh281 # For each gpiochip the fence post lines, 0 and n-1, are tested, and the
285 # gpiochip is tested as well.
297 gpiochip=$(find "$DEBUGFS/$module/" -name gpiochip* -type d | sort)
298 for chip in $gpiochip; do
/kernel/linux/linux-6.6/Documentation/admin-guide/gpio/
Dgpio-aggregator.rst13 GPIO controllers are exported to userspace using /dev/gpiochip* character
104 After that, a new gpiochip "door" has been created:
/kernel/linux/linux-5.10/Documentation/admin-guide/gpio/
Dgpio-aggregator.rst13 GPIO controllers are exported to userspace using /dev/gpiochip* character
104 After that, a new gpiochip "door" has been created:

123456789