Skip to contentSkip to conversation

imx6/imx8-apalis: add can power-up delay on ixora board

PATCH Applied Andrejs Cainikovs 3 participants 6 messages Oct 20, 2023 – Dec 5, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover 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(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 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.

---
 arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi +2 -0
index 72136c436a70..f6654fdcb147 100644
@@ -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 {
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 ARM: dts: imx6q-apalis: add can power-up delay on ixora board

In reply to Andrejs Cainikovs

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.

---
 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts +2 -0
index 717decda0ceb..3ac7a4501620 100644
@@ -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>;
 	};
 };
 
Signature · 1 line
2.34.1
#3 lore raw

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

Quoted 6 lines · Andrejs Cainikovs

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.

Why is only the iMX6 change required for stable?

Shawn

Quoted 28 lines
---
 arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/nxp/imx/imx6q-apalis-ixora-v1.2.dts +2 -0
index 717decda0ceb..3ac7a4501620 100644
@@ -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>;
 	};
 };
 
Signature · 1 line
2.34.1
#4 lore raw

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

Quoted 9 lines · Shawn Guo
Quoted 6 lines · Andrejs Cainikovs

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.

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

Applied
#5 lore raw
In reply to Andrejs Cainikovs
Quoted 9 lines · Andrejs Cainikovs

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!