Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1261359 > unrolled thread
| Started by | Vignesh R <vigneshr@ti.com> |
|---|---|
| First post | 2015-11-03 11:10 +0100 |
| Last post | 2015-11-06 13:30 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 5/5] ARM: dts: AM4372: add entry for qspi mmap region Vignesh R <vigneshr@ti.com> - 2015-11-03 11:10 +0100
Re: [PATCH v2 5/5] ARM: dts: AM4372: add entry for qspi mmap region Rob Herring <robh@kernel.org> - 2015-11-06 01:00 +0100
Re: [PATCH v2 5/5] ARM: dts: AM4372: add entry for qspi mmap region Felipe Balbi <balbi@ti.com> - 2015-11-06 06:20 +0100
Re: [PATCH v2 5/5] ARM: dts: AM4372: add entry for qspi mmap region Vignesh R <vigneshr@ti.com> - 2015-11-06 13:30 +0100
| From | Vignesh R <vigneshr@ti.com> |
|---|---|
| Date | 2015-11-03 11:10 +0100 |
| Subject | [PATCH v2 5/5] ARM: dts: AM4372: add entry for qspi mmap region |
| Message-ID | <qqGHq-1jJ-37@gated-at.bofh.it> |
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>
---
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>;
diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
index 0447c04a40cc..1b2c545f3f2c 100644
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -962,7 +962,9 @@
qspi: qspi@47900000 {
compatible = "ti,am4372-qspi";
- reg = <0x47900000 0x100>;
+ reg = <0x47900000 0x100>,
+ <0x30000000 0x4000000>;
+ reg-names = "qspi_base", "qspi_mmap";
#address-cells = <1>;
#size-cells = <0>;
ti,hwmods = "qspi";
--
2.6.2
--
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/
[toc] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2015-11-06 01:00 +0100 |
| Message-ID | <qrCBI-5dP-9@gated-at.bofh.it> |
| In reply to | #1261359 |
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>;
> diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
> index 0447c04a40cc..1b2c545f3f2c 100644
> --- a/arch/arm/boot/dts/am4372.dtsi
> +++ b/arch/arm/boot/dts/am4372.dtsi
> @@ -962,7 +962,9 @@
>
> qspi: qspi@47900000 {
> compatible = "ti,am4372-qspi";
> - reg = <0x47900000 0x100>;
> + reg = <0x47900000 0x100>,
> + <0x30000000 0x4000000>;
> + reg-names = "qspi_base", "qspi_mmap";
> #address-cells = <1>;
> #size-cells = <0>;
> ti,hwmods = "qspi";
> --
> 2.6.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
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/
[toc] | [prev] | [next] | [standalone]
| From | Felipe Balbi <balbi@ti.com> |
|---|---|
| Date | 2015-11-06 06:20 +0100 |
| Message-ID | <qrHBn-aP-1@gated-at.bofh.it> |
| In reply to | #1263644 |
[Multipart message — attachments visible in raw view] — view raw
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 ?
--
balbi
[toc] | [prev] | [next] | [standalone]
| From | Vignesh R <vigneshr@ti.com> |
|---|---|
| Date | 2015-11-06 13:30 +0100 |
| Message-ID | <qrOjx-4rO-39@gated-at.bofh.it> |
| In reply to | #1263740 |
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
--
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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web