xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSynopsys GPIO via CREG (Control REGisters) driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible : "snps,creg-gpio-hsdk" or "snps,creg-gpio-axs10x".
5*4882a593Smuzhiyun- reg : Exactly one register range with length 0x4.
6*4882a593Smuzhiyun- #gpio-cells : Since the generic GPIO binding is used, the
7*4882a593Smuzhiyun  amount of cells must be specified as 2. The first cell is the
8*4882a593Smuzhiyun  pin number, the second cell is used to specify optional parameters:
9*4882a593Smuzhiyun  See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt.
10*4882a593Smuzhiyun- gpio-controller : Marks the device node as a GPIO controller.
11*4882a593Smuzhiyun- ngpios: Number of GPIO pins.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunExample:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyungpio: gpio@f00014b0 {
16*4882a593Smuzhiyun	compatible = "snps,creg-gpio-hsdk";
17*4882a593Smuzhiyun	reg = <0xf00014b0 0x4>;
18*4882a593Smuzhiyun	gpio-controller;
19*4882a593Smuzhiyun	#gpio-cells = <2>;
20*4882a593Smuzhiyun	ngpios = <2>;
21*4882a593Smuzhiyun};
22