-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Module request: rtc-rv3028 #2912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is 4.14 a requirement for you? 4.19 is our current master branch. |
Not at all! In my case it happened to be the kernel available via apt and I was attempting to build the module out-of-tree for testing. |
See: raspberrypi#2912 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi#2912 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi#2912 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi#2912 Signed-off-by: Phil Elwell <[email protected]>
Can you build and test #2913? |
Thank you- on it. |
Built and testing against
I believe the following dtoverlay is required for battery backup functionality to be enabled:
Could this please be merged into https://github.com/raspberrypi/linux/blob/e2d2941326922b63d722ebc46520c3a2287b675f/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts ? I believe the existing address, and trickle-resistor-ohms parameters would apply. Thank you for cranking this out so quickly, much appreciated! |
Already done. 8-)
Not the address - that's fixed - but I could add the trickle-resistor. |
See: raspberrypi#2912 Signed-off-by: Phil Elwell <[email protected]>
Now updated with trickle-resistor support - use the |
Actually I'm wrong regarding backup battery functionality. Looking at the datasheet for details on register |
Brilliant! Thank you. This patch adds suggested functionality for Without this parameter supplied, the RTC is never told to use its backup battery and thus loses the time on power off. Possible options are:
I'll also ping it over to the module author: diff --git a/drivers/rtc/rtc-rv3028.c b/drivers/rtc/rtc-rv3028.c
index d04c2d481..d674a8257 100644
--- a/drivers/rtc/rtc-rv3028.c
+++ b/drivers/rtc/rtc-rv3028.c
@@ -74,6 +74,7 @@
#define RV3028_BACKUP_TCE BIT(5)
#define RV3028_BACKUP_TCR_MASK GENMASK(1,0)
+#define RV3028_BACKUP_BSM_MASK 0b00001100
#define OFFSET_STEP_PPT 953674
@@ -601,6 +602,7 @@ static int rv3028_probe(struct i2c_client *client)
struct rv3028_data *rv3028;
int ret, status;
u32 ohms;
+ u8 bsm;
struct nvmem_config nvmem_cfg = {
.name = "rv3028_nvram",
.word_size = 1,
@@ -671,6 +673,17 @@ static int rv3028_probe(struct i2c_client *client)
if (ret)
return ret;
+ /* setup backup switchover mode */
+ if (!device_property_read_u8(&client->dev, "backup-switchover-mode",
+ &bsm)) {
+ ret = regmap_update_bits(rv3028->regmap, RV3028_BACKUP,
+ RV3028_BACKUP_BSM_MASK,
+ (bsm & 0b11) << 2);
+
+ if (ret)
+ return ret;
+ }
+
/* setup trickle charger */
if (!device_property_read_u32(&client->dev, "trickle-resistor-ohms",
&ohms)) { |
Can you submit this as a PR, ideally with the required overlay parameter? If you're happy with the rest of the functionality I'll merge it now. |
No problem, will get a PR under way once it's merged. And, yes, everything else seems to work as expected. Thanks again! |
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
Have at it! |
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
kernel: Add rtc-rv3028 support See: raspberrypi/linux#2913 kernel: Enable Dynamic Clock Calculation on TLV320AIC3204 See: raspberrypi/linux#2915 kernel: overlays: Add rv3028 to i2c-rtc See: raspberrypi/linux#2912
kernel: Add rtc-rv3028 support See: raspberrypi/linux#2913 kernel: Enable Dynamic Clock Calculation on TLV320AIC3204 See: raspberrypi/linux#2915 kernel: overlays: Add rv3028 to i2c-rtc See: raspberrypi/linux#2912
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi#2912 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi#2912 Signed-off-by: Phil Elwell <[email protected]>
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
commit 2ec33e4040ebcd7fcfbeb3a559bb58c207f64a99 from https://github.com/raspberrypi/linux.git rpi-6.6.y For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit 2ec33e4040ebcd7fcfbeb3a559bb58c207f64a99 from https://github.com/raspberrypi/linux.git rpi-6.6.y For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit 2ec33e4040ebcd7fcfbeb3a559bb58c207f64a99 from https://github.com/raspberrypi/linux.git rpi-6.6.y For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit 2ec33e4040ebcd7fcfbeb3a559bb58c207f64a99 from https://github.com/raspberrypi/linux.git rpi-6.6.y For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit 2ec33e4040ebcd7fcfbeb3a559bb58c207f64a99 from https://github.com/raspberrypi/linux.git rpi-6.6.y For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit 2ec33e4040ebcd7fcfbeb3a559bb58c207f64a99 from https://github.com/raspberrypi/linux.git rpi-6.6.y For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit 2ec33e4040ebcd7fcfbeb3a559bb58c207f64a99 from https://github.com/raspberrypi/linux.git rpi-6.6.y For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the raspberrypi/linux#2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
I would very much appreciate inclusion of the rv3028 RTC driver module if possible.
The PR that brought it into upstream is here: torvalds/linux@e6e7376
It looks like it requires (or requires updates to) 'rtc_add_group' and
rtc_nvram_register
along with some constants not defined inrtc.h
for 4.14.y so I'm not sure how straight forward this is?Thank you.
The text was updated successfully, but these errors were encountered: