1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/ingenic,lcd.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: Ingenic SoCs LCD controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Paul Cercueil <paul@crapouillou.net> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotproperties: 13c66ec88fSEmmanuel Vadot $nodename: 14c66ec88fSEmmanuel Vadot pattern: "^lcd-controller@[0-9a-f]+$" 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadot compatible: 17c66ec88fSEmmanuel Vadot enum: 18c66ec88fSEmmanuel Vadot - ingenic,jz4740-lcd 19c66ec88fSEmmanuel Vadot - ingenic,jz4725b-lcd 207ef62cebSEmmanuel Vadot - ingenic,jz4760-lcd 217ef62cebSEmmanuel Vadot - ingenic,jz4760b-lcd 22c66ec88fSEmmanuel Vadot - ingenic,jz4770-lcd 23c66ec88fSEmmanuel Vadot - ingenic,jz4780-lcd 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot reg: 26c66ec88fSEmmanuel Vadot maxItems: 1 27c66ec88fSEmmanuel Vadot 28c66ec88fSEmmanuel Vadot interrupts: 29c66ec88fSEmmanuel Vadot maxItems: 1 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot clocks: 32c66ec88fSEmmanuel Vadot items: 33c66ec88fSEmmanuel Vadot - description: Pixel clock 34c66ec88fSEmmanuel Vadot - description: Module clock 35c66ec88fSEmmanuel Vadot minItems: 1 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot clock-names: 38c66ec88fSEmmanuel Vadot items: 39c66ec88fSEmmanuel Vadot - const: lcd_pclk 40c66ec88fSEmmanuel Vadot - const: lcd 41c66ec88fSEmmanuel Vadot minItems: 1 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot port: 445def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadot ports: 475def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/ports 485def4c47SEmmanuel Vadot 49c66ec88fSEmmanuel Vadot properties: 50c66ec88fSEmmanuel Vadot port@0: 515def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 52c66ec88fSEmmanuel Vadot description: DPI output, to interface with TFT panels. 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot port@8: 555def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 56c66ec88fSEmmanuel Vadot description: Link to the Image Processing Unit (IPU). 57c66ec88fSEmmanuel Vadot (See ingenic,ipu.yaml). 58c66ec88fSEmmanuel Vadot 59c66ec88fSEmmanuel Vadot required: 60c66ec88fSEmmanuel Vadot - port@0 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadotrequired: 63c66ec88fSEmmanuel Vadot - compatible 64c66ec88fSEmmanuel Vadot - reg 65c66ec88fSEmmanuel Vadot - interrupts 66c66ec88fSEmmanuel Vadot - clocks 67c66ec88fSEmmanuel Vadot - clock-names 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadotif: 70c66ec88fSEmmanuel Vadot properties: 71c66ec88fSEmmanuel Vadot compatible: 72c66ec88fSEmmanuel Vadot contains: 73c66ec88fSEmmanuel Vadot enum: 74c66ec88fSEmmanuel Vadot - ingenic,jz4740-lcd 75c66ec88fSEmmanuel Vadot - ingenic,jz4780-lcd 76c66ec88fSEmmanuel Vadotthen: 77c66ec88fSEmmanuel Vadot properties: 78c66ec88fSEmmanuel Vadot clocks: 79c66ec88fSEmmanuel Vadot minItems: 2 80c66ec88fSEmmanuel Vadot clock-names: 81c66ec88fSEmmanuel Vadot minItems: 2 82c66ec88fSEmmanuel Vadotelse: 83c66ec88fSEmmanuel Vadot properties: 84c66ec88fSEmmanuel Vadot clocks: 85c66ec88fSEmmanuel Vadot maxItems: 1 86c66ec88fSEmmanuel Vadot clock-names: 87c66ec88fSEmmanuel Vadot maxItems: 1 88c66ec88fSEmmanuel Vadot 89c66ec88fSEmmanuel VadotadditionalProperties: false 90c66ec88fSEmmanuel Vadot 91c66ec88fSEmmanuel Vadotexamples: 92c66ec88fSEmmanuel Vadot - | 938cc087a1SEmmanuel Vadot #include <dt-bindings/clock/ingenic,jz4740-cgu.h> 94c66ec88fSEmmanuel Vadot lcd-controller@13050000 { 95c66ec88fSEmmanuel Vadot compatible = "ingenic,jz4740-lcd"; 96c66ec88fSEmmanuel Vadot reg = <0x13050000 0x1000>; 97c66ec88fSEmmanuel Vadot 98c66ec88fSEmmanuel Vadot interrupt-parent = <&intc>; 99c66ec88fSEmmanuel Vadot interrupts = <30>; 100c66ec88fSEmmanuel Vadot 101c66ec88fSEmmanuel Vadot clocks = <&cgu JZ4740_CLK_LCD_PCLK>, <&cgu JZ4740_CLK_LCD>; 102c66ec88fSEmmanuel Vadot clock-names = "lcd_pclk", "lcd"; 103c66ec88fSEmmanuel Vadot 104c66ec88fSEmmanuel Vadot port { 105c66ec88fSEmmanuel Vadot endpoint { 106c66ec88fSEmmanuel Vadot remote-endpoint = <&panel_input>; 107c66ec88fSEmmanuel Vadot }; 108c66ec88fSEmmanuel Vadot }; 109c66ec88fSEmmanuel Vadot }; 110c66ec88fSEmmanuel Vadot 111c66ec88fSEmmanuel Vadot - | 1128cc087a1SEmmanuel Vadot #include <dt-bindings/clock/ingenic,jz4725b-cgu.h> 113c66ec88fSEmmanuel Vadot lcd-controller@13050000 { 114c66ec88fSEmmanuel Vadot compatible = "ingenic,jz4725b-lcd"; 115c66ec88fSEmmanuel Vadot reg = <0x13050000 0x1000>; 116c66ec88fSEmmanuel Vadot 117c66ec88fSEmmanuel Vadot interrupt-parent = <&intc>; 118c66ec88fSEmmanuel Vadot interrupts = <31>; 119c66ec88fSEmmanuel Vadot 120c66ec88fSEmmanuel Vadot clocks = <&cgu JZ4725B_CLK_LCD>; 121c66ec88fSEmmanuel Vadot clock-names = "lcd_pclk"; 122c66ec88fSEmmanuel Vadot 123c66ec88fSEmmanuel Vadot port { 124c66ec88fSEmmanuel Vadot endpoint { 125c66ec88fSEmmanuel Vadot remote-endpoint = <&panel_input>; 126c66ec88fSEmmanuel Vadot }; 127c66ec88fSEmmanuel Vadot }; 128c66ec88fSEmmanuel Vadot }; 129