Commit f325529b authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Laurent Pinchart

drm: rcar-du: Convert live DT patches to sugar syntax

Using overlay sugar syntax makes the DTS files easier to read (and
write).

Overlay syntactic sugar for generating target-path fragments is
supported by the version of dtc supplied with the kernel since commit
50aafd60 ("scripts/dtc: Update to upstream version
v1.4.6-21-g84e414b0b5bc").
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent 06c3bbd3
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
/dts-v1/; /dts-v1/;
/plugin/; /plugin/;
/ {
fragment@0 { &{/} {
target-path = "/";
__overlay__ {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
...@@ -55,12 +53,9 @@ lvds1_out: endpoint { ...@@ -55,12 +53,9 @@ lvds1_out: endpoint {
}; };
}; };
}; };
}; };
};
fragment@1 { &{/display@feb00000/ports} {
target-path = "/display@feb00000/ports";
__overlay__ {
port@1 { port@1 {
endpoint { endpoint {
remote-endpoint = <&lvds0_input>; remote-endpoint = <&lvds0_input>;
...@@ -71,6 +66,4 @@ endpoint { ...@@ -71,6 +66,4 @@ endpoint {
remote-endpoint = <&lvds1_input>; remote-endpoint = <&lvds1_input>;
}; };
}; };
};
};
}; };
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
/dts-v1/; /dts-v1/;
/plugin/; /plugin/;
/ {
fragment@0 { &{/} {
target-path = "/";
__overlay__ {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
...@@ -34,17 +32,12 @@ lvds0_out: endpoint { ...@@ -34,17 +32,12 @@ lvds0_out: endpoint {
}; };
}; };
}; };
}; };
};
fragment@1 { &{/display@feb00000/ports} {
target-path = "/display@feb00000/ports";
__overlay__ {
port@1 { port@1 {
endpoint { endpoint {
remote-endpoint = <&lvds0_input>; remote-endpoint = <&lvds0_input>;
}; };
}; };
};
};
}; };
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
/dts-v1/; /dts-v1/;
/plugin/; /plugin/;
/ {
fragment@0 { &{/} {
target-path = "/";
__overlay__ {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
...@@ -34,17 +32,12 @@ lvds0_out: endpoint { ...@@ -34,17 +32,12 @@ lvds0_out: endpoint {
}; };
}; };
}; };
}; };
};
fragment@1 { &{/display@feb00000/ports} {
target-path = "/display@feb00000/ports";
__overlay__ {
port@1 { port@1 {
endpoint { endpoint {
remote-endpoint = <&lvds0_input>; remote-endpoint = <&lvds0_input>;
}; };
}; };
};
};
}; };
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
/dts-v1/; /dts-v1/;
/plugin/; /plugin/;
/ {
fragment@0 { &{/soc} {
target-path = "/soc";
__overlay__ {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
...@@ -34,17 +32,12 @@ lvds0_out: endpoint { ...@@ -34,17 +32,12 @@ lvds0_out: endpoint {
}; };
}; };
}; };
}; };
};
fragment@1 { &{/soc/display@feb00000/ports} {
target-path = "/soc/display@feb00000/ports";
__overlay__ {
port@3 { port@3 {
endpoint { endpoint {
remote-endpoint = <&lvds0_input>; remote-endpoint = <&lvds0_input>;
}; };
}; };
};
};
}; };
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
/dts-v1/; /dts-v1/;
/plugin/; /plugin/;
/ {
fragment@0 { &{/soc} {
target-path = "/soc";
__overlay__ {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
...@@ -34,17 +32,12 @@ lvds0_out: endpoint { ...@@ -34,17 +32,12 @@ lvds0_out: endpoint {
}; };
}; };
}; };
}; };
};
fragment@1 { &{/soc/display@feb00000/ports} {
target-path = "/soc/display@feb00000/ports";
__overlay__ {
port@3 { port@3 {
endpoint { endpoint {
remote-endpoint = <&lvds0_input>; remote-endpoint = <&lvds0_input>;
}; };
}; };
};
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment