[PATCH v6 0/9] Add simple NVMEM Framework via regmap.
Stefan Wahren
stefan.wahren at i2se.com
Tue Jun 23 12:47:34 PDT 2015
Hi Srinivas,
> Srinivas Kandagatla <srinivas.kandagatla at linaro.org> hat am 23. Juni 2015 um
> 01:07 geschrieben:
>
>
> [...]
>
> Device Tree:
>
> /* Provider */
> qfprom: qfprom at 00700000 {
> ...
>
> /* Data cells */
> tsens_calibration: calib at 404 {
> reg = <0x404 0x10>;
> };
>
> tsens_calibration_bckp: calib_bckp at 504 {
> reg = <0x504 0x11>;
> bit-offset = 6;
> nbits = 128;
> };
>
> pvs_version: pvs-version at 6 {
> reg = <0x6 0x2>
> bit-offset = 7;
> nbits = 2;
> };
>
> speed_bin: speed-bin at c{
> reg = <0xc 0x1>;
> bit-offset = 2;
> nbits = 3;
>
> };
> ...
> };
>
> userspace interface: binary file in /sys/class/nvmem/*/nvmem
>
> ex:
> hexdump /sys/class/nvmem/qfprom0/nvmem
>
> 0000000 0000 0000 0000 0000 0000 0000 0000 0000
> *
> 00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00
> 0000000 0000 0000 0000 0000 0000 0000 0000 0000
> ...
> *
> 0001000
>
i want to port OCOTP driver for MXS, which hasn't MMIO. From my understanding
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?
Stefan
More information about the linux-arm-kernel
mailing list