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}