Linux-GPIO 配置pull up、pull down、no pull

|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| author | daisy.skye的博客_CSDN博客-Qt,嵌入式,Linux领域博主 https://blog.csdn.net/qq_40715266?type=blog |
| 系列 | 基于RK3568的Linux驱动开发------GPIO知识点(一)_daisy.skye的博客-CSDN博客基于RK3568的Linux驱动开发------ GPIO知识点(二)_daisy.skye的博客-CSDN博客 |

|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| adb 查看 显示不同的状态 | |
| NO PULL | bias-disable; /* No PULL */ drive-strength = <2>; /* 2 MA */ |

代码修改:

复制代码
			qdsd_cmd_trace: cmd_trace {`
				`config` `{`
`					pins =` `"gpio2";`
`					bias-pull-down;` `/* pull down */`
`					drive-strength =` `<2>;` `/* 2 MA */`
				`};`
			`};`
`			qdsd_cmd_swduart: cmd_uart {`
				`config` `{`
`					pins =` `"gpio3";`
`					bias-pull-up;` `/* pull up */`
`					drive-strength =` `<2>;` `/* 2 MA */`
				`};`
			`};`
`			qdsd_cmd_jtag: cmd_jtag {`
				`config` `{`
`					pins =` `"gpio4";`
`					bias-disable;` `/* NO pull */`
`					drive-strength =` `<8>;` `/* 8 MA */`
				`};`
			`};`
`
相关推荐
用户2367829801681 小时前
Linux systemctl 服务管理命令:从 systemd 架构到实战技巧
linux
LIZHUOLONG12 小时前
linux 设备初始化
linux·运维·服务器
雪霁清寒2 小时前
麒麟V10用MobaXterm远程连接SSH偶尔卡顿的问题
linux·ssh
ylscode2 小时前
Linux CIFSwitch 内核新漏洞允许攻击者获得 root 权限
linux·运维·服务器
诸葛务农3 小时前
共沸脱水技术及其在光刻胶用PGMEA纯化中的应用(中)
linux·数据库·人工智能
lld9510273 小时前
(二)从验证到执行:策略实时运行全链路
linux·服务器·数据库
坤昱3 小时前
cfs调度类深入解刨——最新内核细节分析5
linux·分布式·cfs调度·eevdf调度·linux调度·linux技术·kernel最新版本内容
阿洛学长3 小时前
Kali Linux 虚拟机安装(VMware Workstation 17)
java·linux·服务器
H Journey3 小时前
source命令、.bashrc 、.bash_profile、/etc/profile配置文件详解
linux·.bashrc
上天_去_做颗惺星 EVE_BLUE3 小时前
Ubuntu Android 虚拟机安装使用教程
android·linux·测试工具·ubuntu·安卓