Hi developer311,
Do you configure the pin as GPIO/Output/Drive 0 or 1 in pinmux spreadsheet before use?
For JP6.x, you have to apply the patch from 40hdr - SPI1 gpio padctl register bit[10] effect by gpiod tools in JP6 - #20 by KevinFFF in kernel source to control GPIO.
You can simply replace kernel image (i.e. /boot/Image on your board) to apply the change.