zephyr/drivers/gpio
Martí Bolívar 7e0eed9235 devicetree: allow access to all nodes
Usually, we want to operate only on "available" device
nodes ("available" means "status is okay and a matching binding is
found"), but that's not true in all cases.

Sometimes we want to operate on special nodes without matching
bindings, such as those describing memory.

To handle the distinction, change various additional devicetree APIs
making it clear that they operate only on available device nodes,
adjusting gen_defines and devicetree.h implementation details
accordingly:

- emit macros for all existing nodes in gen_defines.py, regardless
  of status or matching binding
- rename DT_NUM_INST to DT_NUM_INST_STATUS_OKAY
- rename DT_NODE_HAS_COMPAT to DT_NODE_HAS_COMPAT_STATUS_OKAY
- rename DT_INST_FOREACH to DT_INST_FOREACH_STATUS_OKAY
- rename DT_ANY_INST_ON_BUS to DT_ANY_INST_ON_BUS_STATUS_OKAY
- rewrite DT_HAS_NODE_STATUS_OKAY in terms of a new DT_NODE_HAS_STATUS
- resurrect DT_HAS_NODE in the form of DT_NODE_EXISTS
- remove DT_COMPAT_ON_BUS as a public API
- use the new default_prop_types edtlib parameter

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-08 19:37:18 -05:00
..
CMakeLists.txt gpio: add driver for MCP23S17 GPIO chip 2020-04-17 05:56:05 -05:00
gpio_cc13xx_cc26xx.c drivers: gpio: use new ngpios macros 2020-04-06 09:14:02 -05:00
gpio_cc32xx.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_cmsdk_ahb.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_cmsdk_ahb.h cleanup: include/: move gpio.h to drivers/gpio.h 2019-06-27 22:55:49 -04:00
gpio_dw_registers.h drivers: gpio_dw: update to use new GPIO API 2020-02-05 12:00:36 +01:00
gpio_dw.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_dw.h drivers: gpio_dw: add support for pin validation 2020-02-05 12:00:36 +01:00
gpio_esp32.c drivers: gpio: use new ngpios macros for cases embedded in macros 2020-04-06 09:14:02 -05:00
gpio_gecko.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_handlers.c drivers: gpio: fix syscall handlers 2020-03-07 09:22:50 +02:00
gpio_ht16k33.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_imx.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_intel_apl.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_litex.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_lmp90xxx.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_mchp_xec.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_mcp23s17.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_mcp23s17.h gpio: add driver for MCP23S17 GPIO chip 2020-04-17 05:56:05 -05:00
gpio_mcux_igpio.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_mcux_lpc.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_mcux.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_mmio32.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_nrfx.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_pca95xx.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_rv32m1.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_sam0.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_sam.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_shell.c gpio: replace GPIO_DIR flags 2020-02-05 12:00:36 +01:00
gpio_sifive.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_stellaris.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
gpio_stm32.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_stm32.h driver/gpio: stm32: Add STM32L5 support 2020-05-08 00:34:34 -05:00
gpio_sx1509b.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
gpio_utils.h gpio_utils.h: add helpers for dt node -> port pin mask 2020-04-06 09:14:02 -05:00
Kconfig gpio: add driver for MCP23S17 GPIO chip 2020-04-17 05:56:05 -05:00
Kconfig.cc13xx_cc26xx drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.cc32xx drivers: cc32xx: use DT_INST_FOREACH to reduce code duplication 2020-04-26 06:05:10 -05:00
Kconfig.cmsdk_ahb drivers: gpio: cmsdk_ahb: Convert driver to be full DTS based 2020-04-03 04:11:36 -05:00
Kconfig.dw drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.esp32 drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.gecko drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.ht16k33 kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.imx drivers: gpio: gpio_imx: Convert driver to new DT_INST macros 2020-04-04 09:34:00 -05:00
Kconfig.intel drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.litex drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.lmp90xxx kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.mcp23s17 gpio: add driver for MCP23S17 GPIO chip 2020-04-17 05:56:05 -05:00
Kconfig.mcux gpio: mcux: Convert convert to DT_INST defines 2020-04-23 17:07:41 -05:00
Kconfig.mcux_igpio drivers: gpio: mcux_igpio: Convert driver to new DT_INST macros 2020-04-20 11:08:46 -05:00
Kconfig.mcux_lpc drivers: gpio: mcux_lpc: Remove unused Kconfig symbols 2020-04-17 10:16:40 -05:00
Kconfig.mmio32 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.nrfx drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.pca95xx kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.rv32m1 drivers: gpio: rv32m1: Convert driver to new DT_INST macros 2020-04-10 14:38:04 -05:00
Kconfig.sam drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.sam0 drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.sifive drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.stellaris drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.stm32 drivers: gpio: cleanup select HAS_DTS_GPIO 2020-04-04 09:27:12 -05:00
Kconfig.sx1509b gpio: gpio_sx1509b: add support for interrupt functionality 2020-04-20 18:51:59 +02:00
Kconfig.xec drivers: gpio: mchp_xec: Convert to using new device tree macros 2020-04-28 07:43:31 -05:00