I have 1 USIM at SLOT1 and (1 ESIM + 1 Phy SIM) at SLOT2.
I am using '‘AT+QUIMSLOT’ to select the SIM SLOT and a GPIO 421 line to select the eSIM or Physical SIM in that slot. However, the GPIO line is not defined in DTS yet, I must create it manually every time I want to set the value (like the code below).
I want to have that GPIO permamently defined in DTS, so where and how do I add the devicetree’s section for that GPIO in file sdxbaagha.dtsi for this purpose?
if [ ! -d "/sys/class/gpio/gpio421" ]; then
echo 421 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio421/direction
fi
atcmd 'AT+QUIMSLOT=2'
echo 0 > /sys/class/gpio/gpio421/value