Hi all,
I am working on ls1021a-tsn board and I am interested to configure on board switch "sja1105". Due that I have compiled and sucessfully installed sja1105-tool and related libraries:
sja1105-tool --version
libsja1105 version: OpenIL-v0.3-201707
libsja1105 build date: Nov 11 2021 15:29:28
sja1105-tool version: OpenIL-v0.3-201707
sja1105-tool build date: Nov 11 2021 15:29:28
The problem is that when I call sja1105-tool (e.g sja1105-tool reset core)
the system answer is :
device_id field not defined in config file, setting default value 0x0
configuring device /dev/spidev0.1
can't open device
failed to open spi device.
On my board I find following files:
/sys/class/spidev
/sys/bus/spi/drivers/spidev
/sys/module/spidev
but i can't see spidev0.1 under /dev.
I think that the problem is related to device tree , but I don't know how to set dts file in right way.
Thank you in advacnce.
See the following documents about installing and using this tool:
https://github.com/openil/sja1105-tool
https://www.kernel.org/doc/html/latest/networking/dsa/sja1105.html