Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
4bd311f
Revert "FROMLIST: arm64: dts: qcom: hamoa-pmic: Enable BCL sensor node"
aastpand Nov 25, 2026
c9df364
Revert "FROMLIST: arm64: dts: qcom: smb2370: Enable BCL sensor node"
aastpand Nov 25, 2026
37313dd
Revert "FROMLIST: arm64: dts: qcom: pmh0101: Enable BCL sensor node"
aastpand Nov 25, 2026
2913f2e
Revert "FROMLIST: arm64: dts: qcom: pmih0108: Enable BCL sensor node"
aastpand Nov 25, 2026
13d94e8
Revert "FROMLIST: hwmon: Add Qualcomm PMIC BCL driver"
aastpand Nov 25, 2026
d32ba2c
Revert "FROMLIST: dt-bindings: hwmon: Describe Qualcomm BCL hardware"
aastpand Nov 25, 2026
099f5d8
UPSTREAM: hwmon: (core) Add support for currX_emergency and inX_[l]em…
groeck Aug 13, 2026
9ae3e5e
FROMLIST: dt-bindings: hwmon: Describe Qualcomm BCL hardware
quic-manafm Oct 5, 2026
3a7e43e
FROMLIST: hwmon: Add Qualcomm PMIC BCL driver
quic-manafm Oct 5, 2026
090a5b8
FROMLIST: arm64: dts: qcom: hamoa-pmic: Enable BCL sensor node
quic-manafm Oct 5, 2026
774a7e3
FROMLIST: arm64: dts: qcom: pm7550-eliza: Enable BCL sensor node
quic-manafm Oct 5, 2026
10acab1
FROMLIST: arm64: dts: qcom: pm7550ba-eliza: Enable BCL sensor node
quic-manafm Oct 5, 2026
426c379
FROMLIST: arm64: dts: qcom: pm8550: Enable BCL sensor node
quic-manafm Oct 5, 2026
74bb6ec
FROMLIST: arm64: dts: qcom: pmh0101: Enable BCL sensor node
quic-manafm Oct 5, 2026
bbe3e7a
FROMLIST: arm64: dts: qcom: pmih0108: Enable BCL sensor node
quic-manafm Oct 5, 2026
62da820
FROMLIST: arm64: dts: qcom: smb2370: Enable BCL sensor node
quic-manafm Oct 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Documentation/ABI/testing/sysfs-class-hwmon
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ Description:
take drastic action such as power down or reset. At the very
least, it should report a fault.

What: /sys/class/hwmon/hwmonX/inY_lemergency
Description:
Voltage emergency min value.

Unit: millivolt

RW

If voltage drops to or below this limit, the system is
expected to take drastic action such as immediate power
down or reset. At the very least, it should report a fault.

What: /sys/class/hwmon/hwmonX/inY_max
Description:
Voltage max value.
Expand All @@ -81,6 +93,18 @@ Description:
take drastic action such as power down or reset. At the very
least, it should report a fault.

What: /sys/class/hwmon/hwmonX/inY_emergency
Description:
Voltage emergency max value.

Unit: millivolt

RW

If voltage reaches or exceeds this limit, the system is expected
to take drastic action such as immediate power down or reset.
At the very least, it should report a fault.

What: /sys/class/hwmon/hwmonX/inY_input
Description:
Voltage input value.
Expand Down Expand Up @@ -647,6 +671,18 @@ Description:

RW

What: /sys/class/hwmon/hwmonX/currY_emergency
Description:
Current emergency high value.

Unit: milliampere

RW

If a current reaches or exceeds this limit, the system is
expected to take drastic action such as immediate power down
or reset. At the very least, it should report a fault.

What: /sys/class/hwmon/hwmonX/currY_input
Description:
Current input value
Expand Down
11 changes: 8 additions & 3 deletions Documentation/devicetree/bindings/hwmon/qcom,pm7250b-bcl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ properties:
compatible:
enum:
- qcom,pm7250b-bcl
- qcom,pm7550-bcl
- qcom,pm7550ba-bcl
- qcom,pm8350c-bcl
- qcom,pm8550-bcl
- qcom,pmh0101-bcl
Expand All @@ -30,12 +32,13 @@ properties:
maxItems: 1

interrupts:
maxItems: 2
maxItems: 3

interrupt-names:
items:
- const: max-min
- const: critical
- const: emergency

