zephyr/drivers/pinctrl
Mulin Chao 851e357aa4 pinctrl: npcx: add pinctrl support for psl pads
This CL introduces how to configure PSL (Power Switch Logic) pads
properties such as input detection mode/polarity, pin-muxing and so
on via pinctrl mechanism. It includes:

1. Add two pinctrl properties and their enums for PSL input
   detection configuration.
    psl-in-mode:
      - "level"
      - "mode"
    psl-in-pole:
      - "low-falling"
      - "high-rising"

2. Add macro functions to get PSL input detection and pin-muxing
   configurations from 'pinmux', 'psl-offset' abd 'psl-polarity'
   properties.

Here is an example to configure PSL_IN2 as the PSL detection input and
its mode and polarity.

/* A falling edge detection type for PSL_IN2 */
&psl_in2_gp00 {
	psl-in-mode = "edge";
	psl-in-pol = "low-falling";
};

A device will be introduced later which uses this pinctrl node to
configure PSL input detection settings and how to turn off VCC1 power
rail by PSL_OUT.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2022-07-07 14:12:52 +00:00
..
CMakeLists.txt drivers: pinctrl: add pinctrl driver for the Xilinx Zynq-7000 2022-06-28 20:46:11 +02:00
Kconfig drivers: pinctrl: add pinctrl driver for the Xilinx Zynq-7000 2022-06-28 20:46:11 +02:00
Kconfig.b91
Kconfig.cc13xx_cc26xx
Kconfig.esp32
Kconfig.gd32
Kconfig.imx nxp_imx: rt: add XBARA Inter-Peripheral Crossbar Switch Kconfig option 2022-07-01 16:23:11 +00:00
Kconfig.it8xxx2
Kconfig.kinetis
Kconfig.lpc_iocon
Kconfig.npcx pinctrl: npcx: config pwm open-drain without enabling STORE_REG 2022-05-20 12:36:22 +02:00
Kconfig.nrf
Kconfig.rcar
Kconfig.rpi_pico
Kconfig.rv32m1
Kconfig.sam
Kconfig.sam0
Kconfig.sifive
Kconfig.stm32
Kconfig.xec
Kconfig.xlnx drivers: pinctrl: add pinctrl driver for the Xilinx Zynq-7000 2022-06-28 20:46:11 +02:00
common.c
pfc_rcar.c
pinctrl_b91.c
pinctrl_cc13xx_cc26xx.c
pinctrl_esp32.c
pinctrl_gd32_af.c hal: gigadevice: Update gd32f4xx to firmware 3.0.0 2022-07-04 18:07:51 +02:00
pinctrl_gd32_afio.c soc: arm: gigadevice: use common API headers 2022-06-22 18:41:19 +09:00
pinctrl_imx.c
pinctrl_ite_it8xxx2.c
pinctrl_kinetis.c
pinctrl_lpc_iocon.c
pinctrl_mchp_xec.c
pinctrl_npcx.c pinctrl: npcx: add pinctrl support for psl pads 2022-07-07 14:12:52 +00:00
pinctrl_nrf.c drivers: pinctrl_nrf: Use S0D1 drive by default for TWI/TWIM pins 2022-07-05 13:52:19 +02:00
pinctrl_rpi_pico.c
pinctrl_rv32m1.c
pinctrl_sam.c
pinctrl_sam0.c
pinctrl_sifive.c
pinctrl_stm32.c
pinctrl_xlnx_zynq.c drivers: pinctrl: add pinctrl driver for the Xilinx Zynq-7000 2022-06-28 20:46:11 +02:00