您尚未登录。

楼主 # 2021-08-13 18:22:42

XIVN1987
会员
注册时间: 2019-08-30
已发帖子: 231
积分: 289.5

Devicetree Spec 上的 Specifier Mapping Example 什么意思?看迷糊了,哪位大神给讲讲。。

如下图:

Specifier%20Mapping%20Example%201.png

Specifier%20Mapping%20Example%202.png

实在看不懂,,哪位大神给讲讲,,谢谢

离线

楼主 #1 2021-08-14 07:45:01

XIVN1987
会员
注册时间: 2019-08-30
已发帖子: 231
积分: 289.5

Re: Devicetree Spec 上的 Specifier Mapping Example 什么意思?看迷糊了,哪位大神给讲讲。。

又读了几遍,,感觉意思是:
expansion_device 的 reset 使用的 GPIO 是“<&soc_gpio1 3 GPIO_ACTIVE_LOW>”,推导如下:
1、查表前先执行 mask,<2 GPIO_ACTIVE_LOW> & <0xf 0x0> 得 <0x2 0>
2、使用<0x2 0>查表,查得 specifier parent 为 &soc_gpio1,parent specifier 为 <3 0>
3、pass-thru 为 <0x0 0x1>,因此 <2 GPIO_ACTIVE_LOW> 的第二个 cell 的最低位需要无修改地从 child node 传递给 parent node,即 parent node 的第二个 cell变为 GPIO_ACTIVE_LOW

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn