Skip to content

Commit e0fb321

Browse files
committed
Support for Tamanu Iti HAT
Our HAT puts the LCD on SPI1 instead of SPI0 and we can take advantage of the FBTFT driver instead of our hand-rolled driver code; that leaves SPI0 for the TPM with enough space for EEPROM ID and two extra GPIOs.
1 parent 51c0900 commit e0fb321

1 file changed

Lines changed: 15 additions & 23 deletions

File tree

image/files/pi/config.txt

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,23 @@
11
# BES Linux — Raspberry Pi 5 boot config.
2-
# Read by the Pi 5 firmware (in EEPROM) at boot. flash-kernel populates the
3-
# kernel image, initramfs, DTB and overlays into this same FAT partition
4-
# (/boot/firmware) on every kernel update.
2+
# r[image.boot.pi-firmware]
53

6-
# r[image.boot.pi-firmware] r[image.boot.pi-uart] r[image.boot.pi-peripherals]
7-
# r[image.boot.pi-tpm-overlay] r[image.boot.pi-pcie-gen3]
8-
# enable_uart=1 tells the firmware to initialise the primary UART so the
9-
# kernel can inherit it as a console. On Pi 5 this is the dedicated 3-pin
10-
# debug UART connector (not GPIO 14/15 on the 40-pin header — that is a
11-
# different UART), and `console=serial0,115200` in cmdline.txt resolves
12-
# to it via the device-tree alias. HDMI may not be attached.
13-
# I2C and SPI are enabled for sensor / peripheral attach, paired with the
14-
# i2c-tools userspace package.
15-
# The tpm-slb9670 overlay enables the Infineon SLB9670 SPI TPM 2.0 module
16-
# on SPI0 CE1, for shipments that include a TPM HAT. With no TPM attached,
17-
# the kernel probes SPI, sees no response, and skips — boot is unaffected.
18-
# pciex1_gen=3 raises the Pi 5's onboard PCIe x1 lane from gen 2 to gen 3,
19-
# which roughly doubles sequential throughput for NVMe HATs. Older or
20-
# marginal drives may need to be flipped back to gen 2.
21-
# disable_splash=1 skips the rainbow splash on boot — cosmetic, but keeps
22-
# the console clean for headless servers.
234
[all]
245
disable_splash=1
6+
kernel=vmlinuz
7+
initramfs initrd.img followkernel
8+
9+
# r[image.boot.pi-uart] r[image.boot.pi-peripherals]
2510
enable_uart=1
11+
12+
# r[image.boot.pi-pcie-gen3]
13+
dtparam=pciex1_gen=3
14+
15+
# r[image.boot.pi-peripherals]
2616
dtparam=i2c_arm=on
2717
dtparam=spi=on
28-
dtparam=pciex1_gen=3
18+
19+
# TPM on SPI0 r[image.boot.pi-tpm-overlay]
2920
dtoverlay=tpm-slb9670
30-
kernel=vmlinuz
31-
initramfs initrd.img followkernel
21+
22+
# LCD on SPI1 CE2
23+
dtoverlay=fbtft,spi1-3,st7789v,width=240,height=280,rotate=90,dc_pin=5,reset_pin=6,led_pin=26

0 commit comments

Comments
 (0)