/* * Copyright (c) 2024 Luis Ubieda * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include #include "croxel_cx1825_nrf52840-pinctrl.dtsi" #include / { model = "Croxel CX1825 NRF52840"; compatible = "croxel,cx1825-nrf52840"; chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,console = &cdc_acm_0; zephyr,shell-uart = &cdc_acm_0; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; label = "Red LED"; }; led1: led_1 { gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; label = "Green LED"; }; }; buttons { compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; zephyr,code = ; }; }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &led1; sw0 = &button0; bootloader-led0 = &led0; mcuboot-button0 = &button0; mcuboot-led0 = &led0; watchdog0 = &wdt0; dht0 = &hts221; accel0 = &lis3dh; prox-sensor0 = &apds9960; }; }; ®0 { status = "okay"; }; ®1 { regulator-initial-mode = ; }; &adc { status = "okay"; }; &uicr { gpio-as-nreset; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &pwm0 { status = "okay"; pinctrl-0 = <&pwm0_default>; pinctrl-1 = <&pwm0_sleep>; pinctrl-names = "default", "sleep"; }; &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; hts221: hts221@5f { compatible = "st,hts221"; status = "okay"; reg = <0x5f>; drdy-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; }; lps22hb: lps22hb-press@5c { compatible = "st,lps22hb-press"; status = "okay"; reg = <0x5c>; }; apds9960: apds9960@39 { compatible = "avago,apds9960"; status = "okay"; reg = <0x39>; int-gpios = <&gpio0 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; }; lis3dh: lis3dh@18 { compatible = "st,lis3dh", "st,lis2dh"; status = "okay"; reg = <0x18>; irq-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; }; }; zephyr_udc0: &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; cdc_acm_0: cdc_acm_0 { compatible = "zephyr,cdc-acm-uart"; }; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0x0000C000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x00076000>; }; slot1_partition: partition@82000 { label = "image-1"; reg = <0x00082000 0x00076000>; }; /* * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@f8000 { label = "storage"; reg = <0x000f8000 0x00008000>; }; }; };