/* * SAMSUNG UNIVERSAL5433 board device tree source * * Copyright (c) 2013 Samsung Electronics Co., Ltd. * http://www.samsung.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ / { hsi2c@13670000 { /* hsi2c5 */ status = "okay"; p9220-charger@61 { compatible = "idt,p9220-charger"; reg = <0x61>; status = "okay"; }; }; pinctrl@10580000 { wpc_int: wpc-int { samsung,pins = "gpa2-4"; samsung,pin-function = <0xf>; samsung,pin-pud = <0>; samsung,pin-drv = <0>; }; chg_irq: chg-irq { samsung,pins = "gpa1-4"; samsung,pin-function = <0>; samsung,pin-pud = <0>; samsung,pin-drv = <0>; }; }; pinctrl@14870000 { factory_discharging: factory-discharging { samsung,pins = "gpf5-2"; samsung,pin-function = <1>; samsung,pin-pud = <0>; }; }; pinctrl@15690000 { wpc_det: wpc-det { samsung,pins = "gpr0-2"; samsung,pin-function = <0>; samsung,pin-pud = <0>; }; otg_en: otg-en { samsung,pins = "gpr1-1"; samsung,pin-function = <1>; samsung,pin-pud = <1>; }; acok: acok { samsung,pins = "gpr1-2"; samsung,pin-function = <0>; samsung,pin-pud = <0>; }; p2p_en: p2p-en { samsung,pins = "gpr1-6"; samsung,pin-function = <1>; samsung,pin-pud = <1>; }; }; battery { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&factory_discharging &wpc_int &wpc_det &otg_en &p2p_en &acok>; battery,factory_discharging = <&gpf5 2 0>; battery,wpc_int = <&gpa2 4 0>; battery,wpc_det = <&gpr0 2 0>; battery,otg_en = <&gpr1 1 0>; compatible = "samsung,sec-battery"; battery,vendor = "SDI SDI"; battery,charger_name = "max77833-charger"; battery,fuelgauge_name = "max77833-fuelgauge"; battery,wirelss_charger_name = "p9220-charger"; battery,technology = <2>; /* POWER_SUPPLY_TECHNOLOGY_LION */ battery,chip_vendor = "LSI"; battery,temp_adc_type = <1>; /* SEC_BATTERY_ADC_TYPE_AP */ battery,chg_temp_check = <0>; /*battery,wpc_temp_check = <1>;*/ battery,polling_time = <10 30 30 30 3600>; battery,temp_table_adc = <283 295 307 319 331 343 355 368 380 393 406 420 434 448 462 476 492 509 526 542 559 578 597 616 635 654 677 699 722 745 768 793 818 843 869 896 924 953 982 1013 1044 1079 1115 1148 1181 1216 1251 1288 1324 1362 1400 1441 1482 1523 1565 1606 1650 1693 1737 1780 1824 1870 1915 1961 2006 2052 2104 2156 2208 2260 2312 2357 2403 2448 2494 2540 2585 2630 2675 2720 2765 2808 2852 2895 2938 2982 3020 3059 3097 3136 3174 3209 3244 3279 3314 3344 3375 3403 3430 3457 3483 3508 3533 3559 3584 3609 3629 3650 3670 3690 3711>; battery,temp_table_data = <900 890 880 870 860 850 840 830 820 810 800 790 780 770 760 750 740 730 720 710 700 690 680 670 660 650 640 630 620 610 600 590 580 570 560 550 540 530 520 510 500 490 480 470 460 450 440 430 420 410 400 390 380 370 360 350 340 330 320 310 300 290 280 270 260 250 240 230 220 210 200 190 180 170 160 150 140 130 120 110 100 90 80 70 60 50 40 30 20 10 0 (-10) (-20) (-30) (-40) (-50) (-60) (-70) (-80) (-90) (-100) (-110) (-120) (-130) (-140) (-150) (-160) (-170) (-180) (-190) (-200)>; battery,chg_temp_table_adc = <160 181 202 223 244 265 286 307 328 349 370 384 398 412 426 441 457 474 491 507 524 544 564 584 604 624 646 669 692 714 737 764 790 815 840 868 895 924 954 984 1015 1050 1085 1118 1152 1185 1219 1256 1293 1330 1367 1409 1450 1492 1533 1575 1617 1660 1702 1745 1788 1827 1867 1907 1947 1987 2035 2084 2132 2181 2229 2272 2315 2359 2402 2445 2487 2528 2570 2611 2653 2694 2735 2776 2817 2858 2895 2931 2968 3004 3041 3076 3112 3143 3175 3203 3232 3257 3281 3308 3334 3357 3381 3404 3427 3451 3469 3488 3507 3526 3545>; battery,chg_temp_table_data = <900 890 880 870 860 850 840 830 820 810 800 790 780 770 760 750 740 730 720 710 700 690 680 670 660 650 640 630 620 610 600 590 580 570 560 550 540 530 520 510 500 490 480 470 460 450 440 430 420 410 400 390 380 370 360 350 340 330 320 310 300 290 280 270 260 250 240 230 220 210 200 190 180 170 160 150 140 130 120 110 100 90 80 70 60 50 40 30 20 10 0 (-10) (-20) (-30) (-40) (-50) (-60) (-70) (-80) (-90) (-100) (-110) (-120) (-130) (-140) (-150) (-160) (-170) (-180) (-190) (-200)>; battery,wpc_temp_table_adc = <275 288 301 314 327 340 353 366 379 392 406 420 434 448 463 477 494 510 527 544 561 580 599 618 638 657 680 703 726 749 772 797 822 847 871 898 925 955 984 1014 1044 1084 1124 1151 1178 1211 1245 1281 1318 1357 1395 1438 1481 1523 1566 1609 1653 1697 1742 1786 1830 1875 1919 1964 2009 2054 2104 2154 2204 2254 2304 2350 2395 2441 2487 2533 2577 2621 2665 2709 2754 2797 2841 2885 2928 2972 3011 3050 3089 3128 3167 3201 3236 3271 3306 3337 3368 3394 3419 3448 3476 3501 3526 3551 3576 3601 3621 3641 3661 3682 3702>; battery,wpc_temp_table_data = <900 890 880 870 860 850 840 830 820 810 800 790 780 770 760 750 740 730 720 710 700 690 680 670 660 650 640 630 620 610 600 590 580 570 560 550 540 530 520 510 500 490 480 470 460 450 440 430 420 410 400 390 380 370 360 350 340 330 320 310 300 290 280 270 260 250 240 230 220 210 200 190 180 170 160 150 140 130 120 110 100 90 80 70 60 50 40 30 20 10 0 (-10) (-20) (-30) (-40) (-50) (-60) (-70) (-80) (-90) (-100) (-110) (-120) (-130) (-140) (-150) (-160) (-170) (-180) (-190) (-200)>; battery,input_current_limit = <1800 450 450 1800 500 900 1000 460 1000 450 1000 1000 1000 1900 1800 450 450 400 700 1300 300 1000 1500 450 1675 1000 1675 80 1800 1675 1400 1000 1000>; battery,fast_charging_current = <2100 0 0 2100 800 1200 1000 460 1200 0 1400 2100 1400 1600 2100 0 0 400 700 1300 300 1000 1500 0 3000 1000 3000 80 1800 1000 1400 0 1000>; battery,full_check_current_1st = <300 0 0 300 300 300 300 300 300 0 300 300 300 300 300 0 0 300 300 300 300 300 300 0 300 300 300 0 300 300 300 0 300>; battery,full_check_current_2nd = <150 0 0 150 150 150 150 150 150 0 150 150 150 150 150 0 0 150 150 150 150 150 150 0 150 150 150 0 150 150 150 0 150>; battery,wireless_cc_cv = <86>; battery,inbat_voltage = <1>; battery,inbat_voltage_table_adc = <2848 2824 2798 2802 2793 2718 2686 2658 2637 2604 2573 2536 2509 2486 2464 2429 2414 2374 2354 2326 2298>; battery,inbat_voltage_table_data = <438 435 430 426 419 416 410 405 400 395 390 385 380 375 370 365 360 355 350 345 340>; battery,adc_check_count = <5>; battery,cable_check_type = <4>; /* SEC_BATTERY_CABLE_CHECK_PSY */ battery,cable_source_type = <1>; /* SEC_BATTERY_CABLE_SOURCE_EXTERNAL */ battery,event_waiting_time = <600>; battery,polling_type = <1>; /* SEC_BATTERY_MONITOR_ALARM */ battery,monitor_initial_count = <0>; battery,battery_check_type = <0>; battery,check_count = <0>; battery,check_adc_max = <1440>; battery,check_adc_min = <0>; battery,ovp_uvlo_check_type = <3>; /* SEC_BATTERY_OVP_UVLO_CHGPOLLING */ battery,thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */ battery,temp_check_type = <2>; /* _BATTERY_TEMP_CHECK_TEMP */ battery,temp_check_count = <1>; battery,temp_highlimit_threshold_event = <800>; battery,temp_highlimit_recovery_event = <750>; battery,temp_high_threshold_event = <580>; battery,temp_high_recovery_event = <530>; battery,temp_low_threshold_event = <(-50)>; battery,temp_low_recovery_event = <0>; battery,temp_highlimit_threshold_normal = <800>; battery,temp_highlimit_recovery_normal = <750>; battery,temp_high_threshold_normal = <580>; battery,temp_high_recovery_normal = <530>; battery,temp_low_threshold_normal = <(-50)>; battery,temp_low_recovery_normal = <0>; battery,temp_highlimit_threshold_lpm = <800>; battery,temp_highlimit_recovery_lpm = <750>; battery,temp_high_threshold_lpm = <580>; battery,temp_high_recovery_lpm = <530>; battery,temp_low_threshold_lpm = <(-50)>; battery,temp_low_recovery_lpm = <0>; battery,full_check_type = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */ battery,full_check_type_2nd = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */ battery,full_check_count = <1>; battery,chg_gpio_full_check = <0>; battery,chg_polarity_full_check = <1>; battery,chg_high_temp_1st = <530>; battery,chg_high_temp_2nd = <530>; battery,chg_high_temp_recovery = <525>; battery,chg_charging_limit_current = <1300>; battery,chg_charging_limit_current_2nd = <1300>; /* battery,chg_skip_check_capacity = <10>; kb_tiger.son temporary block */ battery,chg_skip_check_capacity = <200>; /* temporary value. */ battery,chg_skip_check_time = <600>; battery,wpc_high_temp = <390>; battery,wpc_high_temp_recovery = <200>; battery,wpc_charging_limit_current = <700>; /* SEC_BATTERY_FULL_CONDITION_SOC | SEC_BATTERY_FULL_CONDITION_NOTIMEFULL | SEC_BATTERY_FULL_CONDITION_VCELL */ battery,full_condition_type = <13>; battery,full_condition_soc = <93>; battery,full_condition_vcell = <4250>; battery,recharge_check_count = <2>; battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */ battery,recharge_condition_soc = <98>; battery,recharge_condition_vcell = <4300>; battery,charging_total_time = <21600>; battery,recharging_total_time = <5400>; battery,charging_reset_time = <0>; battery,chg_float_voltage = <4350>; battery,self_discharging_en; battery,force_discharging_limit = <650>; battery,force_discharging_recov = <550>; battery,self_discharging_voltage_limit = <4250>; battery,discharging_adc_max = <2600>; battery,discharging_adc_min = <1700>; battery,discharging_ntc_limit = <2750>; battery,swelling_high_temp_block = <500>; battery,swelling_high_temp_recov = <450>; battery,swelling_low_temp_block = <50>; battery,swelling_low_temp_recov = <100>; battery,swelling_chg_current = <1300>; battery,swelling_drop_float_voltage = <4200>; battery,swelling_high_rechg_voltage = <4150>; battery,swelling_low_rechg_voltage = <4050>; battery,swelling_block_time = <600>; io-channels = <&exynos_adc 1>, <&exynos_adc 3>, <&exynos_adc 6>, <&exynos_adc 5>, <&exynos_adc 7>, <&exynos_adc 4>; io-channel-names = "adc-temp", "chg-adc-temp", "in-bat-adc", "discharging-check-adc", "ntc-check-adc", "wpc-temp"; #io-channel-cells = <6>; io-channel-ranges; }; max77833-fuelgauge { status = "disable"; fuelgauge,fuel_alert_soc = <1>; fuelgauge,fuel_alert_vol = <3300>; fuelgauge,capacity_max = <1000>; fuelgauge,capacity_max_margin = <100>; fuelgauge,capacity_min = <0>; fuelgauge,capacity_calculation_type = <28>; fuelgauge,repeated_fuelalert; fuelgauge,using_temp_compensation; fuelgauge,low_temp_limit = <100>; fuelgauge,low_temp_recovery = <120>; fuelgauge,using_hw_vempty; fuelgauge,v_empty = <0xA558>; /* Empty: 3300mV, Recover: 3520mV */ fuelgauge,v_empty_origin = <0x7D54>; /* Empty: 2500mV , Recover: 3360mV */ fuelgauge,qrtable20 = <0x1680>; fuelgauge,qrtable30 = <0x0d80>; fuelgauge,rcomp0 = <0x0040>; fuelgauge,rcomp_charging = <0x0040>; fuelgauge,is_using_model_data; fuelgauge,type_str = "SDI"; fuelgauge,capacity = <0x0b9f>; fuelgauge,low_battery_comp_voltage = <3600>; fuelgauge,low_battery_table = <(-5000) 0 0 (-1250) 0 3320 (-750) 97 3451 (-100) 96 3461 0 0 3456>; fuelgauge,cv_data = <2565 680 2580 2483 688 2549 2405 696 2519 2333 704 2489 2263 711 2458 2196 718 2428 2137 725 2398 2077 732 2367 2016 738 2337 1964 745 2306 1894 751 2276 1835 757 2246 1783 763 2215 1727 769 2185 1674 774 2155 1621 780 2124 1571 785 2094 1525 790 2064 1480 795 2033 1437 800 2003 1391 804 1973 1353 809 1942 1311 814 1912 1272 818 1882 1235 822 1851 1198 826 1821 1161 830 1791 1124 834 1760 1092 838 1730 1059 841 1700 1027 845 1669 996 848 1639 969 852 1608 940 855 1578 909 858 1548 885 861 1517 863 864 1487 840 867 1457 817 870 1426 794 872 1396 771 875 1366 749 878 1335 725 880 1305 707 883 1275 696 885 1244 674 887 1214 658 890 1184 640 892 1153 618 894 1123 608 896 1093 604 898 1062 584 900 1032 567 903 1002 553 909 971 539 913 941 524 918 910 515 921 880 507 924 850 494 929 820 476 934 789 469 937 759 459 939 729 449 943 698 438 946 668 431 949 638 419 952 607 408 957 577 402 958 546 389 962 516 385 964 486 377 966 455 371 968 425 359 972 395 353 975 364 347 976 334 337 979 304 331 981 273 327 983 243 323 985 213 319 986 182 306 989 152 303 992 122 298 993 91 293 996 61 290 997 31 0 1000 0 >; }; max77833-charger { status = "disable"; battery,chg_gpio_en = <0>; battery,chg_polarity_en = <0>; battery,chg_gpio_status = <0>; battery,chg_polarity_status = <0>; battery,chg_float_voltage = <4350>; battery,siop_input_limit_current = <1200>; battery,siop_charging_limit_current = <1000>; battery,siop_hv_input_limit_current = <1200>; battery,siop_hv_charging_limit_current = <1000>; battery,siop_wireless_input_limit_current = <500>; battery,siop_wireless_charging_limit_current = <600>; battery,siop_hv_wireless_input_limit_current = <500>; battery,siop_hv_wireless_charging_limit_current = <1000>; battery,siop_call_cv_current = <150>; battery,siop_call_cc_current = <500>; }; };