diff mbox

[U-Boot,v2,15/16] arm: dts: am4372: add qspi register maps for memory map

Message ID 1446624984-11033-16-git-send-email-mugunthanvnm@ti.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Mugunthan V N Nov. 4, 2015, 8:16 a.m. UTC
Add qspi memory map address to device tree.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 arch/arm/dts/am4372.dtsi | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Tom Rini Nov. 8, 2015, 1:32 p.m. UTC | #1
On Wed, Nov 04, 2015 at 01:46:23PM +0530, Mugunthan V N wrote:
> Add qspi memory map address to device tree.
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
>  arch/arm/dts/am4372.dtsi | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts/am4372.dtsi
> index ade28c7..1b30d53 100644
> --- a/arch/arm/dts/am4372.dtsi
> +++ b/arch/arm/dts/am4372.dtsi
> @@ -25,6 +25,7 @@
>  		serial0 = &uart0;
>  		ethernet0 = &cpsw_emac0;
>  		ethernet1 = &cpsw_emac1;
> +		spi0 = &qspi;
>  	};
>  
>  	cpus {
> @@ -902,7 +903,8 @@
>  
>  		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";

Is this upstream already?
Mugunthan V N Nov. 12, 2015, 9:17 a.m. UTC | #2
On Sunday 08 November 2015 07:02 PM, Tom Rini wrote:
> On Wed, Nov 04, 2015 at 01:46:23PM +0530, Mugunthan V N wrote:
>> Add qspi memory map address to device tree.
>>
>> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>> ---
>>  arch/arm/dts/am4372.dtsi | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts/am4372.dtsi
>> index ade28c7..1b30d53 100644
>> --- a/arch/arm/dts/am4372.dtsi
>> +++ b/arch/arm/dts/am4372.dtsi
>> @@ -25,6 +25,7 @@
>>  		serial0 = &uart0;
>>  		ethernet0 = &cpsw_emac0;
>>  		ethernet1 = &cpsw_emac1;
>> +		spi0 = &qspi;
>>  	};
>>  
>>  	cpus {
>> @@ -902,7 +903,8 @@
>>  
>>  		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";
> 
> Is this upstream already?
> 

The documentation part is already upstreamed. Driver in kernel doesn't
support mmap mode yet, so dt changes are not present. Vignesh has
submitted the mmap patches [1] and is under review.

[1]: https://lkml.org/lkml/2015/11/10/14

Regards
Mugunthan V N
diff mbox

Patch

diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts/am4372.dtsi
index ade28c7..1b30d53 100644
--- a/arch/arm/dts/am4372.dtsi
+++ b/arch/arm/dts/am4372.dtsi
@@ -25,6 +25,7 @@ 
 		serial0 = &uart0;
 		ethernet0 = &cpsw_emac0;
 		ethernet1 = &cpsw_emac1;
+		spi0 = &qspi;
 	};
 
 	cpus {
@@ -902,7 +903,8 @@ 
 
 		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";