Home
last modified time | relevance | path

Searched +full:gpio_config +full:- (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/drivers/gpio/
Dgpio_litex.c2 * Copyright (c) 2019-2021 Antmicro <www.antmicro.com>
5 * SPDX-License-Identifier: Apache-2.0
58 ((const struct gpio_litex_cfg *)(dev)->config)
67 regv = litex_read(config->reg_addr, config->reg_size); in set_bit()
69 litex_write(config->reg_addr, config->reg_size, new_regv); in set_bit()
74 int regv = litex_read(config->reg_addr, config->reg_size); in get_bit()
81 litex_write(config->reg_addr, config->reg_size, value); in set_port()
86 int regv = litex_read(config->reg_addr, config->reg_size); in get_port()
88 return (regv & BIT_MASK(config->nr_gpios)); in get_port()
96 const struct gpio_litex_cfg *gpio_config = DEV_GPIO_CFG(dev); in gpio_litex_configure() local
[all …]
Dgpio_ite_it8xxx2_v2.c4 * SPDX-License-Identifier: Apache-2.0
18 #include <zephyr/dt-bindings/gpio/ite-it8xxx2-gpio.h>
19 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h>
80 const struct gpio_ite_cfg *gpio_config = dev->config; in gpio_ite_configure() local
81 volatile uint8_t *reg_gpdr = (uint8_t *)gpio_config->reg_gpdr; in gpio_ite_configure()
82 volatile uint8_t *reg_gpotr = (uint8_t *)gpio_config->reg_gpotr; in gpio_ite_configure()
83 volatile uint8_t *reg_p18scr = (uint8_t *)gpio_config->reg_p18scr; in gpio_ite_configure()
84 volatile uint8_t *reg_gpcr = (uint8_t *)gpio_config->reg_gpcr + pin; in gpio_ite_configure()
85 struct gpio_ite_data *data = dev->data; in gpio_ite_configure()
92 return -ENOTSUP; in gpio_ite_configure()
[all …]
Dgpio_cc32xx.c4 * SPDX-License-Identifier: Apache-2.0
72 const struct gpio_cc32xx_config *gpio_config = port->config; in gpio_cc32xx_config() local
73 unsigned long port_base = gpio_config->port_base; in gpio_cc32xx_config()
76 return -ENOTSUP; in gpio_cc32xx_config()
80 return -ENOTSUP; in gpio_cc32xx_config()
84 return -ENOTSUP; in gpio_cc32xx_config()
87 MAP_PinTypeGPIO(pinTable[gpio_config->port_num * 8 + pin], in gpio_cc32xx_config()
106 const struct gpio_cc32xx_config *gpio_config = port->config; in gpio_cc32xx_port_get_raw() local
107 unsigned long port_base = gpio_config->port_base; in gpio_cc32xx_port_get_raw()
119 const struct gpio_cc32xx_config *gpio_config = port->config; in gpio_cc32xx_port_set_masked_raw() local
[all …]
Dgpio_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/gpio/ite-it8xxx2-gpio.h>
12 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h>
57 ((struct gpio_ite_data *)(dev)->data)
60 ((const struct gpio_ite_cfg *)(dev)->config)
63 * Convert wake-up controller (WUC) group to the corresponding wake-up edge
73 * From WUESR1-WUESR4, the address increases by ones. From WUESR5 on in wuesr()
77 (volatile uint8_t *)(IT8XXX2_WUC_WUESR1 + grp-1) : in wuesr()
78 (volatile uint8_t *)(IT8XXX2_WUC_WUESR5 + 4*(grp-5)); in wuesr()
82 * Convert wake-up controller (WUC) group to the corresponding wake-up edge
[all …]
Dgpio_renesas_rz.c4 * SPDX-License-Identifier: Apache-2.0
20 #define LOG_DEV_ERR(dev, format, ...) LOG_ERR("%s:" #format, (dev)->name, ##__VA_ARGS__)
21 #define LOG_DEV_DBG(dev, format, ...) LOG_DBG("%s:" #format, (dev)->name, ##__VA_ARGS__)
60 const struct gpio_rz_config *config = dev->config; in gpio_rz_pin_get_config()
61 bsp_io_port_pin_t port_pin = config->fsp_port | pin; in gpio_rz_pin_get_config()
100 const struct gpio_rz_config *config = dev->config; in gpio_rz_pin_configure()
101 struct gpio_rz_data *data = dev->data; in gpio_rz_pin_configure()
102 bsp_io_port_pin_t port_pin = config->fsp_port | pin; in gpio_rz_pin_configure()
152 /* Filter register, see in renesas-rz-gpio-ioport.h */ in gpio_rz_pin_configure()
155 return -ENOTSUP; in gpio_rz_pin_configure()
[all …]
/Zephyr-latest/tests/subsys/pm/device_driver_init/src/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
19 gpio_flags_t gpio_config; \
20 int gpio_ret = gpio_pin_get_config_dt(&gpio, &gpio_config); \
22 zassert_equal(gpio_config, config, "Unexpected config");\
35 state = -1; in ZTEST()
45 /* Device powered, zephyr,pm-device-runtime-auto, starts suspended */ in ZTEST()
/Zephyr-latest/dts/bindings/gpio/
Dite,it8xxx2-gpio-v2.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "ite,it8xxx2-gpio-v2"
8 include: [gpio-controller.yaml, base.yaml]
14 has-volt-sel:
19 wuc-base:
24 a wake-up signal to the INTC, allowing the CPU to exit
27 wuc-mask:
30 keyboard-controller:
37 when the judgment of gpio_config->ksb_ctrl is true.
40 gpioksi: 0xf01d40-0xf01d47
[all …]
/Zephyr-latest/drivers/mfd/
Dmfd_npm2100.c3 * SPDX-License-Identifier: Apache-2.0
20 #define GPIO_CONFIG 0x80U macro
118 const struct mfd_npm2100_config *config = data->dev->config; in gpio_callback()
120 if (config->host_int_flags & GPIO_INT_LEVEL_ACTIVE) { in gpio_callback()
122 gpio_pin_interrupt_configure_dt(&config->host_int_gpios, GPIO_INT_DISABLE); in gpio_callback()
125 k_work_submit(&data->work); in gpio_callback()
131 const struct mfd_npm2100_config *config = data->dev->config; in work_callback()
136 ret = i2c_write_read_dt(&config->i2c, &buf[0], 1U, &buf[1], EVENTS_SIZE); in work_callback()
138 k_work_submit(&data->work); in work_callback()
144 gpio_fire_callbacks(&data->callbacks, data->dev, BIT(i)); in work_callback()
[all …]