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
  pine64 gpio interrupts fractal 0 297 12-09-2024, 07:43 PM
Last Post: fractal
  Tow-boot on Sopine module? poVoq 2 2,392 04-05-2023, 12:48 PM
Last Post: poVoq
  Benchmarking the SOPINE Modules on the Clusterboard clusterDude 4 8,029 08-20-2020, 12:56 PM
Last Post: xmixahlx
  Sopine Fedora 32 on clusterboard w/networking revoman 0 3,565 05-20-2020, 01:23 AM
Last Post: revoman
  SOPINE LTS Availability and Plan aldrich@tulip.co 0 2,947 05-14-2020, 10:00 AM
Last Post: aldrich@tulip.co
  SoPine eMMC compatibility Terra854 4 9,341 02-20-2020, 07:52 PM
Last Post: mcrognale
  Sopine baseboard CSI port camera not work olivaw 2 5,133 02-20-2019, 09:50 AM
Last Post: maya.b
  Is it Sopine, SOPINE, SOPine or SoPine? Pine 2 6,299 01-07-2019, 08:37 AM
Last Post: Pine
  mmc r/w errors after setting GPIO chema 0 2,862 12-02-2018, 05:23 PM
Last Post: chema
  +SOPINE baseboard datasheet is different gamelaster 3 7,514 09-09-2018, 05:08 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)