mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-11 09:12:53 +00:00
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>
22 lines
558 B
Plaintext
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>;
|
|
};
|
|
};
|