Home
last modified time | relevance | path

Searched +full:it8801 +full:- +full:mfd (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/dts/riscv/ite/
Dit8801-mfd-map.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <ite/it8801-mfd-gpiocr.dtsi>
8 #include <zephyr/dt-bindings/mfd/mfd_it8801_altctrl.h>
13 it8801-mfd-map {
14 compatible = "ite,it8801-mfd-map";
Dit8801-mfd-gpiocr.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 it8801-mfd {
9 #address-cells = <1>;
10 #size-cells = <1>;
13 compatible = "ite,it8801-altctrl";
15 #altctrl-cells = <2>;
19 compatible = "ite,it8801-altctrl";
21 #altctrl-cells = <2>;
25 compatible = "ite,it8801-altctrl";
27 #altctrl-cells = <2>;
Dit8801-common-cfg.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <ite/it8801-mfd-map.dtsi>
10 #address-cells = <1>;
11 #size-cells = <1>;
15 compatible = "ite,it8801-gpio";
21 gpio-controller;
22 #gpio-cells = <2>;
24 pin-mask = <0xdb>;
28 compatible = "ite,it8801-gpio";
34 gpio-controller;
[all …]
/Zephyr-latest/dts/bindings/mfd/
Dite,it8801-mfd.yaml2 # SPDX-License-Identifier: Apache-2.0
5 ITE IT8801 ioexpander multi-function device drivers.
8 An example configuration using the it8801-common-cfg.dtsi template:
11 it8801_mfd: it8801@38 {
12 compatible = "ite,it8801-mfd";
14 * SMBus address (7-bit without R/W)
19 irq-gpios = <&gpioa 1 0>; /* SMB_INT# */
22 #include <ite/it8801-common-cfg.dtsi>
24 /* sub-devices available at nodelabels:
25 * - ioex_it8801_port0
[all …]
Dite,it8801-mfd-map.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: ITE IT8801 alternate controller node
6 compatible: "ite,it8801-mfd-map"
8 child-binding:
9 description: Child node to present the mapping of IT8801 altternate function
12 type: phandle-array
/Zephyr-latest/drivers/mfd/
DKconfig.it88012 # SPDX-License-Identifier: Apache-2.0
5 bool "ITE IT8801 ioexpander multi-function device driver"
10 Enable the ITE IT8801 ioexpander multi-function device driver.
16 bool "ITE IT8801 MFD alternate controller"
DKconfig2 # SPDX-License-Identifier: Apache-2.0
4 menuconfig MFD config
5 bool "Multi-function device (MFD) drivers"
7 Include drivers for multi-function devices
9 if MFD
11 module = MFD
12 module-str = mfd
19 Multi-function devices initialization priority.
21 source "drivers/mfd/Kconfig.ad559x"
22 source "drivers/mfd/Kconfig.adp5585"
[all …]
Dmfd_ite_it8801.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/mfd/mfd_ite_it8801.h>
31 const struct mfd_it8801_config *config = dev->config; in it8801_check_vendor_id()
35 /* Verify vendor ID registers(16-bits). */ in it8801_check_vendor_id()
37 ret = i2c_reg_read_byte_dt(&config->i2c_dev, it8801_id_verify[i].reg, &val); in it8801_check_vendor_id()
45 LOG_ERR("The IT8801 vendor ID is wrong. Index: %d, Expected ID: 0x%x," in it8801_check_vendor_id()
48 return -ENODEV; in it8801_check_vendor_id()
60 k_work_submit(&data->gpio_isr_worker); in it8801_gpio_callback()
63 void mfd_it8801_register_interrupt_callback(const struct device *mfd, in mfd_it8801_register_interrupt_callback() argument
66 struct mfd_it8801_data *data = mfd->data; in mfd_it8801_register_interrupt_callback()
[all …]
/Zephyr-latest/tests/drivers/build_all/gpio/
Dit82xx2_evb.overlay4 * SPDX-License-Identifier: Apache-2.0
10 it8801_mfd: it8801@38 {
11 compatible = "ite,it8801-mfd";
13 irq-gpios = <&gpioa 1 0>;
17 #include <ite/it8801-common-cfg.dtsi>
/Zephyr-latest/drivers/input/
DKconfig.it88012 # SPDX-License-Identifier: Apache-2.0
5 bool "ITE IT8801 keyboard matrix scan controller"
10 select MFD
12 Enable driver for ITE IT8801 I2C-based keyboard matrix scan.
13 IT8801 support 8 KSI pins and 19 KSO pins [22:11] [6:0],
Dinput_ite_it8801_kbd.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/mfd/mfd_ite_it8801.h>
29 /* IT8801 controller dev */
30 const struct device *mfd; member
33 /* I2C device for the MFD parent */
56 const struct kbd_it8801_config *config = dev->config; in kbd_it8801_drive_column()
61 /* Tri-state all outputs. KSO[22:11, 6:0] output high */ in kbd_it8801_drive_column()
68 kso_val = config->kso_mapping[col]; in kbd_it8801_drive_column()
71 ret = i2c_reg_write_byte_dt(&config->i2c_dev, config->reg_ksomcr, kso_val); in kbd_it8801_drive_column()
80 const struct kbd_it8801_config *const config = dev->config; in kbd_it8801_read_row()
[all …]
/Zephyr-latest/tests/drivers/build_all/pwm/boards/
Dit82xx2_evb.overlay4 * SPDX-License-Identifier: Apache-2.0
9 pwm-0 = &ioex_it8801_pwm7;
16 it8801_mfd: it8801@38 {
17 compatible = "ite,it8801-mfd";
19 irq-gpios = <&gpioa 1 0>;
23 #include <ite/it8801-common-cfg.dtsi>
/Zephyr-latest/drivers/gpio/
DKconfig.it88012 # SPDX-License-Identifier: Apache-2.0
5 bool "ITE IT8801 GPIO device driver"
9 select MFD
11 Enable driver for ITE IT8801 I2C-based GPIO.
Dgpio_ite_it8801.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/drivers/mfd/mfd_ite_it8801.h>
22 /* IT8801 controller dev */
23 const struct device *mfd; member
24 /* I2C device for the MFD parent */
47 const struct gpio_it8801_config *config = dev->config; in ioex_check_is_not_valid()
49 if (BIT(pin) & ~(config->pin_mask)) { in ioex_check_is_not_valid()
50 LOG_ERR("GPIO port%d-%d is not support", config->reg_ipsr, pin); in ioex_check_is_not_valid()
51 return -ENOTSUP; in ioex_check_is_not_valid()
59 const struct gpio_it8801_config *config = dev->config; in gpio_it8801_configure()
[all …]
/Zephyr-latest/drivers/pwm/
DKconfig.it88012 # SPDX-License-Identifier: Apache-2.0
5 bool "ITE IT8801 PWM device driver"
9 select MFD
11 Enable driver for ITE IT8801 I2C-based PWM.
12 Supports 7 open-drain/push-pull outputs.
Dpwm_ite_it8801.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/mfd/mfd_ite_it8801.h>
36 /* IT8801 controller dev */
37 const struct device *mfd; member
38 /* I2C device for the MFD parent */
56 const struct pwm_it8801_config *config = dev->config; in pwm_enable()
60 ret = i2c_reg_update_byte_dt(&config->i2c_dev, config->reg_mcr, in pwm_enable()
63 ret = i2c_reg_update_byte_dt(&config->i2c_dev, config->reg_mcr, in pwm_enable()
88 const struct pwm_it8801_config *config = dev->config; in pwm_it8801_set_cycles()
89 int ch = config->channel, ret; in pwm_it8801_set_cycles()
[all …]
/Zephyr-latest/tests/drivers/build_all/input/
Dit82xx2_evb.overlay4 * SPDX-License-Identifier: Apache-2.0
7 /delete-node/ &kbd;
12 it8801_mfd: it8801@38 {
13 compatible = "ite,it8801-mfd";
15 irq-gpios = <&gpioa 1 0>;
19 #include <ite/it8801-common-cfg.dtsi>
25 kso-mapping = <0 1 20 3 4 5 6 17 18 16 15 11 12>;
26 row-size = <8>;
27 col-size = <13>;
29 kscan_input: kscan-input {
[all …]
/Zephyr-latest/include/zephyr/drivers/mfd/
Dmfd_ite_it8801.h4 * SPDX-License-Identifier: Apache-2.0
63 /* GPIO pull-down enable */
65 /* GPIO pull-up enable */
80 /* Control push-pull flag */
82 /* 0x5f: PWM output open-drain disable register */
92 * For IT8801 MFD alternate function controller
121 /* Define the IT8801 MFD interrupt callback function handler */
129 /* Register the interrupt of IT8801 MFD callback function */
130 void mfd_it8801_register_interrupt_callback(const struct device *mfd,