Commit 03e09bc1 authored by Pramod Kumar's avatar Pramod Kumar Committed by Linus Walleij

pinctrl: cygnus: Optional DT property to support pin mappings

If GPIO controller's pins are muxed, pin-controller subsystem
need to be intimated by defining mapping between gpio and
pinmux controller. This patch adds required properties to
define this mapping via DT.
Signed-off-by: default avatarPramod Kumar <pramodku@broadcom.com>
Reviewed-by: default avatarRay Jui <rjui@broadcom.com>
Reviewed-by: default avatarScott Branden <sbranden@broadcom.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 10af309a
...@@ -26,9 +26,13 @@ Optional properties: ...@@ -26,9 +26,13 @@ Optional properties:
- interrupt-controller: - interrupt-controller:
Specifies that the node is an interrupt controller Specifies that the node is an interrupt controller
- pinmux: - gpio-ranges:
Specifies the phandle to the IOMUX device, where pins can be individually Specifies the mapping between gpio controller and pin-controllers pins.
muxed to GPIO This requires 4 fields in cells defined as -
1. Phandle of pin-controller.
2. GPIO base pin offset.
3 Pin-control base pin offset.
4. number of gpio pins which are linearly mapped from pin base.
Supported generic PINCONF properties in child nodes: Supported generic PINCONF properties in child nodes:
...@@ -78,6 +82,8 @@ Example: ...@@ -78,6 +82,8 @@ Example:
gpio-controller; gpio-controller;
interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller; interrupt-controller;
gpio-ranges = <&pinctrl 0 42 1>,
<&pinctrl 1 44 3>;
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment