Using an SPI SSD1306 OLED on Fedora with a Raspberry Pi

In a previous post I explained how to use a Solomon SSD1306 OLED display on Fedora with a Raspberry Pi, but that only covered displays that come with a I2C driving interface. The SSD1306 display controller also supports a (both 3-wire and 4-wire) SPI interface, and the ssd130x DRM driver has support for it since Linux 5.19. This blog post explains how to setup Fedora to use a SSD1306 OLED when…