How to control the SOPINE UART and SPI pins as GPIO?
The StackOverflow community took a look at the schematic for the 20-pin header beside the SOPINE modules on the clusterboard and said that it should be possible to configure the SOPINE hardware to use the UART and SPI pins as GPIO. One user commented:

"Most MCUs and SoCs have multiple functions on each pin. The SPI 'pins' are just one of those alternative functions. As long as you're not using SPI, and don't have it configured, those pins are just plain GPIO pins"

I'd like one of them to operate a simple low-power LED that is either on or off, controlled by software, to indicate busy status (not if the board is powered on or off). Any ideas how to get started?
Make a backup of current DTB, decompile this DTB into a DTS using dtc compiler, edit DTS to remove any reference to unused SPIs/UARTs, not only their nodes, but also their pins in PinCtrl, save and recompile this modified DTS into DTB, and reboot. All those pins will be defaulted as GPIOs.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Benchmarking the SOPINE Modules on the Clusterboard clusterDude 4 1,556 08-20-2020, 12:56 PM
Last Post: xmixahlx
  Sopine Fedora 32 on clusterboard w/networking revoman 0 902 05-20-2020, 01:23 AM
Last Post: revoman
  SOPINE LTS Availability and Plan 0 467 05-14-2020, 10:00 AM
Last Post:
  SoPine eMMC compatibility Terra854 4 2,775 02-20-2020, 07:52 PM
Last Post: mcrognale
  Sopine baseboard CSI port camera not work olivaw 2 852 02-20-2019, 09:50 AM
Last Post: maya.b
  Is it Sopine, SOPINE, SOPine or SoPine? Pine 2 1,199 01-07-2019, 08:37 AM
Last Post: Pine
  mmc r/w errors after setting GPIO chema 0 638 12-02-2018, 05:23 PM
Last Post: chema
  +SOPINE baseboard datasheet is different gamelaster 3 1,628 09-09-2018, 05:08 PM
Last Post: tllim
  Two of our sopine's only register 1GB RAM paradise 3 1,136 08-09-2018, 08:35 AM
Last Post: paradise
  Heatsink for SOPINE 1 1,099 08-04-2018, 10:41 AM
Last Post: paradise

Forum Jump:

Users browsing this thread: 1 Guest(s)