From patchwork Fri Jan 11 15:45:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13992 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7455123E57 for ; Fri, 11 Jan 2013 15:45:38 +0000 (UTC) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by fiordland.canonical.com (Postfix) with ESMTP id 26D10A194D1 for ; Fri, 11 Jan 2013 15:45:38 +0000 (UTC) Received: by mail-vc0-f172.google.com with SMTP id fw7so1559914vcb.31 for ; Fri, 11 Jan 2013 07:45:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=+eBn16U5+wlKU/pgDO4XndC8X/pVnsj+N4Nsh0Df3pA=; b=dldPWg0qrStglAiB2Hrwzl0jA8NukL3flhzKmfFvCI8AJPP+bulY2wVh4BygpuMWWo PSTesGobd7C+QRx/N4YIL0Cf/xpOFKkThejTDHXd28KCm288QgLiQVIiVssKSGe6gyf0 iOcIcwugWhZJhgnfzssskAFzwL6u0GWYavi4Y4+KL/7b4bDjGkaFOjSjsA8CEnvx2U8i g6uW7EkiiupNqB4CladDdYzZn4YUgUzc2htmXlKoJ1sDbKNynIrvSX8ll7UOHOIeLVlw 5bVPEstST8/IWKTOGJ8zozkdyywEUIyKccNu88XsYDdk/q8qWbP/jOkBP5uPfyzVWlDc Dtog== X-Received: by 10.52.176.6 with SMTP id ce6mr82429276vdc.57.1357919137598; Fri, 11 Jan 2013 07:45:37 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp118504veb; Fri, 11 Jan 2013 07:45:36 -0800 (PST) X-Received: by 10.180.102.230 with SMTP id fr6mr16156367wib.4.1357919135943; Fri, 11 Jan 2013 07:45:35 -0800 (PST) Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by mx.google.com with ESMTPS id p6si539546wja.9.2013.01.11.07.45.35 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 07:45:35 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.51 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.51; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.51 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f51.google.com with SMTP id gg4so910119wgb.30 for ; Fri, 11 Jan 2013 07:45:35 -0800 (PST) X-Received: by 10.194.123.105 with SMTP id lz9mr122203149wjb.43.1357919135109; Fri, 11 Jan 2013 07:45:35 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id u6sm7811302wif.2.2013.01.11.07.45.33 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 07:45:34 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones Subject: [PATCH 1/2] ARM: ux500: Provide a link from AB8500 Pinctrl to the PRCMU Date: Fri, 11 Jan 2013 15:45:28 +0000 Message-Id: <1357919129-1928-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQkRAN5WQkADxzbDUjiqsOiRILKk8hQWLBTxKSkhp719yU8+/eqS6Hu1FroYFhuM3stmHfpX 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 --- arch/arm/boot/dts/dbx5x0.dtsi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi index db69f3c..3381ba6 100644 --- a/arch/arm/boot/dts/dbx5x0.dtsi +++ b/arch/arm/boot/dts/dbx5x0.dtsi @@ -170,10 +170,9 @@ gpio-bank = <8>; }; - pinctrl@80157000 { - // This is actually the PRCMU base address - reg = <0x80157000 0x2000>; + pinctrl { compatible = "stericsson,nmk_pinctrl"; + prcm = <&prcmu>; }; usb@a03e0000 { @@ -190,7 +189,7 @@ interrupts = <0 25 0x4>; }; - prcmu@80157000 { + prcmu: prcmu@80157000 { compatible = "stericsson,db8500-prcmu"; reg = <0x80157000 0x2000>; interrupts = <0 47 0x4>;