gaz2613 Posted September 5, 2017 Share Posted September 5, 2017 Hi I have a Philips pcf8563 RTC that connects to i2c-1. Could you please add support for RTC modules please particularly the pcf8563 and the DS1307 as these seem to be the most popular although some more models would be welcome. I have been trying to create a dtb with a previous kernel that included the needed modules but failed to get it to compile. I even tried adding it to the main device tree with no such luck. I know it's not been talked about much but would love to get RTC working on the tinkerboard. For those that haven't noticed the RK808 power management chip on the tinkerboard has RTC capability built in and even has the driver load at boot but for some silly reason ASUS didn't include the header to be able to connect a battery to. Regards Gareth Link to comment Share on other sites More sharing options...
TonyMac32 Posted September 5, 2017 Share Posted September 5, 2017 59 minutes ago, gaz2613 said: For those that haven't noticed the RK808 power management chip on the tinkerboard has RTC capability built in and even has the driver load at boot but for some silly reason ASUS didn't include the header to be able to connect a battery to. Added to the pile of silly things involving the Tinker... Does this rtc have Mainline or 4.4 drivers? If so it shouldn't be an issue to add it as a module and allow you to do as you wish with the dtb. I haven't undertaken device tree overlays because to be completely honest I don't know exactly how they work (kernel-wise) and don't want to break everything. Link to comment Share on other sites More sharing options...
gaz2613 Posted September 5, 2017 Author Share Posted September 5, 2017 As far as I know it's just just a standard c source file in the drivers/rtc folder in the 4.4 kernel source. It's just a matter of including it in the kernel build. I used menu config for this purpose. I also tried to get 1wire working but not sure if the tinkerboard actually has the hardware for this. I managed to build the modules on a previous kernel I compiled myself but I think it needs configuring to work with the appropriate gpio pin in the device tree. Thank you for your quick response and I am certainly loving the armbian build for the tinker board. The graphics is the highlight for me as asus implementation if you want to call it that was very sketchy and was glitching out and artefacting on my panasonic tv on the latest build. By the way I am still researching the device tree overlays too but it seems quite complicated. I'll continue reading further about this topic. Keep up the great work Link to comment Share on other sites More sharing options...
gaz2613 Posted September 5, 2017 Author Share Posted September 5, 2017 I have already submitted the proposed changes for approval on github for the rockchip config files. Link to comment Share on other sites More sharing options...
TonyMac32 Posted September 5, 2017 Share Posted September 5, 2017 OK, I see your patches in your fork, can you submit a pull request for those? Link to comment Share on other sites More sharing options...
gaz2613 Posted September 5, 2017 Author Share Posted September 5, 2017 1 hour ago, TonyMac32 said: OK, I see your patches in your fork, can you submit a pull request for those? No worries I'll do that shortly. Link to comment Share on other sites More sharing options...
Recommended Posts