]> git.itanic.dy.fi Git - linux-stable/commit
rtc: rtc7301: Support byte-addressed IO
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Oct 2023 19:42:12 +0000 (21:42 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 15 Oct 2023 20:37:25 +0000 (22:37 +0200)
commit8c767e9c1ef40c9fa73276df801251cef895b569
treef67bec4b8379e76e6723a69f313c1be5187c5b6f
parent5ded578a18c9515c2c0e1cd148ca42133bbcf055
rtc: rtc7301: Support byte-addressed IO

The old RTC7301 driver in OpenWrt used byte access, but the
current mainline Linux driver uses 32bit word access.

Make this configurable using device properties using the
standard property "reg-io-width" in e.g. device tree.

This is needed for the USRobotics USR8200 which has the
chip connected using byte accesses.

Debugging and testing by Howard Harte.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com>
Link: https://lore.kernel.org/r/20231010-rtc-7301-regwidth-v3-2-ade586b62794@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-r7301.c