Path: blob/main/sys/contrib/device-tree/Bindings/display/arm,pl11x.txt
48377 views
* ARM PrimeCell Color LCD Controller PL110/PL11112See also Documentation/devicetree/bindings/arm/primecell.yaml34Required properties:56- compatible: must be one of:7"arm,pl110", "arm,primecell"8"arm,pl111", "arm,primecell"910- reg: base address and size of the control registers block1112- interrupt-names: either the single entry "combined" representing a13combined interrupt output (CLCDINTR), or the four entries14"mbe", "vcomp", "lnbu", "fuf" representing the individual15CLCDMBEINTR, CLCDVCOMPINTR, CLCDLNBUINTR, CLCDFUFINTR interrupts1617- interrupts: contains an interrupt specifier for each entry in18interrupt-names1920- clock-names: should contain "clcdclk" and "apb_pclk"2122- clocks: contains phandle and clock specifier pairs for the entries23in the clock-names property. See24Documentation/devicetree/bindings/clock/clock-bindings.txt2526Optional properties:2728- memory-region: phandle to a node describing memory (see29Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt)30to be used for the framebuffer; if not present, the framebuffer31may be located anywhere in the memory3233- max-memory-bandwidth: maximum bandwidth in bytes per second that the34cell's memory interface can handle; if not present, the memory35interface is fast enough to handle all possible video modes3637Required sub-nodes:3839- port: describes LCD panel signals, following the common binding40for video transmitter interfaces; see41Documentation/devicetree/bindings/media/video-interfaces.txt4243Deprecated properties:44The port's endbpoint subnode had this, now deprecated property45in the past. Drivers should be able to survive without it:4647- arm,pl11x,tft-r0g0b0-pads: an array of three 32-bit values,48defining the way CLD pads are wired up; first value49contains index of the "CLD" external pin (pad) used50as R0 (first bit of the red component), second value51index of the pad used as G0, third value index of the52pad used as B0, see also "LCD panel signal multiplexing53details" paragraphs in the PL110/PL111 Technical54Reference Manuals; this implicitly defines available55color modes, for example:56- PL111 TFT 4:4:4 panel:57arm,pl11x,tft-r0g0b0-pads = <4 15 20>;58- PL110 TFT (1:)5:5:5 panel:59arm,pl11x,tft-r0g0b0-pads = <1 7 13>;60- PL111 TFT (1:)5:5:5 panel:61arm,pl11x,tft-r0g0b0-pads = <3 11 19>;62- PL111 TFT 5:6:5 panel:63arm,pl11x,tft-r0g0b0-pads = <3 10 19>;64- PL110 and PL111 TFT 8:8:8 panel:65arm,pl11x,tft-r0g0b0-pads = <0 8 16>;66- PL110 and PL111 TFT 8:8:8 panel, R & B components swapped:67arm,pl11x,tft-r0g0b0-pads = <16 8 0>;686970Example:7172clcd@10020000 {73compatible = "arm,pl111", "arm,primecell";74reg = <0x10020000 0x1000>;75interrupt-names = "combined";76interrupts = <0 44 4>;77clocks = <&oscclk1>, <&oscclk2>;78clock-names = "clcdclk", "apb_pclk";79max-memory-bandwidth = <94371840>; /* Bps, 1024x768@60 16bpp */8081port {82clcd_pads: endpoint {83remote-endpoint = <&clcd_panel>;84};85};8687};8889panel {90compatible = "panel-dpi";9192port {93clcd_panel: endpoint {94remote-endpoint = <&clcd_pads>;95};96};9798panel-timing {99clock-frequency = <25175000>;100hactive = <640>;101hback-porch = <40>;102hfront-porch = <24>;103hsync-len = <96>;104vactive = <480>;105vback-porch = <32>;106vfront-porch = <11>;107vsync-len = <2>;108};109};110111112