-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubx_bmd300eval_nrf52832.overlay
84 lines (73 loc) · 1.96 KB
/
ubx_bmd300eval_nrf52832.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
73
74
75
76
77
78
79
80
81
82
83
84
// To get started, press Ctrl+Space (or Option+Esc) to bring up the completion menu and view the available nodes.
// For more help, browse the DeviceTree documentation at https: //docs.zephyrproject.org/latest/guides/dts/index.html
/ {
zephyr,user {
imureset-gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
imuextra-gpios = <&gpio0 14 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&gpio0 9 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
};
aliases {
spi-flash0 = &w25q128;
};
};
&pinctrl {
// i2c0_default: i2c0_default {
// group1 {
// psels = <NRF_PSEL(TWIM_SDA, 0, 12)>,
// <NRF_PSEL(TWIM_SCL, 0, 15)>;
// };
// };
// i2c0_sleep: i2c0_sleep {
// group1 {
// psels = <NRF_PSEL(TWIM_SDA, 0, 12)>,
// <NRF_PSEL(TWIM_SCL, 0, 15)>;
// low-power-enable;
// };
// };
spi1_evk_default: spi1_evk_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 18)>,
<NRF_PSEL(SPIM_MOSI, 0, 16)>,
<NRF_PSEL(SPIM_MISO, 0, 15)>;
};
};
spi1_evk_sleep: spi1_evk_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 18)>,
<NRF_PSEL(SPIM_MOSI, 0, 16)>,
<NRF_PSEL(SPIM_MISO, 0, 15)>;
low-power-enable;
};
};
};
// Needed for BNO08x driver config. Might need to trace exactly why...
&gpio0 {
label = "gpio0";
};
&i2c0 {
compatible = "nordic,nrf-twi";
status = "okay";
clock-frequency = <100000>;
bno08x0: bno08x@4a {
compatible = "ceva,bno08x";
label = "imu";
reg = <0x4a>;
irq-gpios = <&gpio0 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
&spi1 {
compatible = "nordic,nrf-spi";
status = "okay";
pinctrl-0 = <&spi1_evk_default>;
pinctrl-1 = <&spi1_evk_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
w25q128: w25q128c@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <100000000>;
size = <0x8000000>; // 128 MBit
has-dpd;
jedec-id = [ ef 40 18 ];
};
};