zoukankan      html  css  js  c++  java
  • Openwrt Export Gpio Configure (7)

    1      Scope of Document

    This document describes how to export gpio interface under gpio-export driver

    2      Requiremen

    2.1     Function Requirement

    We can pull up and pull down gpio under /sys/class/gpio dir

    2.2     Performance Requirement

    NA

    3      Hardware Overview

    NA

                    

    4      Functional Description

    4.1     Functional Block Diagram

    NA

                        

    5      Porting

    5.1     kernel configure

    dts file change:

           gpio_export {

                  compatible = "gpio-export";

                  #size-cells = <0>;

                 

                  zigbee_rst {

                         gpio-export,name = "zigbee_rst";

                         gpio-export,output = <1>;

                         gpios = <&gpio0 11 0>;

                  };

                  rst_4g {

                         gpio-export,name = "rst_4g";

                         gpio-export,output = <1>;

                         gpios = <&gpio1 4 0>;

                  };

                 

                  power_4g {

                         gpio-export,name = "power_4g";

                         gpio-export,output = <1>;

                         gpios = <&gpio0 5 0>;

                  };

           };

          

    5.2     gpio interface

    /sys/class/gpio/{power_4g rst_4g zigbee_rst}

  • 相关阅读:
    python+django+uwsgi 搭建环境
    python系列-3 pyenv的使用
    生产消费者队列(TaskCompletionSource)的应用
    socket
    Redis 参考
    webform调用windows服务
    文件编码格式获取
    webform版部分视图与请求拦截
    asp.net 自定义节配置 (configSections下的section)
    组合配置草稿
  • 原文地址:https://www.cnblogs.com/lianghong881018/p/10244695.html
Copyright © 2011-2022 走看看