blob: 6d5000fee84934df0d35d4f85b9e1ecb114b95f5 [file] [log] [blame]
Adrian Salido-Moreno4fe81062012-12-04 21:05:03 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070013&soc {
Adrian Salido-Moreno42559bc2013-02-07 14:34:45 -080014 mdss_mdp: qcom,mdss_mdp@fd900000 {
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -070015 compatible = "qcom,mdss_mdp";
Adrian Salido-Moreno45228942012-08-13 16:19:18 -070016 reg = <0xfd900000 0x22100>,
17 <0xfd924000 0x1000>;
18 reg-names = "mdp_phys", "vbif_phys";
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -070019 interrupts = <0 72 0>;
20 vdd-supply = <&gdsc_mdss>;
Adrian Salido-Moreno4fe81062012-12-04 21:05:03 -080021
Adrian Salido-Moreno2a228652012-10-01 11:17:33 -070022 qcom,max-clk-rate = <320000000>;
Sree Sesha Aravind Vadrevu8be4b982013-01-04 14:09:20 -080023 qcom,mdss-pipe-vig-off = <0x00001200 0x00001600
24 0x00001A00>;
25 qcom,mdss-pipe-rgb-off = <0x00001E00 0x00002200
26 0x00002600>;
27 qcom,mdss-pipe-dma-off = <0x00002A00 0x00002E00>;
28 qcom,mdss-pipe-vig-fetch-id = <1 4 7>;
29 qcom,mdss-pipe-rgb-fetch-id = <16 17 18>;
30 qcom,mdss-pipe-dma-fetch-id = <10 13>;
Sree Sesha Aravind Vadrevu6dc413b2013-02-27 17:02:04 -080031 qcom,mdss-smp-data = <22 4096>;
Sree Sesha Aravind Vadrevu8be4b982013-01-04 14:09:20 -080032
33 qcom,mdss-ctl-off = <0x00000600 0x00000700 0x00000800
34 0x00000900 0x0000A00>;
35 qcom,mdss-mixer-intf-off = <0x00003200 0x00003600
36 0x00003A00>;
37 qcom,mdss-mixer-wb-off = <0x00003E00 0x00004200>;
38 qcom,mdss-dspp-off = <0x00004600 0x00004A00 0x00004E00>;
39 qcom,mdss-wb-off = <0x00011100 0x00013100 0x00015100
40 0x00017100 0x00019100>;
Adrian Salido-Moreno26045502013-02-05 22:46:01 -080041 qcom,mdss-intf-off = <0x00021100 0x00021300
42 0x00021500 0x00021700>;
Sree Sesha Aravind Vadrevu8be4b982013-01-04 14:09:20 -080043
Sree Sesha Aravind Vadrevu57fe5872013-06-07 15:32:11 -070044 qcom,mdss-has-wfd-blk;
Adrian Salido-Morenoe2e742b2013-02-07 01:54:14 -080045 qcom,vbif-settings = <0x0004 0x00000001>,
46 <0x00D8 0x00000707>,
47 <0x00F0 0x00000030>,
48 <0x0124 0x00000001>,
49 <0x0178 0x00000FFF>,
50 <0x017C 0x0FFF0FFF>,
51 <0x0160 0x22222222>,
52 <0x0164 0x00002222>;
Adrian Salido-Moreno2b0b1b82013-03-06 17:09:33 -080053 qcom,mdp-settings = <0x02E0 0x000000E9>,
Carl Vanderlip4512a442013-03-20 17:02:23 -070054 <0x02E4 0x00000055>,
55 <0x03AC 0xC0000CCC>,
56 <0x03B4 0xC0000CCC>,
57 <0x03BC 0x00CCCCCC>,
58 <0x04A8 0x0CCCC0C0>,
59 <0x04B0 0xCCCCC0C0>,
60 <0x04B8 0xCCCCC000>;
Adrian Salido-Morenoe2e742b2013-02-07 01:54:14 -080061
Adrian Salido-Moreno4fe81062012-12-04 21:05:03 -080062 mdss_fb0: qcom,mdss_fb_primary {
63 cell-index = <0>;
64 compatible = "qcom,mdss-fb";
65 qcom,memory-reservation-type = "EBI1";
66 qcom,memory-reservation-size = <0x800000>;
Siddhartha Agrawale6de0482013-07-18 16:30:27 -070067 qcom,memblock-reserve = <0x03200000 0x01E00000>;
Adrian Salido-Moreno4fe81062012-12-04 21:05:03 -080068 };
69
70 mdss_fb1: qcom,mdss_fb_external {
71 cell-index = <1>;
72 compatible = "qcom,mdss-fb";
73 };
74
75 mdss_fb2: qcom,mdss_fb_wfd {
76 cell-index = <2>;
77 compatible = "qcom,mdss-fb";
78 };
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -070079 };
80
Chandan Uddaraju704a16d2013-01-25 11:30:25 -080081 mdss_dsi0: qcom,mdss_dsi@fd922800 {
Chandan Uddaraju0c33e772012-12-13 22:49:58 -080082 compatible = "qcom,mdss-dsi-ctrl";
Chandan Uddaraju704a16d2013-01-25 11:30:25 -080083 label = "MDSS DSI CTRL->0";
Chandan Uddaraju0c33e772012-12-13 22:49:58 -080084 cell-index = <0>;
85 reg = <0xfd922800 0x600>;
Chandan Uddaraju7632f672012-08-27 21:59:34 -070086 vdd-supply = <&pm8941_l22>;
Aravind Venkateswaranad374332013-03-12 15:19:17 -070087 vddio-supply = <&pm8941_l12>;
88 vdda-supply = <&pm8941_l2>;
Chandan Uddaraju0c33e772012-12-13 22:49:58 -080089 qcom,mdss-fb-map = <&mdss_fb0>;
Manoj Rao702a0432013-08-12 22:58:27 -070090 qcom,mdss-mdp = <&mdss_mdp>;
Huaibin Yang23d85aa2013-08-05 11:56:38 -070091 qcom,platform-reset-gpio = <&pm8941_gpios 19 0>;
92 qcom,platform-enable-gpio = <&msmgpio 58 0>;
Huaibin Yang6a4a0a02013-09-16 12:19:50 +053093 qcom,platform-te-gpio = <&msmgpio 12 0>;
Arpita Banerjeec057d582013-06-28 18:35:23 -070094 qcom,platform-strength-ctrl = [ff 06];
95 qcom,platform-bist-ctrl = [00 00 b1 ff 00 00];
96 qcom,platform-regulator-settings = [07 09 03 00 20 00 01];
97 qcom,platform-lane-config = [00 00 00 00 00 00 00 01 97
98 00 00 00 00 05 00 00 01 97
99 00 00 00 00 0a 00 00 01 97
100 00 00 00 00 0f 00 00 01 97
101 00 c0 00 00 00 00 00 01 bb];
102 qcom,platform-supply-entry1 {
103 qcom,supply-name = "vdd";
104 qcom,supply-min-voltage = <3000000>;
105 qcom,supply-max-voltage = <3000000>;
106 qcom,supply-enable-load = <100000>;
107 qcom,supply-disable-load = <100>;
108 qcom,supply-pre-on-sleep = <0>;
109 qcom,supply-post-on-sleep = <20>;
110 qcom,supply-pre-off-sleep = <0>;
111 qcom,supply-post-off-sleep = <0>;
112 };
113 qcom,platform-supply-entry2 {
114 qcom,supply-name = "vddio";
115 qcom,supply-min-voltage = <1800000>;
116 qcom,supply-max-voltage = <1800000>;
117 qcom,supply-enable-load = <100000>;
118 qcom,supply-disable-load = <100>;
119 qcom,supply-pre-on-sleep = <0>;
120 qcom,supply-post-on-sleep = <20>;
121 qcom,supply-pre-off-sleep = <0>;
122 qcom,supply-post-off-sleep = <0>;
123 };
124 qcom,platform-supply-entry3 {
125 qcom,supply-name = "vdda";
126 qcom,supply-min-voltage = <1200000>;
127 qcom,supply-max-voltage = <1200000>;
128 qcom,supply-enable-load = <100000>;
129 qcom,supply-disable-load = <100>;
130 qcom,supply-pre-on-sleep = <0>;
131 qcom,supply-post-on-sleep = <0>;
132 qcom,supply-pre-off-sleep = <0>;
133 qcom,supply-post-off-sleep = <0>;
134 };
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -0700135 };
136
Chandan Uddaraju6d2c8922013-01-24 23:11:12 -0800137 mdss_dsi1: qcom,mdss_dsi@fd922e00 {
138 compatible = "qcom,mdss-dsi-ctrl";
139 label = "MDSS DSI CTRL->1";
140 cell-index = <1>;
141 reg = <0xfd922e00 0x600>;
142 vdd-supply = <&pm8941_l22>;
Aravind Venkateswaranad374332013-03-12 15:19:17 -0700143 vddio-supply = <&pm8941_l12>;
144 vdda-supply = <&pm8941_l2>;
Chandan Uddaraju6d2c8922013-01-24 23:11:12 -0800145 qcom,mdss-fb-map = <&mdss_fb0>;
Manoj Rao702a0432013-08-12 22:58:27 -0700146 qcom,mdss-mdp = <&mdss_mdp>;
Chandan Uddaraju6d2c8922013-01-24 23:11:12 -0800147 };
148
Manoj Raobabed622013-02-01 20:35:48 -0800149 mdss_hdmi_tx: qcom,hdmi_tx@fd922100 {
Ujwal Patelf5380e12012-08-13 22:50:13 -0700150 cell-index = <0>;
151 compatible = "qcom,hdmi-tx";
152 reg = <0xfd922100 0x35C>,
153 <0xfd922500 0x7C>,
154 <0xfc4b8000 0x60F0>;
155 reg-names = "core_physical", "phy_physical", "qfprom_physical";
156
Ujwal Patel0f685f22012-12-12 12:52:18 -0800157 hpd-gdsc-supply = <&gdsc_mdss>;
Ujwal Patelf5380e12012-08-13 22:50:13 -0700158 hpd-5v-supply = <&pm8941_mvs2>;
159 core-vdda-supply = <&pm8941_l12>;
160 core-vcc-supply = <&pm8941_s3>;
Ujwal Patel0f685f22012-12-12 12:52:18 -0800161 qcom,hdmi-tx-supply-names = "hpd-gdsc", "hpd-5v", "core-vdda", "core-vcc";
Ujwal Patel0f685f22012-12-12 12:52:18 -0800162 qcom,hdmi-tx-min-voltage-level = <0 0 1800000 1800000>;
163 qcom,hdmi-tx-max-voltage-level = <0 0 1800000 1800000>;
Ajay Singh Parmara449f142013-08-30 14:51:18 -0700164 qcom,hdmi-tx-peak-current = <0 0 300000 0>;
Ujwal Patelf5380e12012-08-13 22:50:13 -0700165
Ujwal Pateleac7d2b2012-11-14 21:53:34 -0800166 qcom,hdmi-tx-cec = <&msmgpio 31 0>;
167 qcom,hdmi-tx-ddc-clk = <&msmgpio 32 0>;
168 qcom,hdmi-tx-ddc-data = <&msmgpio 33 0>;
169 qcom,hdmi-tx-hpd = <&msmgpio 34 0>;
Adrian Salido-Moreno4fe81062012-12-04 21:05:03 -0800170 qcom,mdss-fb-map = <&mdss_fb1>;
Kiran Kandi52650322012-12-11 15:49:39 -0800171 qcom,msm-hdmi-audio-rx {
172 compatible = "qcom,msm-hdmi-audio-codec-rx";
173 };
Ujwal Patelf5380e12012-08-13 22:50:13 -0700174 };
175
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -0700176 qcom,mdss_wb_panel {
177 compatible = "qcom,mdss_wb";
Adrian Salido-Moreno4af57eb2012-09-28 15:25:36 -0700178 qcom,mdss_pan_res = <1920 1080>;
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -0700179 qcom,mdss_pan_bpp = <24>;
Adrian Salido-Moreno4fe81062012-12-04 21:05:03 -0800180 qcom,mdss-fb-map = <&mdss_fb2>;
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -0700181 };
Asaf Penso4f186422012-10-18 11:25:15 +0200182
183 mdss_edp: qcom,mdss_edp@fd923400 {
184 compatible = "qcom,mdss-edp";
185 reg = <0xfd923400 0x700>,
186 <0xfd8c2000 0x1000>;
187 reg-names = "edp_base", "mmss_cc_base";
188 vdda-supply = <&pm8941_l12>;
189 gpio-panel-en = <&msmgpio 58 0>;
Asaf Penso407e03a2012-10-25 15:03:21 +0200190 gpio-panel-pwm = <&pm8941_gpios 36 0>;
191 qcom,panel-lpg-channel = <7>; /* LPG Channel 8 */
192 qcom,panel-pwm-period = <53>;
Adrian Salido-Moreno4fe81062012-12-04 21:05:03 -0800193 qcom,mdss-fb-map = <&mdss_fb0>;
Kuogee Hsieh71412cd2013-06-28 09:46:15 -0700194 gpio-panel-hpd = <&msmgpio 102 0>;
Asaf Penso4f186422012-10-18 11:25:15 +0200195 };
Adrian Salido-Morenoa80c69e2012-07-31 18:11:09 -0700196};
Manoj Rao90fe3e82013-08-14 23:32:23 -0700197
198/include/ "msm8974-mdss-panels.dtsi"