* [PATCH 0/4] watchdog: s3c2410_wdt: Simplify, cleanup and drop S3C2410
@ 2025-08-30 10:18 Krzysztof Kozlowski
2025-08-30 10:18 ` [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level Krzysztof Kozlowski
` (3 more replies)
0 siblings, 4 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-30 10:18 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-watchdog, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Krzysztof Kozlowski
S3C2410 is gone from kernel, so we can drop its support. Also cleanup
and correct a bit the bindings.
Best regards,
Krzysztof
---
Krzysztof Kozlowski (4):
dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level
watchdog: s3c2410_wdt: Drop S3C2410 support
dt-bindings: watchdog: samsung-wdt: Drop S3C2410
dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more
.../devicetree/bindings/watchdog/samsung-wdt.yaml | 72 ++++++++++++++++------
drivers/watchdog/s3c2410_wdt.c | 22 +------
2 files changed, 53 insertions(+), 41 deletions(-)
---
base-commit: 3cace99d63192a7250461b058279a42d91075d0c
change-id: 20250830-watchdog-s3c-cleanup-cfa28bf8bb2c
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level
2025-08-30 10:18 [PATCH 0/4] watchdog: s3c2410_wdt: Simplify, cleanup and drop S3C2410 Krzysztof Kozlowski
@ 2025-08-30 10:18 ` Krzysztof Kozlowski
2025-09-01 20:10 ` Rob Herring (Arm)
2025-09-02 19:05 ` Guenter Roeck
2025-08-30 10:18 ` [PATCH 2/4] watchdog: s3c2410_wdt: Drop S3C2410 support Krzysztof Kozlowski
` (2 subsequent siblings)
3 siblings, 2 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-30 10:18 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-watchdog, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Krzysztof Kozlowski
Properties should be always constrained in top-level part of the
bindings, so move the samsung,cluster-index constrain from if: block.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
index 53fc64f5b56d33f910395d32b35e0905b8b9aa53..445c5271879f002f2b05645a0e748dd9be5aaf72 100644
--- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
@@ -49,6 +49,7 @@ properties:
samsung,cluster-index:
$ref: /schemas/types.yaml#/definitions/uint32
+ enum: [0, 1, 2]
description:
Index of CPU cluster on which watchdog is running (in case of Exynos850,
Exynos990 or Google gs101).
@@ -104,8 +105,6 @@ allOf:
items:
- const: watchdog
- const: watchdog_src
- samsung,cluster-index:
- enum: [0, 1, 2]
required:
- samsung,cluster-index
else:
--
2.48.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/4] watchdog: s3c2410_wdt: Drop S3C2410 support
2025-08-30 10:18 [PATCH 0/4] watchdog: s3c2410_wdt: Simplify, cleanup and drop S3C2410 Krzysztof Kozlowski
2025-08-30 10:18 ` [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level Krzysztof Kozlowski
@ 2025-08-30 10:18 ` Krzysztof Kozlowski
2025-09-02 19:06 ` Guenter Roeck
2025-08-30 10:18 ` [PATCH 3/4] dt-bindings: watchdog: samsung-wdt: Drop S3C2410 Krzysztof Kozlowski
2025-08-30 10:19 ` [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more Krzysztof Kozlowski
3 siblings, 1 reply; 13+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-30 10:18 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-watchdog, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Krzysztof Kozlowski
Samsung S3C2410 SoC was removed from Linux kernel in the
commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support"), in January
2023. There are no in-kernel users of samsung,s3c2410-wdt compatible
and s3c2410-wdt platform device name, so drop both. This leaves the
driver boundable only via compatibles, so drop any CONFIG_OF ifdefs.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/watchdog/s3c2410_wdt.c | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
index 40901bdac42613458f93c09654353190785ff072..f65f25fcce3ecbb1739ff98245b69601dc5353d8 100644
--- a/drivers/watchdog/s3c2410_wdt.c
+++ b/drivers/watchdog/s3c2410_wdt.c
@@ -200,11 +200,6 @@ struct s3c2410_wdt {
struct regmap *pmureg;
};
-static const struct s3c2410_wdt_variant drv_data_s3c2410 = {
- .quirks = 0
-};
-
-#ifdef CONFIG_OF
static const struct s3c2410_wdt_variant drv_data_s3c6410 = {
.quirks = QUIRK_HAS_WTCLRINT_REG,
};
@@ -368,8 +363,6 @@ static const struct s3c2410_wdt_variant drv_data_exynosautov920_cl1 = {
static const struct of_device_id s3c2410_wdt_match[] = {
{ .compatible = "google,gs101-wdt",
.data = &drv_data_gs101_cl0 },
- { .compatible = "samsung,s3c2410-wdt",
- .data = &drv_data_s3c2410 },
{ .compatible = "samsung,s3c6410-wdt",
.data = &drv_data_s3c6410 },
{ .compatible = "samsung,exynos5250-wdt",
@@ -389,16 +382,6 @@ static const struct of_device_id s3c2410_wdt_match[] = {
{},
};
MODULE_DEVICE_TABLE(of, s3c2410_wdt_match);
-#endif
-
-static const struct platform_device_id s3c2410_wdt_ids[] = {
- {
- .name = "s3c2410-wdt",
- .driver_data = (unsigned long)&drv_data_s3c2410,
- },
- {}
-};
-MODULE_DEVICE_TABLE(platform, s3c2410_wdt_ids);
/* functions */
@@ -705,7 +688,6 @@ s3c2410_get_wdt_drv_data(struct platform_device *pdev, struct s3c2410_wdt *wdt)
platform_get_device_id(pdev)->driver_data;
}
-#ifdef CONFIG_OF
/* Choose Exynos850/ExynosAutov9 driver data w.r.t. cluster index */
if (variant == &drv_data_exynos850_cl0 ||
variant == &drv_data_exynosautov9_cl0 ||
@@ -741,7 +723,6 @@ s3c2410_get_wdt_drv_data(struct platform_device *pdev, struct s3c2410_wdt *wdt)
return dev_err_probe(dev, -EINVAL, "wrong cluster index: %u\n", index);
}
}
-#endif
wdt->drv_data = variant;
return 0;
@@ -929,11 +910,10 @@ static DEFINE_SIMPLE_DEV_PM_OPS(s3c2410wdt_pm_ops,
static struct platform_driver s3c2410wdt_driver = {
.probe = s3c2410wdt_probe,
.shutdown = s3c2410wdt_shutdown,
- .id_table = s3c2410_wdt_ids,
.driver = {
.name = "s3c2410-wdt",
.pm = pm_sleep_ptr(&s3c2410wdt_pm_ops),
- .of_match_table = of_match_ptr(s3c2410_wdt_match),
+ .of_match_table = s3c2410_wdt_match,
},
};
--
2.48.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 3/4] dt-bindings: watchdog: samsung-wdt: Drop S3C2410
2025-08-30 10:18 [PATCH 0/4] watchdog: s3c2410_wdt: Simplify, cleanup and drop S3C2410 Krzysztof Kozlowski
2025-08-30 10:18 ` [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level Krzysztof Kozlowski
2025-08-30 10:18 ` [PATCH 2/4] watchdog: s3c2410_wdt: Drop S3C2410 support Krzysztof Kozlowski
@ 2025-08-30 10:18 ` Krzysztof Kozlowski
2025-09-01 20:10 ` Rob Herring (Arm)
2025-09-02 19:06 ` Guenter Roeck
2025-08-30 10:19 ` [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more Krzysztof Kozlowski
3 siblings, 2 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-30 10:18 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-watchdog, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Krzysztof Kozlowski
Samsung S3C2410 SoC was removed from Linux kernel in the
commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support"), in January
2023. There are no in-kernel users of samsung,s3c2410-wdt compatible
anymore and platform is so old, that there should be no out-of-tree
users. If such existed, they would have enough of time to object
dropping Samsung S3C2410 SoC removal from the kernel (which did not
happen).
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
index 445c5271879f002f2b05645a0e748dd9be5aaf72..51e597ba7db2615da41f5d3b6dc4e70f6bb72bb6 100644
--- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
@@ -19,7 +19,6 @@ properties:
oneOf:
- enum:
- google,gs101-wdt # for Google gs101
- - samsung,s3c2410-wdt # for S3C2410
- samsung,s3c6410-wdt # for S3C6410, S5PV210 and Exynos4
- samsung,exynos5250-wdt # for Exynos5250
- samsung,exynos5420-wdt # for Exynos5420
--
2.48.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more
2025-08-30 10:18 [PATCH 0/4] watchdog: s3c2410_wdt: Simplify, cleanup and drop S3C2410 Krzysztof Kozlowski
` (2 preceding siblings ...)
2025-08-30 10:18 ` [PATCH 3/4] dt-bindings: watchdog: samsung-wdt: Drop S3C2410 Krzysztof Kozlowski
@ 2025-08-30 10:19 ` Krzysztof Kozlowski
2025-09-01 14:29 ` Alim Akhtar
` (2 more replies)
3 siblings, 3 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-30 10:19 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-watchdog, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Krzysztof Kozlowski
Binding defined two if:then: blocks covering different conditions but
not fully constraining the properties per each variant:
1. "if:" to require samsung,syscon-phandle,
2. "if:" with "else:" to narrow number of clocks and require or disallow
samsung,cluster-index.
This still did not cover following cases:
1. Disallow samsung,syscon-phandle when not applicable,
2. Narrow samsung,cluster-index to [0, 1], for SoCs with only two
clusters.
Solving this in current format would lead to spaghetti code, so re-write
entire "if:then:" approach into mutually exclusive cases so each SoC
appears only in one "if:" block. This allows to forbid
samsung,syscon-phandle for S3C6410, and narrow samsung,cluster-index
to [0, 1].
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/watchdog/samsung-wdt.yaml | 70 ++++++++++++++++------
1 file changed, 52 insertions(+), 18 deletions(-)
diff --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
index 51e597ba7db2615da41f5d3b6dc4e70f6bb72bb6..41aee1655b0c22a6dce212a63fa4849089253f09 100644
--- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
@@ -74,24 +74,7 @@ allOf:
contains:
enum:
- google,gs101-wdt
- - samsung,exynos5250-wdt
- - samsung,exynos5420-wdt
- - samsung,exynos7-wdt
- samsung,exynos850-wdt
- - samsung,exynos990-wdt
- - samsung,exynosautov9-wdt
- - samsung,exynosautov920-wdt
- then:
- required:
- - samsung,syscon-phandle
- - if:
- properties:
- compatible:
- contains:
- enum:
- - google,gs101-wdt
- - samsung,exynos850-wdt
- - samsung,exynos990-wdt
- samsung,exynosautov9-wdt
- samsung,exynosautov920-wdt
then:
@@ -104,9 +87,41 @@ allOf:
items:
- const: watchdog
- const: watchdog_src
+ samsung,cluster-index:
+ enum: [0, 1]
required:
- samsung,cluster-index
- else:
+ - samsung,syscon-phandle
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - samsung,exynos990-wdt
+ then:
+ properties:
+ clocks:
+ items:
+ - description: Bus clock, used for register interface
+ - description: Source clock (driving watchdog counter)
+ clock-names:
+ items:
+ - const: watchdog
+ - const: watchdog_src
+ required:
+ - samsung,cluster-index
+ - samsung,syscon-phandle
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - samsung,exynos5250-wdt
+ - samsung,exynos5420-wdt
+ - samsung,exynos7-wdt
+ then:
properties:
clocks:
items:
@@ -115,6 +130,25 @@ allOf:
items:
- const: watchdog
samsung,cluster-index: false
+ required:
+ - samsung,syscon-phandle
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - samsung,s3c6410-wdt
+ then:
+ properties:
+ clocks:
+ items:
+ - description: Bus clock, which is also a source clock
+ clock-names:
+ items:
+ - const: watchdog
+ samsung,cluster-index: false
+ samsung,syscon-phandle: false
unevaluatedProperties: false
--
2.48.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* RE: [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more
2025-08-30 10:19 ` [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more Krzysztof Kozlowski
@ 2025-09-01 14:29 ` Alim Akhtar
2025-09-01 20:13 ` Rob Herring (Arm)
2025-09-02 19:06 ` Guenter Roeck
2 siblings, 0 replies; 13+ messages in thread
From: Alim Akhtar @ 2025-09-01 14:29 UTC (permalink / raw)
To: 'Krzysztof Kozlowski', 'Wim Van Sebroeck',
'Guenter Roeck', 'Rob Herring',
'Krzysztof Kozlowski', 'Conor Dooley'
Cc: 'Krzysztof Kozlowski', linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, linux-samsung-soc
> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: Saturday, August 30, 2025 3:49 PM
> To: Wim Van Sebroeck <wim@linux-watchdog.org>; Guenter Roeck
> <linux@roeck-us.net>; Rob Herring <robh@kernel.org>; Krzysztof Kozlowski
> <krzk+dt@kernel.org>; Conor Dooley <conor+dt@kernel.org>; Alim Akhtar
> <alim.akhtar@samsung.com>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>; linux-
> watchdog@vger.kernel.org; devicetree@vger.kernel.org; linux-
> kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-
> samsung-soc@vger.kernel.org; Krzysztof Kozlowski
> <krzysztof.kozlowski@linaro.org>
> Subject: [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and
> constrain more
>
> Binding defined two if:then: blocks covering different conditions but not fully
> constraining the properties per each variant:
> 1. "if:" to require samsung,syscon-phandle, 2. "if:" with "else:" to narrow
> number of clocks and require or disallow
> samsung,cluster-index.
>
> This still did not cover following cases:
> 1. Disallow samsung,syscon-phandle when not applicable, 2. Narrow
> samsung,cluster-index to [0, 1], for SoCs with only two
> clusters.
>
> Solving this in current format would lead to spaghetti code, so re-write entire
> "if:then:" approach into mutually exclusive cases so each SoC appears only in
> one "if:" block. This allows to forbid samsung,syscon-phandle for S3C6410,
> and narrow samsung,cluster-index to [0, 1].
>
This looks much cleaner.
On a side note, may be you can add an example of latest SoC binding
for the documentation purpose as current example in this file is pretty old and simple one.
(I know one can always look into dtsi/dts for the example, but updating here won't harm)
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
In anycase,
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
> .../devicetree/bindings/watchdog/samsung-wdt.yaml | 70
> ++++++++++++++++------
> 1 file changed, 52 insertions(+), 18 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/samsung-
> wdt.yaml b/Documentation/devicetree/bindings/watchdog/samsung-
> wdt.yaml
> index
> 51e597ba7db2615da41f5d3b6dc4e70f6bb72bb6..41aee1655b0c22a6dce212a6
> 3fa4849089253f09 100644
> --- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
> @@ -74,24 +74,7 @@ allOf:
> contains:
> enum:
> - google,gs101-wdt
> - - samsung,exynos5250-wdt
> - - samsung,exynos5420-wdt
> - - samsung,exynos7-wdt
> - samsung,exynos850-wdt
> - - samsung,exynos990-wdt
> - - samsung,exynosautov9-wdt
> - - samsung,exynosautov920-wdt
> - then:
> - required:
> - - samsung,syscon-phandle
> - - if:
> - properties:
> - compatible:
> - contains:
> - enum:
> - - google,gs101-wdt
> - - samsung,exynos850-wdt
> - - samsung,exynos990-wdt
> - samsung,exynosautov9-wdt
> - samsung,exynosautov920-wdt
> then:
> @@ -104,9 +87,41 @@ allOf:
> items:
> - const: watchdog
> - const: watchdog_src
> + samsung,cluster-index:
> + enum: [0, 1]
> required:
> - samsung,cluster-index
> - else:
> + - samsung,syscon-phandle
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - samsung,exynos990-wdt
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Bus clock, used for register interface
> + - description: Source clock (driving watchdog counter)
> + clock-names:
> + items:
> + - const: watchdog
> + - const: watchdog_src
> + required:
> + - samsung,cluster-index
> + - samsung,syscon-phandle
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - samsung,exynos5250-wdt
> + - samsung,exynos5420-wdt
> + - samsung,exynos7-wdt
> + then:
> properties:
> clocks:
> items:
> @@ -115,6 +130,25 @@ allOf:
> items:
> - const: watchdog
> samsung,cluster-index: false
> + required:
> + - samsung,syscon-phandle
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - samsung,s3c6410-wdt
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Bus clock, which is also a source clock
> + clock-names:
> + items:
> + - const: watchdog
> + samsung,cluster-index: false
> + samsung,syscon-phandle: false
>
> unevaluatedProperties: false
>
>
> --
> 2.48.1
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level
2025-08-30 10:18 ` [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level Krzysztof Kozlowski
@ 2025-09-01 20:10 ` Rob Herring (Arm)
2025-09-02 19:05 ` Guenter Roeck
1 sibling, 0 replies; 13+ messages in thread
From: Rob Herring (Arm) @ 2025-09-01 20:10 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Krzysztof Kozlowski, Krzysztof Kozlowski, Conor Dooley,
linux-arm-kernel, Alim Akhtar, linux-watchdog, linux-samsung-soc,
linux-kernel, devicetree, Wim Van Sebroeck, Guenter Roeck
On Sat, 30 Aug 2025 12:18:57 +0200, Krzysztof Kozlowski wrote:
> Properties should be always constrained in top-level part of the
> bindings, so move the samsung,cluster-index constrain from if: block.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/4] dt-bindings: watchdog: samsung-wdt: Drop S3C2410
2025-08-30 10:18 ` [PATCH 3/4] dt-bindings: watchdog: samsung-wdt: Drop S3C2410 Krzysztof Kozlowski
@ 2025-09-01 20:10 ` Rob Herring (Arm)
2025-09-02 19:06 ` Guenter Roeck
1 sibling, 0 replies; 13+ messages in thread
From: Rob Herring (Arm) @ 2025-09-01 20:10 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Krzysztof Kozlowski, linux-kernel, linux-samsung-soc, Alim Akhtar,
linux-watchdog, linux-arm-kernel, Conor Dooley, devicetree,
Wim Van Sebroeck, Guenter Roeck, Krzysztof Kozlowski
On Sat, 30 Aug 2025 12:18:59 +0200, Krzysztof Kozlowski wrote:
> Samsung S3C2410 SoC was removed from Linux kernel in the
> commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support"), in January
> 2023. There are no in-kernel users of samsung,s3c2410-wdt compatible
> anymore and platform is so old, that there should be no out-of-tree
> users. If such existed, they would have enough of time to object
> dropping Samsung S3C2410 SoC removal from the kernel (which did not
> happen).
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml | 1 -
> 1 file changed, 1 deletion(-)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more
2025-08-30 10:19 ` [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more Krzysztof Kozlowski
2025-09-01 14:29 ` Alim Akhtar
@ 2025-09-01 20:13 ` Rob Herring (Arm)
2025-09-02 19:06 ` Guenter Roeck
2 siblings, 0 replies; 13+ messages in thread
From: Rob Herring (Arm) @ 2025-09-01 20:13 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: linux-arm-kernel, Krzysztof Kozlowski, Krzysztof Kozlowski,
linux-samsung-soc, Guenter Roeck, Wim Van Sebroeck, linux-kernel,
devicetree, linux-watchdog, Alim Akhtar, Conor Dooley
On Sat, 30 Aug 2025 12:19:00 +0200, Krzysztof Kozlowski wrote:
> Binding defined two if:then: blocks covering different conditions but
> not fully constraining the properties per each variant:
> 1. "if:" to require samsung,syscon-phandle,
> 2. "if:" with "else:" to narrow number of clocks and require or disallow
> samsung,cluster-index.
>
> This still did not cover following cases:
> 1. Disallow samsung,syscon-phandle when not applicable,
> 2. Narrow samsung,cluster-index to [0, 1], for SoCs with only two
> clusters.
>
> Solving this in current format would lead to spaghetti code, so re-write
> entire "if:then:" approach into mutually exclusive cases so each SoC
> appears only in one "if:" block. This allows to forbid
> samsung,syscon-phandle for S3C6410, and narrow samsung,cluster-index
> to [0, 1].
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/watchdog/samsung-wdt.yaml | 70 ++++++++++++++++------
> 1 file changed, 52 insertions(+), 18 deletions(-)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level
2025-08-30 10:18 ` [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level Krzysztof Kozlowski
2025-09-01 20:10 ` Rob Herring (Arm)
@ 2025-09-02 19:05 ` Guenter Roeck
1 sibling, 0 replies; 13+ messages in thread
From: Guenter Roeck @ 2025-09-02 19:05 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Wim Van Sebroeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Alim Akhtar, Krzysztof Kozlowski, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, linux-samsung-soc
On Sat, Aug 30, 2025 at 12:18:57PM +0200, Krzysztof Kozlowski wrote:
> Properties should be always constrained in top-level part of the
> bindings, so move the samsung,cluster-index constrain from if: block.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/4] watchdog: s3c2410_wdt: Drop S3C2410 support
2025-08-30 10:18 ` [PATCH 2/4] watchdog: s3c2410_wdt: Drop S3C2410 support Krzysztof Kozlowski
@ 2025-09-02 19:06 ` Guenter Roeck
0 siblings, 0 replies; 13+ messages in thread
From: Guenter Roeck @ 2025-09-02 19:06 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Wim Van Sebroeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Alim Akhtar, Krzysztof Kozlowski, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, linux-samsung-soc
On Sat, Aug 30, 2025 at 12:18:58PM +0200, Krzysztof Kozlowski wrote:
> Samsung S3C2410 SoC was removed from Linux kernel in the
> commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support"), in January
> 2023. There are no in-kernel users of samsung,s3c2410-wdt compatible
> and s3c2410-wdt platform device name, so drop both. This leaves the
> driver boundable only via compatibles, so drop any CONFIG_OF ifdefs.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/4] dt-bindings: watchdog: samsung-wdt: Drop S3C2410
2025-08-30 10:18 ` [PATCH 3/4] dt-bindings: watchdog: samsung-wdt: Drop S3C2410 Krzysztof Kozlowski
2025-09-01 20:10 ` Rob Herring (Arm)
@ 2025-09-02 19:06 ` Guenter Roeck
1 sibling, 0 replies; 13+ messages in thread
From: Guenter Roeck @ 2025-09-02 19:06 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Wim Van Sebroeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Alim Akhtar, Krzysztof Kozlowski, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, linux-samsung-soc
On Sat, Aug 30, 2025 at 12:18:59PM +0200, Krzysztof Kozlowski wrote:
> Samsung S3C2410 SoC was removed from Linux kernel in the
> commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support"), in January
> 2023. There are no in-kernel users of samsung,s3c2410-wdt compatible
> anymore and platform is so old, that there should be no out-of-tree
> users. If such existed, they would have enough of time to object
> dropping Samsung S3C2410 SoC removal from the kernel (which did not
> happen).
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more
2025-08-30 10:19 ` [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more Krzysztof Kozlowski
2025-09-01 14:29 ` Alim Akhtar
2025-09-01 20:13 ` Rob Herring (Arm)
@ 2025-09-02 19:06 ` Guenter Roeck
2 siblings, 0 replies; 13+ messages in thread
From: Guenter Roeck @ 2025-09-02 19:06 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Wim Van Sebroeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Alim Akhtar, Krzysztof Kozlowski, linux-watchdog, devicetree,
linux-kernel, linux-arm-kernel, linux-samsung-soc
On Sat, Aug 30, 2025 at 12:19:00PM +0200, Krzysztof Kozlowski wrote:
> Binding defined two if:then: blocks covering different conditions but
> not fully constraining the properties per each variant:
> 1. "if:" to require samsung,syscon-phandle,
> 2. "if:" with "else:" to narrow number of clocks and require or disallow
> samsung,cluster-index.
>
> This still did not cover following cases:
> 1. Disallow samsung,syscon-phandle when not applicable,
> 2. Narrow samsung,cluster-index to [0, 1], for SoCs with only two
> clusters.
>
> Solving this in current format would lead to spaghetti code, so re-write
> entire "if:then:" approach into mutually exclusive cases so each SoC
> appears only in one "if:" block. This allows to forbid
> samsung,syscon-phandle for S3C6410, and narrow samsung,cluster-index
> to [0, 1].
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2025-09-02 19:06 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-30 10:18 [PATCH 0/4] watchdog: s3c2410_wdt: Simplify, cleanup and drop S3C2410 Krzysztof Kozlowski
2025-08-30 10:18 ` [PATCH 1/4] dt-bindings: watchdog: samsung-wdt: Define cluster constraints top-level Krzysztof Kozlowski
2025-09-01 20:10 ` Rob Herring (Arm)
2025-09-02 19:05 ` Guenter Roeck
2025-08-30 10:18 ` [PATCH 2/4] watchdog: s3c2410_wdt: Drop S3C2410 support Krzysztof Kozlowski
2025-09-02 19:06 ` Guenter Roeck
2025-08-30 10:18 ` [PATCH 3/4] dt-bindings: watchdog: samsung-wdt: Drop S3C2410 Krzysztof Kozlowski
2025-09-01 20:10 ` Rob Herring (Arm)
2025-09-02 19:06 ` Guenter Roeck
2025-08-30 10:19 ` [PATCH 4/4] dt-bindings: watchdog: samsung-wdt: Split if:then: and constrain more Krzysztof Kozlowski
2025-09-01 14:29 ` Alim Akhtar
2025-09-01 20:13 ` Rob Herring (Arm)
2025-09-02 19:06 ` Guenter Roeck
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).