Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: watchdog: samsung: add specific compatible for Tesla FSD

Tesla FSD is a derivative of Samsung Exynos SoC, thus just like the
others it reuses several devices from older designs. Historically we
kept the old (block's) compatible only. This works fine and there is no
bug here, however guidelines expressed in
Documentation/devicetree/bindings/writing-bindings.rst state that:
1. Compatibles should be specific.
2. We should add new compatibles in case of bugs or features.

Add Tesla FSD compatible specific to be used with an existing fallback.

Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231205092229.19135-6-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+13 -8
+13 -8
Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
··· 16 16 17 17 properties: 18 18 compatible: 19 - enum: 20 - - samsung,s3c2410-wdt # for S3C2410 21 - - samsung,s3c6410-wdt # for S3C6410, S5PV210 and Exynos4 22 - - samsung,exynos5250-wdt # for Exynos5250 23 - - samsung,exynos5420-wdt # for Exynos5420 24 - - samsung,exynos7-wdt # for Exynos7 25 - - samsung,exynos850-wdt # for Exynos850 26 - - samsung,exynosautov9-wdt # for Exynosautov9 19 + oneOf: 20 + - enum: 21 + - samsung,s3c2410-wdt # for S3C2410 22 + - samsung,s3c6410-wdt # for S3C6410, S5PV210 and Exynos4 23 + - samsung,exynos5250-wdt # for Exynos5250 24 + - samsung,exynos5420-wdt # for Exynos5420 25 + - samsung,exynos7-wdt # for Exynos7 26 + - samsung,exynos850-wdt # for Exynos850 27 + - samsung,exynosautov9-wdt # for Exynosautov9 28 + - items: 29 + - enum: 30 + - tesla,fsd-wdt 31 + - const: samsung,exynos7-wdt 27 32 28 33 reg: 29 34 maxItems: 1