Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752868Ab2KSDzB (ORCPT ); Sun, 18 Nov 2012 22:55:01 -0500 Received: from mail-ia0-f174.google.com ([209.85.210.174]:52719 "EHLO mail-ia0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792Ab2KSDy6 (ORCPT ); Sun, 18 Nov 2012 22:54:58 -0500 MIME-Version: 1.0 In-Reply-To: References: <64c5278ebdec503f83e9b7002bf13affb7f3260f.1351225085.git.viresh.kumar@linaro.org> <50991C41.50705@gmail.com> <509FB25F.3030307@gmail.com> <509FFF8B.3010707@gmail.com> Date: Mon, 19 Nov 2012 09:24:58 +0530 Message-ID: Subject: Re: [PATCH Resend V2] dt: add helper function to read u8 & u16 variables & arrays From: Viresh Kumar To: Rob Herring Cc: rob.herring@calxeda.com, grant.likely@secretlab.ca, linaro-dev@lists.linaro.org, andriy.shevchenko@intel.com, patches@linaro.org, devicetree-discuss@lists.ozlabs.org, spear-devel@list.st.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 22 On 12 November 2012 09:03, Viresh Kumar wrote: > On 12 November 2012 01:12, Rob Herring wrote: >> I don't think the size is stored in the dtb. It is only in the dts. You >> need to define the size in the binding definitions and use '/bits/' >> annotation. With this the data is packed. Then the array function used >> should match what the binding defines. Hi Rob, Can you please help me in getting the correct format to do this from dts. I tried: data1 = /bits/ 8 <0x50 0x60 0x70>; as written in your earlier mail... but it didn't worked. Tried to search too, but couldn't find it. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/