zephyr/soc
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
..
arc soc: add mising braces to single line if statements 2022-07-06 11:00:45 -04:00
arm pinctrl: npcx: add pinctrl support for psl pads 2022-07-07 14:12:52 +00:00
arm64 xenvm: drivers: xen: add Xen grant table driver 2022-06-28 22:34:26 -04:00
mips asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
nios2 linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
posix linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
riscv esp32c3: Avoid circular header inclusion 2022-07-07 10:00:20 +02:00
sparc linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
x86 uart_pipe: Remove obsolete UART_PIPE_ON_DEV_NAME Kconfig 2022-07-07 09:59:49 +02:00
xtensa intel: adsp: Simplify PM 2022-07-07 02:10:11 -04:00
Kconfig