851e357aa4
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.b91 | ||
Kconfig.cc13xx_cc26xx | ||
Kconfig.esp32 | ||
Kconfig.gd32 | ||
Kconfig.imx | ||
Kconfig.it8xxx2 | ||
Kconfig.kinetis | ||
Kconfig.lpc_iocon | ||
Kconfig.npcx | ||
Kconfig.nrf | ||
Kconfig.rcar | ||
Kconfig.rpi_pico | ||
Kconfig.rv32m1 | ||
Kconfig.sam | ||
Kconfig.sam0 | ||
Kconfig.sifive | ||
Kconfig.stm32 | ||
Kconfig.xec | ||
Kconfig.xlnx | ||
common.c | ||
pfc_rcar.c | ||
pinctrl_b91.c | ||
pinctrl_cc13xx_cc26xx.c | ||
pinctrl_esp32.c | ||
pinctrl_gd32_af.c | ||
pinctrl_gd32_afio.c | ||
pinctrl_imx.c | ||
pinctrl_ite_it8xxx2.c | ||
pinctrl_kinetis.c | ||
pinctrl_lpc_iocon.c | ||
pinctrl_mchp_xec.c | ||
pinctrl_npcx.c | ||
pinctrl_nrf.c | ||
pinctrl_rpi_pico.c | ||
pinctrl_rv32m1.c | ||
pinctrl_sam.c | ||
pinctrl_sam0.c | ||
pinctrl_sifive.c | ||
pinctrl_stm32.c | ||
pinctrl_xlnx_zynq.c |