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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: samsung,exynos-adc: 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-11-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+17 -12
+17 -12
Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml
··· 11 11 12 12 properties: 13 13 compatible: 14 - enum: 15 - - samsung,exynos-adc-v1 # Exynos5250 16 - - samsung,exynos-adc-v2 17 - - samsung,exynos3250-adc 18 - - samsung,exynos4212-adc # Exynos4212 and Exynos4412 19 - - samsung,exynos7-adc 20 - - samsung,s3c2410-adc 21 - - samsung,s3c2416-adc 22 - - samsung,s3c2440-adc 23 - - samsung,s3c2443-adc 24 - - samsung,s3c6410-adc 25 - - samsung,s5pv210-adc 14 + oneOf: 15 + - enum: 16 + - samsung,exynos-adc-v1 # Exynos5250 17 + - samsung,exynos-adc-v2 18 + - samsung,exynos3250-adc 19 + - samsung,exynos4212-adc # Exynos4212 and Exynos4412 20 + - samsung,exynos7-adc 21 + - samsung,s3c2410-adc 22 + - samsung,s3c2416-adc 23 + - samsung,s3c2440-adc 24 + - samsung,s3c2443-adc 25 + - samsung,s3c6410-adc 26 + - samsung,s5pv210-adc 27 + - items: 28 + - enum: 29 + - samsung,exynos5433-adc 30 + - const: samsung,exynos7-adc 26 31 27 32 reg: 28 33 maxItems: 1