Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: display: Convert fsl,imx-fb.txt to dt-schema

Compared to the txt description this adds clocks and clock-names to
match reality.

Note that fsl,imx-lcdc was picked as the new name as this is the actual
hardware's name. There will be a new binding implementing the saner drm
concept that is supposed to supersede this legacy fb binding

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221129180414.2729091-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Uwe Kleine-König and committed by
Rob Herring
93266da2 7621aabd

+102 -57
-57
Documentation/devicetree/bindings/display/imx/fsl,imx-fb.txt
··· 1 - Freescale imx21 Framebuffer 2 - 3 - This framebuffer driver supports devices imx1, imx21, imx25, and imx27. 4 - 5 - Required properties: 6 - - compatible : "fsl,<chip>-fb", chip should be imx1 or imx21 7 - - reg : Should contain 1 register ranges(address and length) 8 - - interrupts : One interrupt of the fb dev 9 - 10 - Required nodes: 11 - - display: Phandle to a display node as described in 12 - Documentation/devicetree/bindings/display/panel/display-timing.txt 13 - Additional, the display node has to define properties: 14 - - bits-per-pixel: Bits per pixel 15 - - fsl,pcr: LCDC PCR value 16 - A display node may optionally define 17 - - fsl,aus-mode: boolean to enable AUS mode (only for imx21) 18 - 19 - Optional properties: 20 - - lcd-supply: Regulator for LCD supply voltage. 21 - - fsl,dmacr: DMA Control Register value. This is optional. By default, the 22 - register is not modified as recommended by the datasheet. 23 - - fsl,lpccr: Contrast Control Register value. This property provides the 24 - default value for the contrast control register. 25 - If that property is omitted, the register is zeroed. 26 - - fsl,lscr1: LCDC Sharp Configuration Register value. 27 - 28 - Example: 29 - 30 - imxfb: fb@10021000 { 31 - compatible = "fsl,imx21-fb"; 32 - interrupts = <61>; 33 - reg = <0x10021000 0x1000>; 34 - display = <&display0>; 35 - }; 36 - 37 - ... 38 - 39 - display0: display0 { 40 - model = "Primeview-PD050VL1"; 41 - bits-per-pixel = <16>; 42 - fsl,pcr = <0xf0c88080>; /* non-standard but required */ 43 - display-timings { 44 - native-mode = <&timing_disp0>; 45 - timing_disp0: 640x480 { 46 - hactive = <640>; 47 - vactive = <480>; 48 - hback-porch = <112>; 49 - hfront-porch = <36>; 50 - hsync-len = <32>; 51 - vback-porch = <33>; 52 - vfront-porch = <33>; 53 - vsync-len = <2>; 54 - clock-frequency = <25000000>; 55 - }; 56 - }; 57 - };
+102
Documentation/devicetree/bindings/display/imx/fsl,imx-lcdc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/imx/fsl,imx-lcdc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale i.MX LCD Controller, found on i.MX1, i.MX21, i.MX25 and i.MX27 8 + 9 + maintainers: 10 + - Sascha Hauer <s.hauer@pengutronix.de> 11 + - Pengutronix Kernel Team <kernel@pengutronix.de> 12 + 13 + properties: 14 + compatible: 15 + oneOf: 16 + - enum: 17 + - fsl,imx1-fb 18 + - fsl,imx21-fb 19 + - items: 20 + - enum: 21 + - fsl,imx25-fb 22 + - fsl,imx27-fb 23 + - const: fsl,imx21-fb 24 + 25 + clocks: 26 + maxItems: 3 27 + 28 + clock-names: 29 + items: 30 + - const: ipg 31 + - const: ahb 32 + - const: per 33 + 34 + display: 35 + $ref: /schemas/types.yaml#/definitions/phandle 36 + 37 + interrupts: 38 + maxItems: 1 39 + 40 + reg: 41 + maxItems: 1 42 + 43 + lcd-supply: 44 + description: 45 + Regulator for LCD supply voltage. 46 + 47 + fsl,dmacr: 48 + $ref: /schemas/types.yaml#/definitions/uint32 49 + description: 50 + Override value for DMA Control Register 51 + 52 + fsl,lpccr: 53 + $ref: /schemas/types.yaml#/definitions/uint32 54 + description: 55 + Contrast Control Register value. 56 + 57 + fsl,lscr1: 58 + $ref: /schemas/types.yaml#/definitions/uint32 59 + description: 60 + LCDC Sharp Configuration Register value. 61 + 62 + required: 63 + - compatible 64 + - clocks 65 + - clock-names 66 + - display 67 + - interrupts 68 + - reg 69 + 70 + additionalProperties: false 71 + 72 + examples: 73 + - | 74 + imxfb: fb@10021000 { 75 + compatible = "fsl,imx21-fb"; 76 + interrupts = <61>; 77 + reg = <0x10021000 0x1000>; 78 + display = <&display0>; 79 + clocks = <&clks 103>, <&clks 49>, <&clks 66>; 80 + clock-names = "ipg", "ahb", "per"; 81 + }; 82 + 83 + display0: display0 { 84 + model = "Primeview-PD050VL1"; 85 + bits-per-pixel = <16>; 86 + fsl,pcr = <0xf0c88080>; /* non-standard but required */ 87 + 88 + display-timings { 89 + native-mode = <&timing_disp0>; 90 + timing_disp0: timing0 { 91 + hactive = <640>; 92 + vactive = <480>; 93 + hback-porch = <112>; 94 + hfront-porch = <36>; 95 + hsync-len = <32>; 96 + vback-porch = <33>; 97 + vfront-porch = <33>; 98 + vsync-len = <2>; 99 + clock-frequency = <25000000>; 100 + }; 101 + }; 102 + };