Main DT is the file located in /boot/dtb/rockchip/rk3399-nanopi4-rev01.dtb. You need to decompile it into DTS as rk3399-nanopi4-rev01.dts, edit it to change ' status="okay"; ' into ' status="disabled"; ' for the UART. Then, for the SPI, you need to turn it ON with ' status="okay"; ', but also need to add SPIDEV into this node : spi@ff1c0000 { [ ... more stuff here ... ] status = "okay"; spidev { compatible = "spidev"; status