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 */`
				`};`
			`};`
`
相关推荐
AlfredZhao4 分钟前
堡垒机里 `su - oracle` 被拦截,怎么绕过限制切换用户
linux
zhangjw349 分钟前
1-1 PostgreSQL 多平台环境部署:Linux|Docker|Windows|MacOS 完整实操
linux·docker·postgresql
还卿一钵无情泪10 小时前
Unsloth 微调 构建自己的大模型 没有GPU也能微调
linux·开发语言·人工智能·python·大模型·nlp·unsloth
高山有多高10 小时前
【Linux笔记】IO模型
linux
不会就选b11 小时前
Linux之TCP理论<1>
linux·运维·服务器
小π军11 小时前
操作系统面试题
java·linux·服务器
Lsetea13 小时前
curl用IP测试HTTPS报证书不匹配:--resolve与Host头别混用
linux·https·ssl证书·openssl·curl
Hao28513 小时前
Windows11 下把 WSL2 Ubuntu 26.04 装到 D 盘完整
linux
Android系统攻城狮13 小时前
Linux Gstreamer深度解析之gst_audio_encoder_get_frame_samples_min调用流程与实战(六十)
linux·运维·服务器·音视频·gstreamer音视频·音视频进阶·gstreamer音视频进阶
_upupup14 小时前
Linux中的自动化构建——make/Makefile
linux·运维·自动化