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

ARM: ux500: Provide a link from AB8500 Pinctrl to the PRCMU

The AB8500 Pinctrl driver uses PRCMU register addresses to
control Pinctrl related functions. For this to happen, the
Pinctrl driver needs the PRCMU base to work from. We can do
that using standard Open Firmware (of_*) function calls, but
first we need a mechanism to gain access to the PRCMU
device node. We're going to use a Phandle in this case.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
[Added reg-names="prcmu"; to the prcmu DT node]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Lee Jones and committed by
Linus Walleij
8979cfef 7452b64d

+4 -4
+4 -4
arch/arm/boot/dts/dbx5x0.dtsi
··· 170 170 gpio-bank = <8>; 171 171 }; 172 172 173 - pinctrl@80157000 { 174 - // This is actually the PRCMU base address 175 - reg = <0x80157000 0x2000>; 173 + pinctrl { 176 174 compatible = "stericsson,nmk_pinctrl"; 175 + prcm = <&prcmu>; 177 176 }; 178 177 179 178 usb@a03e0000 { ··· 189 190 interrupts = <0 25 0x4>; 190 191 }; 191 192 192 - prcmu@80157000 { 193 + prcmu: prcmu@80157000 { 193 194 compatible = "stericsson,db8500-prcmu"; 194 195 reg = <0x80157000 0x1000>; 196 + reg-names = "prcmu"; 195 197 interrupts = <0 47 0x4>; 196 198 #address-cells = <1>; 197 199 #size-cells = <1>;