arm64: dts: imx8mp: Add SNVS LPGPR
Subsystems (2)
PATCH 1/1 arm64: dts: imx8mp: Add SNVS LPGPR
Add SNVS LPGPR bindings to MX8M Plus, the LPGPR is used to store e.g. boot counter.
---
Cc: Fabio Estevam <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: [email protected]
To: [email protected]
--- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +5 -0
@@ -478,6 +478,11 @@ snvs_pwrkey: snvs-powerkey { wakeup-source; status = "disabled"; }; + + snvs_lpgpr: snvs-lpgpr { + compatible = "fsl,imx8mp-snvs-lpgpr", + "fsl,imx7d-snvs-lpgpr"; + }; }; clk: clock-controller@30380000 {
Signature · 7 lines
2.35.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 4 lines · Marek Vasut
Add SNVS LPGPR bindings to MX8M Plus, the LPGPR is used to store e.g. boot counter.
Signed-off-by Marek Vasut <[email protected]>
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hello Marek,
Am Dienstag, 23. August 2022, 18:56:02 CEST schrieb Marek Vasut:
Quoted 23 lines
Add SNVS LPGPR bindings to MX8M Plus, the LPGPR is used to store e.g. boot counter.
Signed-off-by Marek Vasut <[email protected]>---
Cc: Fabio Estevam <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: [email protected]
To: [email protected]--- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 5 +++++ 1 file changed, 5 insertions(+)(quoted diff) +0
-0
b/arch/arm64/boot/dts/freescale/imx8mp.dtsiindexf7adcb2c14880..21689e9e68170100644
arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 483
Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +3
-0@@ -478,6 +478,11 @@ snvs_pwrkey: snvs-powerkey { wakeup-source; status = "disabled"; }; + + snvs_lpgpr: snvs-lpgpr { + compatible =
"fsl,imx8mp-snvs-lpgpr",
arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 481
Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1
-0+
"fsl,imx7d-snvs-lpgpr";
arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 488
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1
-0+ }; }; clk: clock-controller@30380000 {
Do you have any information that the i.MX8M Plus actually has the HPLR register (at offset 0)? This is used in snvs_lpgpr_write. I can't find it in the RM, although GPR_SL is referenced in LPGPRx register description.
Best regards,
Alexander
Quoted 1 line · Alexander Stein
Hello Marek,
Hi,
Quoted 3 lines
Am Dienstag, 23. August 2022, 18:56:02 CEST schrieb Marek Vasut:
Quoted 2 lines
Add SNVS LPGPR bindings to MX8M Plus, the LPGPR is used to store e.g. boot counter.
[...]
Quoted 15 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 483
Quoted 12 lines
(quoted diff) +0
-0
b/arch/arm64/boot/dts/freescale/imx8mp.dtsiindexf7adcb2c14880..21689e9e68170100644arch/arm64/boot/dts/freescale/imx8mp.dtsi +3
-0@@ -478,6 +478,11 @@ snvs_pwrkey: snvs-powerkey { wakeup-source; status = "disabled"; }; + + snvs_lpgpr: snvs-lpgpr { + compatible ="fsl,imx8mp-snvs-lpgpr",
arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 481
Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1
-0+"fsl,imx7d-snvs-lpgpr";
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 488
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1
-0+ }; }; clk: clock-controller@30380000 {Do you have any information that the i.MX8M Plus actually has the HPLR register (at offset 0)? This is used in
snvs_lpgpr_write. I can't find it in the RM, althoughGPR_SLis referenced in LPGPRx register description.
It seems the HPLR is only documented in the Security RM (MX8MMSRM, MX8MPSRM etc), not in the regular RM (MX8MMRM, MX8MPRM etc) . So it seems the register does exist, including the soft lock bit, it is only omitted from the plain RM.
(also, sorry for the delayed reply)
Alexander Stein
Reviewed-byHi Marek,
Am Mittwoch, 31. August 2022, 16:45:31 CEST schrieb Marek Vasut:
Quoted 42 lines · Alexander Stein
Quoted 1 line
Hello Marek,
Hi,
Quoted 3 lines
Am Dienstag, 23. August 2022, 18:56:02 CEST schrieb Marek Vasut:
Quoted 2 lines
Add SNVS LPGPR bindings to MX8M Plus, the LPGPR is used to store e.g. boot counter.
[...]
Quoted 24 lines
Quoted 6 lines
(quoted diff) +0
-0
b/arch/arm64/boot/dts/freescale/imx8mp.dtsiindexf7adcb2c14880..21689e9e68170100644arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 486
Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +3
-0@@ -478,6 +478,11 @@ snvs_pwrkey: snvs-powerkey { wakeup-source; status = "disabled"; }; + + snvs_lpgpr: snvs-lpgpr { + compatible ="fsl,imx8mp-snvs-lpgpr",
arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 481
Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1
-0+"fsl,imx7d-snvs-lpgpr";
Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1
-0+ };Quoted 7 lines
Quoted 3 lines
}; clk: clock-controller@30380000 {Do you have any information that the i.MX8M Plus actually has the HPLR register (at offset 0)? This is used in
snvs_lpgpr_write. I can't find it in the RM, althoughGPR_SLis referenced in LPGPRx register description.
Quoted 6 lines
It seems the HPLR is only documented in the Security RM (MX8MMSRM, MX8MPSRM etc), not in the regular RM (MX8MMRM, MX8MPRM etc) . So it seems the register does exist, including the soft lock bit, it is only omitted from the plain RM.
(also, sorry for the delayed reply)
Ah, there it is. Nice!
Quoted 50 lines · Alexander Stein
Hi Marek,
Am Mittwoch, 31. August 2022, 16:45:31 CEST schrieb Marek Vasut:
Quoted 47 lines · Alexander Stein
Quoted 1 line
Hello Marek,
Hi,
Quoted 3 lines
Am Dienstag, 23. August 2022, 18:56:02 CEST schrieb Marek Vasut:
Quoted 2 lines
Add SNVS LPGPR bindings to MX8M Plus, the LPGPR is used to store e.g. boot counter.
[...]
Quoted 24 lines
Quoted 6 lines
(quoted diff) +0
-0
b/arch/arm64/boot/dts/freescale/imx8mp.dtsiindexf7adcb2c14880..21689e9e68170100644arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 486
Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +3
-0@@ -478,6 +478,11 @@ snvs_pwrkey: snvs-powerkey { wakeup-source; status = "disabled"; }; + + snvs_lpgpr: snvs-lpgpr { + compatible ="fsl,imx8mp-snvs-lpgpr",
arch/arm64/boot/dts/freescale/imx8mp.dtsi snvs_pwrkey: snvs-powerkey { · line 481
Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1
-0+"fsl,imx7d-snvs-lpgpr";
Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1
-0+ };Quoted 7 lines
Quoted 3 lines
}; clk: clock-controller@30380000 {Do you have any information that the i.MX8M Plus actually has the HPLR register (at offset 0)? This is used in
snvs_lpgpr_write. I can't find it in the RM, althoughGPR_SLis referenced in LPGPRx register description.It seems the HPLR is only documented in the Security RM (MX8MMSRM, MX8MPSRM etc), not in the regular RM (MX8MMRM, MX8MPRM etc) . So it seems the register does exist, including the soft lock bit, it is only omitted from the plain RM.
Quoted 5 lines
Quoted 1 line
(also, sorry for the delayed reply)
Ah, there it is. Nice!
Reviewed-by Alexander Stein <[email protected]>
Thank you
Shawn Guo
AppliedQuoted 4 lines · Marek Vasut
Add SNVS LPGPR bindings to MX8M Plus, the LPGPR is used to store e.g. boot counter.
Signed-off-by Marek Vasut <[email protected]>
Applied, thanks!