From: Vignesh R <vigneshr@ti.com>
To: Felipe Balbi <balbi@ti.com>, Rob Herring <robh@kernel.org>
Cc: Mark Brown <broonie@kernel.org>, Tony Lindgren <tony@atomide.com>,
Michal Suchanek <hramrach@gmail.com>,
Russell King <linux@arm.linux.org.uk>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-omap@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mtd@lists.infradead.org>, <linux-spi@vger.kernel.org>
Subject: Re: [PATCH v2 5/5] ARM: dts: AM4372: add entry for qspi mmap region
Date: Fri, 6 Nov 2015 17:51:10 +0530 [thread overview]
Message-ID: <563C9B36.3010107@ti.com> (raw)
In-Reply-To: <878u6b1zgg.fsf@saruman.tx.rr.com>
On 11/06/2015 10:44 AM, Felipe Balbi wrote:
>
> Hi,
>
> Rob Herring <robh@kernel.org> writes:
>> On Tue, Nov 03, 2015 at 03:36:14PM +0530, Vignesh R wrote:
>>> Add qspi memory mapped region entries for AM43xx based SoCs. Also,
>>> update the binding documents for the controller to document this change.
>>>
>>> Signed-off-by: Vignesh R <vigneshr@ti.com>
>>
>> Acked-by: Rob Herring <robh@kernel.org>
>>
>>> ---
>>> Documentation/devicetree/bindings/spi/ti_qspi.txt | 5 +++--
>>> arch/arm/boot/dts/am4372.dtsi | 4 +++-
>>> 2 files changed, 6 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/spi/ti_qspi.txt b/Documentation/devicetree/bindings/spi/ti_qspi.txt
>>> index f05dd631bef1..05488970060b 100644
>>> --- a/Documentation/devicetree/bindings/spi/ti_qspi.txt
>>> +++ b/Documentation/devicetree/bindings/spi/ti_qspi.txt
>>> @@ -17,9 +17,10 @@ Recommended properties:
>>>
>>> Example:
>>>
>>> +For am4372:
>>> qspi: qspi@4b300000 {
>>> - compatible = "ti,dra7xxx-qspi";
>>> - reg = <0x47900000 0x100>, <0x30000000 0x3ffffff>;
>>> + compatible = "ti,am4372-qspi";
>>> + reg = <0x47900000 0x100>, <0x30000000 0x4000000>;
>>> reg-names = "qspi_base", "qspi_mmap";
>>> #address-cells = <1>;
>>> #size-cells = <0>;
>
> and how does the user for this look like ? Don't you need to give this a
> proper 'ranges' binding ?
>
There are no other users of qspi_mmap region except ti-qspi driver itself:
In probe:
res_mmap = platform_get_resource_byname(pdev,
IORESOURCE_MEM, "qspi_mmap");
qspi->mmap_base = devm_ioremap_resource(&pdev->dev, res_mmap);
and for reading from mmap region:
memcpy_fromio(buf, qspi->mmap_base + from, len);
--
Regards
Vignesh
prev parent reply other threads:[~2015-11-06 12:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-03 10:06 [PATCH v2 0/5] Add memory mapped read support for ti-qspi Vignesh R
2015-11-03 10:06 ` [PATCH v2 1/5] spi: introduce mmap read support for spi flash devices Vignesh R
2015-11-03 11:19 ` Michal Suchanek
2015-11-04 4:48 ` Vignesh R
2015-11-04 14:39 ` Mark Brown
2015-11-05 12:29 ` Vignesh R
2015-11-05 15:29 ` Mark Brown
2015-11-03 10:06 ` [PATCH v2 2/5] spi: spi-ti-qspi: add mmap mode read support Vignesh R
2015-11-04 14:41 ` Mark Brown
2015-11-05 6:16 ` Vignesh R
2015-11-03 10:06 ` [PATCH v2 3/5] mtd: devices: m25p80: add support for mmap read request Vignesh R
2015-11-03 10:06 ` [PATCH v2 4/5] ARM: dts: DRA7: add entry for qspi mmap region Vignesh R
2015-11-05 16:36 ` Rob Herring
2015-11-03 10:06 ` [PATCH v2 5/5] ARM: dts: AM4372: " Vignesh R
2015-11-05 23:51 ` Rob Herring
2015-11-06 5:14 ` Felipe Balbi
2015-11-06 12:21 ` Vignesh R [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=563C9B36.3010107@ti.com \
--to=vigneshr@ti.com \
--cc=balbi@ti.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hramrach@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=robh@kernel.org \
--cc=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).