/* * Copyright (c) 2020 Tobias Svehagen * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include #include "feather_connector.dtsi" / { model = "Adafruit Feather nRF52840 Express ZMK"; compatible = "adafruit,feather-nrf52840-zmk"; chosen { zephyr,code-partition = &code_partition; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,console = &cdc_acm_uart; zmk,battery = &vbatt; }; leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio1 15 0>; label = "Red LED"; }; blue_led: led_1 { gpios = <&gpio1 10 0>; label = "Blue LED"; }; }; vbatt: vbatt { compatible = "zmk,battery-voltage-divider"; label = "VBATT"; io-channels = <&adc 5>; output-ohms = <100000>; full-ohms = <(100000 + 100000)>; }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0; led1 = &blue_led; }; }; &adc { status = "okay"; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &uart0 { compatible = "nordic,nrf-uart"; current-speed = <115200>; status = "okay"; tx-pin = <25>; rx-pin = <24>; }; &i2c0 { status = "okay"; sda-pin = <12>; scl-pin = <11>; }; &spi1 { compatible = "nordic,nrf-spi"; status = "okay"; sck-pin = <14>; mosi-pin = <13>; miso-pin = <15>; }; &qspi { status = "okay"; sck-pin = <19>; io-pins = <17>, <22>, <23>, <21>; csn-pins = <20>; gd25q16: gd25q16@0 { compatible = "nordic,qspi-nor"; reg = <0>; writeoc = "pp4io"; readoc = "read4io"; sck-frequency = <16000000>; label = "GD25Q16"; jedec-id = [c8 40 15]; size = <16777216>; has-dpd; t-enter-dpd = <20000>; t-exit-dpd = <20000>; }; }; &flash0 { /* * For more information, see: * https://docs.zephyrproject.org/latest/guides/dts/legacy-macros.html#legacy-flash-partitions */ partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; sd_partition: partition@0 { label = "softdevice"; reg = <0x00000000 0x00026000>; }; code_partition: partition@26000 { label = "code_partition"; reg = <0x00026000 0x000c6000>; }; /* * The flash starting at 0x000ec000 and ending at * 0x000f3fff is reserved for use by the application. */ /* * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@ec000 { label = "storage"; reg = <0x000ec000 0x00008000>; }; boot_partition: partition@f4000 { label = "adafruit_boot"; reg = <0x000f4000 0x0000c000>; }; }; }; &usbd { /*compatible = "nordic,nrf-usbd";*/ status = "okay"; cdc_acm_uart: cdc_acm_uart { compatible = "zephyr,cdc-acm-uart"; label = "CDC_ACM_0"; }; };