Hanumant Singh | ce22223 | 2013-03-19 14:19:59 -0700 | [diff] [blame] | 1 | /* 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 Moskovchenko | a971a75 | 2013-04-03 16:51:37 -0700 | [diff] [blame] | 19 | compatible = "qcom,msm8610-cdp", "qcom,msm8610", "qcom,cdp"; |
Abhimanyu Kapur | 35bc084 | 2013-04-19 20:02:58 -0700 | [diff] [blame] | 20 | 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 Singh | ce22223 | 2013-03-19 14:19:59 -0700 | [diff] [blame] | 22 | |
Hanumant Singh | 6b34671 | 2013-04-09 16:26:09 -0700 | [diff] [blame] | 23 | serial@f991e000 { |
Hanumant Singh | ce22223 | 2013-03-19 14:19:59 -0700 | [diff] [blame] | 24 | status = "ok"; |
| 25 | }; |
| 26 | }; |
| 27 | |
Amy Maloche | 9a113c1 | 2013-04-11 19:46:20 -0700 | [diff] [blame] | 28 | &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 Maloche | 19c386b | 2013-04-15 14:06:01 -0700 | [diff] [blame] | 44 | |
| 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 Maloche | 9a113c1 | 2013-04-11 19:46:20 -0700 | [diff] [blame] | 76 | }; |
| 77 | |
Venkat Gopalakrishnan | a6ce5f2 | 2013-04-04 14:24:57 -0700 | [diff] [blame] | 78 | &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 Gopalakrishnan | aa6c1e6 | 2013-04-12 00:07:51 -0700 | [diff] [blame] | 92 | qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */ |
Venkat Gopalakrishnan | a6ce5f2 | 2013-04-04 14:24:57 -0700 | [diff] [blame] | 93 | 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 Gopalakrishnan | 587b225 | 2013-04-05 12:16:50 -0700 | [diff] [blame] | 99 | status = "ok"; |
Venkat Gopalakrishnan | a6ce5f2 | 2013-04-04 14:24:57 -0700 | [diff] [blame] | 100 | }; |
| 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 Gopalakrishnan | aa6c1e6 | 2013-04-12 00:07:51 -0700 | [diff] [blame] | 115 | qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */ |
Venkat Gopalakrishnan | a6ce5f2 | 2013-04-04 14:24:57 -0700 | [diff] [blame] | 116 | 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 Gopalakrishnan | 587b225 | 2013-04-05 12:16:50 -0700 | [diff] [blame] | 131 | status = "ok"; |
Venkat Gopalakrishnan | a6ce5f2 | 2013-04-04 14:24:57 -0700 | [diff] [blame] | 132 | }; |
Xiaozhe Shi | f7d9daf | 2013-04-08 15:29:55 -0700 | [diff] [blame] | 133 | |
| 134 | &pm8110_chg { |
| 135 | status = "ok"; |
Xiaozhe Shi | 8bc042a | 2013-04-18 15:44:08 -0700 | [diff] [blame] | 136 | qcom,charging-disabled; |
| 137 | qcom,use-default-batt-values; |
Xiaozhe Shi | f7d9daf | 2013-04-08 15:29:55 -0700 | [diff] [blame] | 138 | |
Xiaozhe Shi | 8bc042a | 2013-04-18 15:44:08 -0700 | [diff] [blame] | 139 | qcom,chgr@1000 { |
Xiaozhe Shi | f7d9daf | 2013-04-08 15:29:55 -0700 | [diff] [blame] | 140 | status = "ok"; |
| 141 | }; |
| 142 | |
Xiaozhe Shi | 8bc042a | 2013-04-18 15:44:08 -0700 | [diff] [blame] | 143 | qcom,buck@1100 { |
Xiaozhe Shi | f7d9daf | 2013-04-08 15:29:55 -0700 | [diff] [blame] | 144 | status = "ok"; |
| 145 | }; |
| 146 | |
Xiaozhe Shi | 8bc042a | 2013-04-18 15:44:08 -0700 | [diff] [blame] | 147 | qcom,usb-chgpth@1300 { |
Xiaozhe Shi | f7d9daf | 2013-04-08 15:29:55 -0700 | [diff] [blame] | 148 | status = "ok"; |
| 149 | }; |
| 150 | |
| 151 | qcom,chg-misc@1600 { |
| 152 | status = "ok"; |
| 153 | }; |
| 154 | }; |