<wwilly>
hi, I would like to add pmu for the cci400 for the exynos5422, is anybody from samsung with the magical secret datasheet could help me? see https://pastebin.com/8vwvGPmn basically I miss the right revision, reg and interrupts
<wwilly>
could anybody provide me the right thing to do a patch?
<krzk>
wwilly: On Monday I can take a look :)
<wwilly>
arf, is already too late for today? :)
<krzk>
I have a beer in 10 minutes :)
<wwilly>
arf.... :( ... I pay you two beers?
<krzk>
wwilly: the cci node should be already in DTSI. It's address is 0x10d2 0000... but you need the PMU for it?
<wwilly>
yes, just the pmu
<wwilly>
see the pastebin link, there is a suggestion of what we should add to the cci node
<wwilly>
by guessing regarding other dtsi having this
<krzk>
There is also CCI_NERR interrupt, I don't know which exactly you need
<krzk>
The problem is that CCI is a generic ARM block so there is no documentation about it in Samsung :)
<wwilly>
I don't know either to be honest
<wwilly>
awh uhm, so this interrupts numbers need to be provided by ARM directly?
<wwilly>
I don't know how this thing is working to honest...
<krzk>
no, the IRQ numbers might be specific to Exynos but many other data - not necessarily. There are PMU interrupts mentioned in data sheet but only for EAGLE, KFC and MCU
<krzk>
Since cci address is the same in your example DTS as in real Exynos, therefore the PMU reg might be the same as well
<krzk>
because the regs are offsets from main register... and these offsets are parts of reference block (CCI block)
<wwilly>
ok, in the pastebin post, it's simply a copy from the vexpress dtsi ...
<krzk>
I see, but it is still reasonable. The cci address is the same.
<krzk>
Btw, good example is the vendor opensource code
<krzk>
you might find it there
<wwilly>
uhm, where is that source code?
<krzk>
opensource.samsung.com - everything is there, you just need to know the proper model (gsmarena...)