required:
- compatible
Expand All @@ -57,8 +60,10 @@ examples:
compatible = "qcom,pm7250b-bcl";
reg = <0x1d00>;
interrupts = <0x2 0x1d 0x0 IRQ_TYPE_EDGE_RISING>,
<0x2 0x1d 0x1 IRQ_TYPE_EDGE_RISING>;
<0x2 0x1d 0x1 IRQ_TYPE_EDGE_RISING>,
<0x2 0x1d 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical";
"critical",
"emergency";
};
};
12 changes: 12 additions & 0 deletions Documentation/hwmon/sysfs-interface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,18 @@ Voltages
`in[0-*]_lcrit`
Voltage critical min value.

`in[0-*]_lemergency`
Voltage emergency min value.

`in[0-*]_max`
Voltage max value.

`in[0-*]_crit`
Voltage critical max value.

`in[0-*]_emergency`
Voltage emergency max value.

`in[0-*]_input`
Voltage input value.

Expand Down Expand Up @@ -332,6 +338,9 @@ Currents
`curr[1-*]_crit`
Current critical high value.

`curr[1-*]_emergency`
Current emergency high value.

`curr[1-*]_input`
Current input value.

Expand Down Expand Up @@ -527,12 +536,15 @@ implementation.
+-------------------------------+-----------------------+
| **`in[0-*]_min_alarm`, | Limit alarm |
| `in[0-*]_max_alarm`, | |
| `in[0-*]_lemergency_alarm`, | |
| `in[0-*]_lcrit_alarm`, | - 0: no alarm |
| `in[0-*]_crit_alarm`, | - 1: alarm |
| `in[0-*]_emergency_alarm`, | |
| `curr[1-*]_min_alarm`, | |
| `curr[1-*]_max_alarm`, | RO |
| `curr[1-*]_lcrit_alarm`, | |
| `curr[1-*]_crit_alarm`, | |
| `curr[1-*]_emergency_alarm`, | |
| `power[1-*]_cap_alarm`, | |
| `power[1-*]_max_alarm`, | |
| `power[1-*]_crit_alarm`, | |
Expand Down
17 changes: 15 additions & 2 deletions arch/arm64/boot/dts/qcom/hamoa-pmics.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,17 @@
io-channel-names = "thermal";
};

sensor@4700 {
compatible = "qcom,pm8550-bcl";
reg = <0x4700>;
interrupts = <0x1 0x47 0x0 IRQ_TYPE_EDGE_RISING>,
<0x1 0x47 0x1 IRQ_TYPE_EDGE_RISING>,
<0x1 0x47 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical",
"emergency";
};

pm8550_gpios: gpio@8800 {
compatible = "qcom,pm8550-gpio", "qcom,spmi-gpio";
reg = <0x8800>;
Expand Down Expand Up @@ -677,9 +688,11 @@
compatible = "qcom,smb2360-bcl";
reg = <0x4700>;
interrupts = <0x7 0x47 0x0 IRQ_TYPE_EDGE_RISING>,
<0x7 0x47 0x1 IRQ_TYPE_EDGE_RISING>;
<0x7 0x47 0x1 IRQ_TYPE_EDGE_RISING>,
<0x7 0x47 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical";
"critical",
"emergency";
};

smb2360_0_eusb2_repeater: phy@fd00 {
Expand Down
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/qcom/pm7550-eliza.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@
#thermal-sensor-cells = <0>;
};

sensor@4700 {
compatible = "qcom,pm7550-bcl";
reg = <0x4700>;
interrupts = <0x1 0x47 0x0 IRQ_TYPE_EDGE_RISING>,
<0x1 0x47 0x1 IRQ_TYPE_EDGE_RISING>,
<0x1 0x47 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical",
"emergency";
};

pm7550_gpios: gpio@8800 {
compatible = "qcom,pm7550-gpio", "qcom,spmi-gpio";
reg = <0x8800>;
Expand Down
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/qcom/pm7550ba-eliza.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@
#thermal-sensor-cells = <0>;
};

sensor@4700 {
compatible = "qcom,pm7550ba-bcl";
reg = <0x4700>;
interrupts = <0x7 0x47 0x0 IRQ_TYPE_EDGE_RISING>,
<0x7 0x47 0x1 IRQ_TYPE_EDGE_RISING>,
<0x7 0x47 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical",
"emergency";
};

pm7550ba_gpios: gpio@8800 {
compatible = "qcom,pm7550ba-gpio", "qcom,spmi-gpio";
reg = <0x8800>;
Expand Down
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/qcom/pm8550.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@
#thermal-sensor-cells = <0>;
};

