Last active
June 15, 2016 21:59
-
-
Save TobleMiner/fec9fe0062ce019bc9832bb350b42c68 to your computer and use it in GitHub Desktop.
Device tree overlay for mrf24j40 IEEE 802.15.4 transceiver
This file contains hidden or 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
# Enable mrf24j40 IEEE 802.15.4 transceiver | |
dtoverlay=mrf24j40-overlay |
This file contains hidden or 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
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "bcrm,bcm2708"; | |
fragment@0 { | |
target = <&spi0>; | |
__overlay__ { | |
status = "okay"; | |
spidev@0 { | |
status = "disabled"; | |
}; | |
}; | |
}; | |
fragment@1 { | |
target = <&spi0>; | |
__overlay__ { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
status = "okay"; | |
mrf24j40@0 { | |
status = "okay"; | |
compatible = "mrf24j40"; | |
spi-max-frequency = <5000000>; | |
reg = <0>; | |
interrupts = <23 8>; | |
interrupt-parent = <&gpio>; | |
}; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compile with
dtc -@ -O dtb -o mrf24j40-overlay.dtbo mrf24j40-overlay.dts
and placemrf24j40-overlay.dtbo
inside/boot/overlays