Skip to content

Commit

Permalink
[lora] adding changes for bpi-r2
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-w committed Feb 8, 2019
1 parent 7ff678e commit f83cae7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
4 changes: 4 additions & 0 deletions arch/arm/configs/mt7623n_evb_fwu_defconfig
Expand Up @@ -705,3 +705,7 @@ CONFIG_COMMON_CLK_MT2701_IMGSYS=y
CONFIG_COMMON_CLK_MT2701_VDECSYS=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_DRM_FBDEV_EMULATION=y

#options needed for LoRa
CONFIG_IEEE802154=m
CONFIG_MAC802154=m
4 changes: 2 additions & 2 deletions utils/lora/overlay/Makefile
@@ -1,5 +1,5 @@
OVERLAY_SRC=rpi-lora-spi-overlay.dts
OVERLAY_DST=rpi-lora-spi.dtbo
OVERLAY_SRC=bpi-r2-lora-spi-overlay.dts
OVERLAY_DST=bpi-r2-lora-spi.dtbo

all:
dtc -I dts -O dtb -@ -o $(OVERLAY_DST) $(OVERLAY_SRC)
Expand Down
34 changes: 34 additions & 0 deletions utils/lora/overlay/bpi-r2-lora-spi-overlay.dts
@@ -0,0 +1,34 @@
/dts-v1/;
/plugin/;

/ {
fragment@0 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;

sx1278@0 {
compatible = "sx1278";
reg = <0>;
status = "okay";
spi-max-frequency = <0x3b60>;
center-carrier-frq = <434000000>;
clock-frequency = <32000000>;
minimal-RF-channel = /bits/ 8 <11>;
maximum-RF-channel = /bits/ 8 <11>;
};

sx1278@1 {
compatible = "sx1278";
reg = <1>;
status = "okay";
spi-max-frequency = <0x3b60>;
center-carrier-frq = <434000000>;
clock-frequency = <32000000>;
minimal-RF-channel = /bits/ 8 <11>;
maximum-RF-channel = /bits/ 8 <11>;
};
};
};
};

0 comments on commit f83cae7

Please sign in to comment.