From: Stefan Wahren <stefan.wahren@i2se.com>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
linux-arm-kernel@lists.infradead.org
Cc: wxt@rock-chips.com, linux-api@vger.kernel.org,
Kumar Gala <galak@codeaurora.org>,
Rob Herring <robh+dt@kernel.org>,
arnd@arndb.de, sboyd@codeaurora.org, s.hauer@pengutronix.de,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, mporter@konsulko.com,
linux-arm-msm@vger.kernel.org,
Maxime Ripard <maxime.ripard@free-electrons.com>,
pantelis.antoniou@konsulko.com, devicetree@vger.kernel.org,
Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap.
Date: Tue, 30 Jun 2015 19:47:09 +0200 (CEST) [thread overview]
Message-ID: <1183639717.72990.1435686429623.JavaMail.open-xchange@oxbsltgw03.schlund.de> (raw)
In-Reply-To: <558AFC0B.1050400@linaro.org>
Hi Srinivas,
> Srinivas Kandagatla <srinivas.kandagatla@linaro.org> hat am 24. Juni 2015 um
> 20:50 geschrieben:
>
>
>
>
> On 24/06/15 18:47, Stefan Wahren wrote:
> > Hi Srinivas,
> >
> >> Srinivas Kandagatla <srinivas.kandagatla@linaro.org> hat am 24. Juni 2015
> >> um
> >> 15:03 geschrieben:
> >>
> >>
> >>
> >>
> >> On 24/06/15 13:30, Stefan Wahren wrote:
> >>>>> If the question is just about hexdump, then hexdump itself can read
> >>>>> file from given offset and size.
> >>> yes, this is my question at first. Let me show the difference between
> >>> the current implementation and my expectations as a user.
> >>>
> >>> $ hexdump /sys/class/nvmem/mxs-ocotp/nvmem
> >>>
> >>> Current implementation: dump the complete register range defined in DT
> >>>
> >> Its dumping the range which is specified in the provider regmap. If the
> >> requirement is to dump only particular range, this has to be made
> >> explicit while creating regmap, which is to specify the base address to
> >> start from "First data register" and max_register to be "Last data
> >> register "- "First data register"
> >
> > i know about max_register, but i can't find the base address in
> > regmap_config.
> >
> Base is not in the regmap config, its the value which you pass to the
>
thanks for you explanation. I was confused by the word base because in your
example
it is the context variable.
Now i've successful tested my first version of the OCOTP driver based on NVMEM
framework [1].
Currently only the raw sysfs access is working. So i have another question:
How do i get the cell info from the devicetree for the nvmem_config?
I expected a function like of_nvmem_cell_info_get() .
Regards
Stefan
[1] -
https://github.com/lategoodbye/fsl_ocotp/commit/7c98e19755b69f761885b0e1ceb2c258a7c47ade
prev parent reply other threads:[~2015-06-30 17:47 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-22 23:07 Srinivas Kandagatla
2015-06-22 23:08 ` [PATCH v6 1/9] nvmem: Add a simple NVMEM framework for nvmem providers Srinivas Kandagatla
2015-06-23 4:52 ` Joe Perches
2015-06-23 9:26 ` Pantelis Antoniou
2015-06-24 9:56 ` Srinivas Kandagatla
2015-06-23 20:10 ` Stefan Wahren
2015-06-24 9:54 ` Srinivas Kandagatla
2015-06-22 23:08 ` [PATCH v6 2/9] nvmem: Add a simple NVMEM framework for consumers Srinivas Kandagatla
2015-06-23 20:16 ` Stefan Wahren
2015-06-24 9:53 ` Srinivas Kandagatla
2015-06-22 23:08 ` [PATCH v6 3/9] nvmem: Add nvmem_device based consumer apis Srinivas Kandagatla
2015-06-23 20:28 ` Stefan Wahren
2015-06-24 9:52 ` Srinivas Kandagatla
2015-06-22 23:08 ` [PATCH v6 4/9] nvmem: Add bindings for simple nvmem framework Srinivas Kandagatla
2015-06-23 20:35 ` Stefan Wahren
2015-06-24 9:51 ` Srinivas Kandagatla
2015-06-22 23:09 ` [PATCH v6 5/9] Documentation: nvmem: add nvmem api level and how-to doc Srinivas Kandagatla
2015-06-22 23:09 ` [PATCH v6 6/9] nvmem: qfprom: Add Qualcomm QFPROM support Srinivas Kandagatla
2015-06-24 22:07 ` Stephen Boyd
2015-06-22 23:09 ` [PATCH v6 7/9] nvmem: qfprom: Add bindings for qfprom Srinivas Kandagatla
2015-06-23 9:25 ` Rajendra Nayak
2015-06-24 9:49 ` Srinivas Kandagatla
2015-06-22 23:09 ` [PATCH v6 8/9] nvmem: sunxi: Move the SID driver to the nvmem framework Srinivas Kandagatla
2015-06-23 20:44 ` Stefan Wahren
2015-06-24 9:48 ` Srinivas Kandagatla
2015-06-22 23:15 ` [PATCH v6 9/9] nvmem: Add to MAINTAINERS for " Srinivas Kandagatla
2015-06-23 19:47 ` [PATCH v6 0/9] Add simple NVMEM Framework via regmap Stefan Wahren
2015-06-24 5:54 ` Sanchayan Maity
2015-06-24 9:46 ` Srinivas Kandagatla
2015-06-24 12:30 ` Stefan Wahren
2015-06-24 13:03 ` Srinivas Kandagatla
2015-06-24 17:47 ` Stefan Wahren
2015-06-24 18:50 ` Srinivas Kandagatla
2015-06-30 17:47 ` Stefan Wahren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1183639717.72990.1435686429623.JavaMail.open-xchange@oxbsltgw03.schlund.de \
--to=stefan.wahren@i2se.com \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=mporter@konsulko.com \
--cc=pantelis.antoniou@konsulko.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=sboyd@codeaurora.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=wxt@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®