Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752155AbbFXJrJ (ORCPT ); Wed, 24 Jun 2015 05:47:09 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:33031 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbbFXJrD (ORCPT ); Wed, 24 Jun 2015 05:47:03 -0400 Message-ID: <558A7C92.2040102@linaro.org> Date: Wed, 24 Jun 2015 10:46:58 +0100 From: Srinivas Kandagatla User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Stefan Wahren , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org CC: wxt@rock-chips.com, linux-api@vger.kernel.org, Kumar Gala , Rob Herring , sboyd@codeaurora.org, arnd@arndb.de, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, mporter@konsulko.com, Maxime Ripard , pantelis.antoniou@konsulko.com, devicetree@vger.kernel.org, Mark Brown Subject: Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap. References: <1435014459-26138-1-git-send-email-srinivas.kandagatla@linaro.org> <235181230.251177.1435088854197.JavaMail.open-xchange@oxbsltgw00.schlund.de> In-Reply-To: <235181230.251177.1435088854197.JavaMail.open-xchange@oxbsltgw00.schlund.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1081 Lines: 40 On 23/06/15 20:47, Stefan Wahren wrote: >> 0001000 >> > > i want to port OCOTP driver for MXS, which hasn't MMIO. From my understanding That's cool. > hexdump would readout the complete register range defined in provider DT node. > > How can i achieve that hexdump only reads the data area within the register > range? If the question is just about hexdump, then hexdump itself can read file from given offset and size. But I believe the real question is "How can we dump each nvmem cell independently" In one of my replies I mentioned that am planning to add sysfs entries under /sys/class/nvmem//cells/ ex: for qfprom tsens calibration it would look like: $ hexdump /sys/class/nvmem/qfprom0/cells/tsens_calibration 0000000 e000 0c00 0c00 0000 0c00 ... Is that what you guys are looking for? --srini > > Stefan -- 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/