Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemas: Add a schema for thermal consumer #117

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

kholk
Copy link

@kholk kholk commented Nov 21, 2023

This adds a schema for thermal-zones consumers, useful for smart voltage scaling drivers that need to adjust CPU/GPU/other voltages based on chip quality and temperature of one or multiple zones, and for battery charge drivers that need to scale the charging current based on board dependant thermal zones readings (for example, battery temperature, device skin temperature, etc).

For more information, please look at https://lore.kernel.org/all/[email protected]/

Cheers!
Angelo

dtschema/schemas/thermal/thermal.yaml Show resolved Hide resolved
properties:
thermal-zones:
anyOf:
- type: object # for nodes named 'thermal-zones'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We inherited this in other cases, but not great to introduce a new one. However, I don't have a better naming suggestion, so I guess it is fine.

This adds a schema for thermal-zones consumers, useful for smart voltage
scaling drivers that need to adjust CPU/GPU/other voltages based on chip
quality and temperature of one or multiple zones, and for battery charge
drivers that need to scale the charging current based on board dependant
thermal zones readings (for example, battery temperature, device skin
temperature, etc).

Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
@kholk
Copy link
Author

kholk commented Nov 23, 2023

Commit updated.

@robherring robherring merged commit 414a9f7 into devicetree-org:main Nov 28, 2023
6 checks passed
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.

2 participants