dsi.txt 6.1 KB
Newer Older
1 2
Qualcomm Technologies Inc. adreno/snapdragon DSI output

3
DSI Controller:
4 5 6
Required properties:
- compatible:
  * "qcom,mdss-dsi-ctrl"
7
- reg: Physical base address and length of the registers of controller
8 9 10 11 12 13 14 15 16
- reg-names: The names of register regions. The following regions are required:
  * "dsi_ctrl"
- qcom,dsi-host-index: The ID of DSI controller hardware instance. This should
  be 0 or 1, since we have 2 DSI controllers at most for now.
- interrupts: The interrupt signal from the DSI block.
- power-domains: Should be <&mmcc MDSS_GDSC>.
- clocks: device clocks
  See Documentation/devicetree/bindings/clocks/clock-bindings.txt for details.
- clock-names: the following clocks are required:
17 18
  * "mdp_core_clk"
  * "iface_clk"
19 20
  * "bus_clk"
  * "core_mmss_clk"
21
  * "byte_clk"
22
  * "pixel_clk"
23
  * "core_clk"
24 25
  For DSIv2, we need an additional clock:
   * "src_clk"
26 27 28
- vdd-supply: phandle to vdd regulator device node
- vddio-supply: phandle to vdd-io regulator device node
- vdda-supply: phandle to vdda regulator device node
29 30
- phys: phandle to DSI PHY device node
- phy-names: the name of the corresponding PHY device
31
- syscon-sfpb: A phandle to mmss_sfpb syscon node (only for DSIv2)
32 33 34 35 36
- ports: Contains 2 DSI controller ports as child nodes. Each port contains
  an endpoint subnode as defined in these documents:

  Documentation/devicetree/bindings/graph.txt
  Documentation/devicetree/bindings/media/video-interfaces.txt
37 38 39

Optional properties:
- panel@0: Node of panel connected to this DSI controller.
40
  See files in Documentation/devicetree/bindings/display/panel/ for each supported
41
  panel.
42
- qcom,dual-dsi-mode: Boolean value indicating if the DSI controller is
43
  driving a panel which needs 2 DSI links.
44
- qcom,master-dsi: Boolean value indicating if the DSI controller is driving
45
  the master link of the 2-DSI panel.
46
- qcom,sync-dual-dsi: Boolean value indicating if the DSI controller is
47 48 49
  driving a 2-DSI panel whose 2 links need receive command simultaneously.
- interrupt-parent: phandle to the MDP block if the interrupt signal is routed
  through MDP block
H
Hai Li 已提交
50 51 52
- pinctrl-names: the pin control state names; should contain "default"
- pinctrl-0: the default pinctrl state (active)
- pinctrl-n: the "sleep" pinctrl state
53 54
- ports: contains DSI controller input and output ports as children, each
  containing one endpoint subnode.
55 56

  DSI Endpoint properties:
57 58
  - remote-endpoint: For port@0, set to phandle of the connected panel/bridge's
    input endpoint. For port@1, set to the MDP interface output.
59
    See Documentation/devicetree/bindings/graph.txt for device graph info.
60

61 62 63 64 65 66
  - data-lanes: this describes how the physical DSI data lanes are mapped
    to the logical lanes on the given platform. The value contained in
    index n describes what physical lane is mapped to the logical lane n
    (DATAn, where n lies between 0 and 3). The clock lane position is fixed
    and can't be changed. Hence, they aren't a part of the DT bindings. For
    more info, see Documentation/devicetree/bindings/media/video-interfaces.txt
67 68 69

    For example:

70
    data-lanes = <3 0 1 2>;
71

72 73 74
    The above mapping describes that the logical data lane DATA0 is mapped to
    the physical data lane DATA3, logical DATA1 to physical DATA0, logic DATA2
    to phys DATA1 and logic DATA3 to phys DATA2.
75 76

    There are only a limited number of physical to logical mappings possible:
77 78 79 80 81 82 83 84
    <0 1 2 3>
    <1 2 3 0>
    <2 3 0 1>
    <3 0 1 2>
    <0 3 2 1>
    <1 0 3 2>
    <2 1 0 3>
    <3 2 1 0>
85

