All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Lokesh Vutla <lokeshvutla@ti.com>, <thierry.reding@gmail.com>,
	<u.kleine-koenig@pengutronix.de>, <lee.jones@linaro.org>,
	Rob Herring <robh+dt@kernel.org>
Cc: <tony@atomide.com>, Sekhar Nori <nsekhar@ti.com>,
	Vignesh R <vigneshr@ti.com>, Nishanth Menon <nm@ti.com>,
	<linux-pwm@vger.kernel.org>,
	Device Tree Mailing List <devicetree@vger.kernel.org>,
	Linux ARM Mailing List <linux-arm-kernel@lists.infradead.org>,
	Linux OMAP Mailing List <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 1/4] arm: dts: ti: drop usage of redundant compatible
Date: Mon, 31 May 2021 14:17:23 +0300	[thread overview]
Message-ID: <de96c176-1163-a6c4-54f2-a9924db6f9df@ti.com> (raw)
In-Reply-To: <20210526084306.6534-2-lokeshvutla@ti.com>



On 26/05/2021 11:43, Lokesh Vutla wrote:
> Commit 229110c1aa691 ("ARM: dts: am437x/am33xx/da850: Add new ECAP and
> EPWM bindings") added ti,am3352-ehrpwm compatible which is similar to
> ti,am33xx-ehrpwm but without out t,hwmod properties. But with commit
> 58bfbea5b1c68 ("ARM: dts: am437x/am33xx: Remove hwmod entries for ECAP
> and EPWM nodes") dropped support for all ti,hwmod for ehrpwm, but
> missed deprecating ti,am33xx-ehrpwm compatible. So drop ti,am33xx-ehrpwm
> from DT as it is no longer needed.
> 
> ti-ehrpwn driver still support ti,am33xx-ehrpwm in order to maintain
> backward compatibility.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---
>   .../devicetree/bindings/pwm/pwm-tiehrpwm.txt   | 13 ++++++-------
>   arch/arm/boot/dts/am33xx-l4.dtsi               |  9 +++------
>   arch/arm/boot/dts/am437x-l4.dtsi               | 18 ++++++------------
>   arch/arm/boot/dts/da850.dtsi                   |  6 ++----
>   4 files changed, 17 insertions(+), 29 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> index c7e28f6d28be..e124e41418d8 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> @@ -2,10 +2,10 @@ TI SOC EHRPWM based PWM controller
>   
>   Required properties:
>   - compatible: Must be "ti,<soc>-ehrpwm".
> -  for am33xx  - compatible = "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
> -  for am4372  - compatible = "ti,am4372-ehrpwm", "ti-am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +  for am33xx  - compatible = "ti,am3352-ehrpwm";
> +  for am4372  - compatible = "ti,am4372-ehrpwm", "ti-am3352-ehrpwm";
>     for am654   - compatible = "ti,am654-ehrpwm", "ti-am3352-ehrpwm";
> -  for da850   - compatible = "ti,da850-ehrpwm", "ti-am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +  for da850   - compatible = "ti,da850-ehrpwm", "ti-am3352-ehrpwm";
>     for dra746 - compatible = "ti,dra746-ehrpwm", "ti-am3352-ehrpwm";
>   - #pwm-cells: should be 3. See pwm.yaml in this directory for a description of
>     the cells format. The only third cell flag supported by this binding is
> @@ -19,7 +19,7 @@ Optional properties:
>   Example:
>   
>   ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */
> -	compatible = "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +	compatible = "ti,am3352-ehrpwm";
>   	#pwm-cells = <3>;
>   	reg = <0x48300200 0x100>;
>   	clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
> @@ -27,16 +27,15 @@ ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */
>   };
>   
>   ehrpwm0: pwm@48300200 { /* EHRPWM on am4372 */
> -	compatible = "ti,am4372-ehrpwm", "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +	compatible = "ti,am4372-ehrpwm", "ti,am3352-ehrpwm";
>   	#pwm-cells = <3>;
>   	reg = <0x48300200 0x80>;
>   	clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
>   	clock-names = "tbclk", "fck";
> -	ti,hwmods = "ehrpwm0";
>   };
>   
>   ehrpwm0: pwm@1f00000 { /* EHRPWM on da850 */
> -	compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +	compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm";
>   	#pwm-cells = <3>;
>   	reg = <0x1f00000 0x2000>;
>   };
> diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi
> index 039a9ab4c7ea..fbf3458ab246 100644
> --- a/arch/arm/boot/dts/am33xx-l4.dtsi
> +++ b/arch/arm/boot/dts/am33xx-l4.dtsi
> @@ -2017,8 +2017,7 @@ eqep0: counter@180 {
>   				};
>   
>   				ehrpwm0: pwm@200 {
> -					compatible = "ti,am3352-ehrpwm",
> -						     "ti,am33xx-ehrpwm";
> +					compatible = "ti,am3352-ehrpwm";
>   					#pwm-cells = <3>;
>   					reg = <0x200 0x80>;
>   					clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
> @@ -2078,8 +2077,7 @@ eqep1: counter@180 {
>   				};
>   
>   				ehrpwm1: pwm@200 {
> -					compatible = "ti,am3352-ehrpwm",
> -						     "ti,am33xx-ehrpwm";
> +					compatible = "ti,am3352-ehrpwm";
>   					#pwm-cells = <3>;
>   					reg = <0x200 0x80>;
>   					clocks = <&ehrpwm1_tbclk>, <&l4ls_gclk>;
> @@ -2139,8 +2137,7 @@ eqep2: counter@180 {
>   				};
>   
>   				ehrpwm2: pwm@200 {
> -					compatible = "ti,am3352-ehrpwm",
> -						     "ti,am33xx-ehrpwm";
> +					compatible = "ti,am3352-ehrpwm";
>   					#pwm-cells = <3>;
>   					reg = <0x200 0x80>;
>   					clocks = <&ehrpwm2_tbclk>, <&l4ls_gclk>;
> diff --git a/arch/arm/boot/dts/am437x-l4.dtsi b/arch/arm/boot/dts/am437x-l4.dtsi

[...]

> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
> index 7cf31b6e48b7..afdf3d3747ce 100644
> --- a/arch/arm/boot/dts/da850.dtsi
> +++ b/arch/arm/boot/dts/da850.dtsi
> @@ -574,8 +574,7 @@ mmc1: mmc@21b000 {
>   			status = "disabled";
>   		};
>   		ehrpwm0: pwm@300000 {
> -			compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm",
> -				     "ti,am33xx-ehrpwm";
> +			compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm";
>   			#pwm-cells = <3>;
>   			reg = <0x300000 0x2000>;
>   			clocks = <&psc1 17>, <&ehrpwm_tbclk>;
> @@ -584,8 +583,7 @@ ehrpwm0: pwm@300000 {
>   			status = "disabled";
>   		};
>   		ehrpwm1: pwm@302000 {
> -			compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm",
> -				     "ti,am33xx-ehrpwm";
> +			compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm";
>   			#pwm-cells = <3>;
>   			reg = <0x302000 0x2000>;
>   			clocks = <&psc1 17>, <&ehrpwm_tbclk>;
> 

I think, the DT changes can be split and posted standalone while bindings fixed
as part of yaml conversation.
Personally I do not see reasons for separate .txt bindings fix here as ymal conversation just
reveals inconsistency between DT bindings, DTBs and code which leads to DTBs fix.

But, of course, it's up to Rob first of all.

-- 
Best regards,
grygorii

WARNING: multiple messages have this Message-ID (diff)
From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Lokesh Vutla <lokeshvutla@ti.com>, <thierry.reding@gmail.com>,
	<u.kleine-koenig@pengutronix.de>, <lee.jones@linaro.org>,
	Rob Herring <robh+dt@kernel.org>
Cc: <tony@atomide.com>, Sekhar Nori <nsekhar@ti.com>,
	Vignesh R <vigneshr@ti.com>, Nishanth Menon <nm@ti.com>,
	<linux-pwm@vger.kernel.org>,
	Device Tree Mailing List <devicetree@vger.kernel.org>,
	Linux ARM Mailing List <linux-arm-kernel@lists.infradead.org>,
	Linux OMAP Mailing List <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 1/4] arm: dts: ti: drop usage of redundant compatible
Date: Mon, 31 May 2021 14:17:23 +0300	[thread overview]
Message-ID: <de96c176-1163-a6c4-54f2-a9924db6f9df@ti.com> (raw)
In-Reply-To: <20210526084306.6534-2-lokeshvutla@ti.com>



On 26/05/2021 11:43, Lokesh Vutla wrote:
> Commit 229110c1aa691 ("ARM: dts: am437x/am33xx/da850: Add new ECAP and
> EPWM bindings") added ti,am3352-ehrpwm compatible which is similar to
> ti,am33xx-ehrpwm but without out t,hwmod properties. But with commit
> 58bfbea5b1c68 ("ARM: dts: am437x/am33xx: Remove hwmod entries for ECAP
> and EPWM nodes") dropped support for all ti,hwmod for ehrpwm, but
> missed deprecating ti,am33xx-ehrpwm compatible. So drop ti,am33xx-ehrpwm
> from DT as it is no longer needed.
> 
> ti-ehrpwn driver still support ti,am33xx-ehrpwm in order to maintain
> backward compatibility.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---
>   .../devicetree/bindings/pwm/pwm-tiehrpwm.txt   | 13 ++++++-------
>   arch/arm/boot/dts/am33xx-l4.dtsi               |  9 +++------
>   arch/arm/boot/dts/am437x-l4.dtsi               | 18 ++++++------------
>   arch/arm/boot/dts/da850.dtsi                   |  6 ++----
>   4 files changed, 17 insertions(+), 29 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> index c7e28f6d28be..e124e41418d8 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> @@ -2,10 +2,10 @@ TI SOC EHRPWM based PWM controller
>   
>   Required properties:
>   - compatible: Must be "ti,<soc>-ehrpwm".
> -  for am33xx  - compatible = "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
> -  for am4372  - compatible = "ti,am4372-ehrpwm", "ti-am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +  for am33xx  - compatible = "ti,am3352-ehrpwm";
> +  for am4372  - compatible = "ti,am4372-ehrpwm", "ti-am3352-ehrpwm";
>     for am654   - compatible = "ti,am654-ehrpwm", "ti-am3352-ehrpwm";
> -  for da850   - compatible = "ti,da850-ehrpwm", "ti-am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +  for da850   - compatible = "ti,da850-ehrpwm", "ti-am3352-ehrpwm";
>     for dra746 - compatible = "ti,dra746-ehrpwm", "ti-am3352-ehrpwm";
>   - #pwm-cells: should be 3. See pwm.yaml in this directory for a description of
>     the cells format. The only third cell flag supported by this binding is
> @@ -19,7 +19,7 @@ Optional properties:
>   Example:
>   
>   ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */
> -	compatible = "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +	compatible = "ti,am3352-ehrpwm";
>   	#pwm-cells = <3>;
>   	reg = <0x48300200 0x100>;
>   	clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
> @@ -27,16 +27,15 @@ ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */
>   };
>   
>   ehrpwm0: pwm@48300200 { /* EHRPWM on am4372 */
> -	compatible = "ti,am4372-ehrpwm", "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +	compatible = "ti,am4372-ehrpwm", "ti,am3352-ehrpwm";
>   	#pwm-cells = <3>;
>   	reg = <0x48300200 0x80>;
>   	clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
>   	clock-names = "tbclk", "fck";
> -	ti,hwmods = "ehrpwm0";
>   };
>   
>   ehrpwm0: pwm@1f00000 { /* EHRPWM on da850 */
> -	compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
> +	compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm";
>   	#pwm-cells = <3>;
>   	reg = <0x1f00000 0x2000>;
>   };
> diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi
> index 039a9ab4c7ea..fbf3458ab246 100644
> --- a/arch/arm/boot/dts/am33xx-l4.dtsi
> +++ b/arch/arm/boot/dts/am33xx-l4.dtsi
> @@ -2017,8 +2017,7 @@ eqep0: counter@180 {
>   				};
>   
>   				ehrpwm0: pwm@200 {
> -					compatible = "ti,am3352-ehrpwm",
> -						     "ti,am33xx-ehrpwm";
> +					compatible = "ti,am3352-ehrpwm";
>   					#pwm-cells = <3>;
>   					reg = <0x200 0x80>;
>   					clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
> @@ -2078,8 +2077,7 @@ eqep1: counter@180 {
>   				};
>   
>   				ehrpwm1: pwm@200 {
> -					compatible = "ti,am3352-ehrpwm",
> -						     "ti,am33xx-ehrpwm";
> +					compatible = "ti,am3352-ehrpwm";
>   					#pwm-cells = <3>;
>   					reg = <0x200 0x80>;
>   					clocks = <&ehrpwm1_tbclk>, <&l4ls_gclk>;
> @@ -2139,8 +2137,7 @@ eqep2: counter@180 {
>   				};
>   
>   				ehrpwm2: pwm@200 {
> -					compatible = "ti,am3352-ehrpwm",
> -						     "ti,am33xx-ehrpwm";
> +					compatible = "ti,am3352-ehrpwm";
>   					#pwm-cells = <3>;
>   					reg = <0x200 0x80>;
>   					clocks = <&ehrpwm2_tbclk>, <&l4ls_gclk>;
> diff --git a/arch/arm/boot/dts/am437x-l4.dtsi b/arch/arm/boot/dts/am437x-l4.dtsi

[...]

> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
> index 7cf31b6e48b7..afdf3d3747ce 100644
> --- a/arch/arm/boot/dts/da850.dtsi
> +++ b/arch/arm/boot/dts/da850.dtsi
> @@ -574,8 +574,7 @@ mmc1: mmc@21b000 {
>   			status = "disabled";
>   		};
>   		ehrpwm0: pwm@300000 {
> -			compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm",
> -				     "ti,am33xx-ehrpwm";
> +			compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm";
>   			#pwm-cells = <3>;
>   			reg = <0x300000 0x2000>;
>   			clocks = <&psc1 17>, <&ehrpwm_tbclk>;
> @@ -584,8 +583,7 @@ ehrpwm0: pwm@300000 {
>   			status = "disabled";
>   		};
>   		ehrpwm1: pwm@302000 {
> -			compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm",
> -				     "ti,am33xx-ehrpwm";
> +			compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm";
>   			#pwm-cells = <3>;
>   			reg = <0x302000 0x2000>;
>   			clocks = <&psc1 17>, <&ehrpwm_tbclk>;
> 

I think, the DT changes can be split and posted standalone while bindings fixed
as part of yaml conversation.
Personally I do not see reasons for separate .txt bindings fix here as ymal conversation just
reveals inconsistency between DT bindings, DTBs and code which leads to DTBs fix.

But, of course, it's up to Rob first of all.

-- 
Best regards,
grygorii

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-05-31 11:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26  8:43 [PATCH 0/4] dt-bindings: pwm: pwm-tiehrpwm: Convert to json schema Lokesh Vutla
2021-05-26  8:43 ` Lokesh Vutla
2021-05-26  8:43 ` [PATCH 1/4] arm: dts: ti: drop usage of redundant compatible Lokesh Vutla
2021-05-26  8:43   ` Lokesh Vutla
2021-05-31 11:17   ` Grygorii Strashko [this message]
2021-05-31 11:17     ` Grygorii Strashko
2021-05-31 11:31     ` Grygorii Strashko
2021-05-31 11:31       ` Grygorii Strashko
2021-06-01  5:32     ` Lokesh Vutla
2021-06-01  5:32       ` Lokesh Vutla
2021-05-26  8:43 ` [PATCH 2/4] dt-bindings: pwm: tiehrpwm: Make clock and clock-names as required properties Lokesh Vutla
2021-05-26  8:43   ` Lokesh Vutla
2021-05-31 11:21   ` Grygorii Strashko
2021-05-31 11:21     ` Grygorii Strashko
2021-05-26  8:43 ` [PATCH 3/4] dt-bindings: pwm: pwm-tiehrpwm: Convert to json schema Lokesh Vutla
2021-05-26  8:43   ` Lokesh Vutla
2021-05-26  8:43 ` [PATCH 4/4] dt-bindings: pwm: pwm-tiehrpwm: Add compatible string for AM64 SoC Lokesh Vutla
2021-05-26  8:43   ` Lokesh Vutla

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=de96c176-1163-a6c4-54f2-a9924db6f9df@ti.com \
    --to=grygorii.strashko@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=lokeshvutla@ti.com \
    --cc=nm@ti.com \
    --cc=nsekhar@ti.com \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=tony@atomide.com \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=vigneshr@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.