arm64: dts: ti: Add k3-am62p-wakeup.dtsi for AM62PX efuse GP_SW1
Subsystems (2)
PATCH v2 1/1 arm64: dts: ti: Add k3-am62p-wakeup.dtsi for AM62PX efuse GP_SW1
Create k3-am62p-wakeup.dtsi which includes AM62P-specific WAKEUP domain nodes.
In k3-am62p-wakeup.dtsi, add the efuse node for GP_SW1 register at offset 0x230. GP_SW1 will be used to determine AM62P silicon revision.
---
This patch adds GP_SW1 efuse node for AM62PX only now that bindings [0] are in place.
Changes since v1:
- Move gpsw_efuse from k3-am62p-j722s-common-wakeup.dtsi to the new k3-am62p-wakeup.dtsi [1] since GP_SW efuse registers are marked reserved for J722S.
[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/all/[email protected]/#t
Link to v1:
https://lore.kernel.org/all/[email protected]/
--- arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 25 +++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62p.dtsi | 1 + 2 files changed, 26 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +25 -0
@@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Device Tree file for the AM62P WAKEUP domain peripherals + * + * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/ + */ + +&wkup_conf { + gpsw_efuse: efuse@230 { + compatible = "ti,am62p-efuse", "socionext,uniphier-efuse"; + reg = <0x230 0x10>; + #address-cells = <1>; + bootph-all; + #size-cells = <1>; + + gpsw1: gpsw1@4 { + reg = <0x4 0x4>; + }; + }; +}; + +&chipid { + nvmem-cells = <&gpsw1>; + nvmem-cell-names = "gpsw1"; +};
arch/arm64/boot/dts/ti/k3-am62p.dtsi +1 -0
@@ -154,3 +154,4 @@ cbass_wakeup: bus@b00000 { /* Include AM62P specific peripherals */ #include "k3-am62p-main.dtsi" +#include "k3-am62p-wakeup.dtsi"
Signature · 1 line
2.34.1
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [High] dt-bindings: invalid fallback compatible causes bus fault on AM62P WKUP_CTRL_MMR --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] dt-bindings: invalid fallback compatible causes bus fault on AM62P WKUP_CTRL_MMR --
commit b27457a62deb29b29e55d04f2bdab0cbcd3ef0cd
Author: Judith Mendez <[email protected]>
Subject: arm64: dts: ti: Add k3-am62p-wakeup.dtsi for AM62PX efuse GP_SW1
This commit creates a new device tree include file for AM62P WAKEUP domain peripherals. It adds an efuse node for the GP_SW1 register, which will be used to determine the AM62P silicon revision.
Link to v1: https://lore.kernel.org/all/[email protected]/
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +0
-0@@ -0,0 +1,25 @@
[ ... ]
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi line 10
Quoted 3 lines
+&wkup_conf {
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +2
-0+ gpsw_efuse: efuse@230 { + compatible = "ti,am62p-efuse", "socionext,uniphier-efuse";
[Severity: High]
Does this fallback compatible cause a bus fault on boot?
The ti,am654-chipid driver probes and calls nvmem_cell_read_u32() for the gpsw1 cell, which delegates the read to the NVMEM provider. By using "socionext,uniphier-efuse" as a fallback, the driver in drivers/nvmem/uniphier-efuse.c is bound. That driver sets word_size = 1 and uses a byte-wise readb() loop in uniphier_reg_read().
Because the efuse@230 node is in the TI K3 WKUP_CTRL_MMR space, it strictly requires 32-bit aligned accesses (readl()). The 8-bit accesses performed by the Uniphier driver violate this hardware invariant and cause a Synchronous External Abort during boot.
Also, is it acceptable to piggyback on an unrelated vendor's IP compatible string just to bind a generic NVMEM driver?
Quoted 2 lines
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +2
-0+ reg = <0x230 0x10>; + #address-cells = <1>;
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Hey Judith,
Thanks for the patch.
Quoted 5 lines · Judith Mendez
Create
k3-am62p-wakeup.dtsiwhich includes AM62P-specific WAKEUP domain nodes.In
k3-am62p-wakeup.dtsi, add the efuse node forGP_SW1register at offset0x230.GP_SW1will be used to determine AM62P silicon revision.
Nit: Isn't GP_SW1 0x230 + offset? might need fixing of the msg.
Quoted 31 lines
Signed-off-by Judith Mendez <[email protected]>---
This patch addsGP_SW1efuse node for AM62PX only now that bindings [0] are in place.Changes since v1:
- Movegpsw_efusefromk3-am62p-j722s-common-wakeup.dtsito the newk3-am62p-wakeup.dtsi[1] sinceGP_SWefuse registers are marked reserved for J722S.[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/all/[email protected]/#tLink to v1:
https://lore.kernel.org/all/[email protected]/--- arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 25 +++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62p.dtsi | 1 + 2 files changed, 26 insertions(+)create mode 100644
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsiarch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +3
-0@@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Device Tree file for the AM62P WAKEUP domain peripherals
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi line 13
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +10
-0+ * + * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/ + */ + +&wkup_conf { + gpsw_efuse: efuse@230 { + compatible = "ti,am62p-efuse", "socionext,uniphier-efuse"; + reg = <0x230 0x10>; + #address-cells = <1>; + bootph-all;
Nit: I think the property ordering for bootph-all doesn't look correct.
With the above two changes, if valid.
Regards,
Moteen
Quoted 21 lines
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +12
-0+ #size-cells = <1>; + + gpsw1: gpsw1@4 { + reg = <0x4 0x4>; + }; + }; +}; + +&chipid { + nvmem-cells = <&gpsw1>; + nvmem-cell-names = "gpsw1"; +};arch/arm64/boot/dts/ti/k3-am62p.dtsi +1
-0@@ -154,3 +154,4 @@ cbass_wakeup: bus@b00000 { /* Include AM62P specific peripherals */ #include "k3-am62p-main.dtsi" +#include "k3-am62p-wakeup.dtsi"
Hi Moteen,
Quoted 59 lines · Moteen Shah
Hey Judith,
Thanks for the patch.Quoted 5 lines · Judith Mendez
Create
k3-am62p-wakeup.dtsiwhich includes AM62P-specific WAKEUP domain nodes.In
k3-am62p-wakeup.dtsi, add the efuse node forGP_SW1register at offset0x230.GP_SW1will be used to determine AM62P silicon revision.Nit: Isn't
GP_SW10x230+ offset? might need fixing of the msg.Quoted 34 lines
Signed-off-by Judith Mendez <[email protected]>---
This patch addsGP_SW1efuse node for AM62PX only now that bindings [0] are in place.Changes since v1:
- Movegpsw_efusefromk3-am62p-j722s-common-wakeup.dtsito the newk3-am62p-wakeup.dtsi[1] sinceGP_SWefuse registers are marked reserved for J722S.[0] https://lore.kernel.org/ all/[email protected]/
[1] https://lore.kernel.org/all/5d4742fa-e26a-4b49-8eb4- [email protected]/#tLink to v1:
https://lore.kernel.org/all/[email protected]/
---
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi| 25 +++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62p.dtsi | 1 +2 files changed, 26 insertions(+)create mode 100644
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsiarch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +5
-0@@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Device Tree file for the AM62P WAKEUP domain peripherals + * + * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
Quoted 8 lines
+ */
+
+&wkup_conf {
+gpsw_efuse: efuse@230 {
+ compatible = "ti,am62p-efuse", "socionext,uniphier-efuse"; + reg = <0x2300x10>;
+ #address-cells = <1>;
+ bootph-all;Nit: I think the property ordering for bootph-all doesn't look correct.
Quoted 1 line
With the above two changes, if valid.
I ran a DT checker, and it says to put it before size-cells and after address cells. If I revert, I get these warnings:
+arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi:13: [property-order] property '#address-cells' out of canonical order (should sort before 'bootph-all')
So Ill leave as is for now, I will fix the commit message though. Thanks for reviewing.
~ Judith
Quoted 26 lines
Reviewed-by Moteen Shah <[email protected]>Regards,
MoteenQuoted 20 lines
+ #size-cells = <1>;
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi new file +11
-0+ + gpsw1: gpsw1@4 { + reg = <0x4 0x4>; + }; + }; +}; + +&chipid { + nvmem-cells = <&gpsw1>; + nvmem-cell-names = "gpsw1"; +};arch/arm64/boot/dts/ti/k3-am62p.dtsi +1
-0@@ -154,3 +154,4 @@ cbass_wakeup: bus@b00000 { /* Include AM62P specific peripherals */ #include "k3-am62p-main.dtsi" +#include "k3-am62p-wakeup.dtsi"