* [PATCH v3] dt-bindings: clock: ast2600: Add I3C and MAC reset definitions
@ 2023-07-18 6:26 Dylan Hung
2023-07-18 6:34 ` Krzysztof Kozlowski
2023-07-19 19:49 ` Stephen Boyd
0 siblings, 2 replies; 3+ messages in thread
From: Dylan Hung @ 2023-07-18 6:26 UTC (permalink / raw)
To: mturquette, sboyd, robh+dt, krzysztof.kozlowski+dt, conor+dt,
linux-clk, devicetree, linux-kernel
Cc: BMC-SW, kobedylan, Dylan Hung
Add reset definitions of AST2600 I3C and MAC controllers. In the case of
the I3C reset, since there is no reset-line hardware available for
`ASPEED_RESET_I3C_DMA`, a new macro `ASPEED_RESET_I3C` with the same ID
is introduced to provide a more accurate representation of the hardware.
The old macro `ASPEED_RESET_I3C_DMA` is kept to provide backward
compatibility.
Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
---
changes in v2:
- Added back ASPEED_RESET_I3C_DMA for backward compatibility
- link to v1: https://lore.kernel.org/all/20230621094545.707-1-dylan_hung@aspeedtech.com/
changes in v3:
- Added an explaination for adding a duplicate ID in the commit message
- Link to v2: https://lore.kernel.org/all/20230717075123.1597977-1-dylan_hung@aspeedtech.com/
include/dt-bindings/clock/ast2600-clock.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/dt-bindings/clock/ast2600-clock.h b/include/dt-bindings/clock/ast2600-clock.h
index e149eee61588..712782177c90 100644
--- a/include/dt-bindings/clock/ast2600-clock.h
+++ b/include/dt-bindings/clock/ast2600-clock.h
@@ -90,7 +90,19 @@
/* Only list resets here that are not part of a clock gate + reset pair */
#define ASPEED_RESET_ADC 55
#define ASPEED_RESET_JTAG_MASTER2 54
+
+#define ASPEED_RESET_MAC4 53
+#define ASPEED_RESET_MAC3 52
+
+#define ASPEED_RESET_I3C5 45
+#define ASPEED_RESET_I3C4 44
+#define ASPEED_RESET_I3C3 43
+#define ASPEED_RESET_I3C2 42
+#define ASPEED_RESET_I3C1 41
+#define ASPEED_RESET_I3C0 40
+#define ASPEED_RESET_I3C 39
#define ASPEED_RESET_I3C_DMA 39
+
#define ASPEED_RESET_PWM 37
#define ASPEED_RESET_PECI 36
#define ASPEED_RESET_MII 35
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] dt-bindings: clock: ast2600: Add I3C and MAC reset definitions
2023-07-18 6:26 [PATCH v3] dt-bindings: clock: ast2600: Add I3C and MAC reset definitions Dylan Hung
@ 2023-07-18 6:34 ` Krzysztof Kozlowski
2023-07-19 19:49 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-18 6:34 UTC (permalink / raw)
To: Dylan Hung, mturquette, sboyd, robh+dt, krzysztof.kozlowski+dt,
conor+dt, linux-clk, devicetree, linux-kernel
Cc: BMC-SW, Dylan Hung
On 18/07/2023 08:26, Dylan Hung wrote:
> Add reset definitions of AST2600 I3C and MAC controllers. In the case of
> the I3C reset, since there is no reset-line hardware available for
> `ASPEED_RESET_I3C_DMA`, a new macro `ASPEED_RESET_I3C` with the same ID
> is introduced to provide a more accurate representation of the hardware.
> The old macro `ASPEED_RESET_I3C_DMA` is kept to provide backward
> compatibility.
>
> Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
> ---
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] dt-bindings: clock: ast2600: Add I3C and MAC reset definitions
2023-07-18 6:26 [PATCH v3] dt-bindings: clock: ast2600: Add I3C and MAC reset definitions Dylan Hung
2023-07-18 6:34 ` Krzysztof Kozlowski
@ 2023-07-19 19:49 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2023-07-19 19:49 UTC (permalink / raw)
To: Dylan Hung, conor+dt, devicetree, krzysztof.kozlowski+dt,
linux-clk, linux-kernel, mturquette, robh+dt
Cc: BMC-SW, kobedylan, Dylan Hung
Quoting Dylan Hung (2023-07-17 23:26:16)
> Add reset definitions of AST2600 I3C and MAC controllers. In the case of
> the I3C reset, since there is no reset-line hardware available for
> `ASPEED_RESET_I3C_DMA`, a new macro `ASPEED_RESET_I3C` with the same ID
> is introduced to provide a more accurate representation of the hardware.
> The old macro `ASPEED_RESET_I3C_DMA` is kept to provide backward
> compatibility.
>
> Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-19 19:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-18 6:26 [PATCH v3] dt-bindings: clock: ast2600: Add I3C and MAC reset definitions Dylan Hung
2023-07-18 6:34 ` Krzysztof Kozlowski
2023-07-19 19:49 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).