mirror of https://gitee.com/openkylin/linux.git
dt-bindings: simple-framebuffer: Add requirement for pipelines
Both the allwinner and amlogic compatibles require that either the allwinner,pipeline or the amlogic,pipeline property is set. This was dropped during the conversion since we didn't have conditionals back then, but we can express this properly now. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
f4913aeed7
commit
ed8e3f51b6
|
@ -126,6 +126,28 @@ required:
|
||||||
# but usually they will be filled by the bootloader.
|
# but usually they will be filled by the bootloader.
|
||||||
- compatible
|
- compatible
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
const: allwinner,simple-framebuffer
|
||||||
|
|
||||||
|
then:
|
||||||
|
required:
|
||||||
|
- allwinner,pipeline
|
||||||
|
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
const: amlogic,simple-framebuffer
|
||||||
|
|
||||||
|
then:
|
||||||
|
required:
|
||||||
|
- amlogic,pipeline
|
||||||
|
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
|
@ -140,6 +162,7 @@ examples:
|
||||||
stdout-path = "display0";
|
stdout-path = "display0";
|
||||||
framebuffer0: framebuffer@1d385000 {
|
framebuffer0: framebuffer@1d385000 {
|
||||||
compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
|
compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
|
||||||
|
allwinner,pipeline = "de_be0-lcd0";
|
||||||
reg = <0x1d385000 3840000>;
|
reg = <0x1d385000 3840000>;
|
||||||
width = <1600>;
|
width = <1600>;
|
||||||
height = <1200>;
|
height = <1200>;
|
||||||
|
|
Loading…
Reference in New Issue