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

dt-bindings: hwinfo: samsung,exynos-chipid: add specific compatibles for existing SoC

Samsung Exynos SoC reuses several devices from older designs, thus
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 compatibles specific to each SoC in front of all old-SoC-like
compatibles.

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231108104343.24192-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+14 -3
+14 -3
Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml
··· 11 11 12 12 properties: 13 13 compatible: 14 - enum: 15 - - samsung,exynos4210-chipid 16 - - samsung,exynos850-chipid 14 + oneOf: 15 + - enum: 16 + - samsung,exynos4210-chipid 17 + - samsung,exynos850-chipid 18 + - items: 19 + - enum: 20 + - samsung,exynos5433-chipid 21 + - samsung,exynos7-chipid 22 + - const: samsung,exynos4210-chipid 23 + - items: 24 + - enum: 25 + - samsung,exynos7885-chipid 26 + - samsung,exynosautov9-chipid 27 + - const: samsung,exynos850-chipid 17 28 18 29 reg: 19 30 maxItems: 1