]> git.ipfire.org Git - thirdparty/linux.git/commit
dt-bindings: iio: accel: bosch,bma220 setup SPI clock mode
authorPetre Rodan <petre.rodan@subdimension.ro>
Sat, 13 Sep 2025 15:39:23 +0000 (18:39 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 13 Oct 2025 07:37:24 +0000 (08:37 +0100)
commitb8719569a0971f971a117c67c462360d7bbc0fcc
tree72816adb368858b9d1a5b8e44f0ccde9d6f2b50c
parentb8af83efd67c2d36142bb411ff5218f02eaf0deb
dt-bindings: iio: accel: bosch,bma220 setup SPI clock mode

Assert CPOL for a high-idle clock signal and CPHA for sampling on the
trailing (rising) edge.

Quoting from the datasheet:

 "During the transitions on CSB, SCK must be high. SDI and SDO are driven
 at the falling edge of SCK and should be captured at the rising edge of
 SCK."

The sensor does not function with the default SPI clock mode.

Fixes: 7dbd479425d2 ("dt-bindings:iio:accel:bosch,bma220 device tree binding documentation")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml