Skip to contentSkip to conversation

Add video reset to aspeed-clk

PATCH Applied Jammy Huang 3 participants 7 messages Oct 3, 2025 – Feb 4

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

v2 cover Add video reset to aspeed-clk

Add missing video reset to aspeed clock controller drivers.

v2 changes:
- Add patch for drivers/clk/clk-aspeed.c
- Update index of ASPEED_RESET_VIDEO

Jammy Huang (2):
dt-bindings: clock: aspeed: Add VIDEO reset definition
clk: aspeed: Add reset for HACE/VIDEO

 drivers/clk/clk-aspeed.c                 | 2 ++
 include/dt-bindings/clock/aspeed-clock.h | 1 +
 2 files changed, 3 insertions(+)

base-commit: 7f7072574127c9e971cad83a0274e86f6275c0d5

Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/2 dt-bindings: clock: aspeed: Add VIDEO reset definition

ASPEED clock controller provides a couple of resets. Add the define of video to allow referring to it.

---
v2 changes:
- Update index of ASPEED_RESET_VIDEO

---
 include/dt-bindings/clock/aspeed-clock.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/aspeed-clock.h +1 -0
index 06d568382c77..671e5a476eae 100644
@@ -53,5 +53,6 @@
 #define ASPEED_RESET_AHB		8
 #define ASPEED_RESET_CRT1		9
 #define ASPEED_RESET_HACE		10
+#define ASPEED_RESET_VIDEO		11
 
 #endif
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: clock: aspeed: Add VIDEO reset definition

Quoted 7 lines · Jammy Huang

ASPEED clock controller provides a couple of resets. Add the define of video to allow referring to it.

---
v2 changes:
- Update index of ASPEED_RESET_VIDEO

Ah, so here is the next version. I don't see how this can be correct if 21 was correct before. Was 21 wrong?

Quoted 18 lines
---
 include/dt-bindings/clock/aspeed-clock.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/aspeed-clock.h +1 -0
index 06d568382c77..671e5a476eae 100644
@@ -53,5 +53,6 @@
 #define ASPEED_RESET_AHB		8
 #define ASPEED_RESET_CRT1		9
 #define ASPEED_RESET_HACE		10
+#define ASPEED_RESET_VIDEO		11
 
 #endif
Signature · 1 line
2.25.1
Acked-by
#3 lore raw

Re: [PATCH v2 1/2] dt-bindings: clock: aspeed: Add VIDEO reset definition

Quoted 11 lines · Conor Dooley
Quoted 7 lines · Jammy Huang

ASPEED clock controller provides a couple of resets. Add the define of video to allow referring to it.

---
v2 changes:
- Update index of ASPEED_RESET_VIDEO

Ah, so here is the next version. I don't see how this can be correct if 21 was correct before. Was 21 wrong?

Given the driver has mappings, I guess this is actually correct.

Quoted 18 lines
Quoted 18 lines
---
 include/dt-bindings/clock/aspeed-clock.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/clock/aspeed-clock.h +1 -0
index 06d568382c77..671e5a476eae 100644
@@ -53,5 +53,6 @@
 #define ASPEED_RESET_AHB		8
 #define ASPEED_RESET_CRT1		9
 #define ASPEED_RESET_HACE		10
+#define ASPEED_RESET_VIDEO		11
 
 #endif
Signature · 1 line
2.25.1
maintainer Applied
#4 lore raw

Re: [PATCH v2 1/2] dt-bindings: clock: aspeed: Add VIDEO reset definition

In reply to Jammy Huang

Quoting Jammy Huang (2025-10-02 18:58:44)

Quoted 5 lines

ASPEED clock controller provides a couple of resets. Add the define of video to allow referring to it.

---

Applied to clk-next

#5 lore raw

PATCH v2 2/2 clk: aspeed: Add reset for HACE/VIDEO

In reply to Jammy Huang

Add mappings of reset per hw's definition.

---
 drivers/clk/clk-aspeed.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/clk/clk-aspeed.c +2 -0
index ff84191d0fe8..74c8c1377b70 100644
@@ -278,6 +278,8 @@ static const u8 aspeed_resets[] = {
 	[ASPEED_RESET_PECI]	= 10,
 	[ASPEED_RESET_I2C]	=  2,
 	[ASPEED_RESET_AHB]	=  1,
+	[ASPEED_RESET_HACE]	=  4,
+	[ASPEED_RESET_VIDEO]	=  6,
 
 	/*
 	 * SCUD4 resets start at an offset to separate them from
Signature · 1 line
2.25.1
maintainer Applied
#6 lore raw

Re: [PATCH v2 2/2] clk: aspeed: Add reset for HACE/VIDEO

Quoting Jammy Huang (2025-10-02 18:58:45)

Quoted 4 lines

Add mappings of reset per hw's definition.

---

Applied to clk-next