zephyr/samples/sensor/ccs811/boards/nrf51_ble400.overlay
Peter Bigot acb43b66da sensors: ccs811: update to new API
Update devicetree sources and bindings, switch to new GPIO API.  Use
devicetree property name to identify interrupt signal.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-02-05 12:00:36 +01:00

22 lines
558 B
Plaintext

/*
* Copyright (c) 2018 Peter Bigot Consulting, LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
&i2c0 {
status = "okay";
sda-pin = <0>;
scl-pin = <1>;
/* Sparkfun Environment Combo uses second I2C address */
ccs811: ccs811@5b {
compatible = "ams,ccs811";
reg = <0x5b>;
label = "CCS811";
irq-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
wake-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
};