Skip to content

Commit 41c4af1

Browse files
ppryga-nordiccarlescufi
authored andcommitted
dts: arm: nordic: Add radio peripheral with DFE antenna config
Add radio peripheral to nrf52833 DTS including antenna matrix congiuration for Direction Finding extennsion. Add appropriate binding file for nRF radio peripheral. There is no default antenna matrix configuration. Antennas number and GPIOS mapping to DFEGPIOS is project specific. Complete configuration must be provided by end user as overaly. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 2931caa commit 41c4af1

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

dts/arm/nordic/nrf52833.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,14 @@
387387
reg = <0x10001000 0x1000>;
388388
status = "okay";
389389
};
390+
391+
radio: radio@40001000 {
392+
compatible = "nordic,nrf-radio";
393+
reg = <0x40001000 0x1000>;
394+
interrupts = <1 NRF_DEFAULT_IRQ_PRIORITY>;
395+
status = "okay";
396+
dfe-ant-num = <0>;
397+
};
390398
};
391399

392400
sw_pwm: sw-pwm {
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Copyright (c) 2020 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: |
5+
Nordic nRF family RADIO
6+
7+
dfegpio[n]-gpios properties provide GPIO pins to the radio peripheral. These
8+
GPIO pins are used to drive antennas switching by Radio Direction Finding
9+
Extension. E.g. to use 12 antennas 4 GPIO pins must be provided;
10+
4 GPIO pins support switching up to 16 antennas.
11+
12+
The dfegpio[n] properties are used to initialize the PSEL.DFEGPIO[n]
13+
registers. None of the dfegpio[n]-gpios properties are marked required,
14+
since which Radio PSEL.DFEGPIO[n] registers will be used to drive antenna
15+
switches depends on the use case.
16+
17+
Nevertheless, at least two antennas must be available. That means at
18+
least one dfegpio[n]-gpios property must be provided, to give the radio
19+
the possibility to switch between two antennas.
20+
21+
compatible: "nordic,nrf-radio"
22+
23+
include: [base.yaml]
24+
25+
properties:
26+
reg:
27+
required: true
28+
29+
interrupts:
30+
required: true
31+
32+
dfe-ant-num:
33+
type: int
34+
required: true
35+
description: |
36+
Number of available antennas.
37+
38+
Value zero means no antenna available. If provided value different than
39+
zero, it must be greater or equal to two.
40+
41+
dfegpio0-gpios:
42+
type: phandle-array
43+
required: false
44+
description: |
45+
Pin select for DFE pin 0
46+
47+
Flags cell in the property is not used for GPIO pin initialization
48+
and should be set to zero.
49+
50+
dfegpio1-gpios:
51+
type: phandle-array
52+
required: false
53+
description: |
54+
Pin select for DFE pin 1
55+
56+
Flags cell in the property is not used for GPIO pin initialization
57+
and should be set to zero.
58+
59+
dfegpio2-gpios:
60+
type: phandle-array
61+
required: false
62+
description: |
63+
Pin select for DFE pin 2
64+
65+
Flags cell in the property is not used for GPIO pin initialization
66+
and should be set to zero.
67+
68+
dfegpio3-gpios:
69+
type: phandle-array
70+
required: false
71+
description: |
72+
Pin select for DFE pin 3
73+
74+
Flags cell in the property is not used for GPIO pin initialization
75+
and should be set to zero.
76+
77+
dfegpio4-gpios:
78+
type: phandle-array
79+
required: false
80+
description: |
81+
Pin select for DFE pin 4
82+
83+
Flags cell in the property is not used for GPIO pin initialization
84+
and should be set to zero.
85+
86+
dfegpio5-gpios:
87+
type: phandle-array
88+
required: false
89+
description: |
90+
Pin select for DFE pin 5
91+
92+
Flags cell in the property is not used for GPIO pin initialization
93+
and should be set to zero.
94+
95+
dfegpio6-gpios:
96+
type: phandle-array
97+
required: false
98+
description: |
99+
Pin select for DFE pin 6
100+
101+
Flags cell in the property is not used for GPIO pin initialization
102+
and should be set to zero.
103+
104+
dfegpio7-gpios:
105+
type: phandle-array
106+
required: false
107+
description: |
108+
Pin select for DFE pin 7
109+
110+
Flags cell in the property is not used for GPIO pin initialization
111+
and should be set to zero.

0 commit comments

Comments
 (0)