drm/vc4: Add specific compatible strings for Cygnus.
authorEric Anholt <eric@anholt.net>
Fri, 28 Apr 2017 22:42:23 +0000 (15:42 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 8 May 2017 19:24:06 +0000 (12:24 -0700)
Cygnus has V3D 2.6 instead of 2.1, and doesn't use the VC4 display
modules.  The V3D can be uniquely identified by the IDENT[01]
registers, and there's nothing to key off of for the display change
other than the lack of DT nodes for the display components, but it's
convention to have new compatible strings anyway.

Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Rob Herring <robh@kernel.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170428224223.21904-3-eric@anholt.net
Documentation/devicetree/bindings/display/brcm,bcm-vc4.txt
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_v3d.c

index bc1756f4f7918f3231985626bb43938be393f4ac..284e2b14cfbe0a291416973ce429ee4b9aa05300 100644 (file)
@@ -5,7 +5,7 @@ with HDMI output and the HVS (Hardware Video Scaler) for compositing
 display planes.
 
 Required properties for VC4:
-- compatible:  Should be "brcm,bcm2835-vc4"
+- compatible:  Should be "brcm,bcm2835-vc4" or "brcm,cygnus-vc4"
 
 Required properties for Pixel Valve:
 - compatible:  Should be one of "brcm,bcm2835-pixelvalve0",
@@ -54,7 +54,7 @@ Required properties for VEC:
                  See bindings/interrupt-controller/brcm,bcm2835-armctrl-ic.txt
 
 Required properties for V3D:
-- compatible:  Should be "brcm,bcm2835-v3d"
+- compatible:  Should be "brcm,bcm2835-v3d" or "brcm,cygnus-v3d"
 - reg:         Physical base address and length of the V3D's registers
 - interrupts:  The interrupt number
                  See bindings/interrupt-controller/brcm,bcm2835-armctrl-ic.txt
index 92fb9a41fe7c9d3ae2292ab9dbd6c5d514d417ca..754ce76d4b980a380770b46431c6ddb91d3b06e2 100644 (file)
@@ -335,6 +335,7 @@ static int vc4_platform_drm_remove(struct platform_device *pdev)
 
 static const struct of_device_id vc4_of_match[] = {
        { .compatible = "brcm,bcm2835-vc4", },
+       { .compatible = "brcm,cygnus-vc4", },
        {},
 };
 MODULE_DEVICE_TABLE(of, vc4_of_match);
index 7500820e5cd5132413b019ade883b51a09d565e2..c53afec34586bcdf44ef7d9e713283a3a816373b 100644 (file)
@@ -450,6 +450,7 @@ static int vc4_v3d_dev_remove(struct platform_device *pdev)
 
 static const struct of_device_id vc4_v3d_dt_match[] = {
        { .compatible = "brcm,bcm2835-v3d" },
+       { .compatible = "brcm,cygnus-v3d" },
        { .compatible = "brcm,vc4-v3d" },
        {}
 };