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}

  • 相关阅读:
    test example
    SSD: ReLU6
    jupyter
    ubuntu+anaconda
    linux动态库
    ssd制作数据和训练
    ncnn框架
    Lock->ReentrantLock->ReentrantReadWriteLock简介
    Synchronized简介与原理
    ThreadLocal简介与原理
  • 原文地址:https://www.cnblogs.com/lianghong881018/p/10244695.html
Copyright © 2011-2022 走看看