0001 What: /sys/bus/iio/devices/iio:deviceX/in_proximity<id>_setup
0002 Date: November 2021
0003 KernelVersion: 5.17
0004 Contact: Gwendal Grignou <gwendal@chromium.org>
0005 Description:
0006 SX9324 has 3 inputs, CS0, CS1 and CS2. Hardware layout
0007 defines if the input is
0008
0009 + not connected (HZ),
0010 + grounded (GD),
0011 + connected to an antenna where it can act as a base
0012 (DS - data shield), or measured input (MI).
0013
0014 The sensor rotates measurement across 4 phases
0015 (PH0, PH1, PH2, PH3), where the inputs are configured
0016 and then measured.
0017
0018 By default, during the first phase, [PH0], CS0 is measured,
0019 while CS1 and CS2 are used as shields.
0020 `cat in_proximity0_setup` returns "MI,DS,DS".
0021 [PH1], CS1 is measured, CS0 and CS2 are shield:
0022 `cat in_proximity1_setup` returns "DS,MI,DS".
0023 [PH2], CS2 is measured, CS0 and CS1 are shield:
0024 `cat in_proximity1_setup` returns "DS,DS,MI".
0025 [PH3], CS1 and CS2 are measured (combo mode):
0026 `cat in_proximity1_setup` returns "DS,MI,MI".
0027
0028 Note, these are the chip default. Hardware layout will most
0029 likely dictate different output. The entry is read-only.