Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / Documentation / ABI / testing / sysfs-platform-i2c-demux-pinctrl
blob7ac7d7262bb718f7d9e1d5e60c14491a4d7e7db0
1 What:           /sys/devices/platform/<i2c-demux-name>/cur_master
2 Date:           January 2016
3 KernelVersion:  4.6
4 Contact:        Wolfram Sang <wsa@the-dreams.de>
5 Description:
7 This file selects the active I2C master for a demultiplexed bus.
9 Write 0 there for the first master, 1 for the second etc. Reading the file will
10 give you a list with the active master marked. Example from a Renesas Lager
11 board:
13 root@Lager:~# cat /sys/devices/platform/i2c@8/cur_master
14 * 0 - /i2c@9
15   1 - /i2c@e6520000
16   2 - /i2c@e6530000
18 root@Lager:~# echo 2 > /sys/devices/platform/i2c@8/cur_master
20 root@Lager:~# cat /sys/devices/platform/i2c@8/cur_master
21   0 - /i2c@9
22   1 - /i2c@e6520000
23 * 2 - /i2c@e6530000