1What: /sys/devices/platform/<i2c-demux-name>/cur_master 2Date: January 2016 3KernelVersion: 4.6 4Contact: Wolfram Sang <wsa@the-dreams.de> 5Description: 6 7This file selects the active I2C master for a demultiplexed bus. 8 9Write 0 there for the first master, 1 for the second etc. Reading the file will 10give you a list with the active master marked. Example from a Renesas Lager 11board: 12 13root@Lager:~# cat /sys/devices/platform/i2c@8/cur_master 14* 0 - /i2c@9 15 1 - /i2c@e6520000 16 2 - /i2c@e6530000 17 18root@Lager:~# echo 2 > /sys/devices/platform/i2c@8/cur_master 19 20root@Lager:~# cat /sys/devices/platform/i2c@8/cur_master 21 0 - /i2c@9 22 1 - /i2c@e6520000 23* 2 - /i2c@e6530000 24