Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29f55cc6 authored by Eugeniy Paltsev's avatar Eugeniy Paltsev Committed by Linus Walleij
Browse files

dt-bindings: Document the Synopsys GPIO via CREG bindings



This patch adds documentation of device tree bindings for the Synopsys
GPIO via CREG driver.

Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 3ea47b44
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
Synopsys GPIO via CREG (Control REGisters) driver

Required properties:
- compatible : "snps,creg-gpio-hsdk" or "snps,creg-gpio-axs10x".
- reg : Exactly one register range with length 0x4.
- #gpio-cells : Since the generic GPIO binding is used, the
  amount of cells must be specified as 2. The first cell is the
  pin number, the second cell is used to specify optional parameters:
  See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt.
- gpio-controller : Marks the device node as a GPIO controller.
- ngpios: Number of GPIO pins.

Example:

gpio: gpio@f00014b0 {
	compatible = "snps,creg-gpio-hsdk";
	reg = <0xf00014b0 0x4>;
	gpio-controller;
	#gpio-cells = <2>;
	ngpios = <2>;
};