arm64: update a3xeltexx dts files to fix device charging
authorDanny Wood <danwood76@gmail.com>
Sat, 20 Oct 2018 07:01:28 +0000 (08:01 +0100)
committerDanny Wood <danwood76@gmail.com>
Fri, 30 Nov 2018 11:00:57 +0000 (11:00 +0000)
Change-Id: I14e72bd7911184e0072946d9da4581c7771cd83b

arch/arm64/boot/dts/exynos7580-a3xelte_battery_rev01.dtsi [changed mode: 0644->0755]
arch/arm64/boot/dts/exynos7580-a3xelte_eur_open_02.dts [changed mode: 0644->0755]
arch/arm64/boot/dts/exynos7580-a3xelte_eur_open_gpio_02.dtsi [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f158608..5ac9f06
@@ -72,8 +72,8 @@
                battery,adc_check_count = <5>;
 
                battery,inbat_voltage = <1>;
-               battery,inbat_voltage_table_adc = <3108 3083 3048 3012 2973 2947 2910 2873 2838 2802 2765 2732 2697 2662 2627 2595 2560 2522 2487 2453 2418>;
-               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,inbat_voltage_table_adc = <3143 3118 3083 3048 3012 2973 2947 2910 2873 2838 2802 2765 2732 2697 2662 2627 2595 2560 2522 2487 2453>;
+               battery,inbat_voltage_table_data = <4380 4350 4300 4260 4190 4160 4100 4050 4000 3950 3900 3850 3800 3750 3700 3650 3600 3550 3500 3450 3400>;
 
                battery,cable_check_type = <4>; /* SEC_BATTERY_CABLE_CHECK_PSY */
                battery,cable_source_type = <1>; /* SEC_BATTERY_CABLE_SOURCE_EXTERNAL */
                   SEC_BATTERY_FULL_CONDITION_VCELL */
                battery,full_condition_type = <13>;
                battery,full_condition_soc = <93>;
-               battery,full_condition_vcell = <4300>;
+               battery,full_condition_vcell = <4275>;
 
                battery,recharge_check_count = <2>;
                battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */
                battery,self_discharging_temp_recov = <550>;
                battery,self_discharging_temp_pollingtime = <400>;
 
-               battery,swelling_high_temp_block = <450>;
-               battery,swelling_high_temp_recov = <400>;
-               battery,swelling_low_temp_block = <100>;
-               battery,swelling_low_temp_recov = <150>;
-               battery,swelling_chg_current = <1300>;
+               battery,swelling_low_temp_2step_mode = <0>;
+               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_low_temp_current = <1300>;
+               battery,swelling_high_temp_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>;
 
+               /* Add these to make this dtsi work with the A5 battery driver (mimics A3 driver) */
+               battery,swelling_low_temp_block_1st = <50>;
+               battery,swelling_low_temp_block_2nd = <50>;
+               battery,swelling_low_temp_recov_1st = <100>;
+               battery,swelling_low_temp_recov_2nd = <100>;
+
                io-channels = <&exynos_adc 1>, <&exynos_adc 3>, <&exynos_adc 4>;
                io-channel-names = "adc-temp", "chg-adc-temp", "in-bat-adc";
                #io-channel-cells = <3>;
old mode 100644 (file)
new mode 100755 (executable)
index 7795295..503ae73
@@ -1370,21 +1370,13 @@ i2c@33 {
                status = "okay";
        };
 
-       pinctrl@139B0000 {
-               bt_en_2: bt-en-2 {
-                       samsung,pins = "gpa1-6";
-                       samsung,pin-function = <1>;
-                       samsung,pin-pud = <0>;
-               };
-       };
-
        bluetooth {
                compatible = "broadcom,bcm43xx";
                gpios = <&gpa1 6 0x1    /*BT_EN*/
                                &gpa2 2 0x1     /*BT_WAKE*/
                                &gpa2 6 0xF     /*BT_HOST_WAKE*/ >;
                pinctrl-names = "default";
-               pinctrl-0=<&bt_hostwake &bt_btwake &bt_en_2>;
+               pinctrl-0=<&bt_hostwake &bt_btwake &bt_en>;
                status = "okay";
        };
 
old mode 100644 (file)
new mode 100755 (executable)
index 9476cc3..c2ba4a2
                PIN_SLP(gpe0-2, INPUT, DOWN);   /* FLASH_LED_STROBE */
                PIN_SLP(gpe0-3, INPUT, DOWN);   /* VTCAM_RST_N */
                PIN_SLP(gpe0-4, INPUT, DOWN);   /* CAM_RST */
-               PIN_SLP(gpe0-5, INPUT, DOWN);   /* OIS_RST */
+               PIN_SLP(gpe0-5, INPUT, DOWN);   /* NC */
                PIN_SLP(gpe0-6, PREV, NONE);    /* CP_RST_N */
                PIN_SLP(gpe0-7, OUT0, DOWN);    /* GRIP_EN */