diff mbox series

ARM: dts: am33xx-l4: Fix epwmssX/ecapX/ehrpwmX ranges and reg

Message ID 20181211105430.4359-1-peter.ujfalusi@ti.com (mailing list archive)
State New, archived
Headers show
Series ARM: dts: am33xx-l4: Fix epwmssX/ecapX/ehrpwmX ranges and reg | expand

Commit Message

Peter Ujfalusi Dec. 11, 2018, 10:54 a.m. UTC
Correct the ranges for epwmsX nodes and the reg for the subnodes.

Fixes: 87fc89ced3a78 ("ARM: dts: am335x: Move l4 child devices to probe them with ti-sysc")

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
Hi Tony,

with this patch am335x-evmsk LCD is working.

Regards,
Peter

 arch/arm/boot/dts/am33xx-l4.dtsi | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

Comments

Vignesh Raghavendra Dec. 11, 2018, 11 a.m. UTC | #1
On 11/12/18 4:24 PM, Peter Ujfalusi wrote:
> Correct the ranges for epwmsX nodes and the reg for the subnodes.
> 
> Fixes: 87fc89ced3a78 ("ARM: dts: am335x: Move l4 child devices to probe them with ti-sysc")
> 
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
> Hi Tony,
> 
> with this patch am335x-evmsk LCD is working.
> 

I guess Tony has already posted a patch: https://patchwork.kernel.org/patch/10722671/

