Skip to content

Ec thermistor support - #1126

Open
ajainp01 wants to merge 4 commits into
qualcomm-linux:qcom-nextfrom
ajainp01:ec_thermistor_support
Open

ajainp01 wants to merge 4 commits into
qualcomm-linux:qcom-nextfrom
ajainp01:ec_thermistor_support

Conversation

@ajainp01

Copy link
Copy Markdown

No description provided.

Describe the Hamoa embedded controller as a thermal-sensor provider with
one cell for selecting one of up to seven thermistors. The populated
channels are discovered from the EC firmware capability response, while
board thermal zones can reference a channel with <&ec N>.

Signed-off-by: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
Register each thermistor reported by the EC thermal capability response
with devm_thermal_of_zone_register(). Read signed 16-bit temperatures
returned by the EC and convert the 0.1 degree Celsius values to the
millidegree units expected by the thermal framework.

Signed-off-by: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
Advertise one thermal-sensor cell on the embedded controller so board
thermal zones can reference the firmware-reported thermistors by index.

Signed-off-by: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
Describe the EC-reported SoC, keyboard, and cover temperature sensors as
thermal zones on the Glymur CRD.

Signed-off-by: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant