coding无法使用浏览器打开,必须用git工具下载:
git clone https://e.coding.net/weidongshan/linux/doc_and_source_for_drivers.git
参考资料:
驱动程序位置:
drivers\pinctrl\freescale\pinctrl-imx6ul.c
drivers\pinctrl\freescale\pinctrl-imx.c
调用过程:
imx6ul_pinctrl_probe
imx_pinctrl_probe(pdev, pinctrl_info);
imx_pinctrl_desc->name = dev_name(&pdev->dev);
imx_pinctrl_desc->pins = info->pins;
imx_pinctrl_desc->npins = info->npins;
imx_pinctrl_desc->pctlops = &imx_pctrl_ops;
imx_pinctrl_desc->pmxops = &imx_pmx_ops;
imx_pinctrl_desc->confops = &imx_pinconf_ops;
imx_pinctrl_desc->owner = THIS_MODULE;
ret = imx_pinctrl_probe_dt(pdev, info);
ipctl->pctl = devm_pinctrl_register(&pdev->dev,
imx_pinctrl_desc, ipctl);
imx_pinctrl_desc->pins = info->pins;
imx_pinctrl_desc->npins = info->npins;
可以在开发板上查看:
/sys/kernel/debug/pinctrl/20e0000.iomuxc]# cat pins
static const struct pinctrl_ops imx_pctrl_ops = {
.get_groups_count = imx_get_groups_count,
.get_group_name = imx_get_group_name,
.get_group_pins = imx_get_group_pins,
.pin_dbg_show = imx_pin_dbg_show,
.dt_node_to_map = imx_dt_node_to_map,
.dt_free_map = imx_dt_free_map,
};
某组引脚中,有哪些引脚?这要分析设备树:imx_pinctrl_probe_dt。
[root@100ask:/sys/kernel/debug/pinctrl/20e0000.iomuxc]# cat pingroups
分析:imx_pinctrl_probe_dt
下节视频讲解。
下节视频讲解。
设备树解析情景分析
分析:imx_pinctrl_probe_dt
下节视频讲解。
下节视频讲解。