On 2019/9/7 上午10:53, Huacai Chen wrote:
On Thu, Sep 5, 2019 at 10:47 PM Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> wrote:
Add generic device dts for Loongson-3 devices.
They seems identical but will be different later.
Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>
Hi, Jiaxun,
I'm very glad to see that dts files become less in this version, but I
think we also don't need to distinguish cpu types (i.e.,
3a1000/3b1500/3a2000/3a3000). Then, we only need three dts files
(loongson3_ls2h.dts, loongson3_ls7a.dts, loongson3_rs780.dts) which is
the same as in our own git repository. If we really need to
distinguish cpu type, PRID or CPUCFG in Loongson-3A4000 is more
suitable than dts. In other words, I want dts only do as minimal as
possible.
Hi Huacai,
I have the same consideration with you. However, the reason why I split
this dts is that these chips have significant differences.
For example, 3B1x00 have different memory and config registers layout,
Their HT config space is a delicate node, HTMSI interrupts is not
functional until 3A3000, and their syscon registers are not identical.
You may say they can be identified by PRID, but I'm not intend to spread
PRID all the way in other subsystems, thus I think dts is still the best
way to tell these differences.
Thanks
--
Jiaxun Yang
Huacai