Skip to content

Commit d7e0d32

Browse files
nxpfranklikuba-moo
authored andcommitted
dt-bindings: ieee802154: Convert at86rf230.txt yaml format
Convert at86rf230.txt yaml format. Additional changes: - Add ref to spi-peripheral-props.yaml. - Add parent spi node in examples. Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e3f96b3 commit d7e0d32

File tree

2 files changed

+66
-27
lines changed

2 files changed

+66
-27
lines changed

Documentation/devicetree/bindings/net/ieee802154/at86rf230.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/ieee802154/atmel,at86rf233.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: AT86RF230 IEEE 802.15.4
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- atmel,at86rf212
16+
- atmel,at86rf230
17+
- atmel,at86rf231
18+
- atmel,at86rf233
19+
20+
reg:
21+
maxItems: 1
22+
23+
interrupts:
24+
maxItems: 1
25+
26+
reset-gpio:
27+
maxItems: 1
28+
29+
sleep-gpio:
30+
maxItems: 1
31+
32+
spi-max-frequency:
33+
maximum: 7500000
34+
35+
xtal-trim:
36+
$ref: /schemas/types.yaml#/definitions/uint8
37+
maximum: 0xf
38+
description: |
39+
Fine tuning the internal capacitance arrays of xtal pins:
40+
0 = +0 pF, 0xf = +4.5 pF
41+
42+
required:
43+
- compatible
44+
- reg
45+
- interrupts
46+
47+
allOf:
48+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
49+
50+
unevaluatedProperties: false
51+
52+
examples:
53+
- |
54+
spi {
55+
#address-cells = <1>;
56+
#size-cells = <0>;
57+
58+
zigbee@0 {
59+
compatible = "atmel,at86rf231";
60+
reg = <0>;
61+
spi-max-frequency = <7500000>;
62+
interrupts = <19 4>;
63+
interrupt-parent = <&gpio3>;
64+
xtal-trim = /bits/ 8 <0x06>;
65+
};
66+
};

0 commit comments

Comments
 (0)