0001 Device-Tree bindings for tilcdc DRM driver
0002
0003 Required properties:
0004 - compatible: value should be one of the following:
0005 - "ti,am33xx-tilcdc" for AM335x based boards
0006 - "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138 based boards
0007 - interrupts: the interrupt number
0008 - reg: base address and size of the LCDC device
0009
0010 Recommended properties:
0011 - ti,hwmods: Name of the hwmod associated to the LCDC
0012
0013 Optional properties:
0014 - max-bandwidth: The maximum pixels per second that the memory
0015 interface / lcd controller combination can sustain
0016 - max-width: The maximum horizontal pixel width supported by
0017 the lcd controller.
0018 - max-pixelclock: The maximum pixel clock that can be supported
0019 by the lcd controller in KHz.
0020 - blue-and-red-wiring: Recognized values "straight" or "crossed".
0021 This property deals with the LCDC revision 2 (found on AM335x)
0022 color errata [1].
0023 - "straight" indicates normal wiring that supports RGB565,
0024 BGR888, and XBGR8888 color formats.
0025 - "crossed" indicates wiring that has blue and red wires
0026 crossed. This setup supports BGR565, RGB888 and XRGB8888
0027 formats.
0028 - If the property is not present or its value is not recognized
0029 the legacy mode is assumed. This configuration supports RGB565,
0030 RGB888 and XRGB8888 formats. However, depending on wiring, the red
0031 and blue colors are swapped in either 16 or 24-bit color modes.
0032
0033 Optional nodes:
0034
0035 - port/ports: to describe a connection to an external encoder. The
0036 binding follows Documentation/devicetree/bindings/graph.txt and
0037 supports a single port with a single endpoint.
0038
0039 - See also Documentation/devicetree/bindings/display/tilcdc/panel.txt and
0040 Documentation/devicetree/bindings/display/bridge/ti,tfp410.yaml for connecting
0041 tfp410 DVI encoder or lcd panel to lcdc
0042
0043 [1] There is an errata about AM335x color wiring. For 16-bit color mode
0044 the wires work as they should (LCD_DATA[0:4] is for Blue[3:7]),
0045 but for 24 bit color modes the wiring of blue and red components is
0046 crossed and LCD_DATA[0:4] is for Red[3:7] and LCD_DATA[11:15] is
0047 for Blue[3-7]. For more details see section 3.1.1 in AM335x
0048 Silicon Errata:
0049 https://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sprz360
0050
0051 Example:
0052
0053 fb: fb@4830e000 {
0054 compatible = "ti,am33xx-tilcdc", "ti,da850-tilcdc";
0055 reg = <0x4830e000 0x1000>;
0056 interrupt-parent = <&intc>;
0057 interrupts = <36>;
0058 ti,hwmods = "lcdc";
0059
0060 blue-and-red-wiring = "crossed";
0061
0062 port {
0063 lcdc_0: endpoint {
0064 remote-endpoint = <&hdmi_0>;
0065 };
0066 };
0067 };
0068
0069 tda19988: tda19988 {
0070 compatible = "nxp,tda998x";
0071 reg = <0x70>;
0072
0073 pinctrl-names = "default", "off";
0074 pinctrl-0 = <&nxp_hdmi_bonelt_pins>;
0075 pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>;
0076
0077 port {
0078 hdmi_0: endpoint {
0079 remote-endpoint = <&lcdc_0>;
0080 };
0081 };
0082 };