Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7adbfeb1 authored by Michael Benedict's avatar Michael Benedict
Browse files

source: G955F DSE4

parent 1cac41cb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
dtb-y += exynos8895-dream2lte_eur_open_07.dtb
dtb-y += exynos8895-dream2lte_eur_open_08.dtb
dtb-y += exynos8895-dream2lte_eur_open_09.dtb
dtb-y += exynos8895-dream2lte_eur_open_10.dtb

dtb-y += exynos8895-dreamlte_eur_open_05.dtb
dtb-y += exynos8895-dreamlte_eur_open_07.dtb
dtb-y += exynos8895-dreamlte_eur_open_08.dtb
+526 −0
Original line number Diff line number Diff line
/*
 * 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.
*/

/ {
	pinctrl@164B0000 {
		wpc_int: wpc-int {
			samsung,pins = "gpa3-2";
			samsung,pin-function = <0xf>;
			samsung,pin-pud = <0>;
			samsung,pin-drv = <0>;
		};

		wpc_det: wpc-det {
			samsung,pins = "gpa2-0";
			samsung,pin-function = <0xf>;
			samsung,pin-pud = <1>;
		};

	};

	pinctrl@10980000 {
		wpc_en: wpc-en {
			samsung,pins = "gpe6-2";
			samsung,pin-function = <1>;
			samsung,pin-pud = <0>;
			samsung,pin-drv = <0>;
		};
	};

	pinctrl@11050000 {
		jig_gpio: jig-gpio {
			samsung,pins = "gpi1-4";
			samsung,pin-function = <0xf>;
			samsung,pin-pud = <0>;
			samsung,pin-drv = <0>;
		};
	};

	hsi2c@10940000 { /* hsi2c_usi12_0 */
		status = "okay";
		samsung,stop-after-trans;
		clock-frequency = <100000>;

		mfc-charger@3b {
			compatible = "idt,mfc-charger";
			reg = <0x3b>;
			status = "okay";

			pinctrl-names = "default";
			pinctrl-0 = <&wpc_int &wpc_det &wpc_en>;

			battery,wpc_int = <&gpa3 2 0>;
			battery,wpc_det = <&gpa2 0 0>;
			battery,mst_en = <&gpf0 1 0>;
			battery,mst_pwr_en = <&gpf0 0 0>;
			battery,wpc_en = <&gpe6 2 0>;
			battery,charger_name = "max77865-charger";
			battery,fuelgauge_name = "max77865-fuelgauge";
			battery,wireless_charger_name = "mfc-charger";
			battery,fod_wpc_data = <150 52 142 44 150 28 150 25 150 27 156 13>;
			battery,fod_pma_data = <150 52 142 44 150 28 150 25 150 27 156 13>;
			battery,fod_a4wp_data = <150 52 142 44 150 28 150 25 150 27 156 13>;
			battery,fod_wpc_data_cv = <150 82 142 74 150 58 150 55 150 57 156 43>;
			battery,fod_pma_data_cv = <150 82 142 74 150 58 150 55 150 57 156 43>;
			battery,fod_a4wp_data_cv = <150 82 142 74 150 58 150 55 150 57 156 43>;
			battery,wpc_cc_cv_vout = <5500>;
			battery,wpc_cv_call_vout = <5000>;
			battery,wpc_cc_call_vout = <5000>;
			battery,hv_vout_wa = <0x41>; /* WC vout 10.0V */
			battery,wc_cover_rpp = <0x44>;
			battery,wc_hv_rpp = <0x40>;
		};
	};

	battery {
		status = "okay";
		compatible = "samsung,sec-battery";

		pinctrl-names = "default";
		/* battery,irq_gpio = <&gpa1 6 0>; */

		battery,vendor = "Battery";
		battery,charger_name = "max77865-charger";
		battery,fuelgauge_name = "max77865-fuelgauge";
		battery,wireless_charger_name = "mfc-charger";
		battery,technology = <2>; /* POWER_SUPPLY_TECHNOLOGY_LION */
		battery,fgsrc_switch_name = "max77865-charger"; /* Fuelgauge voltage source */

		battery,batt_data_version = <2>;

		battery,chip_vendor = "LSI";
		battery,temp_adc_type = <1>; /* SEC_BATTERY_ADC_TYPE_AP */

		battery,temp_check_type = <2>; /* SEC_BATTERY_TEMP_CHECK_TEMP */
		battery,chg_temp_check = <1>;
		battery,wpc_temp_check = <1>;

		battery,thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
		battery,chg_thermal_source = <1>;
		battery,wpc_thermal_source = <1>;
		battery,usb_thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
		battery,coil_thermal_source = <1>;

		battery,polling_time = <10 30 30 30 3600>;

		battery,temp_table_adc = <294 345 404 474 558 655 769 887 1021 1189
                                          1378 1586 1811 2048 2291 2512 2726 2932 3122 3293 3445 3575 3686>;
		battery,temp_table_data = <900 850 800 750 700 650 600 550 500 450
					   400 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;

		battery,usb_temp_table_adc = <294 345 404 474 558 655 769 887 1021 1189
		                              1378 1586 1811 2048 2291 2512 2726 2932 3122 3293 3445 3575 3686>;
		battery,usb_temp_table_data = <900 850 800 750 700 650 600 550 500 450
					   400 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;

		battery,chg_temp_table_adc = <294 345 404 474 558 655 769 887 1021 1189
		                              1378 1586 1811 2048 2291 2512 2726 2932 3122 3293 3445 3575 3686>;
		battery,chg_temp_table_data = <900 850 800 750 700 650 600 550 500 450
					   400 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;

		battery,wpc_temp_table_adc = <294 345 404 474 558 655 769 887 1021 1189
		                              1378 1586 1811 2048 2291 2512 2726 2932 3122 3293 3445 3575 3686>;
		battery,wpc_temp_table_data = <900 850 800 750 700 650 600 550 500 450
					       400 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;

		battery,mfc_temp_table_adc = <350 388 449 529 666 718 835 1006 1029 1091 1161 1197 1266 1318
						1360 1421 1524 1730 1964 2195 2437 2651 2898 3108 3283 3410 3498 3680>;
		battery,mfc_temp_table_data = <800 750 700 650 600 570 550 530 500 480 470 450 430 400
						360 370 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;
		battery,wireless_cc_cv = <85>;
		battery,fod_data = <204 9 150 28 130 55 130 57 157 5 157 6>;
		battery,fod_data_cv = <204 39 150 58 130 85 130 87 157 35 157 36>;
		battery,wpc_cc_cv_vout = <5500>;
		battery,wpc_cv_call_vout = <5000>;
		battery,wpc_cc_call_vout = <5000>;
		battery,wpc_det = <&gpa2 0 0>;
		battery,wpc_en = <&gpe6 2 0>;
		battery,wpc_int = <&gpa3 2 0>;
		battery,hv_vout_wa = <0x41>; /* WC vout 10.0V */
		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,polling_type = <1>; /* SEC_BATTERY_MONITOR_ALARM */
		battery,monitor_initial_count = <0>;

		battery,battery_check_type = <0>; /* SEC_BATTERY_CHECK_NONE */
		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,temp_check_count = <1>;
		battery,temp_highlimit_threshold_event = <800>;
		battery,temp_highlimit_recovery_event = <750>;
		battery,temp_high_threshold_event = <500>;
		battery,temp_high_recovery_event = <450>;
		battery,temp_low_threshold_event = <0>;
		battery,temp_low_recovery_event = <50>;
		battery,temp_highlimit_threshold_normal = <800>;
		battery,temp_highlimit_recovery_normal = <750>;
		battery,temp_high_threshold_normal = <500>;
		battery,temp_high_recovery_normal = <450>;
		battery,temp_low_threshold_normal = <0>;
		battery,temp_low_recovery_normal = <50>;
		battery,temp_highlimit_threshold_lpm = <800>;
		battery,temp_highlimit_recovery_lpm = <750>;
		battery,temp_high_threshold_lpm = <500>;
		battery,temp_high_recovery_lpm = <450>;
		battery,temp_low_threshold_lpm = <0>;
		battery,temp_low_recovery_lpm = <50>;
		battery,wpc_high_threshold_normal = <450>;
		battery,wpc_high_recovery_normal = <400>;
		battery,wpc_low_threshold_normal = <0>;
		battery,wpc_low_recovery_normal = <50>;
		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 = <490>;
		battery,chg_high_temp_recovery = <470>;
		battery,chg_input_limit_current = <1000>;
		battery,chg_charging_limit_current = <1500>; 

		/* TEMP_CONTROL_SOURCE_BAT_THM = WPC_THM */
		battery,wpc_temp_control_source = <1>;
		battery,wpc_high_temp = <380>;
		battery,wpc_high_temp_recovery = <360>;
		battery,wpc_charging_limit_current = <600>;
		battery,wpc_lcd_on_high_temp = <470>;
		battery,wpc_lcd_on_high_temp_rec = <300>;
		battery,wpc_lcd_on_charging_limit_current = <450>;

		battery,wpc_store_high_temp = <380>;
		battery,wpc_store_high_temp_recovery = <360>;
		battery,wpc_store_charging_limit_current = <400>;
		battery,wpc_store_lcd_on_high_temp = <380>;
		battery,wpc_store_lcd_on_high_temp_rec = <300>;

		battery,sleep_mode_limit_current = <500>;
		battery,wc_full_input_limit_current = <100>;
		battery,wc_cv_current = <820>;
		battery,wc_cv_pack_current = <630>;
		battery,wc_hero_stand_cc_cv = <70>;
		battery,wc_hero_stand_cv_current = <600>;
		battery,wc_hero_stand_hv_cv_current = <450>;

		battery,mix_high_temp = <420>;
		battery,mix_high_chg_temp = <500>;
		battery,mix_high_temp_recovery = <390>;

		/* SEC_BATTERY_FULL_CONDITION_NOTIMEFULL |
		   SEC_BATTERY_FULL_CONDITION_VCELL */
		battery,full_condition_type = <9>;
		battery,full_condition_soc = <93>;
		battery,full_condition_vcell = <4250>;

		battery,recharge_check_count = <1>;
		battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */
		battery,recharge_condition_soc = <98>;
		battery,recharge_condition_vcell = <4280>;

		battery,charging_total_time = <14400>;
		battery,hv_charging_total_time = <10800>;
		battery,normal_charging_total_time = <18000>;
		battery,usb_charging_total_time = <36000>;
		battery,recharging_total_time = <5400>;
		battery,charging_reset_time = <0>;

		battery,chg_float_voltage = <43500>;
		battery,chg_float_voltage_conv = <10>;

		battery,swelling_high_temp_block = <410>;
		battery,swelling_high_temp_recov = <390>;
		battery,swelling_wc_high_temp_recov = <390>;
		battery,swelling_low_temp_block_1st = <150>;
		battery,swelling_low_temp_recov_1st = <200>;
		battery,swelling_low_temp_block_2nd = <50>;
		battery,swelling_low_temp_recov_2nd = <100>;

		battery,swelling_low_temp_current = <800>;	/* 0.3C */
		battery,swelling_low_temp_topoff = <175>;	/* 0.05C */
		battery,swelling_high_temp_current = <1250>;	/* 0.45C */
		battery,swelling_high_temp_topoff = <175>;	/* 0.05C */
		battery,swelling_wc_high_temp_current = <800>;	/* 0.3C */
		battery,swelling_wc_low_temp_current = <800>;	/* 0.3C */

		battery,swelling_drop_float_voltage = <41500>;
		battery,swelling_high_rechg_voltage = <4000>;
		battery,swelling_low_rechg_voltage = <4000>;

		battery,siop_input_limit_current = <1200>;
		battery,siop_charging_limit_current = <1000>;
		battery,siop_hv_input_limit_current = <500>;
		battery,siop_hv_charging_limit_current = <1000>;

		battery,siop_wireless_input_limit_current = <600>;
		battery,siop_wireless_charging_limit_current = <850>;
		battery,siop_hv_wireless_input_limit_current = <600>;
		battery,siop_hv_wireless_charging_limit_current = <850>;
		battery,siop_store_hv_wireless_input_limit_current = <450>;

		battery,ttf_hv_charge_current = <2500>;
		battery,ttf_hv_wireless_charge_current = <1200>;
		battery,ttf_wireless_charge_current = <900>;

		battery,pd_charging_charge_power = <15000>;
		battery,max_charging_current = <2500>;
		battery,battery_full_capacity = <3500>;

		/* cycle, chg_float_voltage, recharge_condition_vcell, full_condition_vcell, full_condition_soc */
		battery,age_data = <0 43500 4280 4250 93
				300 43250 4255 4225 92
				400 43125 4242 4212 91
				700 42875 4217 4187 90
				1000 42375 4167 4137 89>;

		battery,max_input_voltage = <12000>; /* mV */
		battery,max_input_current = <3000>;  /* mA */

		battery,enable_sysovlo_irq;

		battery,standard_curr = <2500>;
		battery,expired_time = <10800>;
		battery,recharging_expired_time = <5400>;

		battery,cisd_max_voltage_thr = <4400>; /* battery ovp detection voltage */
		battery,cisd_alg_index = <7>;

		io-channels = <&exynos_adc 1>, <&exynos_adc 3>, <&exynos_adc 11>, <&exynos_adc 4>, <&exynos_adc 6>, <&exynos_adc 5>;
		io-channel-names = "adc-temp", "adc-chg-temp", "adc-in-bat", "adc-wpc-temp", "adc-usb-temp", "adc-mfc-temp";
		#io-channel-cells = <5>;
		io-channel-ranges;
	};

	max77865-fuelgauge {
		status = "okay";
		fuelgauge,fuel_alert_soc = <1>;
		fuelgauge,jig_gpio = <&gpi1 4 0>;
		fuelgauge,capacity_max = <1000>;
		fuelgauge,capacity_min = <0>;
		fuelgauge,capacity_calculation_type = <28>;
		fuelgauge,repeated_fuelalert;
		fuelgauge,using_temp_compensation;
		fuelgauge,low_temp_limit = <100>;
		fuelgauge,using_hw_vempty;
		fuelgauge,v_empty = <0xA7E2>; /* Empty: 3260mV, Recover: 3480mV */
		fuelgauge,v_empty_origin = <0x7D54>; /* Empty: 2500mV, Recover: 3360mV */
		fuelgauge,sw_v_empty_voltage = <3200>;
		fuelgauge,sw_v_empty_voltage_cisd = <3100>;
		fuelgauge,sw_v_empty_recover_voltage = <3480>;
		fuelgauge,qrtable20 = <0x0A01>;
		fuelgauge,qrtable30 = <0x0902>;
		fuelgauge,fg_resistor = <2>;
		fuelgauge,capacity = <0x0DC5>;
		/*fuelgauge,auto_discharge_en;*/
		fuelgauge,discharge_temp_threshold = <600>;
		fuelgauge,discharge_volt_threshold = <4200>;
		fuelgauge,ttf_capacity = <3500>;
		fuelgauge,cv_data = <
			2488	829	1809
			2409	832	1796
			2327	837	1769
			2272	840	1743
			2182	846	1721
			2104	850	1690
			2038	854	1670
			1950	859	1640
			1904	861	1622
			1838	865	1594
			1797	867	1576
			1749	870	1560
			1703	873	1531
			1683	873	1525
			1667	875	1515
			1660	875	1512
			1653	876	1509
			1615	878	1502
			1580	880	1483
			1553	881	1463
			1544	882	1458
			1520	883	1451
			1477	886	1424
			1431	888	1409
			1396	891	1383
			1347	894	1361
			1299	896	1332
			1267	898	1315
			1231	902	1288
			1202	904	1263
			1148	906	1243
			1109	909	1213
			1067	911	1185
			1031	914	1156
			1013	915	1140
			975	917	1111
			961	919	1084
			921	921	1064
			892	923	1038
			887	923	1019
			863	925	1004
			833	927	976
			808	929	946
			787	930	918
			780	931	904
			764	932	895
			744	934	864
			730	935	846
			715	936	828
			693	937	800
			681	938	783
			666	940	752
			651	941	735
			640	942	712
			628	945	697
			622	946	679
			618	947	664
			600	950	646
			596	951	627
			589	953	614
			584	953	601
			576	956	572
			577	957	553
			562	958	535
			511	968	506
			505	969	487
			493	971	464
			492	972	435
			484	973	417
			480	975	398
			474	976	380
			470	977	364
			462	977	355
			456	978	336
			452	979	329
			446	981	303
			437	982	282
			429	984	255
			423	985	242
			422	986	229
			414	987	211
			411	988	199
			405	989	191
			397	990	171
			391	991	140
			387	992	126
			384	993	107
			372	995	84
			364	997	54
			356	998	26
			356	998	13
			0	1000	0
			>;
	};

/* sec_battery_cable
 *   0	UNKNOWN,
 *   1	NONE,
 *   2	PREPARE_TA,
 *   3	TA,
 *   4	USB,
 *   5	USB_CDP,
 *   6	9V_TA,
 *   7	9V_ERR,
 *   8	9V_UNKNOWN,
 *   9	12V_TA,
 *  10	WIRELESS,
 *  11	HV_WIRELESS,
 *  12	PMA_WIRELESS,
 *  13	WIRELESS_PACK,
 *  14	WIRELESS_HV_PACK,
 *  15	WIRELESS_STAND,
 *  16	WIRELESS_HV_STAND,
 *  17	QC20,
 *  18	QC30,
 *  19	PDIC,
 *  20	UARTOFF,
 *  21	OTG,
 *  22	LAN_HUB,
 *  23	POWER_SHARING,
 *  24	HMT_CONNECTED,
 *  25	HMT_CHARGE,
 *  26	HV_TA_CHG_LIMIT,
 *  27	WIRELESS_VEHICLE,
 *  28	WIRELESS_HV_VEHICLE,
 *  29	PREPARE_WIRELESS_HV,
 *  30	TIMEOUT,
 *  31  SMART_OTG,
 *  32  SMART_NOTG,
 *  33	WIRELESS_TX,
 *  34	CABLE_MAX,
*/
	cable-info {
		   default_input_current = <1800>;
		   default_charging_current = <2100>;
		   full_check_current_1st = <350>;
		   full_check_current_2nd = <150>;

		   current_group_1 {
		   	       cable_number = <1 4 19 21 22 23 30>;
			       input_current = <500>;
			       charging_current = <500>;
		   };
		   current_group_2 {
		   	       cable_number = <2 25 31>;
			       input_current = <1000>;
			       charging_current = <1000>;
		  };
		   current_group_3 {
		   	       cable_number = <5 32>;
			       input_current = <1500>;
			       charging_current = <1500>;
		  };
		   current_group_4 {
		   	       cable_number = <6 7 8>;
			       input_current = <1650>;
			       charging_current = <2500>;
		  };
		   current_group_5 {
		   	       cable_number = <9>;
			       input_current = <1650>;
			       charging_current = <2500>;
		  };
		   current_group_6 {
		   	       cable_number = <10 12 15 27 33>;
			       input_current = <900>;
			       charging_current = <1400>;
		  };
		   current_group_7 {
		   	       cable_number = <13>;
			       input_current = <700>;
			       charging_current = <1400>;
		  };
		   current_group_8 {
		   	       cable_number = <24>;
			       input_current = <1000>;
			       charging_current = <450>;
		  };
		   current_group_9 {
		   	       cable_number = <26>;
			       input_current = <2000>;
			       charging_current = <1800>;
		  };
		   current_group_10 {
		   	       cable_number = <11 14 16 28>;
			       input_current = <650>;
			       charging_current = <1400>;
		  };
		   current_group_11 {
		   	       cable_number = <29>;
			       input_current = <500>;
			       charging_current = <1400>;
		  };
	};
};
+29 −0
Original line number Diff line number Diff line
/*
 * 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.
*/

