imx6 可以参考http://blog.csdn.net/shengzhadon/article/details/49908439
下面的节点,pinctrl-0和bt-gpios的关系是什么?
- pinctrl-0描述了pin脚mux复用情况
- bt-gpios则设置pin脚的默认状态
GPIO节点意义:
- pinctrl-names定义了clientdevice用到的state列表,一种是字符串,另一种是数字; 0表示pinctrl-0, 1表示pintrl-1.
wifi_bt_reset{ pinctrl-names = "default"; pinctrl-0 = <&wifi_reset_pins>; compatible = "gpio_reset"; bt-gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>; wifi-gpios = <&sc16is752 4 GPIO_ACTIVE_HIGH>; }; wifi_reset_pins: wifi_reset_pins{ pinctrl-single, pins = < 0x1d8 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) 0x1dc (PIN_OUTPUT_PULLDOWN | MUX_MODE7) >; };
时间: 2024-10-14 16:11:23