【发布时间】:2018-08-23 13:44:05
【问题描述】:
.dts 中的以下 sn-p 描述了保留的内存:
reserved-memory {
#address-cells = <0x2>;
#size-cells = <0x2>;
ranges;
cma_reserved: linux,cma {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x1000000>; // 16MB
alignment = <0x0 0x2000>; // 8KB
linux,cma-default;
};
ion_reserved: ion@200000000 {
compatible = "ion-region";
reg = <0x2 0x0 0x1 0x0>; // 4GB
};
};
我可以理解ion_reserved 部分,但不理解cma_reserved 部分,尤其是这16MB 内存的地址。
谢谢!
【问题讨论】:
-
使用
compatible属性字符串来识别依赖于该节点的驱动程序。
标签: device-tree