How to control the SOPINE UART and SPI pins as GPIO?
#1
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?
#2
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
  Tow-boot on Sopine module? poVoq 2 1,376 04-05-2023, 12:48 PM
Last Post: poVoq
  Benchmarking the SOPINE Modules on the Clusterboard clusterDude 4 6,815 08-20-2020, 12:56 PM
Last Post: xmixahlx
  Sopine Fedora 32 on clusterboard w/networking revoman 0 3,063 05-20-2020, 01:23 AM
Last Post: revoman
  SOPINE LTS Availability and Plan aldrich@tulip.co 0 2,453 05-14-2020, 10:00 AM
Last Post: aldrich@tulip.co
  SoPine eMMC compatibility Terra854 4 8,096 02-20-2020, 07:52 PM
Last Post: mcrognale
  Sopine baseboard CSI port camera not work olivaw 2 4,326 02-20-2019, 09:50 AM
Last Post: maya.b
  Is it Sopine, SOPINE, SOPine or SoPine? Pine 2 5,308 01-07-2019, 08:37 AM
Last Post: Pine
  mmc r/w errors after setting GPIO chema 0 2,430 12-02-2018, 05:23 PM
Last Post: chema
  +SOPINE baseboard datasheet is different gamelaster 3 6,236 09-09-2018, 05:08 PM
Last Post: tllim
  Two of our sopine's only register 1GB RAM paradise 3 4,564 08-09-2018, 08:35 AM
Last Post: paradise

Forum Jump:


Users browsing this thread: 1 Guest(s)