[v1,2/2] ARM: dts: imx6q-apalis: add can power-up delay on ixora board

Message ID 20231020153022.57858-3-andrejs.cainikovs@gmail.com
State New
Headers
Series imx6/imx8-apalis: add can power-up delay on ixora board |

Commit Message

Andrejs Cainikovs Oct. 20, 2023, 3:30 p.m. UTC
  From: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>

Newer variants of Ixora boards require a power-up delay when powering up
the CAN transceiver of up to 1ms.

Cc: stable@vger.kernel.org
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
---
 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Shawn Guo Nov. 27, 2023, 2:52 a.m. UTC | #1
On Fri, Oct 20, 2023 at 05:30:22PM +0200, Andrejs Cainikovs wrote:
> From: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
> 
> Newer variants of Ixora boards require a power-up delay when powering up
> the CAN transceiver of up to 1ms.
> 
> Cc: stable@vger.kernel.org

Why is only the iMX6 change required for stable?

Shawn

> Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
> ---
>  arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts b/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
> index 717decda0ceb..3ac7a4501620 100644
> --- a/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
> +++ b/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
> @@ -76,6 +76,7 @@ reg_can1_supply: regulator-can1-supply {
>  		pinctrl-names = "default";
>  		pinctrl-0 = <&pinctrl_enable_can1_power>;
>  		regulator-name = "can1_supply";
> +		startup-delay-us = <1000>;
>  	};
>  
>  	reg_can2_supply: regulator-can2-supply {
> @@ -85,6 +86,7 @@ reg_can2_supply: regulator-can2-supply {
>  		pinctrl-names = "default";
>  		pinctrl-0 = <&pinctrl_enable_can2_power>;
>  		regulator-name = "can2_supply";
> +		startup-delay-us = <1000>;
>  	};
>  };
>  
> -- 
> 2.34.1
>
  
Francesco Dolcini Nov. 27, 2023, 10:13 a.m. UTC | #2
On Mon, Nov 27, 2023 at 10:52:18AM +0800, Shawn Guo wrote:
> On Fri, Oct 20, 2023 at 05:30:22PM +0200, Andrejs Cainikovs wrote:
> > From: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
> > 
> > Newer variants of Ixora boards require a power-up delay when powering up
> > the CAN transceiver of up to 1ms.
> > 
> > Cc: stable@vger.kernel.org
> 
> Why is only the iMX6 change required for stable?

From what I know currently apalis-imx8 is not yet used in products
with a mainline kernel therefore the assumption that the backporting
would add very small value, however maybe is better to just backport
both to stable.

Francesco
  

Patch

diff --git a/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts b/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
index 717decda0ceb..3ac7a4501620 100644
--- a/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
+++ b/arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts
@@ -76,6 +76,7 @@  reg_can1_supply: regulator-can1-supply {
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_enable_can1_power>;
 		regulator-name = "can1_supply";
+		startup-delay-us = <1000>;
 	};
 
 	reg_can2_supply: regulator-can2-supply {
@@ -85,6 +86,7 @@  reg_can2_supply: regulator-can2-supply {
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_enable_can2_power>;
 		regulator-name = "can2_supply";
+		startup-delay-us = <1000>;
 	};
 };