1/* 2 * Copyright (c) 2019-2022 Actinius 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6#include "actinius_icarus_common-pinctrl.dtsi" 7#include <zephyr/dt-bindings/input/input-event-codes.h> 8 9/ { 10 model = "Actinius Icarus IoT Dev Board"; 11 compatible = "actinius,icarus"; 12 13 chosen { 14 zephyr,console = &uart0; 15 zephyr,shell-uart = &uart0; 16 zephyr,uart-mcumgr = &uart0; 17 }; 18 19 leds { 20 compatible = "gpio-leds"; 21 22 red_led: led_0 { 23 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 24 label = "Red LED"; 25 }; 26 27 green_led: led_1 { 28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; 29 label = "Green LED"; 30 }; 31 32 blue_led: led_2 { 33 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 34 label = "Blue LED"; 35 }; 36 }; 37 38 pwmleds { 39 compatible = "pwm-leds"; 40 41 red_pwm_led: led_pwm_0 { 42 pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 43 label = "Red PWM LED"; 44 }; 45 46 green_pwm_led: led_pwm_1 { 47 pwms = <&pwm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 48 label = "Green PWM LED"; 49 }; 50 51 blue_pwm_led: led_pwm_2 { 52 pwms = <&pwm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 53 label = "Blue PWM LED"; 54 }; 55 }; 56 57 buttons { 58 compatible = "gpio-keys"; 59 60 button0: button_0 { 61 gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 62 label = "Push Button 1"; 63 zephyr,code = <INPUT_KEY_0>; 64 }; 65 }; 66 67 aliases { 68 led0 = &red_led; 69 led1 = &green_led; 70 led2 = &blue_led; 71 pwm-led0 = &red_pwm_led; 72 pwm-led1 = &green_pwm_led; 73 pwm-led2 = &blue_pwm_led; 74 red-pwm-led = &red_pwm_led; 75 green-pwm-led = &green_pwm_led; 76 blue-pwm-led = &blue_pwm_led; 77 sw0 = &button0; 78 mcuboot-button0 = &button0; 79 mcuboot-led0 = &blue_led; 80 watchdog0 = &wdt0; 81 accel0 = &lis2dh12_accel; 82 }; 83 84 vbatt { 85 compatible = "voltage-divider"; 86 io-channels = <&adc 0>; 87 output-ohms = <10000000>; 88 full-ohms = <(10000000 + 4700000)>; 89 }; 90 91 sim_select: sim-select { 92 compatible = "actinius-sim-select"; 93 sim-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; 94 sim = "esim"; 95 }; 96}; 97 98&adc { 99 status ="okay"; 100}; 101 102&gpiote { 103 status = "okay"; 104}; 105 106&gpio0 { 107 status = "okay"; 108}; 109 110&uart0 { 111 status = "okay"; 112 113 current-speed = <115200>; 114 pinctrl-0 = <&uart0_default>; 115 pinctrl-1 = <&uart0_sleep>; 116 pinctrl-names = "default", "sleep"; 117}; 118 119&uart1 { 120 status = "okay"; 121 122 current-speed = <115200>; 123 pinctrl-0 = <&uart1_default>; 124 pinctrl-1 = <&uart1_sleep>; 125 pinctrl-names = "default", "sleep"; 126}; 127 128&uart2 { 129 current-speed = <115200>; 130 pinctrl-0 = <&uart2_default>; 131 pinctrl-1 = <&uart2_sleep>; 132 pinctrl-names = "default", "sleep"; 133}; 134 135&i2c2 { 136 compatible = "nordic,nrf-twim"; 137 status = "okay"; 138 139 clock-frequency = <I2C_BITRATE_FAST>; 140 141 pinctrl-0 = <&i2c2_default>; 142 pinctrl-1 = <&i2c2_sleep>; 143 pinctrl-names = "default", "sleep"; 144 lis2dh12_accel: lis2dh12-accel@19 { 145 compatible = "st,lis2dh12", "st,lis2dh"; 146 reg = <0x19>; 147 irq-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>, 148 <&gpio0 29 GPIO_ACTIVE_HIGH>; 149 }; 150}; 151 152&spi3 { 153 compatible = "nordic,nrf-spim"; 154 status = "okay"; 155 156 pinctrl-0 = <&spi3_default>; 157 pinctrl-1 = <&spi3_sleep>; 158 pinctrl-names = "default", "sleep"; 159}; 160 161&pwm0 { 162 status = "okay"; 163 pinctrl-0 = <&pwm0_default>; 164 pinctrl-1 = <&pwm0_sleep>; 165 pinctrl-names = "default", "sleep"; 166}; 167 168/* Include file with mappings and aliases for feather compatibility */ 169#include "feather_connector.dtsi" 170 171/* Include default memory partition configuration file */ 172#include <nordic/nrf91xx_partition.dtsi> 173