diff options
Diffstat (limited to 'Documentation/devicetree/bindings/drm/msm')
-rw-r--r-- | Documentation/devicetree/bindings/drm/msm/gpu.txt | 52 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/drm/msm/hdmi.txt | 46 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/drm/msm/mdp.txt | 48 |
3 files changed, 146 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/drm/msm/gpu.txt b/Documentation/devicetree/bindings/drm/msm/gpu.txt new file mode 100644 index 000000000000..67d0a58dbb77 --- /dev/null +++ b/Documentation/devicetree/bindings/drm/msm/gpu.txt | |||
@@ -0,0 +1,52 @@ | |||
1 | Qualcomm adreno/snapdragon GPU | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "qcom,adreno-3xx" | ||
5 | - reg: Physical base address and length of the controller's registers. | ||
6 | - interrupts: The interrupt signal from the gpu. | ||
7 | - clocks: device clocks | ||
8 | See ../clocks/clock-bindings.txt for details. | ||
9 | - clock-names: the following clocks are required: | ||
10 | * "core_clk" | ||
11 | * "iface_clk" | ||
12 | * "mem_iface_clk" | ||
13 | - qcom,chipid: gpu chip-id. Note this may become optional for future | ||
14 | devices if we can reliably read the chipid from hw | ||
15 | - qcom,gpu-pwrlevels: list of operating points | ||
16 | - compatible: "qcom,gpu-pwrlevels" | ||
17 | - for each qcom,gpu-pwrlevel: | ||
18 | - qcom,gpu-freq: requested gpu clock speed | ||
19 | - NOTE: downstream android driver defines additional parameters to | ||
20 | configure memory bandwidth scaling per OPP. | ||
21 | |||
22 | Example: | ||
23 | |||
24 | / { | ||
25 | ... | ||
26 | |||
27 | gpu: qcom,kgsl-3d0@4300000 { | ||
28 | compatible = "qcom,adreno-3xx"; | ||
29 | reg = <0x04300000 0x20000>; | ||
30 | reg-names = "kgsl_3d0_reg_memory"; | ||
31 | interrupts = <GIC_SPI 80 0>; | ||
32 | interrupt-names = "kgsl_3d0_irq"; | ||
33 | clock-names = | ||
34 | "core_clk", | ||
35 | "iface_clk", | ||
36 | "mem_iface_clk"; | ||
37 | clocks = | ||
38 | <&mmcc GFX3D_CLK>, | ||
39 | <&mmcc GFX3D_AHB_CLK>, | ||
40 | <&mmcc MMSS_IMEM_AHB_CLK>; | ||
41 | qcom,chipid = <0x03020100>; | ||
42 | qcom,gpu-pwrlevels { | ||
43 | compatible = "qcom,gpu-pwrlevels"; | ||
44 | qcom,gpu-pwrlevel@0 { | ||
45 | qcom,gpu-freq = <450000000>; | ||
46 | }; | ||
47 | qcom,gpu-pwrlevel@1 { | ||
48 | qcom,gpu-freq = <27000000>; | ||
49 | }; | ||
50 | }; | ||
51 | }; | ||
52 | }; | ||
diff --git a/Documentation/devicetree/bindings/drm/msm/hdmi.txt b/Documentation/devicetree/bindings/drm/msm/hdmi.txt new file mode 100644 index 000000000000..aca917fe2ba7 --- /dev/null +++ b/Documentation/devicetree/bindings/drm/msm/hdmi.txt | |||
@@ -0,0 +1,46 @@ | |||
1 | Qualcomm adreno/snapdragon hdmi output | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: one of the following | ||
5 | * "qcom,hdmi-tx-8660" | ||
6 | * "qcom,hdmi-tx-8960" | ||
7 | - reg: Physical base address and length of the controller's registers | ||
8 | - reg-names: "core_physical" | ||
9 | - interrupts: The interrupt signal from the hdmi block. | ||
10 | - clocks: device clocks | ||
11 | See ../clocks/clock-bindings.txt for details. | ||
12 | - qcom,hdmi-tx-ddc-clk-gpio: ddc clk pin | ||
13 | - qcom,hdmi-tx-ddc-data-gpio: ddc data pin | ||
14 | - qcom,hdmi-tx-hpd-gpio: hpd pin | ||
15 | - core-vdda-supply: phandle to supply regulator | ||
16 | - hdmi-mux-supply: phandle to mux regulator | ||
17 | |||
18 | Optional properties: | ||
19 | - qcom,hdmi-tx-mux-en-gpio: hdmi mux enable pin | ||
20 | - qcom,hdmi-tx-mux-sel-gpio: hdmi mux select pin | ||
21 | |||
22 | Example: | ||
23 | |||
24 | / { | ||
25 | ... | ||
26 | |||
27 | hdmi: qcom,hdmi-tx-8960@4a00000 { | ||
28 | compatible = "qcom,hdmi-tx-8960"; | ||
29 | reg-names = "core_physical"; | ||
30 | reg = <0x04a00000 0x1000>; | ||
31 | interrupts = <GIC_SPI 79 0>; | ||
32 | clock-names = | ||
33 | "core_clk", | ||
34 | "master_iface_clk", | ||
35 | "slave_iface_clk"; | ||
36 | clocks = | ||
37 | <&mmcc HDMI_APP_CLK>, | ||
38 | <&mmcc HDMI_M_AHB_CLK>, | ||
39 | <&mmcc HDMI_S_AHB_CLK>; | ||
40 | qcom,hdmi-tx-ddc-clk = <&msmgpio 70 GPIO_ACTIVE_HIGH>; | ||
41 | qcom,hdmi-tx-ddc-data = <&msmgpio 71 GPIO_ACTIVE_HIGH>; | ||
42 | qcom,hdmi-tx-hpd = <&msmgpio 72 GPIO_ACTIVE_HIGH>; | ||
43 | core-vdda-supply = <&pm8921_hdmi_mvs>; | ||
44 | hdmi-mux-supply = <&ext_3p3v>; | ||
45 | }; | ||
46 | }; | ||
diff --git a/Documentation/devicetree/bindings/drm/msm/mdp.txt b/Documentation/devicetree/bindings/drm/msm/mdp.txt new file mode 100644 index 000000000000..1a0598e5279d --- /dev/null +++ b/Documentation/devicetree/bindings/drm/msm/mdp.txt | |||
@@ -0,0 +1,48 @@ | |||
1 | Qualcomm adreno/snapdragon display controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: | ||
5 | * "qcom,mdp" - mdp4 | ||
6 | - reg: Physical base address and length of the controller's registers. | ||
7 | - interrupts: The interrupt signal from the display controller. | ||
8 | - connectors: array of phandles for output device(s) | ||
9 | - clocks: device clocks | ||
10 | See ../clocks/clock-bindings.txt for details. | ||
11 | - clock-names: the following clocks are required: | ||
12 | * "core_clk" | ||
13 | * "iface_clk" | ||
14 | * "lut_clk" | ||
15 | * "src_clk" | ||
16 | * "hdmi_clk" | ||
17 | * "mpd_clk" | ||
18 | |||
19 | Optional properties: | ||
20 | - gpus: phandle for gpu device | ||
21 | |||
22 | Example: | ||
23 | |||
24 | / { | ||
25 | ... | ||
26 | |||
27 | mdp: qcom,mdp@5100000 { | ||
28 | compatible = "qcom,mdp"; | ||
29 | reg = <0x05100000 0xf0000>; | ||
30 | interrupts = <GIC_SPI 75 0>; | ||
31 | connectors = <&hdmi>; | ||
32 | gpus = <&gpu>; | ||
33 | clock-names = | ||
34 | "core_clk", | ||
35 | "iface_clk", | ||
36 | "lut_clk", | ||
37 | "src_clk", | ||
38 | "hdmi_clk", | ||
39 | "mdp_clk"; | ||
40 | clocks = | ||
41 | <&mmcc MDP_SRC>, | ||
42 | <&mmcc MDP_AHB_CLK>, | ||
43 | <&mmcc MDP_LUT_CLK>, | ||
44 | <&mmcc TV_SRC>, | ||
45 | <&mmcc HDMI_TV_CLK>, | ||
46 | <&mmcc MDP_TV_CLK>; | ||
47 | }; | ||
48 | }; | ||