1/*
2 * Copyright (c) 2024 CTHINGS.CO
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <nordic/nrf52840_qiaa.dtsi>
9
10/ {
11	model = "CTHINGS.CO Connectivity Card nRF52840";
12	compatible = "ct,ctcc-nrf52840";
13
14	chosen {
15		zephyr,sram = &sram0;
16		zephyr,flash = &flash0;
17		zephyr,code-partition = &slot0_partition;
18		zephyr,ieee802154 = &ieee802154;
19	};
20
21	leds {
22		 compatible = "gpio-leds";
23		 led1: led_1 {
24			 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
25			 label = "LED 1";
26		 };
27		 led2: led_2 {
28			 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
29			 label = "LED 2";
30		 };
31	};
32
33	aliases {
34		led0 = &led1;
35		led1 = &led2;
36		mcuboot-led0 = &led1;
37		watchdog0 = &wdt0;
38	};
39};
40
41&flash0 {
42
43	partitions {
44		compatible = "fixed-partitions";
45		#address-cells = <1>;
46		#size-cells = <1>;
47
48		boot_partition: partition@0 {
49			label = "mcuboot";
50			reg = <0x00000000 0x00012000>;
51		};
52		slot0_partition: partition@12000 {
53			label = "image-0";
54			reg = <0x00012000 0x00076000>;
55		};
56		slot1_partition: partition@88000 {
57			label = "image-1";
58			reg = <0x00088000 0x00074000>;
59		};
60		storage_partition: partition@fc000 {
61			label = "storage";
62			reg = <0x000fc000 0x00004000>;
63		};
64	};
65};
66
67&reg0 {
68	status = "okay";
69};
70
71&reg1 {
72	regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
73};
74
75&gpiote {
76	status = "okay";
77};
78
79&gpio0 {
80	status = "okay";
81};
82
83&ieee802154 {
84	status = "okay";
85};
86
87zephyr_udc0: &usbd {
88	compatible = "nordic,nrf-usbd";
89	status = "okay";
90};
91
92#include <../boards/common/usb/cdc_acm_serial.dtsi>
93