sensor@4700 {
compatible = "qcom,pm8550-bcl";
reg = <0x4700>;
interrupts = <0x1 0x47 0x0 IRQ_TYPE_EDGE_RISING>,
<0x1 0x47 0x1 IRQ_TYPE_EDGE_RISING>,
<0x1 0x47 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical",
"emergency";
};

pm8550_gpios: gpio@8800 {
compatible = "qcom,pm8550-gpio", "qcom,spmi-gpio";
reg = <0x8800>;
Expand Down
6 changes: 4 additions & 2 deletions arch/arm64/boot/dts/qcom/pmh0101.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
compatible = "qcom,pmh0101-bcl";
reg = <0x4700>;
interrupts = <0x1 0x47 0x0 IRQ_TYPE_EDGE_RISING>,
<0x1 0x47 0x1 IRQ_TYPE_EDGE_RISING>;
<0x1 0x47 0x1 IRQ_TYPE_EDGE_RISING>,
<0x1 0x47 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical";
"critical",
"emergency";
};

pmh0101_gpios: gpio@8800 {
Expand Down
6 changes: 4 additions & 2 deletions arch/arm64/boot/dts/qcom/pmih0108.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@
compatible = "qcom,pmih0108-bcl";
reg = <0x4700>;
interrupts = <0x7 0x47 0x0 IRQ_TYPE_EDGE_RISING>,
<0x7 0x47 0x1 IRQ_TYPE_EDGE_RISING>;
<0x7 0x47 0x1 IRQ_TYPE_EDGE_RISING>,
<0x7 0x47 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical";
"critical",
"emergency";
};

pmih0108_gpios: gpio@8800 {
Expand Down
6 changes: 4 additions & 2 deletions arch/arm64/boot/dts/qcom/smb2370.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
compatible = "qcom,smb2370-bcl";
reg = <0x4700>;
interrupts = <0x9 0x47 0x0 IRQ_TYPE_EDGE_RISING>,
<0x9 0x47 0x1 IRQ_TYPE_EDGE_RISING>;
<0x9 0x47 0x1 IRQ_TYPE_EDGE_RISING>,
<0x9 0x47 0x2 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "max-min",
"critical";
"critical",
"emergency";
};

smb2370_j_e2_eusb2_repeater: phy@fd00 {
Expand Down
6 changes: 6 additions & 0 deletions drivers/hwmon/hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ static const char * const hwmon_in_attr_templates[] = {
[hwmon_in_max] = "in%d_max",
[hwmon_in_lcrit] = "in%d_lcrit",
[hwmon_in_crit] = "in%d_crit",
[hwmon_in_lemergency] = "in%d_lemergency",
[hwmon_in_emergency] = "in%d_emergency",
[hwmon_in_average] = "in%d_average",
[hwmon_in_lowest] = "in%d_lowest",
[hwmon_in_highest] = "in%d_highest",
Expand All @@ -635,6 +637,8 @@ static const char * const hwmon_in_attr_templates[] = {
[hwmon_in_max_alarm] = "in%d_max_alarm",
[hwmon_in_lcrit_alarm] = "in%d_lcrit_alarm",
[hwmon_in_crit_alarm] = "in%d_crit_alarm",
[hwmon_in_lemergency_alarm] = "in%d_lemergency_alarm",
[hwmon_in_emergency_alarm] = "in%d_emergency_alarm",
[hwmon_in_rated_min] = "in%d_rated_min",
[hwmon_in_rated_max] = "in%d_rated_max",
[hwmon_in_beep] = "in%d_beep",
Expand All @@ -648,6 +652,7 @@ static const char * const hwmon_curr_attr_templates[] = {
[hwmon_curr_max] = "curr%d_max",
[hwmon_curr_lcrit] = "curr%d_lcrit",
[hwmon_curr_crit] = "curr%d_crit",
[hwmon_curr_emergency] = "curr%d_emergency",
[hwmon_curr_average] = "curr%d_average",
[hwmon_curr_lowest] = "curr%d_lowest",
[hwmon_curr_highest] = "curr%d_highest",
Expand All @@ -658,6 +663,7 @@ static const char * const hwmon_curr_attr_templates[] = {
[hwmon_curr_max_alarm] = "curr%d_max_alarm",
[hwmon_curr_lcrit_alarm] = "curr%d_lcrit_alarm",
[hwmon_curr_crit_alarm] = "curr%d_crit_alarm",
[hwmon_curr_emergency_alarm] = "curr%d_emergency_alarm",
[hwmon_curr_rated_min] = "curr%d_rated_min",
[hwmon_curr_rated_max] = "curr%d_rated_max",
[hwmon_curr_beep] = "curr%d_beep",
Expand Down
Loading
Loading