Back to home page

OSCL-LXR

 
 

    


0001 Synopsys GPIO via CREG (Control REGisters) driver
0002 
0003 Required properties:
0004 - compatible : "snps,creg-gpio-hsdk" or "snps,creg-gpio-axs10x".
0005 - reg : Exactly one register range with length 0x4.
0006 - #gpio-cells : Since the generic GPIO binding is used, the
0007   amount of cells must be specified as 2. The first cell is the
0008   pin number, the second cell is used to specify optional parameters:
0009   See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt.
0010 - gpio-controller : Marks the device node as a GPIO controller.
0011 - ngpios: Number of GPIO pins.
0012 
0013 Example:
0014 
0015 gpio: gpio@f00014b0 {
0016         compatible = "snps,creg-gpio-hsdk";
0017         reg = <0xf00014b0 0x4>;
0018         gpio-controller;
0019         #gpio-cells = <2>;
0020         ngpios = <2>;
0021 };