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

dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller

The MIPI DSI controller in Allwinner A64 is similar to A33.

But unlike A33, A64 doesn't have DSI_SCLK gating so it is valid
to have separate compatible for A64 on the same driver.

DSI_SCLK uses mod clock-names on dt-bindings, so the same
is not required for A64.

On that note
- A64 require minimum of 1 clock like the bus clock
- A33 require minimum of 2 clocks like both bus, mod clocks

So, update dt-bindings so-that it can document both A33,
A64 bindings requirements.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20191222132229.30276-2-jagan@amarulasolutions.com

authored by

Jagan Teki and committed by
Maxime Ripard
fe5040f2 624b4b48

+31 -2
+31 -2
Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml
··· 15 15 "#size-cells": true 16 16 17 17 compatible: 18 - const: allwinner,sun6i-a31-mipi-dsi 18 + enum: 19 + - allwinner,sun6i-a31-mipi-dsi 20 + - allwinner,sun50i-a64-mipi-dsi 19 21 20 22 reg: 21 23 maxItems: 1 ··· 26 24 maxItems: 1 27 25 28 26 clocks: 27 + minItems: 1 28 + maxItems: 2 29 29 items: 30 30 - description: Bus Clock 31 31 - description: Module Clock ··· 67 63 - reg 68 64 - interrupts 69 65 - clocks 70 - - clock-names 71 66 - phys 72 67 - phy-names 73 68 - resets 74 69 - vcc-dsi-supply 75 70 - port 71 + 72 + allOf: 73 + - if: 74 + properties: 75 + compatible: 76 + contains: 77 + const: allwinner,sun6i-a31-mipi-dsi 78 + 79 + then: 80 + properties: 81 + clocks: 82 + minItems: 2 83 + 84 + required: 85 + - clock-names 86 + 87 + - if: 88 + properties: 89 + compatible: 90 + contains: 91 + const: allwinner,sun50i-a64-mipi-dsi 92 + 93 + then: 94 + properties: 95 + clocks: 96 + minItems: 1 76 97 77 98 additionalProperties: false 78 99