# https://www.waveshare.com/pico-lora-sx1262-868m.htm
# http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-Zero-3.html
#
# See Orange Pi Zero3 manual, chapter 3.16, page 124 for 26-pin header pinout
#
# Pin Connection
# Waveshare       Orange Pi Zero3
#   36    3.3V        17
#   15    MOSI        19
#   16    MISO        21  
#   14    CLK         23
#   38    GND         25
#   4     BUSY        18
#   20    RESET       22
#   5     CS          24
#   26    DIO1/IRQ    26

Meta:
  name: ws-raspberry-pico-to-orangepi-03
  support: community
  compatible:
    - orange-pi-zero-3 # Armbian

Lora:
  Module: sx1262  # Waveshare Raspberry Pico Lora module
  DIO2_AS_RF_SWITCH: true
  DIO3_TCXO_VOLTAGE: true
  # Specify either the spidev1_1 or the CS below, not both!
  # On DietPi Linux, when using the user overlay dietpi-spi1_1.dtbo, CS will be configured with spidev1.1
  spidev: spidev1.1 # See Orange Pi Zero3 manual, chapter 3.18.3, page 130
#  CS:             # CS     PIN_24 -> chip 1, line 233
#    pin: 24
#    gpiochip: 1
#    line: 233
  SCK:            # SCK     PIN_23 -> chip 1, line 230
    pin: 23
    gpiochip: 1
    line: 230
  Busy:           # BUSY    PIN_18 -> chip 1, line 78
    pin: 18
    gpiochip: 1
    line: 78
  MOSI:           # MOSI    PIN_19 -> chip 1, line 231
    pin: 19
    gpiochip: 1
    line: 231
  MISO:           # MISO    PIN_21 -> chip 1, line 232
    pin: 21
    gpiochip: 1
    line: 232
  Reset:          # NRST    PIN_22 -> chip 1, line 71
    pin: 22
    gpiochip: 1
    line: 71
  IRQ:            # DIO1    PIN_26 -> chip 1, line 74
    pin: 26
    gpiochip: 1
    line: 74
