-
Notifications
You must be signed in to change notification settings - Fork 193
hwmon: Add Qualcomm SPMI BCL driver #892
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
Open
dmantre
wants to merge
12
commits into
qualcomm-linux:qcom-6.18.y
Choose a base branch
from
dmantre:bcl_v2
base: qcom-6.18.y
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7d3015e
Revert "QCLINUX: defconfig: Enable Qualcomm BCL driver"
dmantre b119541
Revert "FROMLIST: arm64: dts: qcom: pm8350c: Enable Qualcomm BCL device"
dmantre 3cc6bac
Revert "FROMLIST: arm64: dts: qcom: pm7250b: Enable Qualcomm BCL device"
dmantre 363c3dc
Revert "FROMLIST: hwmon: Add Qualcomm PMIC BCL hardware monitor driver"
dmantre 5c91732
Revert "FROMLIST: dt-bindings: hwmon: Add qcom,bcl-hwmon yaml bindings"
dmantre 7af1b91
FROMLIST: dt-bindings: hwmon: Describe Qualcomm BCL hardware
quic-manafm 62d0145
FROMLIST: hwmon: Add Qualcomm PMIC BCL driver
quic-manafm a246a06
FROMLIST: arm64: dts: qcom: pm7250b: Enable BCL sensor node
quic-manafm 5c0e532
FROMLIST: arm64: dts: qcom: hamoa-pmic: Enable BCL sensor node
quic-manafm 756e342
FROMLIST: arm64: dts: qcom: pm8350c: Enable BCL sensor node
quic-manafm 7b0ce04
FROMLIST: arm64: dts: qcom: pm8550: Enable BCL sensor node
quic-manafm 1ecfd42
QCLINUX: defconfig: Enable Qualcomm BCL driver
dmantre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
128 changes: 0 additions & 128 deletions
128
Documentation/devicetree/bindings/hwmon/qcom,bcl-hwmon.yaml
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
Documentation/devicetree/bindings/hwmon/qcom,pm7250b-bcl.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| %YAML 1.2 | ||
| --- | ||
| $id: http://devicetree.org/schemas/hwmon/qcom,pm7250b-bcl.yaml# | ||
| $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
|
||
| title: Qualcomm SPMI PMIC Battery Current Limiting (BCL) Hardware Monitor | ||
|
|
||
| maintainers: | ||
| - Manaf Meethalavalappu Pallikunhi <manaf.pallikunhi@oss.qualcomm.com> | ||
|
|
||
| description: | ||
| SPMI PMIC Battery Current Limiting (BCL) hardware provides monitoring and | ||
| alarm functionality for battery overcurrent and battery or system under | ||
| voltage conditions. It monitors battery voltage and current, and | ||
| can trigger interrupts when configurable thresholds are exceeded. | ||
|
|
||
| properties: | ||
| compatible: | ||
| enum: | ||
| - qcom,pm7250b-bcl | ||
| - qcom,pm8350c-bcl | ||
| - qcom,pm8550-bcl | ||
| - qcom,pmh0101-bcl | ||
| - qcom,pmih0108-bcl | ||
| - qcom,smb2360-bcl | ||
| - qcom,smb2370-bcl | ||
|
|
||
| reg: | ||
| maxItems: 1 | ||
|
|
||
| interrupts: | ||
| maxItems: 2 | ||
|
|
||
| interrupt-names: | ||
| items: | ||
| - const: max-min | ||
| - const: critical | ||
|
|
||
| required: | ||
| - compatible | ||
| - reg | ||
| - interrupts | ||
| - interrupt-names | ||
|
|
||
| additionalProperties: false | ||
|
|
||
| examples: | ||
| - | | ||
| #include <dt-bindings/interrupt-controller/irq.h> | ||
|
|
||
| pmic { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| sensor@1d00 { | ||
| compatible = "qcom,pm7250b-bcl"; | ||
| reg = <0x1d00>; | ||
| interrupts = <0x2 0x1d 0x0 IRQ_TYPE_EDGE_RISING>, | ||
| <0x2 0x1d 0x1 IRQ_TYPE_EDGE_RISING>; | ||
| interrupt-names = "max-min", | ||
| "critical"; | ||
| }; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be =y ? or can be module as well ?