I just tried to get com0 on the ARM PL011 UART of a rpi zero W by
- grabbing https://github.com/raspberrypi/linux/blob/rpi-5.4.y/arch/arm/boot/dts/overlays/disable-bt-overlay.dts
- removing the #include <dt-bindings/gpio/gpio.h> which from
https://nxr.netbsd.org/xref/src/sys/external/gpl2/dts/dist/include/dt-bindings/gpio/gpio.h
doesn't seem to be needed?
- dtc -O dtb -o disable-bt-overlay.dtbo -b 0 -@ disable-bt-overlay.dts
rpiz$ file /boot/dtb/overlays/disable-bt-overlay.dtbo
/boot/dtb/overlays/disable-bt-overlay.dtbo: Device Tree Blob version 17, size=1073, boot CPU=0, string block size=145, DT structure block size=872
- change config.txt to
dtoverlay=disable-bt
#enable_uart=1
#force_turbo=0
but still
plcom0 at simplebus1: ARM PL011 UART
plcom0: txfifo disabled
plcom0: interrupting on icu irq 57
bcmsdhost0 at simplebus1: SD HOST controller
bcmsdhost0: interrupting on icu irq 56
bsciic1 at simplebus1: Broadcom Serial Controller
bsciic1: interrupting on icu irq 53
iic1 at bsciic1: I2C bus
com0 at simplebus1: BCM AUX UART, 1-byte FIFO
com0: console
com0: interrupting on icu irq 29
What else needs to be done to make the PL011 "the" serial port?
Cheers,
Patrick