Skip to content

Commit f761ca8

Browse files
Phil Elwellksacilotto
Phil Elwell
authored andcommitted
BCM270X_DT: Add at86rf233 overlay
Add an overlay to support the Atmel AT86RF233 WPAN transceiver on spi0.0. See: raspberrypi/linux#1151
1 parent 79369d3 commit f761ca8

File tree

3 files changed

+72
-4
lines changed

3 files changed

+72
-4
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ifeq ($(CONFIG_ARCH_BCM2835),y)
1313
endif
1414

1515
dtb-$(RPI_DT_OVERLAYS) += ads7846-overlay.dtb
16+
dtb-$(RPI_DT_OVERLAYS) += at86rf233-overlay.dtb
1617
dtb-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor-overlay.dtb
1718
dtb-$(RPI_DT_OVERLAYS) += dht11-overlay.dtb
1819
dtb-$(RPI_DT_OVERLAYS) += enc28j60-overlay.dtb

arch/arm/boot/dts/overlays/README

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@ DT parameters:
6969

7070
Parameters always have default values, although in some cases (e.g. "w1-gpio")
7171
it is necessary to provided multiple overlays in order to get the desired
72-
behaviour. See the list of overlays below for a description of the parameters and their defaults.
72+
behaviour. See the list of overlays below for a description of the parameters
73+
and their defaults.
7374

7475
The Overlay and Parameter Reference
7576
===================================
7677

77-
N.B. When editing this file, please preserve the indentation levels to make it simple to parse
78-
programmatically. NO HARD TABS.
78+
N.B. When editing this file, please preserve the indentation levels to make it
79+
simple to parse programmatically. NO HARD TABS.
7980

8081

8182
Name: <The base DTB>
@@ -149,7 +150,7 @@ Name: ads7846
149150
Info: ADS7846 Touch controller
150151
Load: dtoverlay=ads7846,<param>=<val>
151152
Params: cs SPI bus Chip Select (default 1)
152-
speed SPI bus speed (default 2Mhz, max 3.25MHz)
153+
speed SPI bus speed (default 2MHz, max 3.25MHz)
153154
penirq GPIO used for PENIRQ. REQUIRED
154155
penirq_pull Set GPIO pull (default 0=none, 2=pullup)
155156
swapxy Swap x and y axis
@@ -170,6 +171,18 @@ Params: cs SPI bus Chip Select (default 1)
170171
www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt
171172

172173

174+
Name: at86rf233
175+
Info: Configures the Atmel AT86RF233 802.15.4 low-power WPAN transceiver,
176+
connected to spi0.0
177+
Load: dtoverlay=at86rf233,<param>=<val>
178+
Params: interrupt GPIO used for INT (default 23)
179+
reset GPIO used for Reset (default 24)
180+
sleep GPIO used for Sleep (default 25)
181+
speed SPI bus speed in Hz (default 6000000)
182+
trim Fine tuning of the internal capacitance
183+
arrays (0=+0pF, 15=+4.5pF, default 15)
184+
185+
173186
Name: bmp085_i2c-sensor
174187
Info: Configures the BMP085/BMP180 digital barometric pressure and temperature
175188
sensors from Bosch Sensortec
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/* Overlay for Atmel AT86RF233 IEEE 802.15.4 WPAN transceiver on spi0.0 */
5+
6+
/ {
7+
compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
8+
9+
fragment@0 {
10+
target = <&spi0>;
11+
__overlay__ {
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
15+
status = "okay";
16+
17+
spidev@0{
18+
status = "disabled";
19+
};
20+
21+
lowpan0: at86rf233@0 {
22+
compatible = "atmel,at86rf233";
23+
reg = <0>;
24+
interrupt-parent = <&gpio>;
25+
interrupts = <23 4>; /* active high */
26+
reset-gpio = <&gpio 24 1>;
27+
sleep-gpio = <&gpio 25 1>;
28+
spi-max-frequency = <6000000>;
29+
xtal-trim = /bits/ 8 <0xf>;
30+
};
31+
};
32+
};
33+
34+
fragment@1 {
35+
target = <&gpio>;
36+
__overlay__ {
37+
lowpan0_pins: lowpan0_pins {
38+
brcm,pins = <23 24 25>;
39+
brcm,function = <0 1 1>; /* in out out */
40+
};
41+
};
42+
};
43+
44+
__overrides__ {
45+
interrupt = <&lowpan0>, "interrupts:0",
46+
<&lowpan0_pins>, "brcm,pins:0";
47+
reset = <&lowpan0>, "reset-gpio:4",
48+
<&lowpan0_pins>, "brcm,pins:4";
49+
sleep = <&lowpan0>, "sleep-gpio:4",
50+
<&lowpan0_pins>, "brcm,pins:8";
51+
speed = <&lowpan0>, "spi-max-frequency:0";
52+
trim = <&lowpan0>, "xtal-trim.0";
53+
};
54+
};

0 commit comments

Comments
 (0)