Android M版本中gpio几种常见设定的pinctrl配置
来源:互联网 发布:移动数据终端 市场 编辑:程序博客网 时间:2024/06/07 19:42
Android M版本中gpio几种常见设定的pinctrl配置
[DESCRIPTION]
pinctrl的配置file是<project>.dts
备注:配置是以mt6735上gpio84举例的
1.配置成输入上拉
&pio {
test_pull_up: test_pull_up {
pins_cmd_dat {
pins = <PINMUX_GPIO84__FUNC_GPIO84>;
slew-rate = <0>;
bias-pull-up = <00>;
};
};
};
2.配置成输入下拉
&pio {
test_pull_down: test_pull_down {
pins_cmd_dat {
pins = <PINMUX_GPIO84__FUNC_GPIO84>;
slew-rate = <0>;
bias-pull-down = <00>;
};
};
};
3.配置成输入pull disable
&pio {
test_pull_none: test_pull_none {
pins_cmd_dat {
pins = <PINMUX_GPIO84__FUNC_GPIO84>;
slew-rate = <0>;
bias-disable;
};
};
};
4.配置成输出high
&pio {
test_out_high: test_out_high {
pins_cmd_dat {
pins = <PINMUX_GPIO84__FUNC_GPIO84>;
slew-rate = <1>;
bias-disable;
output-high;
};
};
};
5.配置成输出low
&pio {
test_out_low: test_out_low {
pins_cmd_dat {
pins = <PINMUX_GPIO84__FUNC_GPIO84>;
slew-rate = <1>;
bias-disable;
output-low;
};
};
};
6.配置成特定的mode
&pio {
test_mode: test_mode {
pins_cmd_dat {
pins = <PINMUX_GPIO84__FUNC_KCOL0>;
};
};
};
关于更多的gpio使用,请参考DCC网站上的文档:Gpio_Usage_Guide_For_Android_M
0 0
- Android M版本中gpio几种常见设定的pinctrl配置
- GPIO的几种配置模式
- GPIO几种配置的作用
- linux设备树中pinctrl的配置(上)
- linux设备树中pinctrl的配置(下)
- linux设备树中pinctrl的配置(上)
- 基于pinctrl 和 devcice tree的SOC GPIO 使用
- Android中ListView的几种常见的优化方法
- Android中ListView的几种常见的优化方法
- Android中ListView的几种常见的优化方法
- Android中ListView的几种常见的优化方法
- Android中ListView的几种常见的优化方法
- Android中ListView的几种常见的优化方法
- Android中ListView的几种常见的优化方法
- Android中ListView的几种常见的优化方法
- Android中ListView的几种常见的优化方法
- Android中常见的几种定时刷新方式
- 在Android中常见的几种刷新方式
- Codeforces 83B Doctor(二分)
- C语言中运算符优先级记忆方法
- 每个架构师都应该研究下康威定律
- 数组名,数组指针的区别:
- IOS 获取父类的所有子类 全局替换类方法
- Android M版本中gpio几种常见设定的pinctrl配置
- POJ2785
- 装饰和继承
- linux 用户和组管理
- 大数据与数据脱敏
- 显示与隐藏软键盘
- appium第一个脚本
- Log4net使用
- 获取自己应用程序的名称和图标