MLK-20940-1 i2c: busses: Add virtual i2c driver based on rpmsg
Add virtual i2c driver to send SRTM i2c messages to M4. Each virtual I2C bus has a specal bus id, which is abstracted by M4. Each SRTM message include a bus id for the bus which the device is on. Virtual i2c rpmsg bus will bind rpbus nodes with compatible string "fsl,i2c-rpbus". And "rpmsg-i2c-channel" will probe only one rpmsg channel for all rpbuses. This virtual i2c driver depends on CONFIG_I2C and CONFIG_RPMSG. Signed-off-by:Clark Wang <xiaoning.wang@nxp.com> (cherry picked from commit 9feeac93)
Showing
- Documentation/devicetree/bindings/i2c/i2c-rpmsg-imx.txt 29 additions, 0 deletionsDocumentation/devicetree/bindings/i2c/i2c-rpmsg-imx.txt
- drivers/i2c/busses/Kconfig 6 additions, 0 deletionsdrivers/i2c/busses/Kconfig
- drivers/i2c/busses/Makefile 1 addition, 0 deletionsdrivers/i2c/busses/Makefile
- drivers/i2c/busses/i2c-rpmsg-imx.c 427 additions, 0 deletionsdrivers/i2c/busses/i2c-rpmsg-imx.c
Loading
Please register or sign in to comment