Commit graph

17 commits

Author SHA1 Message Date
Peter (YM)
382c6c8daf thermal: read thermistor temp from sysfs
- avoid wrong sensor value reading for thermalHAL

Bug: 327327502
Test: Build to boot to home
Flag: EXEMPT (bug 337358613)
Change-Id: I65144ff01008f936a7ad33687ad77115d322c07b
Signed-off-by: Peter (YM) <peterym@google.com>
2024-08-16 06:30:37 +00:00
David Chao
d80891f594 thermal: update vskin charge
Based on DVT wired and wireless charging results to update PID
parameters to reduce temperature overshoot.

Bug: 310134358
Test: Flash and Boot to home
Change-Id: I29baaa02474db38a94d7e33d189baa497f7d5553
2023-11-30 07:14:40 +00:00
TeYuan Wang
4ee85b18c0 thermal: optimize usbc throttling policy
Bug: 278035350
Test: verified by emul_temp
Change-Id: I16442ddfe8a909da05a71d313e01c3964d07fe6c
2023-09-26 14:48:01 -07:00
David Chao
e37d058dfc thermal: update wired charging offset
Correct V03e_CHG offset

Test: Flash and boot to home and thermal throttling worked properly
Bug: 280552152
Change-Id: I062f3562ca94cb58f5a8255211fe9c852e2f75ec
2023-09-08 10:44:32 +08:00
David Chao
8342864009 thermal: update wired and wireless charging formula
Update wired and wireless charging equation based on latest HW
result.
- V03e_CHG/WLC/SPK formula

Test: Flash and boot to home and thermal throttling worked properly
Bug: 280552152
Change-Id: If55401260135b252bc5ed666f503e3a62203fd16
2023-09-06 14:01:29 +00:00
Treehugger Robot
c69cd16967 Merge "thermal: Update thermal config" into udc-qpr-dev 2023-09-04 05:46:59 +00:00
David Chao
9aafcdc7b5 thermal: Update thermal config
Increase charging levels to 26 and align charging PID algo with P23.

Bug: 292032651
Bug: 292033158
Test: build and boot to home and thermal throttling worked as expected.
Change-Id: Iad2326cf057889ab46c02f8b1af7f842e82f9e73
2023-09-01 07:27:05 +00:00
Darren Hsu
65db78ab04 thermal: remove camera rail due to replacement
VSYS_PWR_CAM will be replaced with L22M_DISP since L22M is a
required rail for MITTD comparison.

Bug: 297857658
Test: boot to home
Change-Id: I3f32b06f711c12f3b1e2eae88e72d66eb85b96b2
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-08-29 15:57:23 +08:00
Darren Hsu
5923bdc0cc thermal: remove L9S power rail
L9S will be replaced with SC.

Bug: 296031940
Test: boot to home
Change-Id: Iaa6e072e1bb42e6406ea801a6795e0017c12465d
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-08-17 17:46:28 +08:00
Peter (YM)
4b7ea50d20 thermal: add VSYS_PWR_CAM to power rail
Bug: 292473453
Test: device able to boot to home
Change-Id: I5d283d73803b345f2ac3f85dd62b53aaba92e67f
Signed-off-by: Peter (YM) <peterym@google.com>
2023-07-31 03:36:32 +00:00
Peter (YM)
ea6fb879fd thermal: remove L22M_DISP power rail
Since we are going to replace L22M_DISP with VSYS_PWR_CAM, remove L22M_DISP from thermal_config first, will create another cl to add it back.

Bug: 292473453
Test: device able to boot to home with kernel patch
Change-Id: Ic432c653bdb23cf95ad21d0de4fef8a2e5182b60
Signed-off-by: Peter (YM) <peterym@google.com>
2023-07-27 05:56:12 +00:00
Peter (YM)
53a79734c9 thermal: update vskin formula v0.2
based on EE side test result, update the skin formula to v0.2

Bug: 280552152
Test: run nurn8 to verify behavior
Change-Id: I31b6ffd4c62e0f4eaef0cb37b2c4703117c49626
Signed-off-by: Peter (YM) <peterym@google.com>
2023-07-17 07:46:52 +00:00
Peter (YM)
c2010f1a9b thermal: support usb overheat protection
Base on EVT 1.0 test result to support the USB thermal protection
1. When usb_therm > 46 degC start monitor
2. When usb_therm - charger_therm >= 10 degC, change usbc-port to 1
3. When usb_therm - charger_therm >= 13 degC, trigger VIRTUAL-USB-UI
   polling
4. When usb_therm - charger_therm <= 7 degC, change usbc_prot to 0

Create thermal config for proto to prevent wrong usb throttle on proto
device

Bug: 278035350
Test: push the test script into device and run thermal_recorder to
record the behavior. Detail is in the bug
Change-Id: I326dc22083efc1bd1af9a47451bf927e26006b85
Signed-off-by: Peter (YM) <peterym@google.com>
2023-07-12 05:17:04 +00:00
Peter (YM)
8ebc00fab4 thermal: update sensor name in config
replace the "inner_disp_therm" with "display_therm"

Bug: 283049063
Test: Build and boot on device, verify device can boot to home and
thermal can launch
Change-Id: I4096478a951e7cbbfd9da9ec280892890f0dd77b
Signed-off-by: Peter (YM) <peterym@google.com>
2023-05-18 09:18:06 +00:00
Peter (YM)
0f43a13104 thermal: remove MMWAVE from partial system power reference
Since MMWAVE power rail will be removed for SUB6 only sku (device without MMWAVE module),
remove this from partial system power reference.

Bug: 283049063
Test: Build and boot on device, verify device can boot to home and
thermal can launch

Change-Id: Ie7c508e6b3fe7f4f797fa4c4aefd4db5e504aa81
Signed-off-by: Peter (YM) <peterym@google.com>
2023-05-17 08:33:09 +00:00
Peter (YM)
c63495792e thermal: bringup initial skin thermal config
This is for early bringup usage, based on the previous generation
devices.

Bug: 268589207
Test: build on device and boot to home
      adb shell lshal debug android.hardware.thermal@2.0::IThermal/default

Change-Id: I33601a4048396e9e6ff9b055627c938cf6b272b1
Signed-off-by: Peter (YM) <peterym@google.com>
2023-04-06 04:06:01 +00:00
David Chao
3269c3e47f thermal: seperate thermal config for charging
- Separate thermal config for charger mode and remove the unused thermal
throttling.

Bug: 272701980
Test: charging throttling worked properly in charger.
Change-Id: I6a13fccd5981cef561d02fddbb19847801e34883
2023-03-16 14:41:40 +08:00