Jump to content

Recommended Posts

Posted

Hi

I'm using an Orange Pi PC Plus with a LoRa HAT (Semtech SX1278) connected via GPIO. The tool which uses this HAT connects directly to the SX1278 chip on the HAT, no protocoll like SPI is needed.

I'm using it for several years on RaspberryPi's without problems. But with the latest ARMBIAN Image for the Orange Pi PC Plus

Armbian_23.11.1_Orangepipcplus_bookworm_current_6.1.63.img.xz I have issues in this constellation.

The tool can not contact the SX1278 via GPIO, said the tool developer. It seems like I have to activate the GPIO pins before.

I've tried to find information about that, but without success.

 

So I hope to find here more information and help.

 

I have to use these hardware PINs (these are the PIN descritions on teh Raspberry Pi):

MOSI     SPI0_MOSI / GPIO10 (PIN 19)
MISO     SPI0_MISO / GPIO9 (PIN 21)
SCK     SPI0_SCLK / GPIO11 (PIN 23)
NSS/Enable     SPI0_CE0_N / GPIO8 (PIN 24)
RST     GPIO6 (PIN 31)

 

Thanks in advance.

Posted

This board is not a supported board.  Moved post to Community Maintained section and added the correct tag for the board.

Posted

you need to develop your dtbo to support your addon devices.

 

from your description, your device needs a set of SPI pins, and a reset pin.

1574068610_.png.68c2465c4155018bef919af6f9385769.png

 

OPI PC plus already provides the pins you want.

 

MOSI     SPI0_MOSI / GPIO10 (PIN 19)
MISO     SPI0_MISO / GPIO9 (PIN 21)
SCK     SPI0_SCLK / GPIO11 (PIN 23)
NSS/Enable     SPI0_CE0_N / GPIO8 (PIN 24)

 

then, you need develop a dtbo for your device.

 

156 &spi0 {
157         status = "okay";
158 
159         YOUR_DEVICE@0 {
160                 compatible = "YOUR_DEVICE";
161                 reg = <0>;
162                 spi-max-frequency = <50000000>;
163         };
164 };

 

if your device use an userspace driver, that not need YOUR_DEVICE@0 node.

 

that all you need to do.

Posted (edited)

Hi,

 

the device uses the PINs only, but not the spi protocol. It talks directly so the SX1278 via the PINs. This works in RaspberryPi standard images from scratch without any change (only disabling SPI).

I don't know what you mean with "dtbo". I'm not a developer, only a user. Can you please give me some hints?

 

Regards

Edited by dco333

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines