Bug 199084 - [PATCH] Support POGOPLUG V4 / 88F6192
Summary: [PATCH] Support POGOPLUG V4 / 88F6192
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 10.1-RELEASE
Hardware: arm Any
: --- Affects Some People
Assignee: freebsd-arm (Nobody)
Keywords: patch
Depends on:
Reported: 2015-04-01 11:35 UTC by jeditekunum
Modified: 2020-07-11 17:41 UTC (History)
1 user (show)

See Also:

Pogoplug V4 / 88F6192 patch (17.57 KB, patch)
2015-04-01 11:35 UTC, jeditekunum
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jeditekunum 2015-04-01 11:35:22 UTC
Created attachment 155083 [details]
Pogoplug V4 / 88F6192 patch

Marvell 88F6192 (used in Pogoplug Series 4 for example) seems to incorrectly identify itself as 88F6281. Although very similar devices, 6192 has a TCLK of 166Mhz rather than 200Mhz. Since TCLK is wrong so is the system time.

The attached patch works however I'm not entirely sure this is complete or the way in which this kind of hardware issue is normally dealt with.

POGOPLUGV4 was derived from DOCKSTAR
pogoplugv4.dts was derived from db88f6281.dts
Comment 1 jeditekunum 2015-04-18 14:50:30 UTC
Linux identifies as 88F6281 but the TCLK is correct.

Apparently the sample-at-reset register has a bit that indicates the correct TCLK. (based on several sources including https://stuff.mit.edu/afs/sipb/contrib/linux/drivers/clk/mvebu/kirkwood.c)

So a better fix would probably be to ignore the fact that it is really a 6192 and just set TCLK based on that.

I also came across more recent Linux changes to use DT: http://lists.infradead.org/pipermail/barebox/2014-June/019535.html

As a noob to Freebsd kernel changes, I'm not in a position to determine what is the right way to fix this. Nor do I have a 6281 device to test any changes.
Comment 2 Tom Jones freebsd_committer 2020-07-11 17:41:34 UTC
FreeBSD dropped support for ARMv5 on the 2020/01/02 this commit is a good place to start reading from