1 Device-Tree bindings for tilcdc DRM driver 1 Device-Tree bindings for tilcdc DRM driver 2 2 3 Required properties: 3 Required properties: 4 - compatible: value should be one of the foll 4 - compatible: value should be one of the following: 5 - "ti,am33xx-tilcdc" for AM335x based boar 5 - "ti,am33xx-tilcdc" for AM335x based boards 6 - "ti,da850-tilcdc" for DA850/AM18x/OMAP-L 6 - "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138 based boards 7 - interrupts: the interrupt number 7 - interrupts: the interrupt number 8 - reg: base address and size of the LCDC devi 8 - reg: base address and size of the LCDC device 9 9 10 Recommended properties: 10 Recommended properties: >> 11 - interrupt-parent: the phandle for the interrupt controller that >> 12 services interrupts for this device. 11 - ti,hwmods: Name of the hwmod associated to 13 - ti,hwmods: Name of the hwmod associated to the LCDC 12 14 13 Optional properties: 15 Optional properties: 14 - max-bandwidth: The maximum pixels per secon 16 - max-bandwidth: The maximum pixels per second that the memory 15 interface / lcd controller combination can 17 interface / lcd controller combination can sustain 16 - max-width: The maximum horizontal pixel wid 18 - max-width: The maximum horizontal pixel width supported by 17 the lcd controller. 19 the lcd controller. 18 - max-pixelclock: The maximum pixel clock tha 20 - max-pixelclock: The maximum pixel clock that can be supported 19 by the lcd controller in KHz. 21 by the lcd controller in KHz. 20 - blue-and-red-wiring: Recognized values "str 22 - blue-and-red-wiring: Recognized values "straight" or "crossed". 21 This property deals with the LCDC revision 23 This property deals with the LCDC revision 2 (found on AM335x) 22 color errata [1]. 24 color errata [1]. 23 - "straight" indicates normal wiring that 25 - "straight" indicates normal wiring that supports RGB565, 24 BGR888, and XBGR8888 color formats. 26 BGR888, and XBGR8888 color formats. 25 - "crossed" indicates wiring that has blue 27 - "crossed" indicates wiring that has blue and red wires 26 crossed. This setup supports BGR565, RGB 28 crossed. This setup supports BGR565, RGB888 and XRGB8888 27 formats. 29 formats. 28 - If the property is not present or its va 30 - If the property is not present or its value is not recognized 29 the legacy mode is assumed. This configu 31 the legacy mode is assumed. This configuration supports RGB565, 30 RGB888 and XRGB8888 formats. However, de 32 RGB888 and XRGB8888 formats. However, depending on wiring, the red 31 and blue colors are swapped in either 16 33 and blue colors are swapped in either 16 or 24-bit color modes. 32 34 33 Optional nodes: 35 Optional nodes: 34 36 35 - port/ports: to describe a connection to an 37 - port/ports: to describe a connection to an external encoder. The 36 binding follows Documentation/devicetree/bi 38 binding follows Documentation/devicetree/bindings/graph.txt and 37 supports a single port with a single endpoi !! 39 suppors a single port with a single endpoint. 38 40 39 - See also Documentation/devicetree/bindings/ 41 - See also Documentation/devicetree/bindings/display/tilcdc/panel.txt and 40 Documentation/devicetree/bindings/display/b !! 42 Documentation/devicetree/bindings/display/tilcdc/tfp410.txt for connecting 41 tfp410 DVI encoder or lcd panel to lcdc 43 tfp410 DVI encoder or lcd panel to lcdc 42 44 43 [1] There is an errata about AM335x color wiri 45 [1] There is an errata about AM335x color wiring. For 16-bit color mode 44 the wires work as they should (LCD_DATA[0: 46 the wires work as they should (LCD_DATA[0:4] is for Blue[3:7]), 45 but for 24 bit color modes the wiring of b 47 but for 24 bit color modes the wiring of blue and red components is 46 crossed and LCD_DATA[0:4] is for Red[3:7] 48 crossed and LCD_DATA[0:4] is for Red[3:7] and LCD_DATA[11:15] is 47 for Blue[3-7]. For more details see sectio 49 for Blue[3-7]. For more details see section 3.1.1 in AM335x 48 Silicon Errata: 50 Silicon Errata: 49 https://www.ti.com/general/docs/lit/getlit !! 51 http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sprz360 50 52 51 Example: 53 Example: 52 54 53 fb: fb@4830e000 { 55 fb: fb@4830e000 { 54 compatible = "ti,am33xx-tilcdc 56 compatible = "ti,am33xx-tilcdc", "ti,da850-tilcdc"; 55 reg = <0x4830e000 0x1000>; 57 reg = <0x4830e000 0x1000>; 56 interrupt-parent = <&intc>; 58 interrupt-parent = <&intc>; 57 interrupts = <36>; 59 interrupts = <36>; 58 ti,hwmods = "lcdc"; 60 ti,hwmods = "lcdc"; 59 61 60 blue-and-red-wiring = "crossed 62 blue-and-red-wiring = "crossed"; 61 63 62 port { 64 port { 63 lcdc_0: endpoint { !! 65 lcdc_0: endpoint@0 { 64 remote-endpoin 66 remote-endpoint = <&hdmi_0>; 65 }; 67 }; 66 }; 68 }; 67 }; 69 }; 68 70 69 tda19988: tda19988 { 71 tda19988: tda19988 { 70 compatible = "nxp,tda998x"; 72 compatible = "nxp,tda998x"; 71 reg = <0x70>; 73 reg = <0x70>; 72 74 73 pinctrl-names = "default", "of 75 pinctrl-names = "default", "off"; 74 pinctrl-0 = <&nxp_hdmi_bonelt_ 76 pinctrl-0 = <&nxp_hdmi_bonelt_pins>; 75 pinctrl-1 = <&nxp_hdmi_bonelt_ 77 pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>; 76 78 77 port { 79 port { 78 hdmi_0: endpoint { !! 80 hdmi_0: endpoint@0 { 79 remote-endpoin 81 remote-endpoint = <&lcdc_0>; 80 }; 82 }; 81 }; 83 }; 82 }; 84 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.