Replies: 3 comments 6 replies
-
The overlay will likely need some changes, but first, have you confirmed the kernel driver for this device is enabled? |
Beta Was this translation helpful? Give feedback.
4 replies
-
do I need to do a custom kernel config? Or more specifically could it be enabled for future builds so I don't have to rely on custom kernels from here on out?
And yes, from what I can see:
cat /boot/config-$(uname -r) | grep -i ltc2941
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
Thanks.
…________________________________
From: Joshua Riek ***@***.***>
Sent: Wednesday, August 21, 2024 10:52:22 AM
To: Joshua-Riek/ubuntu-rockchip ***@***.***>
Cc: Bryan Ramsey ***@***.***>; Author ***@***.***>
Subject: Re: [Joshua-Riek/ubuntu-rockchip] Enabling Overlay for ltc294x.dtbo battery gauge (Discussion #1000)
I think it may not be enabled, CONFIG_BATTERY_GAUGE_LTC2941=y is not in the kernel config.
The ltc2947 and ltc2945 drivers look to be sensors.
—
Reply to this email directly, view it on GitHub<#1000 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALSQIL4Y3VPNX3SG3VOCEILZSTAUNAVCNFSM6AAAAABM4KF57GVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBRGA2TGMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Awesome!, Thank you, it's a really easy way to add battery sensing to a SBC (the power management module from Decktility emulating the LTC294x chips).
Do you know which overlay I need to enable to get I2C over GPIO Pins 3/5? They default to that on the Pi
…-----Original Message-----
From: Joshua Riek ***@***.******@***.***%3e>>
Reply-To: Joshua-Riek/ubuntu-rockchip ***@***.******@***.***%3e>>
To: Joshua-Riek/ubuntu-rockchip ***@***.******@***.***%3e>>
Cc: pterodyne ***@***.******@***.***%3e>>, Author ***@***.******@***.***%3e>>
Subject: Re: [Joshua-Riek/ubuntu-rockchip] Enabling Overlay for ltc294x.dtbo battery gauge (Discussion #1000)
Date: 08/22/2024 03:28:28 PM
Yeah I can enable it, a kernel update should come out maybe next week? I have a few other things id like to include in the next update.
—
Reply to this email directly, view it on GitHub<#1000 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALSQILYZ7GZTKZPUITQROV3ZSZJXZAVCNFSM6AAAAABM4KF57GVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBSGM4TMNA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all. I'm a bit unschooled in this area, but have good experience coming from the pi ecosystem. I'm building a laptop around a Radxa CM5/CM4 nano carrier, and so far everything is working well with this build (6.1 Ubuntu 24.04). I'm using Decktility project as the basis for the power control and monitoring. In a nutshell it uses an Arduino to simulate a ltc294x chip, which is natively supported by Linux. On a pi it works great, and other than enabling the overlay, it reports the battery back to the system without doing anything else. Anyway, Id hoped it would be as easy as enabling the dtbo, but it doesn't exist in the device tree.
I've looked all over on Radxa's site other GitHub etc. So I went as far as de-compiling the RPI one and removing the compatibility reference to the Broadcom. Side note none of the dtbo files I de-compiled from Rockchip had this compatibility reference so I just removed the lines and recompiled, added to u-boot, and ran uboot-update. I can confirm that the extlinux.conf is updated with the reference, but it doesn't load.
Other considerations. I don't completely understand the GPIO workings on the Rockchip, but it's wired in to pins 3,5 for I2C on the Pi so I'm at least guessing that it will need to have those pins enabled via dtbo as well. Ive never dealt with compiling kernel drivers before so a bit at a loss here. Maybe I need to compile the kernel driver as well as the dtbo.
Anyway thanks for looking and any advise!
Bryan
Beta Was this translation helpful? Give feedback.
All reactions