Back to home page

OSCL-LXR

 
 

    


0001 Device-Tree bindings for Atmel's HLCDC (High LCD Controller) DRM driver
0002 
0003 The Atmel HLCDC Display Controller is subdevice of the HLCDC MFD device.
0004 See ../../mfd/atmel-hlcdc.txt for more details.
0005 
0006 Required properties:
0007  - compatible: value should be "atmel,hlcdc-display-controller"
0008  - pinctrl-names: the pin control state names. Should contain "default".
0009  - pinctrl-0: should contain the default pinctrl states.
0010  - #address-cells: should be set to 1.
0011  - #size-cells: should be set to 0.
0012 
0013 Required children nodes:
0014  Children nodes are encoding available output ports and their connections
0015  to external devices using the OF graph reprensentation (see ../graph.txt).
0016  At least one port node is required.
0017 
0018 Optional properties in grandchild nodes:
0019  Any endpoint grandchild node may specify a desired video interface
0020  according to ../../media/video-interfaces.txt, specifically
0021  - bus-width: recognized values are <12>, <16>, <18> and <24>, and
0022    override any output mode selection heuristic, forcing "rgb444",
0023    "rgb565", "rgb666" and "rgb888" respectively.
0024 
0025 Example:
0026 
0027         hlcdc: hlcdc@f0030000 {
0028                 compatible = "atmel,sama5d3-hlcdc";
0029                 reg = <0xf0030000 0x2000>;
0030                 interrupts = <36 IRQ_TYPE_LEVEL_HIGH 0>;
0031                 clocks = <&lcdc_clk>, <&lcdck>, <&clk32k>;
0032                 clock-names = "periph_clk","sys_clk", "slow_clk";
0033 
0034                 hlcdc-display-controller {
0035                         compatible = "atmel,hlcdc-display-controller";
0036                         pinctrl-names = "default";
0037                         pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb888>;
0038                         #address-cells = <1>;
0039                         #size-cells = <0>;
0040 
0041                         port@0 {
0042                                 #address-cells = <1>;
0043                                 #size-cells = <0>;
0044                                 reg = <0>;
0045 
0046                                 hlcdc_panel_output: endpoint@0 {
0047                                         reg = <0>;
0048                                         remote-endpoint = <&panel_input>;
0049                                 };
0050                         };
0051                 };
0052 
0053                 hlcdc_pwm: hlcdc-pwm {
0054                         compatible = "atmel,hlcdc-pwm";
0055                         pinctrl-names = "default";
0056                         pinctrl-0 = <&pinctrl_lcd_pwm>;
0057                         #pwm-cells = <3>;
0058                 };
0059         };
0060 
0061 Example 2: With a video interface override to force rgb565; as above
0062 but with these changes/additions:
0063 
0064         &hlcdc {
0065                 hlcdc-display-controller {
0066                         pinctrl-names = "default";
0067                         pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>;
0068 
0069                         port@0 {
0070                                 hlcdc_panel_output: endpoint@0 {
0071                                         bus-width = <16>;
0072                                 };
0073                         };
0074                 };
0075         };