blob: 84eebbfe7644d0b36e21ba65d3af7cdbb668f91e [file] [log] [blame]
Hanumant Singhce222232013-03-19 14:19:59 -07001/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
2 *
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
13/dts-v1/;
14
15/include/ "msm8610.dtsi"
16
17/ {
18 model = "Qualcomm MSM 8610 CDP";
Stepan Moskovchenkoa971a752013-04-03 16:51:37 -070019 compatible = "qcom,msm8610-cdp", "qcom,msm8610", "qcom,cdp";
Abhimanyu Kapur35bc0842013-04-19 20:02:58 -070020 qcom,msm-id = <147 1 0>, <165 1 0>, <161 1 0>, <162 1 0>,
21 <163 1 0>, <164 1 0>, <166 1 0>;
Hanumant Singhce222232013-03-19 14:19:59 -070022
Hanumant Singh6b346712013-04-09 16:26:09 -070023 serial@f991e000 {
Hanumant Singhce222232013-03-19 14:19:59 -070024 status = "ok";
25 };
26};
27
Amy Maloche9a113c12013-04-11 19:46:20 -070028&spmi_bus {
29 qcom,pm8110@0 {
30 qcom,leds@a200 {
31 status = "okay";
32 qcom,led_mpp_3 {
33 label = "mpp";
34 linux,name = "wled-backlight";
35 linux-default-trigger = "none";
36 qcom,default-state = "on";
37 qcom,max-current = <40>;
38 qcom,id = <6>;
39 qcom,source-sel = <1>;
40 qcom,mode-ctrl = <0x10>;
41 };
42 };
43 };
Amy Maloche19c386b2013-04-15 14:06:01 -070044
45 gpio_keys {
46 compatible = "gpio-keys";
47 input-name = "gpio-keys";
48
49 camera_snapshot {
50 label = "camera_snapshot";
51 gpios = <&msmgpio 73 0x1>;
52 linux,input-type = <1>;
53 linux,code = <0x2fe>;
54 gpio-key,wakeup;
55 debounce-interval = <15>;
56 };
57
58 camera_focus {
59 label = "camera_focus";
60 gpios = <&msmgpio 74 0x1>;
61 linux,input-type = <1>;
62 linux,code = <0x210>;
63 gpio-key,wakeup;
64 debounce-interval = <15>;
65 };
66
67 vol_up {
68 label = "volume_up";
69 gpios = <&msmgpio 72 0x1>;
70 linux,input-type = <1>;
71 linux,code = <115>;
72 gpio-key,wakeup;
73 debounce-interval = <15>;
74 };
75 };
Amy Maloche9a113c12013-04-11 19:46:20 -070076};
77
Venkat Gopalakrishnana6ce5f22013-04-04 14:24:57 -070078&sdhc_1 {
79 vdd-supply = <&pm8110_l17>;
80 qcom,vdd-always-on;
81 qcom,vdd-lpm-sup;
82 qcom,vdd-voltage-level = <2900000 2900000>;
83 qcom,vdd-current-level = <200 400000>;
84
85 vdd-io-supply = <&pm8110_l6>;
86 qcom,vdd-io-always-on;
87 qcom,vdd-io-voltage-level = <1800000 1800000>;
88 qcom,vdd-io-current-level = <200 60000>;
89
90 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
91 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Venkat Gopalakrishnanaa6c1e62013-04-12 00:07:51 -070092 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
Venkat Gopalakrishnana6ce5f22013-04-04 14:24:57 -070093 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
94
95 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
96 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
97 qcom,nonremovable;
98
Venkat Gopalakrishnan587b2252013-04-05 12:16:50 -070099 status = "ok";
Venkat Gopalakrishnana6ce5f22013-04-04 14:24:57 -0700100};
101
102&sdhc_2 {
103 vdd-supply = <&pm8110_l18>;
104 qcom,vdd-voltage-level = <2950000 2950000>;
105 qcom,vdd-current-level = <15000 400000>;
106
107 vdd-io-supply = <&pm8110_l21>;
108 qcom,vdd-io-always-on;
109 qcom,vdd-io-lpm-sup;
110 qcom,vdd-io-voltage-level = <1800000 2950000>;
111 qcom,vdd-io-current-level = <200 50000>;
112
113 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
114 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Venkat Gopalakrishnanaa6c1e62013-04-12 00:07:51 -0700115 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
Venkat Gopalakrishnana6ce5f22013-04-04 14:24:57 -0700116 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
117
118 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
119
120 #address-cells = <0>;
121 interrupt-parent = <&sdhc_2>;
122 interrupts = <0 1 2>;
123 #interrupt-cells = <1>;
124 interrupt-map-mask = <0xffffffff>;
125 interrupt-map = <0 &intc 0 125 0
126 1 &intc 0 221 0
127 2 &msmgpio 42 0x3>;
128 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
129 cd-gpios = <&msmgpio 42 0x1>;
130
Venkat Gopalakrishnan587b2252013-04-05 12:16:50 -0700131 status = "ok";
Venkat Gopalakrishnana6ce5f22013-04-04 14:24:57 -0700132};
Xiaozhe Shif7d9daf2013-04-08 15:29:55 -0700133
134&pm8110_chg {
135 status = "ok";
Xiaozhe Shi8bc042a2013-04-18 15:44:08 -0700136 qcom,charging-disabled;
137 qcom,use-default-batt-values;
Xiaozhe Shif7d9daf2013-04-08 15:29:55 -0700138
Xiaozhe Shi8bc042a2013-04-18 15:44:08 -0700139 qcom,chgr@1000 {
Xiaozhe Shif7d9daf2013-04-08 15:29:55 -0700140 status = "ok";
141 };
142
Xiaozhe Shi8bc042a2013-04-18 15:44:08 -0700143 qcom,buck@1100 {
Xiaozhe Shif7d9daf2013-04-08 15:29:55 -0700144 status = "ok";
145 };
146
Xiaozhe Shi8bc042a2013-04-18 15:44:08 -0700147 qcom,usb-chgpth@1300 {
Xiaozhe Shif7d9daf2013-04-08 15:29:55 -0700148 status = "ok";
149 };
150
151 qcom,chg-misc@1600 {
152 status = "ok";
153 };
154};