forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt
....@@ -15,6 +15,13 @@
1515 to external devices using the OF graph reprensentation (see ../graph.txt).
1616 At least one port node is required.
1717
18
+Optional properties in grandchild nodes:
19
+ Any endpoint grandchild node may specify a desired video interface
20
+ according to ../../media/video-interfaces.txt, specifically
21
+ - bus-width: recognized values are <12>, <16>, <18> and <24>, and
22
+ override any output mode selection heuristic, forcing "rgb444",
23
+ "rgb565", "rgb666" and "rgb888" respectively.
24
+
1825 Example:
1926
2027 hlcdc: hlcdc@f0030000 {
....@@ -50,3 +57,19 @@
5057 #pwm-cells = <3>;
5158 };
5259 };
60
+
61
+Example 2: With a video interface override to force rgb565; as above
62
+but with these changes/additions:
63
+
64
+ &hlcdc {
65
+ hlcdc-display-controller {
66
+ pinctrl-names = "default";
67
+ pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>;
68
+
69
+ port@0 {
70
+ hlcdc_panel_output: endpoint@0 {
71
+ bus-width = <16>;
72
+ };
73
+ };
74
+ };
75
+ };