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 小时前
终于搞懂 Kueue:5 个核心对象一次讲透
linux·docker·ai·云原生·kubernetes
An_s2 小时前
机器学习python之识别图中物品信息
java·linux·开发语言
Championship.23.243 小时前
Linux 3.0 LVDS驱动开发详解
linux·运维·驱动开发·lvds
风向决定发型丶4 小时前
Shell中的特殊变量
linux·运维·bash
mounter6254 小时前
走向长时运行:引入协程(Coroutines),打破 BPF 程序的“一堂到底”限制
linux·ebpf·kernel
运维大师5 小时前
【Linux运维极简教程】05-软件包管理
linux·运维·服务器
六点_dn5 小时前
Linux学习笔记-shell运算符
linux·笔记·学习
hehelm5 小时前
IO 多路复用 — Reactor
linux·服务器·网络·数据库·c++
浅止菌6 小时前
嵌入式项目Makefile越写越乱?一张万能模板+5个技巧,告别重复劳动
linux
刘某的Cloud7 小时前
手工配置nginx的systemd服务
linux·运维·网络·nginx·systemd