From patchwork Mon Jul 13 09:28:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song <21cnbao@gmail.com> X-Patchwork-Id: 6776671 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EB1979F2F0 for ; Mon, 13 Jul 2015 09:25:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1E08220678 for ; Mon, 13 Jul 2015 09:25:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3394020614 for ; Mon, 13 Jul 2015 09:25:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZEZxS-0001RJ-Ec; Mon, 13 Jul 2015 09:23:30 +0000 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZEZxP-0001OO-Gx for linux-arm-kernel@lists.infradead.org; Mon, 13 Jul 2015 09:23:28 +0000 Received: by pacan13 with SMTP id an13so12938755pac.1 for ; Mon, 13 Jul 2015 02:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=sqI5c1PKM6OX+hhrZsMSL25ektFmAt7On358GSFl0EM=; b=GwbkCSu/3imjDFlzD5cmogD0q5R/wyJURXG0O4FG3D0IefA+iODHgNARV3MGq8UQ9A adVK4wpApEW/hd+WjXbEOOf3hLV5tHpU98r4iYCdenav+ODYN4mK9+J613GG/8pvAHVD rfI20n4VcXloEejfuNBebo6yP7JdLuhMe2E0L7qBgG/zhIw7GrZ6MLUFmHsRHXxTzxyt z81OBpH7n8rK7itBQ6L4w38GwhdlbpwkraTK6ux7IvKfsnBfcM+E41VITm4t6FM/gOu/ EyFKbDLkJpLvLqniSbBwii9cOR1kEegMAx/QKgD3WLm1PcRuePvP0IVQ2B4Vll2dWUce ws1w== X-Received: by 10.70.124.134 with SMTP id mi6mr68457119pdb.104.1436779385782; Mon, 13 Jul 2015 02:23:05 -0700 (PDT) Received: from ip-172-31-29-47.ap-northeast-1.compute.internal (ec2-54-65-106-64.ap-northeast-1.compute.amazonaws.com. [54.65.106.64]) by smtp.gmail.com with ESMTPSA id pc9sm18157587pdb.6.2015.07.13.02.23.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jul 2015 02:23:04 -0700 (PDT) From: Barry Song <21cnbao@gmail.com> To: ohad@wizery.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] ARM: dts: atlas7: set right memory range and hwspinlock for IPC stuff Date: Mon, 13 Jul 2015 09:28:48 +0000 Message-Id: <1436779729-3052-1-git-send-email-21cnbao@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150713_022327_594060_4EE737D6 X-CRM114-Status: GOOD ( 12.31 ) X-Spam-Score: -2.0 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Wei Chen , workgroup.linux@csr.com, Bjorn Andersson , Barry Song MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Chen this patch sets memory range for IPC stuff according to register layout. there is no memory overlap for all components. it also sets the right hwspinlock for these components. Cc: Suman Anna Cc: Bjorn Andersson Signed-off-by: Wei Chen Signed-off-by: Barry Song --- arch/arm/boot/dts/atlas7.dtsi | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/atlas7.dtsi b/arch/arm/boot/dts/atlas7.dtsi index 5dfd3a4..01ae884 100644 --- a/arch/arm/boot/dts/atlas7.dtsi +++ b/arch/arm/boot/dts/atlas7.dtsi @@ -94,39 +94,43 @@ }; ipc@13240000 { - compatible = "sirf,atlas7-ipc"; + compatible = "sirf,atlas7-ipc", "simple-bus"; ranges = <0x13240000 0x13240000 0x00010000>; #address-cells = <1>; #size-cells = <1>; - hwspinlock { + hwlock: hwlock@0 { compatible = "sirf,hwspinlock"; - reg = <0x13240000 0x00010000>; - - num-spinlocks = <30>; + reg = <0x13240400 0x0100>; + #hwlock-cells = <1>; }; ns_m3_rproc@0 { compatible = "sirf,ns2m30-rproc"; - reg = <0x13240000 0x00010000>; + reg = <0x13240108 0x4>, + <0x13240208 0x4>; interrupts = <0 123 0>; + hwlocks = <&hwlock 0>, <&hwlock 1>; }; ns_m3_rproc@1 { compatible = "sirf,ns2m31-rproc"; - reg = <0x13240000 0x00010000>; + reg = <0x1324010C 0x4>, + <0x1324020C 0x4>; interrupts = <0 126 0>; }; ns_kal_rproc@0 { compatible = "sirf,ns2kal0-rproc"; - reg = <0x13240000 0x00010000>; + reg = <0x13240110 0x4>, + <0x13240308 0x4>; interrupts = <0 124 0>; }; ns_kal_rproc@1 { compatible = "sirf,ns2kal1-rproc"; - reg = <0x13240000 0x00010000>; + reg = <0x13240114 0x4>, + <0x1324030C 0x4>; interrupts = <0 127 0>; }; };