This repository has been archived by the owner on May 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an overlay to support the Atmel AT86RF233 WPAN transceiver on spi0.0. See: raspberrypi/linux#1151
- Loading branch information
Phil Elwell
authored and
Thadeu Lima de Souza Cascardo
committed
Jan 17, 2017
1 parent
a7510c5
commit 0cca383
Showing
3 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/* Overlay for Atmel AT86RF233 IEEE 802.15.4 WPAN transceiver on spi0.0 */ | ||
|
||
/ { | ||
compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709"; | ||
|
||
fragment@0 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
status = "okay"; | ||
|
||
spidev@0{ | ||
status = "disabled"; | ||
}; | ||
|
||
lowpan0: at86rf233@0 { | ||
compatible = "atmel,at86rf233"; | ||
reg = <0>; | ||
interrupt-parent = <&gpio>; | ||
interrupts = <23 4>; /* active high */ | ||
reset-gpio = <&gpio 24 1>; | ||
sleep-gpio = <&gpio 25 1>; | ||
spi-max-frequency = <6000000>; | ||
xtal-trim = /bits/ 8 <0xf>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gpio>; | ||
__overlay__ { | ||
lowpan0_pins: lowpan0_pins { | ||
brcm,pins = <23 24 25>; | ||
brcm,function = <0 1 1>; /* in out out */ | ||
}; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
interrupt = <&lowpan0>, "interrupts:0", | ||
<&lowpan0_pins>, "brcm,pins:0"; | ||
reset = <&lowpan0>, "reset-gpio:4", | ||
<&lowpan0_pins>, "brcm,pins:4"; | ||
sleep = <&lowpan0>, "sleep-gpio:4", | ||
<&lowpan0_pins>, "brcm,pins:8"; | ||
speed = <&lowpan0>, "spi-max-frequency:0"; | ||
trim = <&lowpan0>, "xtal-trim.0"; | ||
}; | ||
}; |