-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnrf5340dk_nrf5340_cpuapp_ns.overlay
More file actions
106 lines (92 loc) · 2.45 KB
/
nrf5340dk_nrf5340_cpuapp_ns.overlay
File metadata and controls
106 lines (92 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes.
// You can also use the buttons in the sidebar to perform actions on nodes.
// Actions currently available include:
// * Enabling / disabling the node
// * Adding the bus to a bus
// * Removing the node
// * Connecting ADC channels
// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
// You can also visit the nRF DeviceTree extension documentation at https://nrfconnect.github.io/vscode-nrf-connect/devicetree/nrfdevicetree.html
// &i2c1 {
// compatible = "nordic,nrf-twim";
// status = "ok";
// // sda-pin = <12>;
// // scl-pin = <11>;
// bme280@77 {
// compatible = "bosch,bme280";
// reg = <0x76>;
// label = "BME280";
// };
// };
/ {
zephyr,user {
// compatible = "nordic,nrf5340-dk-nrf5340-cpuapp";
io-channels = <&adc 0>;
};
/* These aliases are provided for compatibility with Athena Board. WIP */
aliases {
//led0 = &led0;
//led1 = &led1;
//led2 = &led2;
//led3 = &led3;
led4 = &led3;
// pwm-led0 = &pwm_led0;
// sw0 = &button0;
// sw1 = &button1;
// sw2 = &button2;
// sw3 = &button3;
sw4 = &button1;
//bootloader-led0 = &led0;
//mcuboot-button0 = &button0;
//mcuboot-led0 = &led0;
//watchdog0 = &wdt0;
//spi-flash0 = &mx25r64;
};
};
&spi2 {
status = "okay";
cs-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&spi2_default>;
pinctrl-1 = <&spi2_sleep>;
pinctrl-names = "default", "sleep";
bme280@0 {
compatible = "bosch,bme280";
reg = <0>;
spi-max-frequency = <1000000>; /* conservatively set to 1MHz */
};
};
&pinctrl {
spi2_default: spi2_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 6)>,
<NRF_PSEL(SPIM_MOSI, 1, 4)>,
<NRF_PSEL(SPIM_MISO, 0, 19)>;
};
};
spi2_sleep: spi2_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 6)>,
<NRF_PSEL(SPIM_MOSI, 1, 4)>,
<NRF_PSEL(SPIM_MISO, 0, 19)>;
low-power-enable;
};
};
};
&gpio0 {
status = "okay";
};
//Use the pins assigned to UART1 as we will use the ones assigned to UART0 for SPI
&uart0 {
status = "disabled";
current-speed = <115200>;
pinctrl-0 = <&uart1_default>;
pinctrl-1 = <&uart1_sleep>;
pinctrl-names = "default", "sleep";
};
&uart1 {
status = "disabled";
current-speed = <115200>;
pinctrl-0 = <&uart1_default>;
pinctrl-1 = <&uart1_sleep>;
pinctrl-names = "default", "sleep";
};