#include "battery_data_dream2lte_common.dtsi"

/ {
	battery {
		io-channels = <&exynos_adc 1>, <&exynos_adc 3>, <&exynos_adc 11>, <&exynos_adc 4>, <&exynos_adc 1>, <&exynos_adc 5>;
		io-channel-names = "adc-temp", "adc-chg-temp", "adc-in-bat", "adc-wpc-temp", "adc-usb-temp", "adc-mfc-temp";
		#io-channel-cells = <5>;
		io-channel-ranges;
	};

	max77865-fuelgauge {
		fuelgauge,qrtable20 = <0x1780>;
		fuelgauge,qrtable30 = <0x1400>;
		fuelgauge,capacity = <0x19AE>;
		fuelgauge,fg_resistor = <1>;
		fuelgauge,v_empty = <0xAA64>; /* Empty: 3260mV, Recover: 3480mV */
	};
};
+30 −0
Original line number Diff line number Diff line
/*
 * 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.
*/

#include "battery_data_dream2lte_common.dtsi"

/ {
	battery {
		io-channels = <&exynos_adc 4>, <&exynos_adc 3>, <&exynos_adc 11>, <&exynos_adc 4>, <&exynos_adc 1>, <&exynos_adc 5>;
		io-channel-names = "adc-temp", "adc-chg-temp", "adc-in-bat", "adc-wpc-temp", "adc-usb-temp", "adc-mfc-temp";
		#io-channel-cells = <5>;
		io-channel-ranges;
	};

	max77865-fuelgauge {
		fuelgauge,qrtable20 = <0x0900>;
		fuelgauge,qrtable30 = <0x0800>;
		fuelgauge,capacity = <0x19B0>;
		fuelgauge,fg_resistor = <1>;
		fuelgauge,v_empty = <0xA55F>; /* Empty: 3300mV, Recover: 3480mV */
		fuelgauge,jig_low_active;
	};
};
+472 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading