1/* 2 * Copyright (c) 2023 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6#include "nrf9131ek_nrf9131_common-pinctrl.dtsi" 7#include <zephyr/dt-bindings/input/input-event-codes.h> 8 9/ { 10 model = "Nordic nRF9131 EK NRF9131"; 11 compatible = "nordic,nrf9131-ek-nrf9131"; 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 led0: led_0 { 22 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; 23 label = "Red LED 1"; 24 }; 25 led1: led_1 { 26 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; 27 label = "Green LED 2"; 28 }; 29 led2: led_2 { 30 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; 31 label = "Blue LED 3"; 32 }; 33 }; 34 35 pwmleds { 36 compatible = "pwm-leds"; 37 pwm_led0: pwm_led_0 { 38 pwms = <&pwm0 0 PWM_MSEC(8) PWM_POLARITY_NORMAL>; 39 }; 40 pwm_led1: pwm_led_1 { 41 pwms = <&pwm0 1 PWM_MSEC(8) PWM_POLARITY_NORMAL>; 42 }; 43 pwm_led2: pwm_led_2 { 44 pwms = <&pwm0 2 PWM_MSEC(8) PWM_POLARITY_NORMAL>; 45 }; 46 }; 47 48 buttons { 49 compatible = "gpio-keys"; 50 button0: button_0 { 51 gpios = <&gpio0 28 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 52 label = "Push button 1"; 53 zephyr,code = <INPUT_KEY_0>; 54 }; 55 }; 56 57 /* These aliases are provided for compatibility with samples */ 58 aliases { 59 led0 = &led0; 60 led1 = &led1; 61 led2 = &led2; 62 pwm-led0 = &pwm_led0; 63 pwm-led1 = &pwm_led1; 64 pwm-led2 = &pwm_led2; 65 sw0 = &button0; 66 bootloader-led0 = &led0; 67 mcuboot-button0 = &button0; 68 mcuboot-led0 = &led0; 69 watchdog0 = &wdt0; 70 }; 71}; 72 73&adc { 74 status = "okay"; 75}; 76 77&gpiote { 78 status = "okay"; 79}; 80 81&gpio0 { 82 status = "okay"; 83}; 84 85&uart0 { 86 status = "okay"; 87 current-speed = <115200>; 88 pinctrl-0 = <&uart0_default>; 89 pinctrl-1 = <&uart0_sleep>; 90 pinctrl-names = "default", "sleep"; 91}; 92 93&uart1 { 94 status = "okay"; 95 current-speed = <115200>; 96 pinctrl-0 = <&uart1_default>; 97 pinctrl-1 = <&uart1_sleep>; 98 pinctrl-names = "default", "sleep"; 99}; 100 101&i2c2 { 102 compatible = "nordic,nrf-twim"; 103 status = "okay"; 104 pinctrl-0 = <&i2c2_default>; 105 pinctrl-1 = <&i2c2_sleep>; 106 pinctrl-names = "default", "sleep"; 107 clock-frequency = <I2C_BITRATE_FAST>; 108 109 pmic_main: npm1300@6b { 110 compatible = "nordic,npm1300"; 111 reg = <0x6b>; 112 pmic_charger: charger { 113 compatible = "nordic,npm1300-charger"; 114 term-microvolt = <4150000>; 115 term-warm-microvolt = <4000000>; 116 current-microamp = <150000>; 117 dischg-limit-microamp = <1000000>; 118 vbus-limit-microamp = <500000>; 119 thermistor-ohms = <10000>; 120 thermistor-beta = <3380>; 121 charging-enable; 122 }; 123 regulators { 124 compatible = "nordic,npm1300-regulator"; 125 BUCK1 { 126 regulator-min-microvolt = <1800000>; 127 regulator-max-microvolt = <1800000>; 128 regulator-boot-on; 129 }; 130 BUCK2 { 131 regulator-min-microvolt = <1800000>; 132 regulator-max-microvolt = <1800000>; 133 regulator-boot-on; 134 }; 135 }; 136 }; 137}; 138 139&pwm0 { 140 status = "okay"; 141 pinctrl-0 = <&pwm0_default>; 142 pinctrl-1 = <&pwm0_sleep>; 143 pinctrl-names = "default", "sleep"; 144}; 145 146&spi3 { 147 compatible = "nordic,nrf-spim"; 148 status = "okay"; 149 cs-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 150 pinctrl-0 = <&spi3_default>; 151 pinctrl-1 = <&spi3_sleep>; 152 pinctrl-names = "default", "sleep"; 153 154 gd25wb256: gd25wb256e3ir@0 { 155 compatible = "jedec,spi-nor"; 156 status = "disabled"; 157 reg = <0>; 158 spi-max-frequency = <8000000>; 159 size = <268435456>; 160 has-dpd; 161 t-enter-dpd = <3000>; 162 t-exit-dpd = <40000>; 163 sfdp-bfp = [ 164 e5 20 f3 ff ff ff ff 0f 44 eb 08 6b 08 3b 42 bb 165 ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52 166 10 d8 00 ff 44 7a c9 fe 83 67 26 62 ec 82 18 44 167 7a 75 7a 75 04 c4 d5 5c 00 06 74 00 08 50 00 01 168 ]; 169 jedec-id = [c8 65 19]; 170 }; 171}; 172 173/* Include default memory partition configuration file */ 174#include <common/nordic/nrf91xx_partition.dtsi> 175