Skip to content

Driver for rtc-sd3078 not included #3881

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

Closed
rrooggiieerr opened this issue Oct 3, 2020 · 5 comments
Closed

Driver for rtc-sd3078 not included #3881

rrooggiieerr opened this issue Oct 3, 2020 · 5 comments

Comments

@rrooggiieerr
Copy link

The driver for the RTC SD3078 is not include in the kernel for Raspberry Pi.

On Debian the kernel can be found in the linux-modules-extra package

The SD3078 is used on the PiSugar2 battery pack/HAT (not really a HAT, but ok)

pelwell added a commit that referenced this issue Oct 5, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
pelwell added a commit that referenced this issue Oct 5, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
@pelwell
Copy link
Contributor

pelwell commented Oct 5, 2020

@rrooggiieerr (you should get that keyboard looked at) - it wasn't easy finding a datasheet, and my Chinese is non-existent, but the rpi-5.4.y tree should now have the relevant driver enabled and a supporting patch to the i2c-rtc overlay. It all compiles and the overlay loads the correct module, but beyond that I can't test it. Can you confirm that the I2C address is 0x32?

@rrooggiieerr
Copy link
Author

rrooggiieerr commented Oct 5, 2020

Great, thanks!

Yes, It's at 0x32

$ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- 32 -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- 75 -- --

How should I be able to test the new kernel, is there a testing repository that I can add to my sources.list?

@pelwell
Copy link
Contributor

pelwell commented Oct 5, 2020

Not for a kernel this new, no. It's not even in rpi-update yet. However, building your own kernel is actually quite easy if you follow our guide: https://www.raspberrypi.org/documentation/linux/kernel/building.md

pelwell added a commit that referenced this issue Oct 5, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
pelwell added a commit that referenced this issue Oct 5, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
pelwell added a commit that referenced this issue Oct 5, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
pelwell added a commit that referenced this issue Oct 5, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 7, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 7, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 7, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 7, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix added a commit to raspberrypi/firmware that referenced this issue Oct 7, 2020
kernel: configs: Add MEMCG_SWAP support initially disabled
See: raspberrypi/linux#3886

kernel: configs: Restore SND_PCM_OSS=m
See: raspberrypi/linux#3883

kernel: overlays: Add sd3078 to the i2c-rtc overlay
kernel: configs: Add CONFIG_RTC_DRV_SD3078=m
See: raspberrypi/linux#3881

kernel: Revert usb/dwc2: Set correct state on gadget disconnect
See: raspberrypi/linux#3885
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this issue Oct 7, 2020
kernel: configs: Add MEMCG_SWAP support initially disabled
See: raspberrypi/linux#3886

kernel: configs: Restore SND_PCM_OSS=m
See: raspberrypi/linux#3883

kernel: overlays: Add sd3078 to the i2c-rtc overlay
kernel: configs: Add CONFIG_RTC_DRV_SD3078=m
See: raspberrypi/linux#3881

kernel: Revert usb/dwc2: Set correct state on gadget disconnect
See: raspberrypi/linux#3885
@popcornmix
Copy link
Collaborator

This is in latest rpi-update kernel

@rrooggiieerr
Copy link
Author

I just ran rpi-update and configured the RTC. Seems to work!

Thanks for the quick followup!

@pelwell pelwell closed this as completed Oct 8, 2020
popcornmix pushed a commit that referenced this issue Oct 12, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 12, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 16, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 16, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 19, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 19, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 19, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 19, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 29, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Oct 29, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 4, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 4, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 4, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 4, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 9, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 9, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 17, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 17, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 23, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 23, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 30, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Nov 30, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Dec 7, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Dec 7, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Dec 14, 2020
Enable the driver module for the SD3078 RTC.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
popcornmix pushed a commit that referenced this issue Dec 14, 2020
Add support for the SD3078 RTC to the i2c-rtc overlay.

See: #3881

Signed-off-by: Phil Elwell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants