2023-10-20 15:31:58

by Andrejs Cainikovs

[permalink] [raw]
Subject: [PATCH v1 0/2] imx6/imx8-apalis: add can power-up delay on ixora board

From: Andrejs Cainikovs <[email protected]>

Newer variants of Ixora boards require a power-up delay when powering up
the CAN transceiver of up to 1ms. This series adds mentioned delay for
iMX6 and iMX8 Apalis SoM variants.

Andrejs Cainikovs (2):
arm64: dts: imx8-apalis: add can power-up delay on ixora board
ARM: dts: imx6q-apalis: add can power-up delay on ixora board

arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts | 2 ++
arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 2 ++
2 files changed, 4 insertions(+)

--
2.34.1


2023-10-20 15:32:14

by Andrejs Cainikovs

[permalink] [raw]
Subject: [PATCH v1 2/2] ARM: dts: imx6q-apalis: add can power-up delay on ixora board

From: Andrejs Cainikovs <[email protected]>

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

Cc: [email protected]
Signed-off-by: Andrejs Cainikovs <[email protected]>
---
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

2023-10-20 15:32:14

by Andrejs Cainikovs

[permalink] [raw]
Subject: [PATCH v1 1/2] arm64: dts: imx8-apalis: add can power-up delay on ixora board

From: Andrejs Cainikovs <[email protected]>

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

Signed-off-by: Andrejs Cainikovs <[email protected]>
---
arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi
index 72136c436a70..f6654fdcb147 100644
--- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi
@@ -68,6 +68,7 @@ reg_can1_supply: regulator-can1-supply {
gpio = <&lsio_gpio5 22 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-name = "can1_supply";
+ startup-delay-us = <1000>;
};

reg_can2_supply: regulator-can2-supply {
@@ -77,6 +78,7 @@ reg_can2_supply: regulator-can2-supply {
gpio = <&lsio_gpio2 8 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-name = "can2_supply";
+ startup-delay-us = <1000>;
};

reg_usb_host_vbus: regulator-usb-host-vbus {
--
2.34.1

2023-11-27 02:52:35

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH v1 2/2] ARM: dts: imx6q-apalis: add can power-up delay on ixora board

On Fri, Oct 20, 2023 at 05:30:22PM +0200, Andrejs Cainikovs wrote:
> From: Andrejs Cainikovs <[email protected]>
>
> Newer variants of Ixora boards require a power-up delay when powering up
> the CAN transceiver of up to 1ms.
>
> Cc: [email protected]

Why is only the iMX6 change required for stable?

Shawn

> Signed-off-by: Andrejs Cainikovs <[email protected]>
> ---
> 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
>

2023-11-27 10:13:59

by Francesco Dolcini

[permalink] [raw]
Subject: Re: [PATCH v1 2/2] ARM: dts: imx6q-apalis: add can power-up delay on ixora board

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 <[email protected]>
> >
> > Newer variants of Ixora boards require a power-up delay when powering up
> > the CAN transceiver of up to 1ms.
> >
> > Cc: [email protected]
>
> 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

2023-12-05 08:22:45

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH v1 0/2] imx6/imx8-apalis: add can power-up delay on ixora board

On Fri, Oct 20, 2023 at 05:30:20PM +0200, Andrejs Cainikovs wrote:
> From: Andrejs Cainikovs <[email protected]>
>
> Newer variants of Ixora boards require a power-up delay when powering up
> the CAN transceiver of up to 1ms. This series adds mentioned delay for
> iMX6 and iMX8 Apalis SoM variants.
>
> Andrejs Cainikovs (2):
> arm64: dts: imx8-apalis: add can power-up delay on ixora board
> ARM: dts: imx6q-apalis: add can power-up delay on ixora board

Applied both, thanks!