devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about writing binding files for numa
@ 2023-09-19  5:33 Chen Wang
  2023-09-20  9:59 ` Conor Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Wang @ 2023-09-19  5:33 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, Conor Dooley, xiaoguang.xing,
	jszhang, Inochi Amaoto, devicetree, linux-kernel
  Cc: Chen Wang

Hi, I am working on writing dts for a new SOC - SG2042, you can see
the changes on https://github.com/unicornx/linux-riscv/commit/ee862fc4ebeade32bff00ad014d6b0513c0942a7.
This hardware uses a NUMA architecture,  so a "distance-map" node is
added and several "numa-node-id" are added for cpu/memory. The problem
is I find there is no YAML binding for numa, I only find
"Documentation/devicetree/bindings/numa.txt". To pass dtb check I want
to convert the txt to yaml file.

My question is: how to handle the "numa-node-id" which is listed in
the numa.txt file. To my understanding, due to cpu/memory node need to
contain this property. I should find some binding files for cpu/memory
and add "numa-node-id" for cpu/memory.
For "cpu", I find a
"Documentation/devicetree/bindings/riscv/cpus.yaml", where I think I
can add a property of   "numa-node-id" to. Note the SG2042 is a RISC-V
chip.
But for "memory", where should I add  "numa-node-id" definition to?

Regards,

Chen Wang

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-20  9:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-19  5:33 Question about writing binding files for numa Chen Wang
2023-09-20  9:59 ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).