zephyr/drivers/sensor
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
..
adt7420 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
adxl345 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
adxl362 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
adxl372 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ak8975 dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00
amg88xx device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ams_iAQcore drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
apds9960 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bma280 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
bmc150_magn device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bme280 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
bme680 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
bmg160 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bmi160 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bmm150 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
bq274xx devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
ccs811 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
dht device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ens210 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
fxas21002 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
fxos8700 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
grove device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
hmc5883l drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
hp206c drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
hts221 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
iis2dlpc devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
iis2mdc devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
iis3dhhc devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
isl29035 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
ism330dhcx devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis2dh devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis2ds12 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis2dw12 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis2mdl devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lis3mdl sensor: lis3mdl: Check possible error in trigger_set 2020-04-20 15:43:23 +02:00
lps22hb device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lps22hh devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lps25hb device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lsm6ds0 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lsm6dsl devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lsm6dso devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
lsm9ds0_gyro device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lsm9ds0_mfd device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
lsm303dlhc_magn device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
max30101 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
max44009 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
mchp_tach_xec devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
mcp9808 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
mpr device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
mpu6050 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ms5607 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
ms5837 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
nrf5 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
nxp_kinetis_temp devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
opt3001 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
pms7003 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
qdec_nrfx drivers: sensor: qdec_nrfx: move to new DT API 2020-04-20 15:43:01 +02:00
sht3xd device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
si7006 sensor: si7006: combined RH/T measurements 2020-04-22 15:51:15 -05:00
si7060 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
stts751 devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
sx9500 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
th02 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
ti_hdc drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
tmp007 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
tmp112 drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
tmp116 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
vl53l0x drivers: sensors: Convert to new DT_INST macros 2020-04-03 16:42:01 -05:00
CMakeLists.txt Sensor: mpr: Add Honeywell MPR driver 2020-04-22 17:39:31 +02:00
Kconfig Sensor: mpr: Add Honeywell MPR driver 2020-04-22 17:39:31 +02:00
sensor_handlers.c kernel: Port remaining syscalls to new API 2019-09-12 11:31:50 +08:00
sensor_shell.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00