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.
11 /* memory reserved for SMEM */
12 /memreserve/ 0x87800000 0x240000; /* 2MK+256K */
14 /* memory reserved for CPW modem */
15 /memreserve/ 0x88000000 0x1c00000; /* 28M */
17 /* memory reserved for fb */
18 /memreserve/ 0x9F61B000 0x5EF000; /* 540*960*4*3, 4K alignment */
20 /* memory reserved for ION */
21 /memreserve/ 0x9FC0A000 0x3F6000; /* 540*960*4*2, 8K alignment*/
23 /include/ "sprd-scx35_2.dtsi"
24 /include/ "sprd-scx35_sc7730.dtsi"
27 model = "Spreadtrum SP7730G board";
30 bootargs = "loglevel=1 init=/init root=/dev/ram0 rw";
31 linux,initrd-start = <0x85500000>;
32 linux,initrd-end = <0x855a3212>;
37 i2c_gpio6 = &i2c_gpio6;
38 i2c_gpio7 = &i2c_gpio7;
39 /*i2c_gpio8 = &i2c_gpio8;*/
43 device_type = "memory";
44 reg = <0x80000000 0x40000000>;
49 compatible = "sprd,sim_detect";
51 gpios = <&d_gpio_gpio 162 0>;
52 irq_trigger_level_detect = <1>;
57 compatible = "broadcom,rfkill";
58 gpios = <&d_gpio_gpio 231 0>;
63 compatible = "sprd,i2c";
64 interrupts = <0 15 0x0>;
65 reg = <0x70900000 0x1000>;
68 sensor_i2c_vcm0@0x18 {
69 compatible = "sprd,sensor_i2c_vcm0";
74 i2c_gpio6: i2c_gpio@1 {
75 compatible = "i2c-gpio";
78 gpios = <&d_gpio_gpio 159 0 /* sda */
79 &d_gpio_gpio 160 0 >; /* scl */
80 i2c-gpio,delay-us = <10>; /* ~100 kHz */
81 i2c-gpio,timeout-ms = <0>;
85 compatible = "sm,sm5701";
89 compatible = "sm,sm5701-charger";
90 chgen-gpio = <&d_gpio_gpio 215 0>;
91 chgirq-gpio = <&d_gpio_gpio 161 0>;
92 chg-float-voltage = <4400>;
96 compatible = "sm,leds_sm5701";
97 flashen-gpio = <&d_gpio_gpio 232 0>;
98 flashtorch-gpio = <&d_gpio_gpio 233 0>;
104 i2c_gpio7: i2c_gpio@2 {
105 compatible = "i2c-gpio";
106 #address-cells = <1>;
108 gpios = <&d_gpio_gpio 150 0 /* sda */
109 &d_gpio_gpio 151 0 >; /* scl */
110 i2c-gpio,delay-us = <10>; /* ~100 kHz */
111 i2c-gpio,timeout-ms = <0>;
114 compatible = "SiliconMitus,sm5504";
116 interrupt-parent = <&d_gpio_gpio>;
117 sm5504,irq-gpio = <&d_gpio_gpio 149 0>;
122 compatible = "lsi,s5n6420";
123 gps-pwr-en = <&d_gpio_gpio 168 0>; /*GPS_PWON*/
124 gps-reset = <&d_gpio_gpio 235 0>; /*GPS_RESET*/
125 gps-regulator = "vddsdio";
129 compatible = "sec,thermistor";
133 compatible = "samsung,sec-fuelgauge";
134 capacity-max = <1000>;
135 capacity-max-margin = <1000>;
138 fuel-alert-soc = <1000>;
139 temp_adc_channel = <0>;
140 chg_bat_safety_vol = <4600>;
141 gpios = <&a_eic_gpio 0 0>;/* chg int */
142 soft_vbat_uvlo = <3050>;
143 vmode = <0>; /* 1=Voltage mode, 0=mixed mode */
144 alm_soc = <5>; /* SOC alm level %*/
145 alm_vbat = <3500>; /* Vbat alm level mV*/
146 rint = <220>; /*battery internal impedance*/
147 cnom = <3600>; /* nominal capacity in mAh */
148 rsense_real = <206>; /* sense resistor 0.1mOhm from real environment*/
149 rsense_spec = <200>; /* sense resistor 0.1mOhm from specification*/
150 relax_current = <50>; /* current for relaxation in mA (< C/20) */
151 ocv_table = <4343 100
173 compatible = "sprd,sprd_fgu";
174 interrupt-parent = <&adi>;
175 interrupts = <4 0x0>;
180 compatible = "samsung,sec-battery";
181 battery,vendor = "SDI SDI";
182 battery,charger_name = "sec-charger";
183 battery,fuelgauge_name = "sec-fuelgauge";
184 battery,technology = <2>; /* POWER_SUPPLY_TECHNOLOGY_LION */
186 battery,chip_vendor = "SPRD";
187 battery,temp_adc_type = <1>; /* SEC_BATTERY_ADC_TYPE_AP */
189 battery,polling_time = <10 30 30 30 3600>;
191 battery,adc_check_count = <5>;
193 battery,cable_check_type = <5>; /* SEC_BATTERY_CABLE_CHECK_PSY */
194 battery,cable_source_type = <3>; /* SEC_BATTERY_CABLE_SOURCE_EXTERNAL */
195 battery,event_waiting_time = <600>;
196 battery,polling_type = <1>; /* SEC_BATTERY_MONITOR_ALARM */
197 battery,monitor_initial_count = <3>;
199 battery,battery_check_type = <5>; /* SEC_BATTERY_CHECK_CHARGER */
200 battery,check_count = <0>;
201 battery,check_adc_max = <1440>;
202 battery,check_adc_min = <0>;
204 battery,ovp_uvlo_check_type = <3>; /* SEC_BATTERY_OVP_UVLO_CHGPOLLING */
206 battery,thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
208 battery,temp_table_adc = <501 615 738 795 846 956 1065 1088 1180 1307 1392 1477 1627 1777 1922 2098
209 2144 2182 2212 2260 2302 2452 2555>;
210 battery,temp_table_data = <700 650 600 580 550 500 460 450 400 350 300 250 200 150 100
211 50 20 0 (-20) (-50) (-70) (-150) (-200)>;
213 battery,temp_check_type = <2>; /* SEC_BATTERY_TEMP_CHECK_TEMP */
214 battery,temp_check_count = <1>;
215 battery,temp_high_threshold_event = <600>;
216 battery,temp_high_recovery_event = <460>;
217 battery,temp_low_threshold_event = <(-50)>;
218 battery,temp_low_recovery_event = <0>;
219 battery,temp_high_threshold_normal = <600>;
220 battery,temp_high_recovery_normal = <460>;
221 battery,temp_low_threshold_normal = <(-50)>;
222 battery,temp_low_recovery_normal = <0>;
223 battery,temp_high_threshold_lpm = <600>;
224 battery,temp_high_recovery_lpm = <460>;
225 battery,temp_low_threshold_lpm = <(-50)>;
226 battery,temp_low_recovery_lpm = <0>;
227 battery,full_check_type = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */
228 battery,full_check_type_2nd = <3>; /* SEC_BATTERY_FULLCHARGED_TIME */
229 battery,full_check_count = <1>;
230 battery,chg_gpio_full_check = <0>;
231 battery,chg_polarity_full_check = <1>;
233 battery,full_condition_type = <13>;
234 battery,full_condition_soc = <95>;
235 battery,full_condition_vcell = <4200>;
237 battery,recharge_check_count = <1>;
238 battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */
239 battery,recharge_condition_soc = <95>;
240 battery,recharge_condition_vcell = <4350>;
242 battery,charging_total_time = <21600>;
243 battery,recharging_total_time = <5400>;
244 battery,charging_reset_time = <0>;
247 charger,vbus_ctrl_gpio = <&d_gpio_gpio 64 0x00>;
248 battery,input_current_limit = <700 460 460 700 460 700 700 460 460 700 700 700 700 460 700 300 700 700 300 700 700 460 460>;
249 battery,fast_charging_current = <975 0 975 975 975 975 975 975 0 975 975 975 975 (-1) 975 975 975 975 975 975 975 0 0>;
250 battery,full_check_current_1st = <175 0 175 175 175 175 175 175 0 175 175 175 175 0 175 175 175 175 175 175 175 0 0>;
251 battery,full_check_current_2nd = <1800 0 1800 1800 1800 1800 1800 1800 0 1800 1800 1800 1800 0 1800 1800 1800 1800 1800 1800 1800 0 0>;
256 compatible = "sprd,panel_cabc_bl";
260 compatible = "sprd,sprd_pwm_bl";
261 reg = <0x40260000 0xf>;
262 brightness_max = <170>;
263 brightness_min = <12>;
265 gpio_ctrl_pin = <214>;
266 gpio_active_level = <1>;
270 compatible = "sprd,marlin";
271 gpios = <&d_gpio_gpio 148 0 /*marlin gpio0 */
272 &d_gpio_gpio 45 0 /*marlin gpio1 */
273 &d_gpio_gpio 46 0 /*marlin gpio2 */
274 &d_gpio_gpio 47 0 /*marlin gpio3 */
275 &d_gpio_gpio 230 0>; /*marlin reset*/
276 cp-rfctl-offset = <0xd8>; /*coex func. marlin gpio3*/
277 vdd-download = "vddcamd"; /*vdd 1.6v*/
278 vdd-pa = "vddwifipa"; /*vdd 3.3v*/
279 clk-name = "clk_aux0"; /*clk 32k*/
280 sdhci-name = "sdio_wifi";
285 pwr_domain ="vdd18", /* "vdd18" */ /* VIO_2_0_ms */
286 "vdd18", /* "vdd28" */ /* VIO_2_1_ms */
289 "vdd18", /* "vddsim2" */
296 compatible = "sprd,sensor_main";
300 compatible = "sprd,sensor_sub";
307 compatible = "Zinitix,bt541_ts";
309 gpios = <&d_gpio_gpio 153 0>;
310 bt541,x_resolution = <539>;
311 bt541,y_resolution = <959>;
312 bt541,orientation = <0>;
313 bt541,page_size = <128>;
314 tsp_vdd_supply_type = <0>;
315 gpio_ldo_en = <&d_gpio_gpio 152 0>;
323 compatible = "stm,k2hh";
325 interrupt-parent = <&d_gpio_gpio>;
326 interrupts = <164 0>;
327 stm,irq_gpio = <&d_gpio_gpio 164 0x00>;
328 stm,sda = <&d_gpio_gpio 208 0x00>;
329 stm,scl = <&d_gpio_gpio 207 0x00>;
330 stm,reg_vdd-supply = <&vdd18>;
331 stm,axis_map_x = <0>;
332 stm,axis_map_y = <1>;
333 stm,axis_map_z = <2>;
337 stm,poll_interval = <100>;
338 stm,min_interval = <2>;
342 compatible = "sx9500-i2c";
344 sx9500-i2c,vdd-supply = <&vddsim1>;
345 sx9500-i2c,nirq-gpio = <&d_gpio_gpio 167 0x0>;
350 tune_value = <0x44073e37>;
355 gpios = <&a_eic_gpio 2 0>;
356 sprd,keypad-num-rows = <1>;
357 sprd,keypad-num-columns = <2>;
358 interrupts = <0 36 0x0>;
359 sprd,keypad-rows-choose-hw = <0x30000>;
360 sprd,keypad-cols-choose-hw = <0x300>;
361 sprd,debounce_time = <5000>;
362 linux,keypad-no-autorepeat;
378 gpios = <&d_gpio_gpio 186 0 /*main reset*/
379 &d_gpio_gpio 188 0 /*main power down*/
380 &d_gpio_gpio 238 0 /*sub reset*/
381 &d_gpio_gpio 187 0 /*sub power down*/
382 &d_gpio_gpio 162 0 /*none*/
383 &d_gpio_gpio 0 0 /*none*/
384 &d_gpio_gpio 0 0 /*none*/
385 &d_gpio_gpio 0 0>; /*none*/
390 sprd,ion-heap-mem = <0x0 0x0>;
394 sprd,ion-heap-mem = <0x0 0x0>;
398 sprd,ion-heap-mem = <0x9FC0A000 0x3F6000>;
404 compatible = "sprd,headset-detect";
408 irq_trigger_level_detect = <0>;
409 irq_trigger_level_button = <0>;
410 adc_threshold_3pole_detect = <1700>;
411 adc_threshold_4pole_detect = <2700>;
412 irq_threshold_buttont = <1>;
413 voltage_headmicbias = <3000000>;
415 headset_buttons_media {
429 headset_buttons_down {
437 headset_sprd_sc2723 {
438 compatible = "sprd,headset_sprd_sc2723";
442 irq_trigger_level_detect = <0>;
443 irq_trigger_level_button = <0>;
444 adc_threshold_3pole_detect = <100>;
445 adc_threshold_4pole_detect = <3100>;
446 irq_threshold_buttont = <1>;
447 voltage_headmicbias = <3000000>;
449 headset_buttons_media {
463 headset_buttons_down {
473 compatible = "sprd,sprd-eic-keys";
475 label = "Volumedown Key";
477 gpios = <&a_eic_gpio 10 0>;
478 debounce-interval = <2>;
486 SD_Pwr_Name = "vddsdcore";
487 /*_1_8V_signal_Name = "vddsdio";*/
491 sprd,fb_mem = <0x9F61B000 0x5EF000>;
492 sprd,fb_display_size = <540 960>;