Skip to content

Commit

Permalink
Re-enable SPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Alistair Jordan committed Dec 4, 2023
1 parent 50950a4 commit 6bc36fc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
4 changes: 3 additions & 1 deletion docs/WSPR.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ A special mention here is [https://github.com/threeme3/WsprryPi]threeme3/WsprryP

The WSPR part of the project requires an oscillator to function at around 14MHz.

For this it was chosen to use the si5351, for the good community support, and the ease of the i2c interface.
For this it was chosen to use the si5351, for the good community support, and the ease of the i2c interface.

Technically, it a low pass filter should be added, but given the harmonics of a square wave and the transmission power, for this indiviual use case, I would consider unnecessary.
5 changes: 4 additions & 1 deletion local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ if ./build.sh ; then
sudo cp -rf output/image ~/nfs/image
else
echo "Build failure, not copying"
fi
fi

# Note to self, compiling a single thing is a lot easier when you add the toolchain!
# export PATH=/home/aj/lorawan-balloon/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin:$PATH
Original file line number Diff line number Diff line change
Expand Up @@ -154,29 +154,29 @@
};
};

// /**********SPI**********/
// &spi0 {
// status = "okay";
// pinctrl-names = "default";
// pinctrl-0 = <&spi0m0_pins>;
// cs-gpios = <&gpio1 RK_PC0 1>;
// // cs-gpios = <&gpio1 RK_PD3 1>;
// #address-cells = <1>;
// #size-cells = <0>;
// spidev@0 {
// compatible = "rockchip,spidev";
// spi-max-frequency = <1000000000>;
// reg = <0>;
// status = "disabled";
// };
// sx1278@0 {
// compatible = "sx1278";
// reg = <0>;
// status = "okay";
// spi-max-frequency = <0x3b60>;
// clock-frequency = <32000000>;
// };
//};
/**********SPI**********/
&spi0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi0m0_pins>;
cs-gpios = <&gpio1 RK_PC0 1>;
// cs-gpios = <&gpio1 RK_PD3 1>;
#address-cells = <1>;
#size-cells = <0>;
spidev@0 {
compatible = "rockchip,spidev";
spi-max-frequency = <1000000000>;
reg = <0>;
status = "disabled";
};
sx1278@0 {
compatible = "sx1278";
reg = <0>;
status = "okay";
spi-max-frequency = <0x3b60>;
clock-frequency = <32000000>;
};
};

/**********UART**********/
&uart2 {
Expand Down

0 comments on commit 6bc36fc

Please sign in to comment.