]> git.openpandora.org Git - pandora-kernel.git/commitdiff
pinctrl: nomadik: assure GPIO chips are populated
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 17 Jun 2015 21:10:21 +0000 (23:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jul 2015 07:11:14 +0000 (09:11 +0200)
If the pin controller probes before the GPIO driver it needs to
populate the GPIO driver state containers ahead of the actual
driver probe as the addresses are used by both halves of the
driver.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/ste,nomadik.txt
drivers/pinctrl/nomadik/pinctrl-nomadik.c

index f63fcb3ed35288c880b832de582867b969e7a7e0..2213802435e00da9be96ae94c3cdad69756f7974 100644 (file)
@@ -3,7 +3,9 @@ ST Ericsson Nomadik pinmux controller
 Required properties:
 - compatible: "stericsson,db8500-pinctrl", "stericsson,db8540-pinctrl",
               "stericsson,stn8815-pinctrl"
-- reg: Should contain the register physical address and length of the PRCMU.
+- nomadik-gpio-chips: array of phandles to the corresponding GPIO chips
+              (these have the register ranges used by the pin controller).
+- prcm: phandle to the PRCMU managing the back end of this pin controller
 
 Please refer to pinctrl-bindings.txt in this directory for details of the
 common pinctrl bindings used by client devices, including the meaning of the
@@ -74,7 +76,8 @@ Example board file extract:
 
        pinctrl@80157000 {
                compatible = "stericsson,db8500-pinctrl";
-               reg = <0x80157000 0x2000>;
+               nomadik-gpio-chips = <&gpio0>, <&gpio1>, <&gpio2>, <&gpio3>;
+               prcm = <&prcmu>;
 
                pinctrl-names = "default";