* [PATCH v2 0/3] Enable rk3588 timer support
@ 2023-04-18 12:06 Cristian Ciocaltea
2023-04-18 12:06 ` [PATCH v2 1/3] dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible Cristian Ciocaltea
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Cristian Ciocaltea @ 2023-04-18 12:06 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Sebastian Reichel, Sugar Zhang, Shreeya Patel,
Kever Yang, Johan Jonker
Cc: linux-kernel, devicetree, linux-arm-kernel, linux-rockchip,
kernel
This patchset enables Rockchip RK3588/RK3588S SoC timer support.
While here, it also handles a minor DT binding issue related to RK3288.
Changes in v2:
- Added Reviewed-by tag from Heiko in patches 1 & 2
- Update patch 3 according to Johan's review
- v1: https://lore.kernel.org/lkml/20230418095344.274025-1-cristian.ciocaltea@collabora.com/
Cristian Ciocaltea (3):
dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible
dt-bindings: timer: rockchip: Add rk3588 compatible
arm64: dts: rockchip: Add rk3588 timer
.../devicetree/bindings/timer/rockchip,rk-timer.yaml | 2 +-
arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
--
2.40.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/3] dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible
2023-04-18 12:06 [PATCH v2 0/3] Enable rk3588 timer support Cristian Ciocaltea
@ 2023-04-18 12:06 ` Cristian Ciocaltea
2023-04-18 16:28 ` Krzysztof Kozlowski
2023-04-18 12:06 ` [PATCH v2 2/3] dt-bindings: timer: rockchip: Add rk3588 compatible Cristian Ciocaltea
2023-04-18 12:06 ` [PATCH v2 3/3] arm64: dts: rockchip: Add rk3588 timer Cristian Ciocaltea
2 siblings, 1 reply; 6+ messages in thread
From: Cristian Ciocaltea @ 2023-04-18 12:06 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Sebastian Reichel, Sugar Zhang, Shreeya Patel,
Kever Yang, Johan Jonker
Cc: linux-kernel, devicetree, linux-arm-kernel, linux-rockchip,
kernel
The compatible string for Rockchip RK3288 is provided in both the 'enum'
and the subsequent 'const' item. Drop the unnecessary entry from the
enum.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
---
Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml b/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
index 65e59836a660..2bdb6e6bdb21 100644
--- a/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
+++ b/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
@@ -23,7 +23,6 @@ properties:
- rockchip,rk3188-timer
- rockchip,rk3228-timer
- rockchip,rk3229-timer
- - rockchip,rk3288-timer
- rockchip,rk3368-timer
- rockchip,px30-timer
- const: rockchip,rk3288-timer
--
2.40.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/3] dt-bindings: timer: rockchip: Add rk3588 compatible
2023-04-18 12:06 [PATCH v2 0/3] Enable rk3588 timer support Cristian Ciocaltea
2023-04-18 12:06 ` [PATCH v2 1/3] dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible Cristian Ciocaltea
@ 2023-04-18 12:06 ` Cristian Ciocaltea
2023-04-18 16:28 ` Krzysztof Kozlowski
2023-04-18 12:06 ` [PATCH v2 3/3] arm64: dts: rockchip: Add rk3588 timer Cristian Ciocaltea
2 siblings, 1 reply; 6+ messages in thread
From: Cristian Ciocaltea @ 2023-04-18 12:06 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Sebastian Reichel, Sugar Zhang, Shreeya Patel,
Kever Yang, Johan Jonker
Cc: linux-kernel, devicetree, linux-arm-kernel, linux-rockchip,
kernel
Add compatible string for Rockchip RK3588 timer.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
---
Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml b/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
index 2bdb6e6bdb21..19e56b7577a0 100644
--- a/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
+++ b/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
@@ -24,6 +24,7 @@ properties:
- rockchip,rk3228-timer
- rockchip,rk3229-timer
- rockchip,rk3368-timer
+ - rockchip,rk3588-timer
- rockchip,px30-timer
- const: rockchip,rk3288-timer
reg:
--
2.40.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/3] arm64: dts: rockchip: Add rk3588 timer
2023-04-18 12:06 [PATCH v2 0/3] Enable rk3588 timer support Cristian Ciocaltea
2023-04-18 12:06 ` [PATCH v2 1/3] dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible Cristian Ciocaltea
2023-04-18 12:06 ` [PATCH v2 2/3] dt-bindings: timer: rockchip: Add rk3588 compatible Cristian Ciocaltea
@ 2023-04-18 12:06 ` Cristian Ciocaltea
2 siblings, 0 replies; 6+ messages in thread
From: Cristian Ciocaltea @ 2023-04-18 12:06 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Sebastian Reichel, Sugar Zhang, Shreeya Patel,
Kever Yang, Johan Jonker
Cc: linux-kernel, devicetree, linux-arm-kernel, linux-rockchip,
kernel
Add DT node for Rockchip RK3588/RK3588S SoC timer.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
index 657c019d27fa..767084a1ec43 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
@@ -1400,6 +1400,14 @@ i2c5: i2c@fead0000 {
status = "disabled";
};
+ timer0: timer@feae0000 {
+ compatible = "rockchip,rk3588-timer", "rockchip,rk3288-timer";
+ reg = <0x0 0xfeae0000 0x0 0x20>;
+ interrupts = <GIC_SPI 289 IRQ_TYPE_LEVEL_HIGH 0>;
+ clocks = <&cru PCLK_BUSTIMER0>, <&cru CLK_BUSTIMER0>;
+ clock-names = "pclk", "timer";
+ };
+
wdt: watchdog@feaf0000 {
compatible = "rockchip,rk3588-wdt", "snps,dw-wdt";
reg = <0x0 0xfeaf0000 0x0 0x100>;
--
2.40.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible
2023-04-18 12:06 ` [PATCH v2 1/3] dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible Cristian Ciocaltea
@ 2023-04-18 16:28 ` Krzysztof Kozlowski
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-04-18 16:28 UTC (permalink / raw)
To: Cristian Ciocaltea, Daniel Lezcano, Thomas Gleixner, Rob Herring,
Krzysztof Kozlowski, Heiko Stuebner, Sebastian Reichel,
Sugar Zhang, Shreeya Patel, Kever Yang, Johan Jonker
Cc: linux-kernel, devicetree, linux-arm-kernel, linux-rockchip,
kernel
On 18/04/2023 14:06, Cristian Ciocaltea wrote:
> The compatible string for Rockchip RK3288 is provided in both the 'enum'
> and the subsequent 'const' item. Drop the unnecessary entry from the
> enum.
It's in three places, not two. The one which you remove is actually
rk3288+rk3288 which is obviously wrong. The commit msg could be
rephrased to point actual mistake being fixed + Fixes tag.
>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 2/3] dt-bindings: timer: rockchip: Add rk3588 compatible
2023-04-18 12:06 ` [PATCH v2 2/3] dt-bindings: timer: rockchip: Add rk3588 compatible Cristian Ciocaltea
@ 2023-04-18 16:28 ` Krzysztof Kozlowski
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-04-18 16:28 UTC (permalink / raw)
To: Cristian Ciocaltea, Daniel Lezcano, Thomas Gleixner, Rob Herring,
Krzysztof Kozlowski, Heiko Stuebner, Sebastian Reichel,
Sugar Zhang, Shreeya Patel, Kever Yang, Johan Jonker
Cc: linux-kernel, devicetree, linux-arm-kernel, linux-rockchip,
kernel
On 18/04/2023 14:06, Cristian Ciocaltea wrote:
> Add compatible string for Rockchip RK3588 timer.
>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
(Wait 24h before sending new version for fix in 1st patch)
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-04-18 16:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-18 12:06 [PATCH v2 0/3] Enable rk3588 timer support Cristian Ciocaltea
2023-04-18 12:06 ` [PATCH v2 1/3] dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible Cristian Ciocaltea
2023-04-18 16:28 ` Krzysztof Kozlowski
2023-04-18 12:06 ` [PATCH v2 2/3] dt-bindings: timer: rockchip: Add rk3588 compatible Cristian Ciocaltea
2023-04-18 16:28 ` Krzysztof Kozlowski
2023-04-18 12:06 ` [PATCH v2 3/3] arm64: dts: rockchip: Add rk3588 timer Cristian Ciocaltea
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).