Skip to content

Commit 735d2fe

Browse files
tagunilnashif
authored andcommitted
dts: bindings: lora: sx127x: add SX1272 binding
Refactor out common parts and add SX1272 support to SX127x bindings. Signed-off-by: Ilya Tagunov <[email protected]>
1 parent a97d3ae commit 735d2fe

File tree

3 files changed

+80
-68
lines changed

3 files changed

+80
-68
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2021, Ilya Tagunov
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Semtech SX1272 LoRa Modem
5+
6+
compatible: "semtech,sx1272"
7+
8+
include: semtech,sx127x-base.yaml
Lines changed: 2 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,8 @@
1-
# Copyright (c) 2019, Manivannan Sadhasivam
2-
# Copyright (c) 2020, Grinn
1+
# Copyright (c) 2021, Ilya Tagunov
32
# SPDX-License-Identifier: Apache-2.0
43

54
description: Semtech SX1276 LoRa Modem
65

76
compatible: "semtech,sx1276"
87

9-
include: spi-device.yaml
10-
11-
properties:
12-
reset-gpios:
13-
type: phandle-array
14-
required: true
15-
description: |
16-
GPIO connected to the sensor NRST signal.
17-
18-
This signal is open-drain, active-low as interpreted by the
19-
modem.
20-
21-
dio-gpios:
22-
type: phandle-array
23-
required: true
24-
description: |
25-
Up to six pins that produce service interrupts from the modem.
26-
27-
These signals are normally active-high.
28-
29-
power-amplifier-output:
30-
type: string
31-
required: false
32-
description: |
33-
Selects power amplifier output pin. This is required when neither
34-
'rfo-enable-gpios' nor 'pa-boost-enable-gpios' is specified. In other
35-
case this property is simply ignored.
36-
enum:
37-
- "rfo"
38-
- "pa-boost"
39-
40-
antenna-enable-gpios:
41-
type: phandle-array
42-
required: false
43-
description: |
44-
Antenna power enable pin.
45-
46-
rfi-enable-gpios:
47-
type: phandle-array
48-
required: false
49-
description: |
50-
RFI antenna input enable pin.
51-
52-
rfo-enable-gpios:
53-
type: phandle-array
54-
required: false
55-
description: |
56-
RFO antenna output enable pin.
57-
58-
pa-boost-enable-gpios:
59-
type: phandle-array
60-
required: false
61-
description: |
62-
PA_BOOST antenna output enable pin.
63-
64-
tcxo-power-gpios:
65-
type: phandle-array
66-
required: false
67-
description: |
68-
TCXO power enable pin.
69-
70-
tcxo-power-startup-delay-ms:
71-
type: int
72-
required: false
73-
description: |
74-
Delay which has to be applied after enabling TCXO power.
8+
include: semtech,sx127x-base.yaml
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright (c) 2019, Manivannan Sadhasivam
2+
# Copyright (c) 2020, Grinn
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
include: spi-device.yaml
6+
7+
properties:
8+
reset-gpios:
9+
type: phandle-array
10+
required: true
11+
description: |
12+
GPIO connected to the modem's RESET/NRESET signal.
13+
14+
This signal is open-drain, active-high (SX1272/3) or
15+
active-low (SX1276/7/8/9) as interpreted by the modem.
16+
17+
dio-gpios:
18+
type: phandle-array
19+
required: true
20+
description: |
21+
Up to six pins that produce service interrupts from the modem.
22+
23+
These signals are normally active-high.
24+
25+
power-amplifier-output:
26+
type: string
27+
required: false
28+
description: |
29+
Selects power amplifier output pin. This is required when neither
30+
'rfo-enable-gpios' nor 'pa-boost-enable-gpios' is specified. In other
31+
case this property is simply ignored.
32+
enum:
33+
- "rfo"
34+
- "pa-boost"
35+
36+
antenna-enable-gpios:
37+
type: phandle-array
38+
required: false
39+
description: |
40+
Antenna power enable pin.
41+
42+
rfi-enable-gpios:
43+
type: phandle-array
44+
required: false
45+
description: |
46+
RFI antenna input enable pin.
47+
48+
rfo-enable-gpios:
49+
type: phandle-array
50+
required: false
51+
description: |
52+
RFO antenna output enable pin.
53+
54+
pa-boost-enable-gpios:
55+
type: phandle-array
56+
required: false
57+
description: |
58+
PA_BOOST antenna output enable pin.
59+
60+
tcxo-power-gpios:
61+
type: phandle-array
62+
required: false
63+
description: |
64+
TCXO power enable pin.
65+
66+
tcxo-power-startup-delay-ms:
67+
type: int
68+
required: false
69+
description: |
70+
Delay which has to be applied after enabling TCXO power.

0 commit comments

Comments
 (0)