86 87 88 89 90
DSI PHY:
Required properties:
- compatible: Could be the following
  * "qcom,dsi-phy-28nm-hpm"
  * "qcom,dsi-phy-28nm-lp"
H
Hai Li 已提交
91
  * "qcom,dsi-phy-20nm"
92
  * "qcom,dsi-phy-28nm-8960"
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
- reg: Physical base address and length of the registers of PLL, PHY and PHY
  regulator
- reg-names: The names of register regions. The following regions are required:
  * "dsi_pll"
  * "dsi_phy"
  * "dsi_phy_regulator"
- qcom,dsi-phy-index: The ID of DSI PHY hardware instance. This should
  be 0 or 1, since we have 2 DSI PHYs at most for now.
- power-domains: Should be <&mmcc MDSS_GDSC>.
- clocks: device clocks
  See Documentation/devicetree/bindings/clocks/clock-bindings.txt for details.
- clock-names: the following clocks are required:
  * "iface_clk"
- vddio-supply: phandle to vdd-io regulator device node

H
Hai Li 已提交
108 109 110 111
Optional properties:
- qcom,dsi-phy-regulator-ldo-mode: Boolean value indicating if the LDO mode PHY
  regulator is wanted.

112 113 114 115 116 117
Example:
	mdss_dsi0: qcom,mdss_dsi@fd922800 {
		compatible = "qcom,mdss-dsi-ctrl";
		qcom,dsi-host-index = <0>;
		interrupt-parent = <&mdss_mdp>;
		interrupts = <4 0>;
118 119
		reg-names = "dsi_ctrl";
		reg = <0xfd922800 0x200>;
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
		power-domains = <&mmcc MDSS_GDSC>;
		clock-names =
			"bus_clk",
			"byte_clk",
			"core_clk",
			"core_mmss_clk",
			"iface_clk",
			"mdp_core_clk",
			"pixel_clk";
		clocks =
			<&mmcc MDSS_AXI_CLK>,
			<&mmcc MDSS_BYTE0_CLK>,
			<&mmcc MDSS_ESC0_CLK>,
			<&mmcc MMSS_MISC_AHB_CLK>,
			<&mmcc MDSS_AHB_CLK>,
			<&mmcc MDSS_MDP_CLK>,
			<&mmcc MDSS_PCLK0_CLK>;
		vdda-supply = <&pma8084_l2>;
		vdd-supply = <&pma8084_l22>;
		vddio-supply = <&pma8084_l12>;

141 142
		phys = <&mdss_dsi_phy0>;
		phy-names ="dsi-phy";
143

144 145 146
		qcom,dual-dsi-mode;
		qcom,master-dsi;
		qcom,sync-dual-dsi;
147

H
Hai Li 已提交
148 149 150 151
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&mdss_dsi_active>;
		pinctrl-1 = <&mdss_dsi_suspend>;

152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;
				dsi0_in: endpoint {
					remote-endpoint = <&mdp_intf1_out>;
				};
			};

			port@1 {
				reg = <1>;
				dsi0_out: endpoint {
					remote-endpoint = <&panel_in>;
					data-lanes = <0 1 2 3>;
				};
			};
		};

172 173 174 175 176 177 178
		panel: panel@0 {
			compatible = "sharp,lq101r1sx01";
			reg = <0>;
			link2 = <&secondary>;

			power-supply = <...>;
			backlight = <...>;
179 180 181 182 183 184 185

			port {
				panel_in: endpoint {
					remote-endpoint = <&dsi0_out>;
				};
			};
		};
186
	};
187 188 189 190 191 192 193 194 195 196 197 198 199 200

	mdss_dsi_phy0: qcom,mdss_dsi_phy@fd922a00 {
		compatible = "qcom,dsi-phy-28nm-hpm";
		qcom,dsi-phy-index = <0>;
		reg-names =
			"dsi_pll",
			"dsi_phy",
			"dsi_phy_regulator";
		reg =   <0xfd922a00 0xd4>,
			<0xfd922b00 0x2b0>,
			<0xfd922d80 0x7b>;
		clock-names = "iface_clk";
		clocks = <&mmcc MDSS_AHB_CLK>;
		vddio-supply = <&pma8084_l12>;
H
Hai Li 已提交
201 202

		qcom,dsi-phy-regulator-ldo-mode;
203
	};