| /* |
| * Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| /dts-v1/; |
| #include <nordic/nrf52832_qfaa.dtsi> |
| #include "arduino_nicla_sense_me-pinctrl.dtsi" |
| |
| / { |
| model = "Arduino Nicla Sense ME"; |
| compatible = "arduino,arduino_nicla_sense_me"; |
| |
| gpio_keys { |
| compatible = "gpio-keys"; |
| user_button: button { |
| label = "user button"; |
| gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
| status = "okay"; |
| }; |
| }; |
| |
| chosen { |
| zephyr,console = &uart0; |
| zephyr,shell-uart = &uart0; |
| zephyr,uart-mcumgr = &uart0; |
| zephyr,bt-mon-uart = &uart0; |
| zephyr,bt-c2h-uart = &uart0; |
| zephyr,sram = &sram0; |
| zephyr,flash = &flash0; |
| zephyr,code-partition = &slot0_partition; |
| }; |
| |
| aliases { |
| sw0 = &user_button; |
| watchdog0 = &wdt0; |
| spi-flash0 = &mx25r1635f; |
| }; |
| }; |
| |
| &adc { |
| status = "okay"; |
| }; |
| |
| &gpiote { |
| status = "okay"; |
| }; |
| |
| &gpio0 { |
| status = "okay"; |
| }; |
| |
| &uart0 { |
| compatible = "nordic,nrf-uarte"; |
| status = "okay"; |
| current-speed = <115200>; |
| pinctrl-0 = <&uart0_default>; |
| pinctrl-1 = <&uart0_sleep>; |
| pinctrl-names = "default", "sleep"; |
| }; |
| |
| /* I2C0 in datasheet */ |
| &i2c0 { |
| compatible = "nordic,nrf-twim"; |
| status = "okay"; |
| pinctrl-0 = <&i2c0_default>; |
| pinctrl-1 = <&i2c0_sleep>; |
| pinctrl-names = "default", "sleep"; |
| }; |
| |
| /* I2C1 in datasheet */ |
| &i2c1 { |
| compatible = "nordic,nrf-twim"; |
| /* Cannot be used together with spi1. */ |
| status = "okay"; |
| pinctrl-0 = <&i2c1_default>; |
| pinctrl-1 = <&i2c1_sleep>; |
| pinctrl-names = "default", "sleep"; |
| }; |
| |
| /* SPI1 in datasheet */ |
| &spi1 { |
| compatible = "nordic,nrf-spim"; |
| /* Cannot be used together with i2c1. */ |
| /* status = "okay"; */ |
| pinctrl-0 = <&spi1_default>; |
| pinctrl-1 = <&spi1_sleep>; |
| pinctrl-names = "default", "sleep"; |
| }; |
| |
| /* SPI0 in datasheet */ |
| &spi2 { |
| compatible = "nordic,nrf-spi"; |
| status = "okay"; |
| pinctrl-0 = <&spi2_default>; |
| pinctrl-1 = <&spi2_sleep>; |
| pinctrl-names = "default", "sleep"; |
| cs-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; |
| |
| mx25r1635f: mx25r1635f@0 { |
| compatible = "jedec,spi-nor"; |
| reg = <0>; |
| spi-max-frequency = <80000000>; |
| jedec-id = [c2 28 15]; |
| size = <DT_SIZE_M(16)>; |
| has-dpd; |
| t-enter-dpd = <10000>; |
| t-exit-dpd = <35000>; |
| |
| partitions { |
| compatible = "fixed-partitions"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| logging_partition: partition@0 { |
| label = "logging"; |
| reg = <0x00000000 DT_SIZE_M(16)>; |
| }; |
| }; |
| }; |
| }; |
| |
| &flash0 { |
| partitions { |
| compatible = "fixed-partitions"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| boot_partition: partition@0 { |
| label = "sam-ba"; |
| reg = <0x00000000 0x00010000>; |
| read-only; |
| }; |
| slot0_partition: partition@10000 { |
| label = "image-0"; |
| reg = <0x00010000 0x30000>; |
| }; |
| slot1_partition: partition@40000 { |
| label = "image-1"; |
| reg = <0x00040000 0x30000>; |
| }; |
| scratch_partition: partition@70000 { |
| label = "image-scratch"; |
| reg = <0x00070000 0xa000>; |
| }; |
| storage_partition: partition@7a000 { |
| label = "storage"; |
| reg = <0x0007a000 0x00006000>; |
| }; |
| }; |
| }; |