ARM: dts: exynos: Fix GPIO polarity for thr GalaxyS3 CM36651 sensor's bus
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 26 Mar 2020 14:20:37 +0000 (15:20 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 13 Apr 2020 09:42:36 +0000 (11:42 +0200)
commit8807d356bfea92b0a8f04ce421800ed83400cd22
tree1cd90303a8a9ea48758cc6ba3da6113d642cf1dd
parenta19f6efc01df901c16a57455485613236eaad55e
ARM: dts: exynos: Fix GPIO polarity for thr GalaxyS3 CM36651 sensor's bus

GPIO lines for the CM36651 sensor I2C bus use the normal not the inverted
polarity. This bug has been there since adding the CM36651 sensor by
commit 85cb4e0bd229 ("ARM: dts: add cm36651 light/proximity sensor node
for exynos4412-trats2"), but went unnoticed because the "i2c-gpio"
driver ignored the GPIO polarity specified in the device-tree.

The recent conversion of "i2c-gpio" driver to the new, descriptor based
GPIO API, automatically made it the DT-specified polarity aware, what
broke the CM36651 sensor operation.

Fixes: 85cb4e0bd229 ("ARM: dts: add cm36651 light/proximity sensor node for exynos4412-trats2")
CC: stable@vger.kernel.org # 4.16+
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi