From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbbGHX4p (ORCPT ); Wed, 8 Jul 2015 19:56:45 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33641 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbbGHX4h (ORCPT ); Wed, 8 Jul 2015 19:56:37 -0400 Message-ID: <559DB8B2.2090202@codeaurora.org> Date: Wed, 08 Jul 2015 16:56:34 -0700 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: bjorn@kryo.se, Andy Gross , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala CC: Jeffrey Hugo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2 01/11] soc: qcom: Add device tree binding for SMEM References: <1435355419-23602-1-git-send-email-bjorn.andersson@sonymobile.com> <1435355419-23602-2-git-send-email-bjorn.andersson@sonymobile.com> In-Reply-To: <1435355419-23602-2-git-send-email-bjorn.andersson@sonymobile.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/26/2015 02:50 PM, bjorn@kryo.se wrote: > += EXAMPLE > +The following example shows the SMEM setup for MSM8974, with a main SMEM region > +at 0xfa00000 and an auxiliary region at 0xfc428000: > + > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + smem_region: smem@fa00000 { > + reg = <0xfa00000 0x200000>; > + no-map; > + }; > + }; > + > + smem@fa00000 { This should be smem@fc428000 matching the first reg property. It's weird though, because if smem is using a secondary region it will be under the SoC node and have a reg property. Otherwise it would be directly under the root node and only have a memory-region. It would be nice if we could somehow move the rpm message ram (0xfc428000) into the reserved-memory node so that we could use memory-region for both regions. > + compatible = "qcom,smem"; > + > + memory-region = <&smem_region>; > + reg = <0xfc428000 0x4000>; > + > + hwlocks = <&tcsr_mutex 3>; > + }; -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project