Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Pramod Kumar <pramodku@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Pramod Kumar and committed by
Linus Walleij
03e09bc1 10af309a

+9 -3
+9 -3
Documentation/devicetree/bindings/pinctrl/brcm,cygnus-gpio.txt
··· 26 26 - interrupt-controller: 27 27 Specifies that the node is an interrupt controller 28 28 29 - - pinmux: 30 - Specifies the phandle to the IOMUX device, where pins can be individually 31 - muxed to GPIO 29 + - gpio-ranges: 30 + Specifies the mapping between gpio controller and pin-controllers pins. 31 + This requires 4 fields in cells defined as - 32 + 1. Phandle of pin-controller. 33 + 2. GPIO base pin offset. 34 + 3 Pin-control base pin offset. 35 + 4. number of gpio pins which are linearly mapped from pin base. 32 36 33 37 Supported generic PINCONF properties in child nodes: 34 38 ··· 82 78 gpio-controller; 83 79 interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; 84 80 interrupt-controller; 81 + gpio-ranges = <&pinctrl 0 42 1>, 82 + <&pinctrl 1 44 3>; 85 83 }; 86 84 87 85 /*