-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnrf52840dk_nrf52840.overlay
72 lines (65 loc) · 2.06 KB
/
nrf52840dk_nrf52840.overlay
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
// 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
/delete-node/ &mx25r64;
/ {
chosen {
zephyr,flash-controller = &flash_controller;
};
};
&qspi {
status = "okay";
pinctrl-0 = <&qspi_default>;
pinctrl-1 = <&qspi_sleep>;
pinctrl-names = "default", "sleep";
w25q128jv: w25q128jv@0 {
compatible = "nordic,qspi-nor";
label = "W25Q128JV";
reg = <0>;
sck-frequency = <50000000>;
size = <134217728>;
readoc = "read4io";
writeoc = "pp4o";
quad-enable-requirements = "S2B1v1";
jedec-id = [ ef 70 18 ];
};
};
&pinctrl {
qspi_default: qspi_default {
group1 {
psels = <NRF_PSEL(QSPI_SCK, 0, 4)>,
<NRF_PSEL(QSPI_IO0, 0, 3)>,
<NRF_PSEL(QSPI_IO1, 0, 31)>,
<NRF_PSEL(QSPI_IO2, 1, 4)>,
<NRF_PSEL(QSPI_IO3, 1, 3)>,
<NRF_PSEL(QSPI_CSN, 1, 8)>;
nordic,drive-mode = <NRF_DRIVE_H0H1>;
};
};
qspi_sleep: qspi_sleep {
group1 {
psels = <NRF_PSEL(QSPI_SCK, 0, 4)>,
<NRF_PSEL(QSPI_IO0, 0, 3)>,
<NRF_PSEL(QSPI_IO1, 0, 31)>,
<NRF_PSEL(QSPI_IO2, 1, 4)>,
<NRF_PSEL(QSPI_IO3, 1, 3)>;
low-power-enable;
};
group2 {
psels = <NRF_PSEL(QSPI_CSN, 1, 8)>;
low-power-enable;
bias-pull-up;
};
};
};
/ {
aliases {
spi-flash0 = &w25q128jv;
};
};