summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial/samsung_uart.yaml
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2023-12-11 16:23:19 +0000
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-12-12 20:22:42 +0100
commit2072496129b7d7448f969b6334b4fd2e876a642d (patch)
tree595408ed3d70c2f29af2d94c92b5981e78801669 /Documentation/devicetree/bindings/serial/samsung_uart.yaml
parentbad3bc0a23b74e7b353978b6f58eed6c0f3b51a0 (diff)
dt-bindings: serial: samsung: Make samsung,uart-fifosize a required property
Specifying samsung,uart-fifosize in both DT and driver static data is error prone and relies on driver probe order and dt aliases to be correct. Additionally on many Exynos platforms these are (USI) universal serial interfaces which can be uart, spi or i2c, so it can change per board. For google,gs101-uart make samsung,uart-fifosize a required property. For this platform fifosize now *only* comes from DT. Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Link: https://lore.kernel.org/r/20231211162331.435900-5-peter.griffin@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/serial/samsung_uart.yaml')
-rw-r--r--Documentation/devicetree/bindings/serial/samsung_uart.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/serial/samsung_uart.yaml b/Documentation/devicetree/bindings/serial/samsung_uart.yaml
index 6af274d2f185..133259ed3a34 100644
--- a/Documentation/devicetree/bindings/serial/samsung_uart.yaml
+++ b/Documentation/devicetree/bindings/serial/samsung_uart.yaml
@@ -134,6 +134,16 @@ allOf:
- const: uart
- const: clk_uart_baud0
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - google,gs101-uart
+ then:
+ required:
+ - samsung,uart-fifosize
+
unevaluatedProperties: false
examples: