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: 1966651 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 86F013FE37 for ; Fri, 11 Jan 2013 15:48:40 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Ttgnf-0007hg-Fy; Fri, 11 Jan 2013 15:45:43 +0000 Received: from mail-wi0-f171.google.com ([209.85.212.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TtgnZ-0007fu-0p for linux-arm-kernel@lists.infradead.org; Fri, 11 Jan 2013 15:45:38 +0000 Received: by mail-wi0-f171.google.com with SMTP id hn14so2026321wib.4 for ; Fri, 11 Jan 2013 07:45:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=+eBn16U5+wlKU/pgDO4XndC8X/pVnsj+N4Nsh0Df3pA=; b=BfUgQ51Si4BpWiHk/1Ld7C96GGskNFgPRxVBeR9sN+macK2FvbGDquetWM+FxgkClN jo+ImfS9/g25x1v6F3hF9zhIZ6/02hacy1/MLAsv/0eo+LXnujlekEgO9XiW9XYaWDGY aC5/rYYSyGwDlZw81PJb5Le4J3izAwPcRqGtcutSlLvyT1Z0JRAKh5zj3u+cYARYDCz8 rZ/TPOr4kl5mSkGTmu/j5uTf6vjHgMEuqghzlcqbBuvmvr0B4bPSN1W6Ih/9/RLqxlXk GetVyVCEbYiYZCuc08VWOKNU/XfPaYFbxCQYWlSYyYozK/cL3eMfYzhcTkQ0m0+Kn72n 242g== 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 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: ALoCoQnH6KBeYycvo6xVHcUCfvmsmV/G2J3AwiHfDFf91pqe4k5qIBgQ+XFOHcSNkT4nRmSdtmbK X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130111_104537_275986_B5D056DC X-CRM114-Status: GOOD ( 12.44 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.171 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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>;