diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2021-01-27 23:29:38 -0800 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2021-03-10 19:33:01 +0000 |
commit | 689c25b9d6bbd62875f1fb31dca5cc694b8e262f (patch) | |
tree | 7eccefd9cd1540dcfd66a6c7f3aeb973a7dad018 /src/mainboard/samsung/stumpy | |
parent | e4a7e46a9c1219ebffb94ea3de5181aaaf86f27c (diff) | |
download | coreboot-689c25b9d6bbd62875f1fb31dca5cc694b8e262f.tar.xz |
drivers/i2c: sx9310: Replace register map with descriptive names
The current driver is using chip registers map to configure the SAR
sensor, which is opaque, especially when the datasheet is not published
widely.
Use more descriptive names, as defined in Linux kernel documentation at
https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/proximity/semtech%2Csx9310.yaml
BUG=b:173341604
BRANCH=volteer
TEST=Dump all tables, check semtech property:
for i in $(find /sys/firmware/acpi/tables/ -type f) ; do
f=$(basename $i); cat $i > /tmp/$f.dat ; iasl -d /tmp/$f.dat
done
In SSDT.dsl, we have:
Package (0x06)
{
Package (0x02)
{
"semtech,cs0-ground",
Zero
},
Package (0x02)
{
"semtech,startup-sensor",
Zero
},
Package (0x02)
{
"semtech,proxraw-strength",
Zero
},
Package (0x02)
{
"semtech,avg-pos-strength",
0x0200
},
Package (0x02)
{
"semtech,combined-sensors",
Package (0x03)
{
Zero,
One,
0x02
}
},
Package (0x02)
{
"semtech,resolution",
"finest"
}
}
Change-Id: I8d1c81b56eaeef1dbb0f73c1d74c3a20e8b2fd7b
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50210
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/samsung/stumpy')
0 files changed, 0 insertions, 0 deletions