-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsilabs,si4455.yaml
104 lines (87 loc) · 2.43 KB
/
silabs,si4455.yaml
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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: "http://devicetree.org/schemas/serial/silabs,si4455.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
title: Silicon Labs Si4455 device tree bindings
maintainers:
- József Horváth <[email protected]>
description:
This document is for describing the required device tree parameters for si4455 serial driver.
The si4455 driver tries to represent the Silicon Labs Si4455 sub-GHz transceiver device
like a serial port. The required parameters for proper operation are described below.
https://www.silabs.com/documents/public/data-sheets/Si4455.pdf
allOf:
- $ref: "serial.yaml#"
properties:
compatible:
const: silabs,si4455
reg:
maxItems: 1
interrupts:
maxItems: 1
spi-max-frequency:
description: maximum clock frequency on SPI port
maximum: 500000
shutdown-gpios:
description: gpio pin for SDN
maxItems: 1
silabs,package-size:
description:
Radio payload length, variable packet length is not supported by driver.
This value should equal with EZConfig payload length.
$ref: /schemas/types.yaml#/definitions/uint32
maximum: 64
minimum: 1
silabs,tx-channel:
description:
Radio transmit channel selection.
$ref: /schemas/types.yaml#/definitions/uint32
maximum: 255
minimum: 0
silabs,rx-channel:
description:
Radio receive channel selection.
$ref: /schemas/types.yaml#/definitions/uint32
maximum: 255
minimum: 0
silabs,tx-timeout-ms:
description:
Radio transmit timeout(ms)
maximum: 1000
minimum: 1
firmware-name:
description:
Radio configuration data file name.
$ref: /schemas/types.yaml#/definitions/string
items:
pattern: ^[0-9a-z\._\-]{1,255}$
required:
- reg
- interrupts
- spi-max-frequency
- shutdown-gpios
- silabs,package-size
- silabs,tx-channel
- silabs,rx-channel
- firmware-name
additionalProperties: false
examples:
- |
spi {
#address-cells = <1>;
#size-cells = <0>;
si4455_0: serial@0 {
compatible = "silabs,si4455";
reg = <0>;
interrupt-parent = <&gpio>;
interrupts = <7 2>;
shutdown-gpios = <&gpio 26 1>;
spi-max-frequency = <300000>;
silabs,package-size = <30>;
silabs,tx-channel = <1>;
silabs,rx-channel = <2>;
firmware-name = "si4455_spi0_0.ez.bin";
};
};
...