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 */`
				`};`
			`};`
`
相关推荐
琥珀.1 小时前
mysql中json数组转列表查询
linux·运维·服务器
dawnsky.liu2 小时前
在 RHEL 中使用 goose 实现远程主机管理
linux·运维·ai
Linux运维技术栈4 小时前
CVE-2026-91403 高危漏洞修复:Rocky Linux 9 多版本 JDK 环境清理实操
java·linux·运维
slongzhang_5 小时前
linux 递归删除源码文件|递归删除目录下 *.js,但排除 *.min.js
linux·开发语言·javascript
叼烟扛炮5 小时前
Linux 学习笔记(三十三):线程互斥——互斥锁(Mutex)与死锁
linux·运维·服务器·笔记·学习·1024程序员节
无足鸟ICT6 小时前
【RHCA+】who命令(查看已登陆用户)
linux·运维·服务器
Escalating_xu6 小时前
【Linux 网络编程】应用层协议 HTTP(下):Header、连接管理与 C++ HTTP 服务器
linux·服务器·网络
GeW8 小时前
新质生产力路线图落地,Linux运维与数据库架构师的机会清单
linux
Brilliantwxx8 小时前
【Linux】 文件访问与路径解析:目录、文件名、dentry、路径缓冲与 dcache 全解析
linux·运维·服务器·开发语言·spring
father_12279 小时前
Greenplum 集群故障恢复与主备同步机制实战
linux·网络·greenplum