ARM: dts: phyCORE-i.MX6 custom OPP table
Subsystems (2)
cover ARM: dts: phyCORE-i.MX6 custom OPP table
This is a revival of a series originally posted by Yunus Bas in February 2022 [1][2]. It adds a label to the imx6dl cpu1 node and introduces phyCORE-i.MX6 SOM specific operating-points tables, since the phyCORE modules run at slightly different voltage/frequency values than the generic i.MX6Q/DL tables.
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
Changes to original series:
Patch #1:
- update path to nxp/imx
Patch #2:
- update path to nxp/imx
- reformat operating-points/fsl,soc-operating-points as a proper uint32-matrix, addressing Shawn Guo's review original remark.
Yunus Bas (2):
ARM: dts: imx6dl: Add a label to cpu1 node
ARM: dts: imx6qdl: phycore-som: Add custom volt/freq table
.../nxp/imx/imx6dl-phytec-mira-rdk-nand.dts | 2 +- .../nxp/imx/imx6dl-phytec-phycore-som.dtsi | 23 ++++++ arch/arm/boot/dts/nxp/imx/imx6dl.dtsi | 2 +- .../nxp/imx/imx6q-phytec-mira-rdk-emmc.dts | 2 +- .../nxp/imx/imx6q-phytec-mira-rdk-nand.dts | 2 +- .../dts/nxp/imx/imx6q-phytec-phycore-som.dtsi | 75 +++++++++++++++++++ 6 files changed, 102 insertions(+), 4 deletions(-) create mode 100644 arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-phytec-phycore-som.dtsi
Signature · 1 line
2.34.1
PATCH 1/2 ARM: dts: imx6dl: Add a label to cpu1 node
From: Yunus Bas <[email protected]>
The cpu1 is missing a label for further reference. Since cpu0 has already a label, add also one for cpu1 node, so it can be referenced to add or modify cpu specific properties the same way as cpu0.
--- arch/arm/boot/dts/nxp/imx/imx6dl.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6dl.dtsi +1 -1
@@ -48,7 +48,7 @@ cpu0: cpu@0 { nvmem-cell-names = "speed_grade"; }; - cpu@1 { + cpu1: cpu@1 { compatible = "arm,cortex-a9"; device_type = "cpu"; reg = <1>;
Signature · 1 line
2.34.1
PATCH 2/2 ARM: dts: imx6qdl: phycore-som: Add custom volt/freq table
In reply to Primoz FiserFrom: Yunus Bas <[email protected]>
The PHYTEC phyCORE-i.MX6QDL SOM-modules are operating with a slightly different voltage and frequency values in contrast to the generic i.MX6Q/DL tables. The values have been adjusted to achieve the most stable condition for the PHYTEC-modules. Introduce imx6q- and imx6dl-phycore dtsi files with the modified power tables.
--- .../nxp/imx/imx6dl-phytec-mira-rdk-nand.dts | 2 +- .../nxp/imx/imx6dl-phytec-phycore-som.dtsi | 23 ++++++ .../nxp/imx/imx6q-phytec-mira-rdk-emmc.dts | 2 +- .../nxp/imx/imx6q-phytec-mira-rdk-nand.dts | 2 +- .../dts/nxp/imx/imx6q-phytec-phycore-som.dtsi | 75 +++++++++++++++++++ 5 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-phytec-phycore-som.dtsi
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-mira-rdk-nand.dts +1 -1
@@ -6,7 +6,7 @@ /dts-v1/; #include "imx6dl.dtsi" -#include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6dl-phytec-phycore-som.dtsi" #include "imx6qdl-phytec-mira.dtsi" #include "imx6qdl-phytec-mira-peb-eval-01.dtsi" #include "imx6qdl-phytec-mira-peb-av-02.dtsi"
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi new file +23 -0
@@ -0,0 +1,23 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2021 PHYTEC Messtechnik GmbH + * Author: Yunus Bas <[email protected]> + */ + +#include "imx6qdl-phytec-phycore-som.dtsi" + +&cpu0 { + operating-points = + /* kHz uV */ + <996000 1275000>, + <792000 1175000>, + <396000 1150000>; +}; + +&cpu1 { + operating-points = + /* kHz uV */ + <996000 1275000>, + <792000 1175000>, + <396000 1150000>; +};
arch/arm/boot/dts/nxp/imx/imx6q-phytec-mira-rdk-emmc.dts +1 -1
@@ -6,7 +6,7 @@ /dts-v1/; #include "imx6q.dtsi" -#include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6q-phytec-phycore-som.dtsi" #include "imx6qdl-phytec-mira.dtsi" #include "imx6qdl-phytec-mira-peb-eval-01.dtsi" #include "imx6qdl-phytec-mira-peb-av-02.dtsi"
arch/arm/boot/dts/nxp/imx/imx6q-phytec-mira-rdk-nand.dts +1 -1
@@ -6,7 +6,7 @@ /dts-v1/; #include "imx6q.dtsi" -#include "imx6qdl-phytec-phycore-som.dtsi" +#include "imx6q-phytec-phycore-som.dtsi" #include "imx6qdl-phytec-mira.dtsi" #include "imx6qdl-phytec-mira-peb-eval-01.dtsi" #include "imx6qdl-phytec-mira-peb-av-02.dtsi"
arch/arm/boot/dts/nxp/imx/imx6q-phytec-phycore-som.dtsi new file +75 -0
75 lines not on this page · raw message
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH 2/2] ARM: dts: imx6qdl: phycore-som: Add custom volt/freq table
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [High] dts: imx6dl: missing fsl,soc-operating-points violates hardware constraint --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] dts: imx6dl: missing fsl,soc-operating-points violates hardware constraint --
commit a3b6d4e5af39862c78043d8917ba381472b78ee4
Author: Yunus Bas <[email protected]>
ARM: dts: imx6qdl: phycore-som: Add custom volt/freq table
The PHYTEC phyCORE-i.MX6QDL SOM-modules are operating with slightly different voltage and frequency values. Introduce imx6q- and imx6dl-phycore dtsi files with the modified power tables to achieve stable condition.
Quoted 8 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi new file +2
-0@@ -0,0 +1,23 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/*
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi line 12
Quoted 10 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi new file +10
-0+ * Copyright (C) 2021 PHYTEC Messtechnik GmbH + * Author: Yunus Bas <[email protected]> + */ + +#include "imx6qdl-phytec-phycore-som.dtsi" + +&cpu0 { + operating-points = + /* kHz uV */ + <996000 1275000>,
^^^^^^^^^^^^^^^^
[Severity: High]
This overrides the operating-points to increase VDD_ARM to 1.275V for the 996MHz tier, but lacks a corresponding fsl,soc-operating-points override.
Without it, VDD_SOC will inherit the default 1.175V from imx6dl.dtsi.
The NXP i.MX6 DualLite hardware datasheet specifies that VDD_ARM_IN must not exceed VDD_SOC_IN by more than 50mV to prevent latch-up and instability.
Does this 100mV gap risk system instability or hardware damage by violating this constraint? Note that the newly added imx6q-phytec-phycore-som.dtsi correctly includes the fsl,soc-operating-points property.
Quoted 3 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi new file +3
-0+ <792000 1175000>, + <396000 1150000>; +};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH 2/2] ARM: dts: imx6qdl: phycore-som: Add custom volt/freq table
Quoted 36 lines · On 9/23/26 09:45, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] dts: imx6dl: missing fsl,soc-operating-points violates hardware constraint --commit
a3b6d4e5af39862c78043d8917ba381472b78ee4
Author: Yunus Bas <[email protected]>ARM: dts: imx6qdl: phycore-som: Add custom volt/freq table
The PHYTEC phyCORE-i.MX6QDL SOM-modules are operating with slightly different voltage and frequency values. Introduce imx6q- and imx6dl-phycore dtsi files with the modified power tables to achieve stable condition.
Quoted 8 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi new file +2
-0@@ -0,0 +1,23 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/*arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi line 12
Quoted 10 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi new file +10
-0+ * Copyright (C) 2021 PHYTEC Messtechnik GmbH + * Author: Yunus Bas <[email protected]> + */ + +#include "imx6qdl-phytec-phycore-som.dtsi" + +&cpu0 { + operating-points = + /* kHz uV */ + <996000 1275000>,^^^^^^^^^^^^^^^^[Severity: High]
This overrides the operating-points to increaseVDD_ARMto 1.275V for the 996MHz tier, but lacks a corresponding fsl,soc-operating-points override.
Quoted 8 lines
Without it,
VDD_SOCwill inherit the default 1.175V fromimx6dl.dtsi.The NXP i.MX6 DualLite hardware datasheet specifies that
VDD_ARM_INmust not exceedVDD_SOC_INby more than 50mV to prevent latch-up and instability.Does this 100mV gap risk system instability or hardware damage by violating this constraint? Note that the newly added
imx6q-phytec-phycore-som.dtsicorrectly includes the fsl,soc-operating-points property.
From the i.MX6DL datasheet:
footnote 4:
"In LDO enabled mode, the internal LDO output set points must be configured such that the VDD_ARM LDO output set point does not exceed the VDD_SOC LDO output set point by more than 100 mV"
footnote 6:
"In LDO bypassed mode, the external power supply must ensure that VDD_ARM_IN does not exceed VDD_SOC_IN by more than 100 mV."
The actual limit is thus 100 mV, not 50 mV! Can you provide quote regarding your 50 mV?
With this override, the only affected tier is the top one (996 MHz):VDD_ARM = 1.275 V, VDD_SOC (inherited from imx6dl.dtsi's default fsl,soc-operating-points) = 1.175 V, a gap of exactly 100 mV...
So this is still within limits hence no fsl,soc-operating-points override is required here IMHO.
Moreover, PHYTEC boards using downstream kernel with this patch applied have been operating with such settings for years now without issues.
BR,
Primoz
Quoted 5 lines
Quoted 4 lines
arch/arm/boot/dts/nxp/imx/imx6dl-phytec-phycore-som.dtsi new file +3
-0+ <792000 1175000>, + <396000 1150000>; +};
Signature · 9 lines
Primoz Fiser phone: +386-41-390-545 email: [email protected] -- Norik systems d.o.o. Your embedded software partner Slovenia, EU phone: +386-41-540-545 email: [email protected]
[email protected]
AppliedFrom: Frank Li <[email protected]>
Quoted 10 lines · Primoz Fiser
This is a revival of a series originally posted by Yunus Bas in February 2022 [1][2]. It adds a label to the imx6dl cpu1 node and introduces phyCORE-i.MX6 SOM specific operating-points tables, since the phyCORE modules run at slightly different voltage/frequency values than the generic i.MX6Q/DL tables.
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/[...]
Applied, thanks!
[1/2] ARM: dts: imx6dl: Add a label to cpu1 node
commit: dcbe9b512afacb9a6ee8966b8129861e02256a8f
[2/2] ARM: dts: imx6qdl: phycore-som: Add custom volt/freq table
commit: bf2f5dba1ff19d575eb9917c7722bf095724f4a6Best regards,
Signature · 1 line
Frank Li <[email protected]>