blob: 610f23776a60f0198911804da59e426847845f16 [file] [log] [blame]
Kevin Chan350b6932012-08-01 02:21:00 -07001/*
Jignesh Mehtaa06591f2012-10-31 17:18:08 -07002 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Kevin Chan350b6932012-08-01 02:21:00 -07003 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070014&soc {
Jignesh Mehtaa06591f2012-10-31 17:18:08 -070015 qcom,msm-cam@fd8C0000 {
16 compatible = "qcom,msm-cam";
Kevin Chan350b6932012-08-01 02:21:00 -070017 reg = <0xfd8C0000 0x10000>;
Jignesh Mehtaa06591f2012-10-31 17:18:08 -070018 reg-names = "msm-cam";
Kevin Chan350b6932012-08-01 02:21:00 -070019 };
Kevin Chan57b41ee2012-08-24 09:02:22 -070020
Kevin Chan350b6932012-08-01 02:21:00 -070021 qcom,csiphy@fda0ac00 {
22 cell-index = <0>;
23 compatible = "qcom,csiphy";
Evgeniy Borisov4de53312013-03-27 05:14:41 -070024 reg = <0xfda0ac00 0x200>,
25 <0xfda00030 0x4>;
26 reg-names = "csiphy", "csiphy_clk_mux";
Kevin Chan350b6932012-08-01 02:21:00 -070027 interrupts = <0 78 0>;
28 interrupt-names = "csiphy";
29 };
Kevin Chan57b41ee2012-08-24 09:02:22 -070030
Kevin Chan350b6932012-08-01 02:21:00 -070031 qcom,csiphy@fda0b000 {
32 cell-index = <1>;
33 compatible = "qcom,csiphy";
Evgeniy Borisov4de53312013-03-27 05:14:41 -070034 reg = <0xfda0b000 0x200>,
35 <0xfda00038 0x4>;
36 reg-names = "csiphy", "csiphy_clk_mux";
Kevin Chan350b6932012-08-01 02:21:00 -070037 interrupts = <0 79 0>;
38 interrupt-names = "csiphy";
39 };
Kevin Chan57b41ee2012-08-24 09:02:22 -070040
Kevin Chan350b6932012-08-01 02:21:00 -070041 qcom,csiphy@fda0b400 {
42 cell-index = <2>;
43 compatible = "qcom,csiphy";
Evgeniy Borisov4de53312013-03-27 05:14:41 -070044 reg = <0xfda0b400 0x200>,
45 <0xfda00040 0x4>;
46 reg-names = "csiphy", "csiphy_clk_mux";
Kevin Chan350b6932012-08-01 02:21:00 -070047 interrupts = <0 80 0>;
48 interrupt-names = "csiphy";
49 };
Kevin Chan57b41ee2012-08-24 09:02:22 -070050
Kevin Chan350b6932012-08-01 02:21:00 -070051 qcom,csid@fda08000 {
52 cell-index = <0>;
53 compatible = "qcom,csid";
54 reg = <0xfda08000 0x100>;
55 reg-names = "csid";
56 interrupts = <0 51 0>;
57 interrupt-names = "csid";
Su Liu0850c5b2013-03-22 17:31:17 -070058 qcom,csi-vdd-voltage = <1800000>;
59 qcom,mipi-csi-vdd-supply = <&pm8941_l12>;
Kevin Chan350b6932012-08-01 02:21:00 -070060 };
Kevin Chan57b41ee2012-08-24 09:02:22 -070061
Kevin Chan350b6932012-08-01 02:21:00 -070062 qcom,csid@fda08400 {
63 cell-index = <1>;
64 compatible = "qcom,csid";
65 reg = <0xfda08400 0x100>;
66 reg-names = "csid";
67 interrupts = <0 52 0>;
68 interrupt-names = "csid";
Su Liu0850c5b2013-03-22 17:31:17 -070069 qcom,csi-vdd-voltage = <1800000>;
70 qcom,mipi-csi-vdd-supply = <&pm8941_l12>;
Kevin Chan350b6932012-08-01 02:21:00 -070071 };
Kevin Chan57b41ee2012-08-24 09:02:22 -070072
Kevin Chan350b6932012-08-01 02:21:00 -070073 qcom,csid@fda08800 {
74 cell-index = <2>;
75 compatible = "qcom,csid";
76 reg = <0xfda08800 0x100>;
77 reg-names = "csid";
78 interrupts = <0 53 0>;
79 interrupt-names = "csid";
Su Liu0850c5b2013-03-22 17:31:17 -070080 qcom,csi-vdd-voltage = <1800000>;
81 qcom,mipi-csi-vdd-supply = <&pm8941_l12>;
Kevin Chan350b6932012-08-01 02:21:00 -070082 };
Kevin Chan57b41ee2012-08-24 09:02:22 -070083
Kevin Chan350b6932012-08-01 02:21:00 -070084 qcom,csid@fda08C00 {
85 cell-index = <3>;
86 compatible = "qcom,csid";
87 reg = <0xfda08C00 0x100>;
88 reg-names = "csid";
89 interrupts = <0 54 0>;
90 interrupt-names = "csid";
Su Liu0850c5b2013-03-22 17:31:17 -070091 qcom,csi-vdd-voltage = <1800000>;
92 qcom,mipi-csi-vdd-supply = <&pm8941_l12>;
Kevin Chan350b6932012-08-01 02:21:00 -070093 };
Kevin Chan57b41ee2012-08-24 09:02:22 -070094
Kevin Chan350b6932012-08-01 02:21:00 -070095 qcom,ispif@fda0A000 {
96 cell-index = <0>;
Petar Sivenov457edcb2013-07-11 13:00:43 -070097 compatible = "qcom,ispif-v3.0", "qcom,ispif";
Evgeniy Borisov4de53312013-03-27 05:14:41 -070098 reg = <0xfda0A000 0x500>,
99 <0xfda00020 0x10>;
100 reg-names = "ispif", "csi_clk_mux";
Kevin Chan350b6932012-08-01 02:21:00 -0700101 interrupts = <0 55 0>;
102 interrupt-names = "ispif";
Petar Sivenov457edcb2013-07-11 13:00:43 -0700103 qcom,num-isps = <0x2>;
Kevin Chan350b6932012-08-01 02:21:00 -0700104 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700105
Kevin Chan350b6932012-08-01 02:21:00 -0700106 qcom,vfe@fda10000 {
107 cell-index = <0>;
108 compatible = "qcom,vfe40";
Kevin Chan7303f592012-08-23 23:36:53 -0700109 reg = <0xfda10000 0x1000>,
Slavi Dimitrov8dec27c2013-07-25 00:16:18 -0700110 <0xfda40000 0x200>,
111 <0xfd4a8000 0x4>;
112 reg-names = "vfe", "vfe_vbif", "tcsr";
Kevin Chan350b6932012-08-01 02:21:00 -0700113 interrupts = <0 57 0>;
114 interrupt-names = "vfe";
115 vdd-supply = <&gdsc_vfe>;
116 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700117
Kevin Chan350b6932012-08-01 02:21:00 -0700118 qcom,vfe@fda14000 {
119 cell-index = <1>;
120 compatible = "qcom,vfe40";
Kevin Chan7303f592012-08-23 23:36:53 -0700121 reg = <0xfda14000 0x1000>,
Slavi Dimitrov8dec27c2013-07-25 00:16:18 -0700122 <0xfda40000 0x200>,
123 <0xfd4a8000 0x4>;
124 reg-names = "vfe", "vfe_vbif", "tcsr";
Kevin Chan350b6932012-08-01 02:21:00 -0700125 interrupts = <0 58 0>;
126 interrupt-names = "vfe";
127 vdd-supply = <&gdsc_vfe>;
128 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700129
Kevin Chan350b6932012-08-01 02:21:00 -0700130 qcom,jpeg@fda1c000 {
131 cell-index = <0>;
132 compatible = "qcom,jpeg";
133 reg = <0xfda1c000 0x400>;
134 reg-names = "jpeg";
135 interrupts = <0 59 0>;
136 interrupt-names = "jpeg";
Evgeniy Borisovd965d442013-04-03 04:24:44 -0700137 vdd-supply = <&gdsc_jpeg>;
Kevin Chan350b6932012-08-01 02:21:00 -0700138 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700139
Kevin Chan350b6932012-08-01 02:21:00 -0700140 qcom,jpeg@fda20000 {
141 cell-index = <1>;
142 compatible = "qcom,jpeg";
143 reg = <0xfda20000 0x400>;
144 reg-names = "jpeg";
145 interrupts = <0 60 0>;
146 interrupt-names = "jpeg";
Ashwini Rao078b72d2012-08-28 16:25:58 -0700147 vdd-supply = <&gdsc_jpeg>;
Kevin Chan350b6932012-08-01 02:21:00 -0700148 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700149
Kevin Chan350b6932012-08-01 02:21:00 -0700150 qcom,jpeg@fda24000 {
151 cell-index = <2>;
152 compatible = "qcom,jpeg";
153 reg = <0xfda24000 0x400>;
154 reg-names = "jpeg";
155 interrupts = <0 61 0>;
156 interrupt-names = "jpeg";
Ashwini Rao078b72d2012-08-28 16:25:58 -0700157 vdd-supply = <&gdsc_jpeg>;
Kevin Chan350b6932012-08-01 02:21:00 -0700158 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700159
Kevin Chan350b6932012-08-01 02:21:00 -0700160 qcom,irqrouter@fda00000 {
161 cell-index = <0>;
162 compatible = "qcom,irqrouter";
163 reg = <0xfda00000 0x100>;
164 reg-names = "irqrouter";
165 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700166
Kevin Chan350b6932012-08-01 02:21:00 -0700167 qcom,cpp@fda04000 {
168 cell-index = <0>;
169 compatible = "qcom,cpp";
Rajakumar Govindaram15342012013-02-09 14:58:40 -0800170 reg = <0xfda04000 0x100>,
Evgeniy Borisovd965d442013-04-03 04:24:44 -0700171 <0xfda40000 0x200>,
Iliya Varadzhakov9f9b2362013-08-23 10:03:31 -0700172 <0xfda18000 0x018>;
Rajakumar Govindaramd359e4f2013-03-06 03:11:57 -0800173 reg-names = "cpp", "cpp_vbif", "cpp_hw";
Kevin Chan350b6932012-08-01 02:21:00 -0700174 interrupts = <0 49 0>;
175 interrupt-names = "cpp";
176 vdd-supply = <&gdsc_vfe>;
177 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700178
Sreesudhan Ramakrish Ramkumard53503f2012-10-18 10:42:27 -0700179 led_flash0: qcom,camera-led-flash {
180 cell-index = <0>;
181 compatible = "qcom,camera-led-flash";
182 qcom,flash-type = <1>;
183 qcom,flash-source = <&pm8941_flash0 &pm8941_flash1>;
Evgeniy Borisovdb7251c2013-05-22 04:16:55 -0700184 qcom,torch-source = <&pm8941_torch>;
Sreesudhan Ramakrish Ramkumard53503f2012-10-18 10:42:27 -0700185 };
186
Sreesudhan Ramakrish Ramkumar39074612012-10-11 20:48:51 -0700187 cci: qcom,cci@fda0C000 {
Kevin Chan57b41ee2012-08-24 09:02:22 -0700188 cell-index = <0>;
189 compatible = "qcom,cci";
190 reg = <0xfda0C000 0x1000>;
Evgeniy Borisovd965d442013-04-03 04:24:44 -0700191 #address-cells = <1>;
Sreesudhan Ramakrish Ramkumar78892ea2013-02-21 00:59:37 -0800192 #size-cells = <0>;
Kevin Chan57b41ee2012-08-24 09:02:22 -0700193 reg-names = "cci";
194 interrupts = <0 50 0>;
195 interrupt-names = "cci";
Shuzhen Wang77337992013-01-08 15:46:09 -0800196 gpios = <&msmgpio 19 0>,
197 <&msmgpio 20 0>,
198 <&msmgpio 21 0>,
199 <&msmgpio 22 0>;
200 qcom,gpio-tbl-num = <0 1 2 3>;
201 qcom,gpio-tbl-flags = <1 1 1 1>;
202 qcom,gpio-tbl-label = "CCI_I2C_DATA0",
Vasko Kalanoski18ba0d42013-04-15 21:18:54 -0700203 "CCI_I2C_CLK0",
204 "CCI_I2C_DATA1",
205 "CCI_I2C_CLK1";
206 master0: qcom,cci-master0 {
207 status = "disabled";
208 };
209 master1: qcom,cci-master1 {
210 status = "disabled";
211 };
Kevin Chan57b41ee2012-08-24 09:02:22 -0700212 };
Kevin Chan350b6932012-08-01 02:21:00 -0700213};
Vasko Kalanoski18ba0d42013-04-15 21:18:54 -0700214
215&master0 {
216 qcom,hw-thigh = <78>;
217 qcom,hw-tlow = <114>;
218 qcom,hw-tsu-sto = <28>;
219 qcom,hw-tsu-sta = <28>;
220 qcom,hw-thd-dat = <10>;
221 qcom,hw-thd-sta = <77>;
222 qcom,hw-tbuf = <118>;
223 qcom,hw-scl-stretch-en = <0>;
224 qcom,hw-trdhld = <6>;
225 qcom,hw-tsp = <1>;
226 status = "ok";
227};
228
229&master1 {
230 qcom,hw-thigh = <78>;
231 qcom,hw-tlow = <114>;
232 qcom,hw-tsu-sto = <28>;
233 qcom,hw-tsu-sta = <28>;
234 qcom,hw-thd-dat = <10>;
235 qcom,hw-thd-sta = <77>;
236 qcom,hw-tbuf = <118>;
237 qcom,hw-scl-stretch-en = <0>;
238 qcom,hw-trdhld = <6>;
239 qcom,hw-tsp = <1>;
240 status = "ok";
241};