1 Scope of Document
This document describes how to export gpio interface under gpio-export driverios
2 Requiremen
2.1 Function Requirement
We can pull up and pull down gpio under /sys/class/gpio dirui
2.2 Performance Requirement
NAspa
3 Hardware Overview
NAorm
4 Functional Description
4.1 Functional Block Diagram
NAip
5 Porting
5.1 kernel configure
dts file change:rem
gpio_export {io
compatible = "gpio-export";form
#size-cells = <0>;class
zigbee_rst {file
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}