zephyr/boards/innblue/innblue22/innblue22_common.dtsi

167 lines
3.1 KiB
Plaintext

/*
* Copyright (c) 2020 InnBlue
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "innblue22_common-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "innblue v22 Dev Kit";
compatible = "innblue,innblue22";
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-mcumgr = &uart0;
};
leds {
compatible = "gpio-leds";
red_led: led_1 {
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
label = "RGB red channel";
};
green_led: led_2 {
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
label = "RGB green channel";
};
blue_led: led_3 {
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
label = "RGB blue channel";
};
mode_led: led_4 {
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
label = "mode red channel";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
gpios = <&gpio0 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Button 0";
zephyr,code = <INPUT_KEY_0>;
};
};
en_5v0_boost: enable-5v0-boost {
compatible = "regulator-fixed";
regulator-name = "en_5v0_boost";
enable-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
startup-delay-us = <10000>;
regulator-boot-on;
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &red_led;
led1 = &green_led;
led2 = &blue_led;
led3 = &mode_led;
sw0 = &button0;
rgb-pwm = &pwm0;
mode-pwm = &pwm1;
watchdog0 = &wdt0;
accel0 = &lis2dh12_accel;
};
};
&gpiote {
status = "okay";
};
&gpio0 {
status = "okay";
};
&uart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";
};
&uart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart1_default>;
pinctrl-1 = <&uart1_sleep>;
pinctrl-names = "default", "sleep";
};
&uart2 {
current-speed = <115200>;
pinctrl-0 = <&uart2_default>;
pinctrl-1 = <&uart2_sleep>;
pinctrl-names = "default", "sleep";
};
&i2c2 {
compatible = "nordic,nrf-twim";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
pinctrl-0 = <&i2c2_default>;
pinctrl-1 = <&i2c2_sleep>;
pinctrl-names = "default", "sleep";
bq27421@55 {
compatible = "ti,bq274xx";
reg = <0x55>;
design-voltage = <3700>;
design-capacity = <1800>;
taper-current = <45>;
terminate-voltage = <3000>;
};
lis2dh12_accel: lis2dh12-accel@19 {
compatible = "st,lis2dh";
reg = <0x19>;
irq-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>, <&gpio0 1 GPIO_ACTIVE_HIGH>;
};
hts221@5f {
compatible = "st,hts221";
reg = <0x5f>;
drdy-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
};
lps22hb-press@5c {
compatible = "st,lps22hb-press";
reg = <0x5c>;
};
ccs811: ccs811@5a {
compatible = "ams,ccs811";
reg = <0x5a>;
};
bme680@76 {
compatible = "bosch,bme680";
reg = <0x76>;
};
};
&pwm0 {
status = "okay";
pinctrl-0 = <&pwm0_default>;
pinctrl-1 = <&pwm0_sleep>;
pinctrl-names = "default", "sleep";
};
&pwm1 {
status = "okay";
pinctrl-0 = <&pwm1_default>;
pinctrl-1 = <&pwm1_sleep>;
pinctrl-names = "default", "sleep";
};
/* Include default memory partition configuration file */
#include <common/nordic/nrf91xx_partition.dtsi>