| /* Copyright (c) 2019, The Linux Foundation. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| */ |
| #include "sm8150-floral-battery.dtsi" |
| #include "sm8150-floral-wcharger.dtsi" |
| |
| &google_battery { |
| google,chg-battery-default-capacity = <3712>; |
| }; |
| |
| &google_charger { |
| google,fcc-max-ua = <3700000>; |
| }; |
| |
| &vendor { |
| c2_maxim_config: maxim,config { |
| maxim,c2-22k { |
| maxim,batt-id-kohm = <22>; |
| maxim,capacity-rcomp0 = <0x1072>; /* ATL */ |
| }; |
| maxim,c2-47k { |
| maxim,batt-id-kohm = <47>; |
| maxim,capacity-rcomp0 = <0x1072>; /* ATL */ |
| }; |
| maxim,c2-100k { |
| maxim,batt-id-kohm = <100>; |
| maxim,capacity-rcomp0 = <0x203e>; /* COS */ |
| }; |
| maxim,c2-33k { |
| maxim,batt-id-kohm = <33>; |
| maxim,capacity-rcomp0 = <0x203e>; /* COS */ |
| }; |
| }; |
| }; |
| |
| &max1720x_fg { |
| google,cap-tsettle = <24>; |
| google,cap-filt-length = <12>; |
| |
| maxim,capacity-stable = <5>; |
| maxim,capacity-fade = <4000>; |
| maxim,capacity-design = <3712>; |
| maxim,capacity-tempco = <0x255e>; |
| |
| maxim,n_regval_1730x_ver_por = /bits/ 8 <0xcc 0x01>; |
| maxim,n_regval_1730x_ver = /bits/ 8 <0xcc 0x00>; |
| maxim,n_regval_1730x = /bits/ 16 < |
| 0xD1 0x4BF6 /* nTPrtTh1 */ |
| 0xD2 0x782a /* nTPrtTh3 */ |
| 0xD6 0x4029 /* nProtMiscTh */ |
| 0xDC 0x34C9 /* nDelayCfg */ |
| >; |
| |
| maxim,n_regval_1720x_ver_por = /bits/ 8 <0xd4 0x01>; |
| maxim,n_regval_1720x_ver = /bits/ 8 <0xd4 0x03>; |
| maxim,n_regval_1720x = /bits/ 16 < |
| 0xA7 0x255E /* nTempCo Register */ |
| >; |
| |
| maxim,fix-vempty; |
| }; |
| |
| &soc { |
| google,overheat_mitigation { |
| google,begin-mitigation-temp = <500>; |
| google,end-mitigation-temp = <400>; |
| }; |
| }; |
| |
| &p9221 { |
| google,q_value = <50>; |
| fod = [B2 23 8D 2D 90 29 BF CD A6 E9 A6 2C 0D 12 9A 12]; |
| fod_epp = [B0 24 90 40 88 50 88 53 90 4A 9A 00 12 12 01 40]; |
| }; |