We use “/dev/i2c-%d” to identify the i2c pin, for example “dev/i2c-20”.
And “dev/i2c-20” is not always map with i258226000.i2c after reimaging, and this cause some problem to me. Please teach me how should I handle this in details, thank you very much !
Devices listed in DT aliases section usually match with /dev/xxxN device numbers. They same with i2cdetect or devices listed in /sys/bus/i2c/devices/.
In device tree imx8qxp.dtsi has this
i2c1 = &i2c_rpbus_1;
i2c5 = &i2c_rpbus_5;
i2c12 = &i2c_rpbus_12;
i2c13 = &i2c_rpbus_13;
i2c14 = &i2c_rpbus_14;
i2c15 = &i2c_rpbus_15;
and your listed devices, which seem to be defined in imx8-ss-dma.dtsi as i2c0, i2c1, i2c2, etc are not referenced from aliases section. That’s why it could be random.