aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-12-18 16:01:03 +0100
committerLubomir Rintel <lkundrak@v3.sk>2020-12-21 23:12:38 +0100
commit7bdfe7528aa621b8a8e4d2e328dbd1ad0c1eb0bb (patch)
treee75d1d4c428fb0819321a73b9a0b62a968291160
parent4fb503063e3d6fa973af55b2b7f797338e4ae8d7 (diff)
downloadlinux-mmp-lr/olpc-xo175-drm-dt-v8.tar.gz
dt-bindings: display: armada: Add more compatible stringslr/olpc-xo175-drm-dt-v8
There's a generic compatible string and the driver will work on a MMP2 as well, using the same binding. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-by: Rob Herring <robh@kernel.org> --- Changes since v4: - Added MMP3 - Rebased on bidings converted to YAML - Dropped Rob's Reviewed-by tag because significant changes were done to the patch. Changes since v3: - Collected Rob's Reviewed-by tag Changes since v2: - Order marvell,armada-lcdc after the model-specific strings. Changes since v1: - Added marvell,armada-lcdc compatible string.
-rw-r--r--Documentation/devicetree/bindings/display/marvell,armada-lcdc.yaml62
1 files changed, 53 insertions, 9 deletions
diff --git a/Documentation/devicetree/bindings/display/marvell,armada-lcdc.yaml b/Documentation/devicetree/bindings/display/marvell,armada-lcdc.yaml
index 4526f1b61a1853..a32c309bc3f19c 100644
--- a/Documentation/devicetree/bindings/display/marvell,armada-lcdc.yaml
+++ b/Documentation/devicetree/bindings/display/marvell,armada-lcdc.yaml
@@ -9,9 +9,59 @@ title: Marvell Armada LCD Controller Bindings
maintainers:
- Russell King <linux@armlinux.org.uk>
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: marvell,dove-lcd
+ then:
+ properties:
+ clock-names:
+ contains:
+ enum:
+ - axiclk # AXI bus clock for pixel clock
+ - ext_ref_clk0 # External clock 0 for pixel clock
+ - plldivider # PLL divider clock for pixel clock
+ - ext_ref_clk1 # External clock 1 for pixel clock
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: marvell,mmp2-lcd
+ then:
+ properties:
+ clock-names:
+ contains:
+ enum:
+ - axiclk # AXI bus clock for pixel clock
+ - disp0 # LCD Display clock 1 for pixel clock
+ - disp1 # LCD Display clock 2 for pixel clock
+ - hdmi_pll # HDMI PLL for pixel clock
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: marvell,mmp3-lcd
+ then:
+ properties:
+ clock-names:
+ contains:
+ enum:
+ - axiclk # AXI bus clock for pixel clock
+ - disp0 # LCD Display clock 1 for pixel clock
+ - disp1 # LCD Display clock 2 for pixel clock
+ - hdmi_pll # HDMI PLL for pixel clock
+ - pll3 # PLL3 for pixel clock
+
properties:
compatible:
- const: marvell,dove-lcd
+ items:
+ - enum:
+ - marvell,dove-lcd
+ - marvell,mmp2-lcd
+ - marvell,mmp3-lcd
+ - const: marvell,armada-lcdc
reg:
maxItems: 1
@@ -22,13 +72,7 @@ properties:
clocks:
minItems: 1
- clock-names:
- contains:
- enum:
- - axiclk # AXI bus clock for pixel clock
- - plldivider # PLL divider clock for pixel clock
- - ext_ref_clk0 # External clock 0 for pixel clock
- - ext_ref_clk1 # External clock 1 for pixel clock
+ clock-names: true
port:
type: object
@@ -72,7 +116,7 @@ additionalProperties: false
examples:
- |
lcd-controller@820000 {
- compatible = "marvell,dove-lcd";
+ compatible = "marvell,dove-lcd", "marvell,armada-lcdc";
reg = <0x820000 0x1000>;
interrupts = <47>;
clocks = <&si5351 0>;