> Regards,
> Peter
> 
>  arch/arm/boot/dts/am33xx-l4.dtsi | 30 +++++++++++++++---------------
>  1 file changed, 15 insertions(+), 15 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi
> index 7c7876ecae14..85366f287a22 100644
> --- a/arch/arm/boot/dts/am33xx-l4.dtsi
> +++ b/arch/arm/boot/dts/am33xx-l4.dtsi
> @@ -1899,15 +1899,15 @@
>  				#address-cells = <1>;
>  				#size-cells = <1>;
>  				status = "disabled";
> -				ranges = <0x48300100 0x48300100 0x80   /* ECAP */
> -					  0x48300180 0x48300180 0x80   /* EQEP */
> -					  0x48300200 0x48300200 0x80>; /* EHRPWM */
> +				ranges = <0x100 0x100 0x80   /* ECAP */
> +					  0x180 0x180 0x80   /* EQEP */
> +					  0x200 0x200 0x80>; /* EHRPWM */
>  
>  				ecap0: ecap@48300100 {
>  					compatible = "ti,am3352-ecap",
>  						     "ti,am33xx-ecap";
>  					#pwm-cells = <3>;
> -					reg = <0x48300100 0x80>;
> +					reg = <0x100 0x80>;
>  					clocks = <&l4ls_gclk>;
>  					clock-names = "fck";
>  					interrupts = <31>;
> @@ -1919,7 +1919,7 @@
>  					compatible = "ti,am3352-ehrpwm",
>  						     "ti,am33xx-ehrpwm";
>  					#pwm-cells = <3>;
> -					reg = <0x48300200 0x80>;
> +					reg = <0x200 0x80>;
>  					clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
>  					clock-names = "tbclk", "fck";
>  					status = "disabled";
> @@ -1954,15 +1954,15 @@
>  				#address-cells = <1>;
>  				#size-cells = <1>;
>  				status = "disabled";
> -				ranges = <0x48302100 0x48302100 0x80   /* ECAP */
> -					  0x48302180 0x48302180 0x80   /* EQEP */
> -					  0x48302200 0x48302200 0x80>; /* EHRPWM */
> +				ranges = <0x100 0x100 0x80   /* ECAP */
> +					  0x180 0x180 0x80   /* EQEP */
> +					  0x200 0x200 0x80>; /* EHRPWM */
>  
>  				ecap1: ecap@48302100 {
>  					compatible = "ti,am3352-ecap",
>  						     "ti,am33xx-ecap";
>  					#pwm-cells = <3>;
> -					reg = <0x48302100 0x80>;
> +					reg = <0x100 0x80>;
>  					clocks = <&l4ls_gclk>;
>  					clock-names = "fck";
>  					interrupts = <47>;
> @@ -1974,7 +1974,7 @@
>  					compatible = "ti,am3352-ehrpwm",
>  						     "ti,am33xx-ehrpwm";
>  					#pwm-cells = <3>;
> -					reg = <0x48302200 0x80>;
> +					reg = <0x200 0x80>;
>  					clocks = <&ehrpwm1_tbclk>, <&l4ls_gclk>;
>  					clock-names = "tbclk", "fck";
>  					status = "disabled";
> @@ -2009,15 +2009,15 @@
>  				#address-cells = <1>;
>  				#size-cells = <1>;
>  				status = "disabled";
> -				ranges = <0x48304100 0x48304100 0x80   /* ECAP */
> -					  0x48304180 0x48304180 0x80   /* EQEP */
> -					  0x48304200 0x48304200 0x80>; /* EHRPWM */
> +				ranges = <0x100 0x100 0x80   /* ECAP */
> +					  0x180 0x180 0x80   /* EQEP */
> +					  0x200 0x200 0x80>; /* EHRPWM */
>  
>  				ecap2: ecap@48304100 {
>  					compatible = "ti,am3352-ecap",
>  						     "ti,am33xx-ecap";
>  					#pwm-cells = <3>;
> -					reg = <0x48304100 0x80>;
> +					reg = <0x100 0x80>;
>  					clocks = <&l4ls_gclk>;
>  					clock-names = "fck";
>  					interrupts = <61>;
> @@ -2029,7 +2029,7 @@
>  					compatible = "ti,am3352-ehrpwm",
>  						     "ti,am33xx-ehrpwm";
>  					#pwm-cells = <3>;
> -					reg = <0x48304200 0x80>;
> +					reg = <0x200 0x80>;
>  					clocks = <&ehrpwm2_tbclk>, <&l4ls_gclk>;
>  					clock-names = "tbclk", "fck";
>  					status = "disabled";
>
Peter Ujfalusi Dec. 11, 2018, 11:01 a.m. UTC | #2
On 11/12/2018 13.00, Vignesh R wrote:
> 
> 
> On 11/12/18 4:24 PM, Peter Ujfalusi wrote:
>> Correct the ranges for epwmsX nodes and the reg for the subnodes.
>>
>> Fixes: 87fc89ced3a78 ("ARM: dts: am335x: Move l4 child devices to probe them with ti-sysc")
>>
>> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
>> ---
>> Hi Tony,
>>
>> with this patch am335x-evmsk LCD is working.
>>
> 
> I guess Tony has already posted a patch: https://patchwork.kernel.org/patch/10722671/

Yep, I just noticed it, this can be ignored.

> 
>> Regards,
>> Peter
>>
>>  arch/arm/boot/dts/am33xx-l4.dtsi | 30 +++++++++++++++---------------
>>  1 file changed, 15 insertions(+), 15 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi
>> index 7c7876ecae14..85366f287a22 100644
>> --- a/arch/arm/boot/dts/am33xx-l4.dtsi
>> +++ b/arch/arm/boot/dts/am33xx-l4.dtsi
>> @@ -1899,15 +1899,15 @@
>>  				#address-cells = <1>;
>>  				#size-cells = <1>;
>>  				status = "disabled";
>> -				ranges = <0x48300100 0x48300100 0x80   /* ECAP */
>> -					  0x48300180 0x48300180 0x80   /* EQEP */
>> -					  0x48300200 0x48300200 0x80>; /* EHRPWM */
>> +				ranges = <0x100 0x100 0x80   /* ECAP */
>> +					  0x180 0x180 0x80   /* EQEP */
>> +					  0x200 0x200 0x80>; /* EHRPWM */
>>  
>>  				ecap0: ecap@48300100 {
>>  					compatible = "ti,am3352-ecap",
>>  						     "ti,am33xx-ecap";
>>  					#pwm-cells = <3>;
>> -					reg = <0x48300100 0x80>;
>> +					reg = <0x100 0x80>;
>>  					clocks = <&l4ls_gclk>;
>>  					clock-names = "fck";
>>  					interrupts = <31>;
>> @@ -1919,7 +1919,7 @@
>>  					compatible = "ti,am3352-ehrpwm",
>>  						     "ti,am33xx-ehrpwm";
>>  					#pwm-cells = <3>;
>> -					reg = <0x48300200 0x80>;
>> +					reg = <0x200 0x80>;
>>  					clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
>>  					clock-names = "tbclk", "fck";
>>  					status = "disabled";
>> @@ -1954,15 +1954,15 @@
>>  				#address-cells = <1>;
>>  				#size-cells = <1>;
>>  				status = "disabled";
>> -				ranges = <0x48302100 0x48302100 0x80   /* ECAP */
>> -					  0x48302180 0x48302180 0x80   /* EQEP */
>> -					  0x48302200 0x48302200 0x80>; /* EHRPWM */
>> +				ranges = <0x100 0x100 0x80   /* ECAP */
>> +					  0x180 0x180 0x80   /* EQEP */
>> +					  0x200 0x200 0x80>; /* EHRPWM */
>>  
>>  				ecap1: ecap@48302100 {
>>  					compatible = "ti,am3352-ecap",
>>  						     "ti,am33xx-ecap";
>>  					#pwm-cells = <3>;
>> -					reg = <0x48302100 0x80>;
>> +					reg = <0x100 0x80>;
>>  					clocks = <&l4ls_gclk>;
>>  					clock-names = "fck";
>>  					interrupts = <47>;
>> @@ -1974,7 +1974,7 @@
>>  					compatible = "ti,am3352-ehrpwm",
>>  						     "ti,am33xx-ehrpwm";
>>  					#pwm-cells = <3>;
>> -					reg = <0x48302200 0x80>;
>> +					reg = <0x200 0x80>;
>>  					clocks = <&ehrpwm1_tbclk>, <&l4ls_gclk>;
>>  					clock-names = "tbclk", "fck";
>>  					status = "disabled";
>> @@ -2009,15 +2009,15 @@
>>  				#address-cells = <1>;
>>  				#size-cells = <1>;
>>  				status = "disabled";
>> -				ranges = <0x48304100 0x48304100 0x80   /* ECAP */
>> -					  0x48304180 0x48304180 0x80   /* EQEP */
>> -					  0x48304200 0x48304200 0x80>; /* EHRPWM */
>> +				ranges = <0x100 0x100 0x80   /* ECAP */
>> +					  0x180 0x180 0x80   /* EQEP */
>> +					  0x200 0x200 0x80>; /* EHRPWM */
>>  
>>  				ecap2: ecap@48304100 {
>>  					compatible = "ti,am3352-ecap",
>>  						     "ti,am33xx-ecap";
>>  					#pwm-cells = <3>;
>> -					reg = <0x48304100 0x80>;
>> +					reg = <0x100 0x80>;
>>  					clocks = <&l4ls_gclk>;
>>  					clock-names = "fck";
>>  					interrupts = <61>;
>> @@ -2029,7 +2029,7 @@
>>  					compatible = "ti,am3352-ehrpwm",
>>  						     "ti,am33xx-ehrpwm";
>>  					#pwm-cells = <3>;
>> -					reg = <0x48304200 0x80>;
>> +					reg = <0x200 0x80>;
>>  					clocks = <&ehrpwm2_tbclk>, <&l4ls_gclk>;
>>  					clock-names = "tbclk", "fck";
>>  					status = "disabled";
>>
> 

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Tony Lindgren Dec. 11, 2018, 2:20 p.m. UTC | #3
* Peter Ujfalusi <peter.ujfalusi@ti.com> [181211 11:00]:
> 
> 
> On 11/12/2018 13.00, Vignesh R wrote:
> > 
> > 
> > On 11/12/18 4:24 PM, Peter Ujfalusi wrote:
> >> Correct the ranges for epwmsX nodes and the reg for the subnodes.
> >>
> >> Fixes: 87fc89ced3a78 ("ARM: dts: am335x: Move l4 child devices to probe them with ti-sysc")
> >>
> >> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> >> ---
> >> Hi Tony,
> >>
> >> with this patch am335x-evmsk LCD is working.
> >>
> > 
> > I guess Tony has already posted a patch: https://patchwork.kernel.org/patch/10722671/
> 
> Yep, I just noticed it, this can be ignored.

OK. In the long run we can just leave out the extra parent module
for epwmss as it just probes the children. But let's do that later
for v4.22 as clean-up, I did some initial patches for that yesterday.

Regards,

Tony
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi
index 7c7876ecae14..85366f287a22 100644
--- a/arch/arm/boot/dts/am33xx-l4.dtsi
+++ b/arch/arm/boot/dts/am33xx-l4.dtsi
@@ -1899,15 +1899,15 @@ 
 				#address-cells = <1>;
 				#size-cells = <1>;
 				status = "disabled";
-				ranges = <0x48300100 0x48300100 0x80   /* ECAP */
-					  0x48300180 0x48300180 0x80   /* EQEP */
-					  0x48300200 0x48300200 0x80>; /* EHRPWM */
+				ranges = <0x100 0x100 0x80   /* ECAP */
+					  0x180 0x180 0x80   /* EQEP */
+					  0x200 0x200 0x80>; /* EHRPWM */
 
 				ecap0: ecap@48300100 {
 					compatible = "ti,am3352-ecap",
 						     "ti,am33xx-ecap";
 					#pwm-cells = <3>;
-					reg = <0x48300100 0x80>;
+					reg = <0x100 0x80>;
 					clocks = <&l4ls_gclk>;
 					clock-names = "fck";
 					interrupts = <31>;
@@ -1919,7 +1919,7 @@ 
 					compatible = "ti,am3352-ehrpwm",
 						     "ti,am33xx-ehrpwm";
 					#pwm-cells = <3>;
-					reg = <0x48300200 0x80>;
+					reg = <0x200 0x80>;
 					clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
 					clock-names = "tbclk", "fck";
 					status = "disabled";
@@ -1954,15 +1954,15 @@ 
 				#address-cells = <1>;
 				#size-cells = <1>;
 				status = "disabled";
-				ranges = <0x48302100 0x48302100 0x80   /* ECAP */
-					  0x48302180 0x48302180 0x80   /* EQEP */
-					  0x48302200 0x48302200 0x80>; /* EHRPWM */
+				ranges = <0x100 0x100 0x80   /* ECAP */
+					  0x180 0x180 0x80   /* EQEP */
+					  0x200 0x200 0x80>; /* EHRPWM */
 
 				ecap1: ecap@48302100 {
 					compatible = "ti,am3352-ecap",
 						     "ti,am33xx-ecap";
 					#pwm-cells = <3>;
-					reg = <0x48302100 0x80>;
+					reg = <0x100 0x80>;
 					clocks = <&l4ls_gclk>;
 					clock-names = "fck";
 					interrupts = <47>;
@@ -1974,7 +1974,7 @@ 
 					compatible = "ti,am3352-ehrpwm",
 						     "ti,am33xx-ehrpwm";
 					#pwm-cells = <3>;
-					reg = <0x48302200 0x80>;
+					reg = <0x200 0x80>;
 					clocks = <&ehrpwm1_tbclk>, <&l4ls_gclk>;
 					clock-names = "tbclk", "fck";
 					status = "disabled";
@@ -2009,15 +2009,15 @@ 
 				#address-cells = <1>;
 				#size-cells = <1>;
 				status = "disabled";
-				ranges = <0x48304100 0x48304100 0x80   /* ECAP */
-					  0x48304180 0x48304180 0x80   /* EQEP */
-					  0x48304200 0x48304200 0x80>; /* EHRPWM */
+				ranges = <0x100 0x100 0x80   /* ECAP */
+					  0x180 0x180 0x80   /* EQEP */
+					  0x200 0x200 0x80>; /* EHRPWM */
 
 				ecap2: ecap@48304100 {
 					compatible = "ti,am3352-ecap",
 						     "ti,am33xx-ecap";
 					#pwm-cells = <3>;
-					reg = <0x48304100 0x80>;
+					reg = <0x100 0x80>;
 					clocks = <&l4ls_gclk>;
 					clock-names = "fck";
 					interrupts = <61>;
@@ -2029,7 +2029,7 @@ 
 					compatible = "ti,am3352-ehrpwm",
 						     "ti,am33xx-ehrpwm";
 					#pwm-cells = <3>;
-					reg = <0x48304200 0x80>;
+					reg = <0x200 0x80>;
 					clocks = <&ehrpwm2_tbclk>, <&l4ls_gclk>;
 					clock-names = "tbclk", "fck";
 					status = "disabled";