* [PATCH v5 0/3] starqltechn: fix max77705 device irqs
@ 2025-09-26 17:13 Dzmitry Sankouski
2025-09-26 17:13 ` [PATCH v5 1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells Dzmitry Sankouski
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Dzmitry Sankouski @ 2025-09-26 17:13 UTC (permalink / raw)
To: Chanwoo Choi, Krzysztof Kozlowski, Lee Jones, Rob Herring,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski
Cc: linux-kernel, devicetree, linux-arm-msm, Konrad Dybcio,
Dzmitry Sankouski, Dmitry Baryshkov
For max77705 charger and fuelgauge subdevice, use max77705 interrupt
controller.
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
Changes in v5:
- group interrupt properties together, including #interrupt-cells
- update trailers
- Link to v4: https://lore.kernel.org/r/20250925-starqltechn-correct_max77705_nodes-v4-0-93b706bdda58@gmail.com
Changes in v4:
- update trailers
- fix commit message
- reorder patches - Fixes should go first
- rebase on latest linux-next
- Link to v3: https://lore.kernel.org/r/20250912-starqltechn-correct_max77705_nodes-v3-0-4ce9f694ecd9@gmail.com
Changes in v3:
- fix commit messages to be more clear
- Link to v2: https://lore.kernel.org/r/20250909-starqltechn-correct_max77705_nodes-v2-0-e4174d374074@gmail.com
Changes in v2:
- run dt_binding_check, dtbs_check
- make interrupt-cells 1
- add patch to delete unused address-cells and size-cells
- add binding patch for interrupt-cells
- Link to v1: https://lore.kernel.org/r/20250831-starqltechn-correct_max77705_nodes-v1-0-5f2af9d13dad@gmail.com
---
Dzmitry Sankouski (3):
arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells
arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts
dt-bindings: max77705: add interrupt-controller property
Documentation/devicetree/bindings/mfd/maxim,max77705.yaml | 14 ++++++++++++++
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 14 +++++++-------
2 files changed, 21 insertions(+), 7 deletions(-)
---
base-commit: 8e2755d7779a95dd61d8997ebce33ff8b1efd3fb
change-id: 20250830-starqltechn-correct_max77705_nodes-1162dc2d9fe7
Best regards,
--
Dzmitry Sankouski <dsankouski@gmail.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v5 1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells
2025-09-26 17:13 [PATCH v5 0/3] starqltechn: fix max77705 device irqs Dzmitry Sankouski
@ 2025-09-26 17:13 ` Dzmitry Sankouski
2025-09-26 17:13 ` [PATCH v5 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts Dzmitry Sankouski
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Dzmitry Sankouski @ 2025-09-26 17:13 UTC (permalink / raw)
To: Chanwoo Choi, Krzysztof Kozlowski, Lee Jones, Rob Herring,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski
Cc: linux-kernel, devicetree, linux-arm-msm, Konrad Dybcio,
Dzmitry Sankouski
Drop the unused address/size-cells properties to silence the DT
checker warning:
pmic@66 (maxim,max77705): '#address-cells', '#size-cells' do not
match any of the regexes: '^pinctrl-[0-9]+$'
Fixes: 7a88a931d095 ("arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
Changes in v3:
- fix commit message to be more clear
---
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
index 75a53f0bbebd..45c7aa0f602d 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
@@ -606,8 +606,6 @@ pmic@66 {
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&pmic_int_default>;
pinctrl-names = "default";
- #address-cells = <1>;
- #size-cells = <0>;
leds {
compatible = "maxim,max77705-rgb";
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v5 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts
2025-09-26 17:13 [PATCH v5 0/3] starqltechn: fix max77705 device irqs Dzmitry Sankouski
2025-09-26 17:13 ` [PATCH v5 1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells Dzmitry Sankouski
@ 2025-09-26 17:13 ` Dzmitry Sankouski
2025-10-22 16:41 ` Konrad Dybcio
2025-09-26 17:13 ` [PATCH v5 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
2025-10-27 22:36 ` (subset) [PATCH v5 0/3] starqltechn: fix max77705 device irqs Bjorn Andersson
3 siblings, 1 reply; 8+ messages in thread
From: Dzmitry Sankouski @ 2025-09-26 17:13 UTC (permalink / raw)
To: Chanwoo Choi, Krzysztof Kozlowski, Lee Jones, Rob Herring,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski
Cc: linux-kernel, devicetree, linux-arm-msm, Konrad Dybcio,
Dzmitry Sankouski, Dmitry Baryshkov
Since max77705 has a register, which indicates interrupt source, it acts
as an interrupt controller.
Direct MAX77705's subdevices to use the IC's internal interrupt
controller, instead of listening to every interrupt fired by the
chip towards the host device.
Fixes: 7a88a931d095 ("arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
Changes for v5:
- group interrupt properties together, including #interrupt-cells
Changes for v2:
- fix commit message to be more clear
Changes for v2:
- fix commit msg header prefix to 'arm64: dts: qcom: sdm845-starqltechn:'
- remove binding header for interrupt numbers
- make interrupt-cells 1, because irq trigger type is not used
---
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
index 45c7aa0f602d..215e1491f3e9 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
@@ -599,11 +599,13 @@ &uart9 {
&i2c14 {
status = "okay";
- pmic@66 {
+ max77705: pmic@66 {
compatible = "maxim,max77705";
reg = <0x66>;
+ #interrupt-cells = <1>;
interrupt-parent = <&pm8998_gpios>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-controller;
pinctrl-0 = <&pmic_int_default>;
pinctrl-names = "default";
@@ -644,8 +646,8 @@ max77705_charger: charger@69 {
reg = <0x69>;
compatible = "maxim,max77705-charger";
monitored-battery = <&battery>;
- interrupt-parent = <&pm8998_gpios>;
- interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-parent = <&max77705>;
+ interrupts = <0>;
};
fuel-gauge@36 {
@@ -653,8 +655,8 @@ fuel-gauge@36 {
compatible = "maxim,max77705-battery";
power-supplies = <&max77705_charger>;
maxim,rsns-microohm = <5000>;
- interrupt-parent = <&pm8998_gpios>;
- interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-parent = <&max77705>;
+ interrupts = <2>;
};
};
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v5 3/3] dt-bindings: max77705: add interrupt-controller property
2025-09-26 17:13 [PATCH v5 0/3] starqltechn: fix max77705 device irqs Dzmitry Sankouski
2025-09-26 17:13 ` [PATCH v5 1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells Dzmitry Sankouski
2025-09-26 17:13 ` [PATCH v5 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts Dzmitry Sankouski
@ 2025-09-26 17:13 ` Dzmitry Sankouski
2025-10-02 2:55 ` Rob Herring (Arm)
2025-10-09 12:53 ` Lee Jones
2025-10-27 22:36 ` (subset) [PATCH v5 0/3] starqltechn: fix max77705 device irqs Bjorn Andersson
3 siblings, 2 replies; 8+ messages in thread
From: Dzmitry Sankouski @ 2025-09-26 17:13 UTC (permalink / raw)
To: Chanwoo Choi, Krzysztof Kozlowski, Lee Jones, Rob Herring,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski
Cc: linux-kernel, devicetree, linux-arm-msm, Konrad Dybcio,
Dzmitry Sankouski
Add interrupt-controller property, because max77705 has dedicated interrupt
source register to determine which sub device triggered an interrupt.
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
Changes for v5:
- group interrupt properties together, including #interrupt-cells
Changes in v4:
- fix commit message: node -> property
- fix commit message: minor reword and punctuation
---
Documentation/devicetree/bindings/mfd/maxim,max77705.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/maxim,max77705.yaml b/Documentation/devicetree/bindings/mfd/maxim,max77705.yaml
index 0ec89f0adc64..8b62aadb4213 100644
--- a/Documentation/devicetree/bindings/mfd/maxim,max77705.yaml
+++ b/Documentation/devicetree/bindings/mfd/maxim,max77705.yaml
@@ -26,6 +26,18 @@ properties:
interrupts:
maxItems: 1
+ interrupt-controller:
+ description:
+ The driver implements an interrupt controller for the sub devices.
+ The interrupt number mapping is as follows
+ 0 - charger
+ 1 - topsys
+ 2 - fuelgauge
+ 3 - usb type-c management block.
+
+ '#interrupt-cells':
+ const: 1
+
haptic:
type: object
additionalProperties: false
@@ -118,8 +130,10 @@ examples:
pmic@66 {
compatible = "maxim,max77705";
reg = <0x66>;
+ #interrupt-cells = <1>;
interrupt-parent = <&pm8998_gpios>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-controller;
pinctrl-0 = <&chg_int_default>;
pinctrl-names = "default";
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v5 3/3] dt-bindings: max77705: add interrupt-controller property
2025-09-26 17:13 ` [PATCH v5 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
@ 2025-10-02 2:55 ` Rob Herring (Arm)
2025-10-09 12:53 ` Lee Jones
1 sibling, 0 replies; 8+ messages in thread
From: Rob Herring (Arm) @ 2025-10-02 2:55 UTC (permalink / raw)
To: Dzmitry Sankouski
Cc: Chanwoo Choi, Krzysztof Kozlowski, linux-kernel, linux-arm-msm,
devicetree, Konrad Dybcio, Lee Jones, Bjorn Andersson,
Krzysztof Kozlowski, Konrad Dybcio, Conor Dooley
On Fri, 26 Sep 2025 20:13:28 +0300, Dzmitry Sankouski wrote:
> Add interrupt-controller property, because max77705 has dedicated interrupt
> source register to determine which sub device triggered an interrupt.
>
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> ---
> Changes for v5:
> - group interrupt properties together, including #interrupt-cells
>
> Changes in v4:
> - fix commit message: node -> property
> - fix commit message: minor reword and punctuation
> ---
> Documentation/devicetree/bindings/mfd/maxim,max77705.yaml | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v5 3/3] dt-bindings: max77705: add interrupt-controller property
2025-09-26 17:13 ` [PATCH v5 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
2025-10-02 2:55 ` Rob Herring (Arm)
@ 2025-10-09 12:53 ` Lee Jones
1 sibling, 0 replies; 8+ messages in thread
From: Lee Jones @ 2025-10-09 12:53 UTC (permalink / raw)
To: Dzmitry Sankouski
Cc: Chanwoo Choi, Krzysztof Kozlowski, Rob Herring, Conor Dooley,
Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski, linux-kernel,
devicetree, linux-arm-msm, Konrad Dybcio
On Fri, 26 Sep 2025, Dzmitry Sankouski wrote:
> Add interrupt-controller property, because max77705 has dedicated interrupt
> source register to determine which sub device triggered an interrupt.
>
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> ---
> Changes for v5:
> - group interrupt properties together, including #interrupt-cells
>
> Changes in v4:
> - fix commit message: node -> property
> - fix commit message: minor reword and punctuation
> ---
> Documentation/devicetree/bindings/mfd/maxim,max77705.yaml | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
Applied, thanks
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v5 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts
2025-09-26 17:13 ` [PATCH v5 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts Dzmitry Sankouski
@ 2025-10-22 16:41 ` Konrad Dybcio
0 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2025-10-22 16:41 UTC (permalink / raw)
To: Dzmitry Sankouski, Chanwoo Choi, Krzysztof Kozlowski, Lee Jones,
Rob Herring, Conor Dooley, Bjorn Andersson, Konrad Dybcio,
Krzysztof Kozlowski
Cc: linux-kernel, devicetree, linux-arm-msm, Dmitry Baryshkov
On 9/26/25 7:13 PM, Dzmitry Sankouski wrote:
> Since max77705 has a register, which indicates interrupt source, it acts
> as an interrupt controller.
>
> Direct MAX77705's subdevices to use the IC's internal interrupt
> controller, instead of listening to every interrupt fired by the
> chip towards the host device.
>
> Fixes: 7a88a931d095 ("arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC")
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: (subset) [PATCH v5 0/3] starqltechn: fix max77705 device irqs
2025-09-26 17:13 [PATCH v5 0/3] starqltechn: fix max77705 device irqs Dzmitry Sankouski
` (2 preceding siblings ...)
2025-09-26 17:13 ` [PATCH v5 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
@ 2025-10-27 22:36 ` Bjorn Andersson
3 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2025-10-27 22:36 UTC (permalink / raw)
To: Chanwoo Choi, Krzysztof Kozlowski, Lee Jones, Rob Herring,
Conor Dooley, Konrad Dybcio, Krzysztof Kozlowski,
Dzmitry Sankouski
Cc: linux-kernel, devicetree, linux-arm-msm, Konrad Dybcio,
Dmitry Baryshkov
On Fri, 26 Sep 2025 20:13:25 +0300, Dzmitry Sankouski wrote:
> For max77705 charger and fuelgauge subdevice, use max77705 interrupt
> controller.
>
>
Applied, thanks!
[1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells
commit: 4133486382364f60ea7e4f2c9070555689d9606e
[2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts
commit: 4372b15d89e253e40816f0bde100890cddd25a81
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-10-27 22:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-26 17:13 [PATCH v5 0/3] starqltechn: fix max77705 device irqs Dzmitry Sankouski
2025-09-26 17:13 ` [PATCH v5 1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells Dzmitry Sankouski
2025-09-26 17:13 ` [PATCH v5 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts Dzmitry Sankouski
2025-10-22 16:41 ` Konrad Dybcio
2025-09-26 17:13 ` [PATCH v5 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
2025-10-02 2:55 ` Rob Herring (Arm)
2025-10-09 12:53 ` Lee Jones
2025-10-27 22:36 ` (subset) [PATCH v5 0/3] starqltechn: fix max77705 device irqs Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).