Hi Platon,
we use the standard build-in driver of Linux Kernel 5.10.10. This is part of the ST BSP "OpenSTLinux5.10-dunfell-mp1-21-03-31.
Previous documentations that I have consulted:
https://www.nxp.com/docs/en/user-guide/UM11040.pdf
https://www.nxp.com/docs/en/user-manual/AH1704.pdf
https://github.com/torvalds/linux/blob/v5.10/Documentation/devicetree/bindings/net/dsa/sja1105.txt
https://github.com/torvalds/linux/blob/v5.10/Documentation/networking/dsa/sja1105.rst
Unfortunately these documentations do not treat the Linux driver and its functionalities adequately enough for our problem. Again, we need to load the driver without a VLAN-based configuration. Below you can see an example of the current output when the driver is starting.
[ 80.801160] sja1105 spi2.0: Probed switch chip: SJA1105S
[ 80.934971] sja1105 spi2.0: Updating VLAN 1025
[ 80.943584] sja1105 spi2.0: Updating VLAN 1025
[ 80.952858] sja1105 spi2.0: Updating VLAN 1025
[ 80.961709] sja1105 spi2.0: Updating VLAN 1025
[ 80.967525] sja1105 spi2.0: Updating VLAN 1025
[ 80.977959] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 80.983877] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 80.995737] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.004256] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.012844] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.021277] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.030518] sja1105 spi2.0: Updating VLAN 2049
[ 81.039485] sja1105 spi2.0: Updating VLAN 2049
[ 81.048265] sja1105 spi2.0: Updating VLAN 1026
[ 81.057550] sja1105 spi2.0: Updating VLAN 1026
[ 81.066966] sja1105 spi2.0: Updating VLAN 1026
[ 81.076340] sja1105 spi2.0: Updating VLAN 1026
[ 81.085989] sja1105 spi2.0: Updating VLAN 1026
[ 81.091785] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.102420] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.110977] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.119447] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.127888] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.136362] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.144868] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
[ 81.153432] stm32-dwmac 5800a000.ethernet eth0: Only single VLAN ID supported
...
A new approach from us is to load a configuration file via spidev to the switch and do not use the driver. As a starting point we customize the Python script 'examplePQRS.py', found in the Switch Configuration tool for SJA1105x , to our needs. Do you know, what the best way is to update the switch with the generated .bin/.hex file? A call of the spidev_test command with -i flag possibly?
Thanks and best regards