/* * Copyright (c) 2018 Peter Bigot Consulting, LLC * * SPDX-License-Identifier: Apache-2.0 */ &pinctrl { i2c0_default_alt: i2c0_default_alt { group1 { psels = , ; }; }; i2c0_sleep_alt: i2c0_sleep_alt { group1 { psels = , ; low-power-enable; }; }; }; &i2c0 { status = "okay"; pinctrl-0 = <&i2c0_default_alt>; pinctrl-1 = <&i2c0_sleep_alt>; pinctrl-names = "default", "sleep"; /* Sparkfun Environment Combo uses second I2C address */ ccs811: ccs811@5b { compatible = "ams,ccs811"; reg = <0x5b>; irq-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; wake-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; };