Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39b132b0 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang
Browse files

i2c: mux: demux-pinctrl: Update docs to new sysfs-attributes



Update the docs according to the recent code changes, too.

Fixes: c0c508a4 ("i2c: mux: demux-pinctrl: Clean up sysfs attributes")
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent c0c508a4
Loading
Loading
Loading
Loading
+12 −17
Original line number Original line Diff line number Diff line
What:		/sys/devices/platform/<i2c-demux-name>/cur_master
What:		/sys/devices/platform/<i2c-demux-name>/available_masters
Date:		January 2016
Date:		January 2016
KernelVersion:	4.6
KernelVersion:	4.6
Contact:	Wolfram Sang <wsa@the-dreams.de>
Contact:	Wolfram Sang <wsa@the-dreams.de>
Description:
Description:
		Reading the file will give you a list of masters which can be
		selected for a demultiplexed bus. The format is
		"<index>:<name>". Example from a Renesas Lager board:


This file selects the active I2C master for a demultiplexed bus.
		0:/i2c@e6500000 1:/i2c@e6508000


Write 0 there for the first master, 1 for the second etc. Reading the file will
What:		/sys/devices/platform/<i2c-demux-name>/current_master
give you a list with the active master marked. Example from a Renesas Lager
Date:		January 2016
board:
KernelVersion:	4.6

Contact:	Wolfram Sang <wsa@the-dreams.de>
root@Lager:~# cat /sys/devices/platform/i2c@8/cur_master
Description:
* 0 - /i2c@9
		This file selects/shows the active I2C master for a demultiplexed
  1 - /i2c@e6520000
		bus. It uses the <index> value from the file 'available_masters'.
  2 - /i2c@e6530000

root@Lager:~# echo 2 > /sys/devices/platform/i2c@8/cur_master

root@Lager:~# cat /sys/devices/platform/i2c@8/cur_master
  0 - /i2c@9
  1 - /i2c@e6520000
* 2 - /i2c@e6530000