2 * Copyright (C) 2013 Spreadtrum Communication Incorporated
3 * http://www.spreadtrum.com/
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
10 /* memory reserved for SMEM */
11 /memreserve/ 0x87800000 0x240000; /* 2MK+256K */
13 /* memory reserved for CPW modem */
14 /memreserve/ 0x88000000 0x1c00000; /* 28M */
16 /* memory reserved for fb */
17 /memreserve/ 0x9F61B000 0x384000; /* 720*1280*4*1, 4K alignment */
19 /include/ "sprd-scx35_2.dtsi"
20 /include/ "sprd-scx35_sc7730.dtsi"
21 /include/ "sprd-scx35-drm.dtsi"
24 model = "Spreadtrum SP7730G board";
27 bootargs = "loglevel=1 init=/init root=/dev/ram0 rw";
28 linux,initrd-start = <0x85500000>;
29 linux,initrd-end = <0x855a3212>;
33 compatible = "samsung_input_bridge";
34 input_bridge,num_map = <2>;
35 input_bridge,map_codes ="input_bridge,logdump_map_code",
36 "input_bridge,safemode_map_code";
37 input_bridge,logdump_map_code = <115 114 115 114 116 114 115 116>;
38 input_bridge,safemode_map_code = <114>;
39 input_bridge,env_str = "APPS_LOG", "SAFE_MODE";
40 input_bridge,env_value = "ON", "ON";
41 input_bridge,map_key = <1>;
42 input_bridge,enable_uevent = <1>;
43 input_bridge,uevent_action = <2>;
44 input_bridge,num_dev = <2>;
45 input_bridge,dev_name_str = "sci-keypad", "sprd-eic-keys";
50 i2c_gpio6 = &i2c_gpio6;
51 i2c_gpio7 = &i2c_gpio7;
52 i2c_gpio8 = &i2c_gpio8;
56 device_type = "memory";
57 reg = <0x80000000 0x40000000>;
61 compatible = "sprd,sim_detect";
63 gpios = <&d_gpio_gpio 162 0>;
64 irq_trigger_level_detect = <1>;
69 compatible = "sprd,i2c";
70 interrupts = <0 15 0x0>;
71 reg = <0x70900000 0x1000>;
74 sensor_i2c_vcm0@0x18 {
75 compatible = "sprd,sensor_i2c_vcm0";
80 i2c_gpio6: i2c_gpio@1 {
81 compatible = "i2c-gpio";
84 gpios = <&d_gpio_gpio 159 0 /* sda */
85 &d_gpio_gpio 160 0 >; /* scl */
86 i2c-gpio,delay-us = <10>; /* ~100 kHz */
87 i2c-gpio,timeout-ms = <0>;
91 compatible = "sm,sm5701";
95 compatible = "sm,sm5701-charger";
96 chgen-gpio = <&d_gpio_gpio 215 0>;
97 chgirq-gpio = <&d_gpio_gpio 161 0>;
98 chg-float-voltage = <4350>;
103 compatible = "sm,leds_sm5701";
104 flashen-gpio = <&d_gpio_gpio 232 0>;
105 flashtorch-gpio = <&d_gpio_gpio 233 0>;
110 compatible = "sm,torch-sec1";
112 i2c_gpio7: i2c_gpio@2 {
113 compatible = "i2c-gpio";
114 #address-cells = <1>;
116 gpios = <&d_gpio_gpio 150 0 /* sda */
117 &d_gpio_gpio 151 0 >; /* scl */
118 i2c-gpio,delay-us = <10>; /* ~100 kHz */
119 i2c-gpio,timeout-ms = <0>;
122 compatible = "SiliconMitus,sm5504";
124 interrupt-parent = <&d_gpio_gpio>;
125 sm5504,irq-gpio = <&d_gpio_gpio 149 0>;
129 i2c_gpio8: i2c_gpio@3 {
130 compatible = "i2c-gpio";
131 #address-cells = <1>;
133 gpios = <&d_gpio_gpio 147 0 /* sda */
134 &d_gpio_gpio 154 0 >; /* scl */
135 i2c-gpio,delay-us = <10>; /* ~100 kHz */
136 i2c-gpio,timeout-ms = <0>;
139 compatible = "coreriver,coreriver-tkey";
141 coreriver,vcc_en-gpio = <&d_gpio_gpio 235 0>;
142 coreriver,sda-gpio = <&d_gpio_gpio 147 0>;
143 coreriver,scl-gpio = <&d_gpio_gpio 154 0>;
144 coreriver,irq-gpio = <&d_gpio_gpio 165 0>;
145 coreriver,keycodes = <169 158>;
146 coreriver,i2c-pull-up = <1>;
147 coreriver,gpio_seperated = <1>;
148 coreriver,fw-name = "tc350_z3_3g";
154 compatible = "broadcom,bcm47522";
155 gps-pwr-en = <&d_gpio_gpio 168 0>; /*GPS_PWON*/
156 gps-regulator = "vddcamd";
157 tcxo-regulator = "vddsim2"; /* tcxo power */
158 tcxo-regulator-volt = <3300000>; /* 3.3V */
163 compatible = "sec,thermistor";
167 compatible = "samsung,sec-fuelgauge";
168 capacity-max = <1000>;
169 capacity-max-margin = <1000>;
172 fuel-alert-soc = <1000>;
173 temp_adc_channel = <0>;
174 chg_bat_safety_vol = <4600>;
175 gpios = <&a_eic_gpio 0 0>;/* chg int */
176 soft_vbat_uvlo = <3050>;
177 vmode = <0>; /* 1=Voltage mode, 0=mixed mode */
178 alm_soc = <5>; /* SOC alm level %*/
179 alm_vbat = <3450>; /* Vbat alm level mV*/
180 rint = <200>; /*battery internal impedance*/
181 cnom = <2600>; /* nominal capacity in mAh */
182 rsense_real = <203>; /* sense resistor 0.1mOhm from real environment*/
183 rsense_spec = <200>; /* sense resistor 0.1mOhm from specification*/
184 relax_current = <50>; /* current for relaxation in mA (< C/20) */
185 cnom_temp_tab = <1025 2600 /*value = 1000 + temp*/
188 rint_temp_tab = <1025 200
191 ocv_table = <4320 100
213 compatible = "sprd,sprd_fgu";
214 interrupt-parent = <&adi>;
215 interrupts = <4 0x0>;
220 compatible = "samsung,sec-battery";
221 battery,vendor = "SDI SDI";
222 battery,charger_name = "sec-charger";
223 battery,fuelgauge_name = "sec-fuelgauge";
224 battery,technology = <2>; /* POWER_SUPPLY_TECHNOLOGY_LION */
226 battery,chip_vendor = "SPRD";
227 battery,temp_adc_type = <1>; /* SEC_BATTERY_ADC_TYPE_AP */
229 battery,polling_time = <10 30 30 30 3600>;
231 battery,adc_check_count = <5>;
233 battery,cable_check_type = <5>; /* SEC_BATTERY_CABLE_CHECK_PSY */
234 battery,cable_source_type = <3>; /* SEC_BATTERY_CABLE_SOURCE_EXTERNAL */
235 battery,event_waiting_time = <600>;
236 battery,polling_type = <1>; /* SEC_BATTERY_MONITOR_ALARM */
237 battery,monitor_initial_count = <3>;
239 battery,battery_check_type = <5>; /* SEC_BATTERY_CHECK_CHARGER */
240 battery,check_count = <0>;
241 battery,check_adc_max = <1440>;
242 battery,check_adc_min = <0>;
244 battery,ovp_uvlo_check_type = <3>; /* SEC_BATTERY_OVP_UVLO_CHGPOLLING */
246 battery,thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
248 battery,temp_table_adc = <306 417 571 746 787 853 870 896 922 966 1039 1094 1152 1230 1371
249 1509 1764 1890 1958 2004 2066 2109 2167 2197 2244 2274 2300 2338 2425>;
250 battery,temp_table_data = <900 800 700 600 580 550 530 520 510 500 470 450 430 400 350
251 300 200 150 120 100 70 50 20 0 (-30) (-50) (-70) (-100) (-200)>;
253 battery,temp_check_type = <2>; /* SEC_BATTERY_TEMP_CHECK_TEMP */
254 battery,temp_check_count = <1>;
255 battery,temp_high_threshold_event = <580>;
256 battery,temp_high_recovery_event = <530>;
257 battery,temp_low_threshold_event = <(-50)>;
258 battery,temp_low_recovery_event = <0>;
259 battery,temp_high_threshold_normal = <580>;
260 battery,temp_high_recovery_normal = <530>;
261 battery,temp_low_threshold_normal = <(-50)>;
262 battery,temp_low_recovery_normal = <0>;
263 battery,temp_high_threshold_lpm = <580>;
264 battery,temp_high_recovery_lpm = <530>;
265 battery,temp_low_threshold_lpm = <(-50)>;
266 battery,temp_low_recovery_lpm = <0>;
267 battery,full_check_type = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */
268 battery,full_check_type_2nd = <3>; /* SEC_BATTERY_FULLCHARGED_TIME */
269 battery,full_check_count = <1>;
270 battery,chg_gpio_full_check = <0>;
271 battery,chg_polarity_full_check = <1>;
273 battery,full_condition_type = <13>;
274 battery,full_condition_soc = <95>;
275 battery,full_condition_vcell = <4300>;
277 battery,recharge_check_count = <1>;
278 battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */
279 battery,recharge_condition_soc = <98>;
280 battery,recharge_condition_vcell = <4300>;
282 battery,charging_total_time = <21600>;
283 battery,recharging_total_time = <5400>;
284 battery,charging_reset_time = <0>;
287 charger,vbus_ctrl_gpio = <&d_gpio_gpio 64 0x00>;
288 charger,chg_float_voltage = <4350>;
289 battery,input_current_limit = <1000 460 460 1000 460 1000 1000 460 460 1000 460 1000 1000 460 1000 300 1000 1000 300 1000 1000 460 460>;
290 battery,fast_charging_current = <1550 975 975 1550 975 1550 1550 975 0 1550 975 1550 1550 (-1) 1550 300 1550 1550 300 1550 1550 0 0>;
291 battery,full_check_current_1st = <200 0 200 200 200 200 200 200 0 200 200 200 200 0 200 200 200 200 200 200 200 0 0>;
292 battery,full_check_current_2nd = <2400 0 2400 2400 2400 2400 2400 2400 0 2400 2400 2400 2400 0 2400 2400 2400 2400 2400 2400 2400 0 0>;
296 compatible = "sprd,panel_cabc_bl";
300 compatible = "sprd,sprd_pwm_bl";
301 reg = <0x40260000 0xf>;
302 brightness_max = <170>;
303 brightness_min = <12>;
305 gpio_ctrl_pin = <214>;
306 gpio_active_level = <1>;
310 compatible = "sprd,marlin";
311 gpios = <&d_gpio_gpio 148 0 /*marlin gpio0 */
312 &d_gpio_gpio 45 0 /*marlin gpio1 */
313 &d_gpio_gpio 46 0 /*marlin gpio2 */
314 &d_gpio_gpio 47 0 /*marlin gpio3 */
315 &d_gpio_gpio 230 0>; /*marlin reset*/
316 cp-rfctl-offset = <0xd8>; /*coex func. marlin gpio3*/
317 vdd-download = "vddcamio"; /*vdd 1.6v*/
318 vdd-pa = "vddwifipa"; /*vdd 3.3v*/
319 clk-name = "clk_aux0"; /*clk 32k*/
320 sdhci-name = "sdio_wifi";
324 compatible = "sec-thermistor";
326 sec,therm-id = <0>; /* SEC_THERM_AP */
327 sec,therm-adc-name = "ap_therm";
328 sec,therm-adc-ch = <0x3>; /* ADCI3 */
331 sec,therm-id = <1>; /* SEC_THERM_BATTERY */
332 sec,therm-adc-name = "batt_therm";
333 sec,therm-adc-ch = <0x1>; /* ADCI1 */
336 sec,therm-id = <4>; /* SEC_THERM_XO */
337 sec,therm-adc-name = "xo_therm";
338 sec,therm-adc-ch = <0x2>; /* ADCI2 */
344 pwr_domain ="vdd18", /* "vdd18" */ /* VIO_2_0_ms */
345 "vdd18", /* "vdd28" */ /* VIO_2_1_ms */
348 "vdd18", /* "vddsim2" */
355 compatible = "sprd,sensor_main";
360 compatible = "sprd,sensor_sub";
367 compatible = "imagis,ist30xx-ts";
369 vdd_ldo_name = "vddsdio";
370 imagis,irq-gpio = <&d_gpio_gpio 153 0>;
371 imagis,i2c-pull-up = <1>;
373 imagis,ic-version = "ist3038c";
374 imagis,project-name = "Z3_3G";
376 imagis,octa-hw = <0>;
384 compatible = "ims1911";
386 interrupt-parent = <&d_gpio_gpio>;
387 interrupts = <216 0>;
388 ims1911,irq-gpio = <&d_gpio_gpio 216 0x00>;
389 ims1911,ps_setting = <0x42>;
390 ims1911,led_drive_current = <0x90>;
391 ims1911,led_drive_pulse = <49>;
392 ims1911,ps_int_low_threshold = <45>;
393 ims1911,ps_int_high_threshold = <75>;
395 ims1911-led-supply = <&vdd28>;
396 ims1911-vdd-supply = <&vddkpled>;
400 compatible = "cm36672p";
402 interrupt-parent = <&d_gpio_gpio>;
403 interrupts = <216 0>;
404 cm36672p,irq_gpio = <&d_gpio_gpio 216 0x00>;
405 cm36672p,default_hi_thd = <17>;
406 cm36672p,default_low_thd = <12>;
407 cm36672p,cancel_hi_thd = <10>;
408 cm36672p,cancel_low_thd = <7>;
409 cm36672p,default_trim = <0>;
410 cm36672p,ps_it = <0x4>;
411 cm36672p,led_current = <0x2>;
413 cm36672p,led-supply = <&vdd28>;
414 cm36672p,vdd-supply = <&vddkpled>;
419 compatible = "stm,k2hh";
421 interrupt-parent = <&d_gpio_gpio>;
422 interrupts = <164 0>;
423 stm,irq_gpio = <&d_gpio_gpio 164 0x00>;
424 stm,sda = <&d_gpio_gpio 208 0x00>;
425 stm,scl = <&d_gpio_gpio 207 0x00>;
426 stm,reg_vdd-supply = <&vdd18>;
427 stm,axis_map_x = <1>;
428 stm,axis_map_y = <0>;
429 stm,axis_map_z = <2>;
433 stm,poll_interval = <100>;
434 stm,min_interval = <2>;
438 compatible = "sx9500-i2c";
440 sx9500-i2c,vdd-supply = <&vddsim1>;
441 sx9500-i2c,nirq-gpio = <&d_gpio_gpio 167 0x0>;
446 tune_value = <0x4407ae33>;
451 gpios = <&a_eic_gpio 2 0>;
452 sprd,keypad-num-rows = <1>;
453 sprd,keypad-num-columns = <3>;
454 interrupts = <0 36 0x0>;
455 sprd,keypad-rows-choose-hw = <0x10000>;
456 sprd,keypad-cols-choose-hw = <0x700>;
457 sprd,debounce_time = <5000>;
458 linux,keypad-no-autorepeat;
480 gpios = <&d_gpio_gpio 186 0 /*main reset*/
481 &d_gpio_gpio 0 0 /*main power down*/
482 &d_gpio_gpio 187 0 /*sub reset*/
483 &d_gpio_gpio 0 0 /*sub power down*/
484 &d_gpio_gpio 162 0 /*main core vdd*/
485 &d_gpio_gpio 163 0 /*cam io vdd*/
486 &d_gpio_gpio 214 0 /*sub core vdd*/
487 &d_gpio_gpio 0 0>; /*none*/
492 sprd,ion-heap-mem = <0x0 0x0>;
496 sprd,ion-heap-mem = <0x90000000 0x2000000>;
502 compatible = "sprd,headset-detect";
506 irq_trigger_level_detect = <0>;
507 irq_trigger_level_button = <0>;
508 adc_threshold_3pole_detect = <1700>;
509 adc_threshold_4pole_detect = <2700>;
510 irq_threshold_buttont = <1>;
511 voltage_headmicbias = <3000000>;
513 headset_buttons_media {
527 headset_buttons_down {
535 headset_sprd_sc2723 {
536 compatible = "sprd,headset_sprd_sc2723";
540 irq_trigger_level_detect = <1>;
541 irq_trigger_level_button = <1>;
542 adc_threshold_3pole_detect = <3300>;
543 adc_threshold_4pole_detect = <10000>;
544 irq_threshold_buttont = <4>;
545 voltage_headmicbias = <3000000>;
547 headset_buttons_media {
561 headset_buttons_down {
570 compatible = "sprd,sprd-eic-keys";
571 input-name = "sprd-eic-keys";
573 label = "KEY_VOLUMEDOWN";
575 gpios = <&a_eic_gpio 10 0>;
576 debounce-interval = <2>;
584 SD_Pwr_Name = "vddsdcore";
585 /*_1_8V_signal_Name = "vddsdio";*/
589 sprd,fb_mem = <0x9F61B000 0x384000>;
590 sprd,fb_display_size = <720 1280>;