Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933231AbbFWTsd (ORCPT ); Tue, 23 Jun 2015 15:48:33 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:52766 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932765AbbFWTsX (ORCPT ); Tue, 23 Jun 2015 15:48:23 -0400 Date: Tue, 23 Jun 2015 21:47:34 +0200 (CEST) From: Stefan Wahren Reply-To: Stefan Wahren To: Srinivas Kandagatla , 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 Message-ID: <235181230.251177.1435088854197.JavaMail.open-xchange@oxbsltgw00.schlund.de> In-Reply-To: <1435014459-26138-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1435014459-26138-1-git-send-email-srinivas.kandagatla@linaro.org> Subject: Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.6.2-Rev18 X-Originating-Client: com.openexchange.ox.gui.dhtml X-Provags-ID: V03:K0:FGghQ2lO8666dj9AdZvxVMnclvyQyCVAIzxJGa1zzBWz0KUnOhC mVS1ElSD5f1ypGRttH8NNH/EBYbMVSXuG2NxGDznQeMci3cF+/Q1xkburZUxeCb14DHH50o vvjI3ZxWF/1E+mQ5RZg+4fpRJtcLE3jNUAIPgXqjX5bqD3YwSswuDlbU9B/xcKVR8mCgYcZ Fx9RlJcbpTBU/umxBvcfQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:+BrP/3Ik28k=:XilUvdPkE2/HnovSEjgnKW jUeDc6WRu9C7g99qcE32ilD6VkujCjR5xfBWNbyerQILcoTHkOesTy/g79bEPw/504PXoERHE G/uGBjiYWEWcaFQ5ElUV3ZBSBaAtYRPxanZePvlwc1RxXCUzuTOlSYsz720llUg4WiqeqcO7m j74aneaqPKpyUw8IvPLp6ujlQyw51xutCQEWCkhb/bDaFchnfD+lNgqgPneDllneh13IYFjK5 yKHOXSUQr+wqEFSaN6A/wyvKdbnZIugiicmz3vadjj7tBZn09hWhWEgWFbrNHMfIsUnLWRpA6 BXcaJuTJKRZppOdw4B1ZXpqqNSHbaGBKfslPHtnN5Dvfnhqr9U0l0nP0Zxbjs/qhMlWZ3XE9j pbsLKoYNuJ9dL911Z6P4fHB6ageHs7RuXv/Yc9XSWKYsEXHhhdT1piFrZZLIvQpYf/xsi53Ke o6+XPVuxfCax2S4n8OxkvOaA7gqnIQOrDeHV72LsAPaCbtWCu4uZ0JonWJJYCXei0ozmgW59m 5mmxSrNQ8CKvZJnlU/wvKQRcTjR9tvtHa0n9zMNdRy6UFBniy4G1CN/WWBxFVFEt3Vm+nj/Wb yBtjNOY7bqiKDTECpkS1RQa+sBJVHpSuHB9DDfdKb9vLBKU6xE9j75k3RAlAjgf3jxkZJ0WV3 LzTenlmHcTjCFqJGAN2hIsoYjprIbxLEFP3IuLuM7yaPwvg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1352 Lines: 66 Hi Srinivas, > Srinivas Kandagatla hat am 23. Juni 2015 um > 01:07 geschrieben: > > > [...] > > Device Tree: > > /* Provider */ > qfprom: qfprom@00700000 { > ... > > /* Data cells */ > tsens_calibration: calib@404 { > reg = <0x404 0x10>; > }; > > tsens_calibration_bckp: calib_bckp@504 { > reg = <0x504 0x11>; > bit-offset = 6; > nbits = 128; > }; > > pvs_version: pvs-version@6 { > reg = <0x6 0x2> > bit-offset = 7; > nbits = 2; > }; > > speed_bin: speed-bin@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 -- 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/