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

dt-bindings: msm/mdp4: convert to yaml format

Convert mdp4 binding into yaml format.

Signed-off-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220109171814.16103-1-david@ixit.cz

authored by

David Heidelberg and committed by
Rob Herring
92649241 066aef69

+124 -114
-114
Documentation/devicetree/bindings/display/msm/mdp4.txt
··· 1 - Qualcomm adreno/snapdragon MDP4 display controller 2 - 3 - Description: 4 - 5 - This is the bindings documentation for the MDP4 display controller found in 6 - SoCs like MSM8960, APQ8064 and MSM8660. 7 - 8 - Required properties: 9 - - compatible: 10 - * "qcom,mdp4" - mdp4 11 - - reg: Physical base address and length of the controller's registers. 12 - - interrupts: The interrupt signal from the display controller. 13 - - clocks: device clocks 14 - See ../clocks/clock-bindings.txt for details. 15 - - clock-names: the following clocks are required. 16 - * "core_clk" 17 - * "iface_clk" 18 - * "bus_clk" 19 - * "lut_clk" 20 - * "hdmi_clk" 21 - * "tv_clk" 22 - - ports: contains the list of output ports from MDP. These connect to interfaces 23 - that are external to the MDP hardware, such as HDMI, DSI, EDP etc (LVDS is a 24 - special case since it is a part of the MDP block itself). 25 - 26 - Each output port contains an endpoint that describes how it is connected to an 27 - external interface. These are described by the standard properties documented 28 - here: 29 - Documentation/devicetree/bindings/graph.txt 30 - Documentation/devicetree/bindings/media/video-interfaces.txt 31 - 32 - The output port mappings are: 33 - Port 0 -> LCDC/LVDS 34 - Port 1 -> DSI1 Cmd/Video 35 - Port 2 -> DSI2 Cmd/Video 36 - Port 3 -> DTV 37 - 38 - Optional properties: 39 - - clock-names: the following clocks are optional: 40 - * "lut_clk" 41 - - qcom,lcdc-align-lsb: Boolean value indicating that LSB alignment should be 42 - used for LCDC. This is only valid for 18bpp panels. 43 - 44 - Example: 45 - 46 - / { 47 - ... 48 - 49 - hdmi: hdmi@4a00000 { 50 - ... 51 - ports { 52 - ... 53 - port@0 { 54 - reg = <0>; 55 - hdmi_in: endpoint { 56 - remote-endpoint = <&mdp_dtv_out>; 57 - }; 58 - }; 59 - ... 60 - }; 61 - ... 62 - }; 63 - 64 - ... 65 - 66 - mdp: mdp@5100000 { 67 - compatible = "qcom,mdp4"; 68 - reg = <0x05100000 0xf0000>; 69 - interrupts = <GIC_SPI 75 0>; 70 - clock-names = 71 - "core_clk", 72 - "iface_clk", 73 - "lut_clk", 74 - "hdmi_clk", 75 - "tv_clk"; 76 - clocks = 77 - <&mmcc MDP_CLK>, 78 - <&mmcc MDP_AHB_CLK>, 79 - <&mmcc MDP_AXI_CLK>, 80 - <&mmcc MDP_LUT_CLK>, 81 - <&mmcc HDMI_TV_CLK>, 82 - <&mmcc MDP_TV_CLK>; 83 - 84 - ports { 85 - #address-cells = <1>; 86 - #size-cells = <0>; 87 - 88 - port@0 { 89 - reg = <0>; 90 - mdp_lvds_out: endpoint { 91 - }; 92 - }; 93 - 94 - port@1 { 95 - reg = <1>; 96 - mdp_dsi1_out: endpoint { 97 - }; 98 - }; 99 - 100 - port@2 { 101 - reg = <2>; 102 - mdp_dsi2_out: endpoint { 103 - }; 104 - }; 105 - 106 - port@3 { 107 - reg = <3>; 108 - mdp_dtv_out: endpoint { 109 - remote-endpoint = <&hdmi_in>; 110 - }; 111 - }; 112 - }; 113 - }; 114 - };
+124
Documentation/devicetree/bindings/display/msm/mdp4.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/msm/mdp4.yaml#" 5 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 6 + 7 + title: Qualcomm Adreno/Snapdragon MDP4 display controller 8 + 9 + description: > 10 + MDP4 display controller found in SoCs like MSM8960, APQ8064 and MSM8660. 11 + 12 + maintainers: 13 + - Rob Clark <robdclark@gmail.com> 14 + 15 + properties: 16 + compatible: 17 + const: qcom,mdp4 18 + 19 + clocks: 20 + minItems: 6 21 + maxItems: 6 22 + 23 + clock-names: 24 + items: 25 + - const: core_clk 26 + - const: iface_clk 27 + - const: bus_clk 28 + - const: lut_clk 29 + - const: hdmi_clk 30 + - const: tv_clk 31 + 32 + reg: 33 + maxItems: 1 34 + 35 + interrupts: 36 + maxItems: 1 37 + 38 + iommus: 39 + maxItems: 1 40 + 41 + ports: 42 + $ref: /schemas/graph.yaml#/properties/ports 43 + properties: 44 + port@0: 45 + $ref: /schemas/graph.yaml#/properties/port 46 + description: LCDC/LVDS 47 + 48 + port@1: 49 + $ref: /schemas/graph.yaml#/properties/port 50 + description: DSI1 Cmd / Video 51 + 52 + port@2: 53 + $ref: /schemas/graph.yaml#/properties/port 54 + description: DSI2 Cmd / Video 55 + 56 + port@3: 57 + $ref: /schemas/graph.yaml#/properties/port 58 + description: Digital TV 59 + 60 + qcom,lcdc-align-lsb: 61 + type: boolean 62 + description: > 63 + Indication that LSB alignment should be used for LCDC. 64 + This is only valid for 18bpp panels. 65 + 66 + required: 67 + - compatible 68 + - reg 69 + - clocks 70 + - ports 71 + 72 + additionalProperties: false 73 + 74 + examples: 75 + - | 76 + mdp: mdp@5100000 { 77 + compatible = "qcom,mdp4"; 78 + reg = <0x05100000 0xf0000>; 79 + interrupts = <0 75 0>; 80 + clock-names = 81 + "core_clk", 82 + "iface_clk", 83 + "bus_clk", 84 + "lut_clk", 85 + "hdmi_clk", 86 + "tv_clk"; 87 + clocks = 88 + <&mmcc 77>, 89 + <&mmcc 86>, 90 + <&mmcc 102>, 91 + <&mmcc 75>, 92 + <&mmcc 97>, 93 + <&mmcc 12>; 94 + 95 + ports { 96 + #address-cells = <1>; 97 + #size-cells = <0>; 98 + 99 + port@0 { 100 + reg = <0>; 101 + mdp_lvds_out: endpoint { 102 + }; 103 + }; 104 + 105 + port@1 { 106 + reg = <1>; 107 + mdp_dsi1_out: endpoint { 108 + }; 109 + }; 110 + 111 + port@2 { 112 + reg = <2>; 113 + mdp_dsi2_out: endpoint { 114 + }; 115 + }; 116 + 117 + port@3 { 118 + reg = <3>; 119 + mdp_dtv_out: endpoint { 120 + remote-endpoint = <&hdmi_in>; 121 + }; 122 + }; 123 + }; 124 + };