How do you use a node in the device tree?

0

I'm a little confused on how this works, so lets say I've got a device tree node like so

ddr3_store: ddr3@200000000 {
    compatible = "xlnx,ddr3-1.1";
    reg = <0x00000002 0x00000000 0x0 0x40000000>;
};

It's a 1GB ddr3 memory device.

I would like to read the data stored in this device from some C program. How do I go about doing that? Is there a way to I guess 'load' the device and operate on it that way, or do I need to map the specific memory region specified by the device directly? I'm not sure how the second option would work seeing as how I should only have access to the randomized virtual addresses in the user space.

linux
memory
xilinx
device-tree
asked on Stack Overflow Nov 26, 2020 by J. Doe

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0