1. 程式人生 > >misc裝置和i2c裝置建立的節點路徑

misc裝置和i2c裝置建立的節點路徑

misc裝置:

./sys/class/misc/sim_i2c_port/sim_i2c_addr

./sys/devices/virtual/misc/sim_i2c_port/sim_i2c_addr

i2c裝置:

./sys/bus/i2c/drivers/sim_i2c_port/1-0010/sim_i2c_addr

./sys/devices/soc.0/78b5000.i2c/i2c-1/1-0010/sim_i2c_addr

注:sim_i2c_port是裝置名,sim_i2c_addr是建立的節點名,以顯示此裝置的i2c地址。