* [PATCH v4 1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells
2025-09-25 19:38 [PATCH v4 0/3] starqltechn: fix max77705 device irqs Dzmitry Sankouski
@ 2025-09-25 19:38 ` Dzmitry Sankouski
2025-09-25 19:38 ` [PATCH v4 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts Dzmitry Sankouski
2025-09-25 19:38 ` [PATCH v4 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
2 siblings, 0 replies; 7+ messages in thread
From: Dzmitry Sankouski @ 2025-09-25 19:38 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] 7+ messages in thread* [PATCH v4 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts
2025-09-25 19:38 [PATCH v4 0/3] starqltechn: fix max77705 device irqs Dzmitry Sankouski
2025-09-25 19:38 ` [PATCH v4 1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells Dzmitry Sankouski
@ 2025-09-25 19:38 ` Dzmitry Sankouski
2025-09-25 20:49 ` Dmitry Baryshkov
2025-09-25 19:38 ` [PATCH v4 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
2 siblings, 1 reply; 7+ messages in thread
From: Dzmitry Sankouski @ 2025-09-25 19:38 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
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")
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
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..41c93c801703 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
@@ -599,13 +599,15 @@ &uart9 {
&i2c14 {
status = "okay";
- pmic@66 {
+ max77705: pmic@66 {
compatible = "maxim,max77705";
reg = <0x66>;
interrupt-parent = <&pm8998_gpios>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-controller;
pinctrl-0 = <&pmic_int_default>;
pinctrl-names = "default";
+ #interrupt-cells = <1>;
leds {
compatible = "maxim,max77705-rgb";
@@ -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] 7+ messages in thread* Re: [PATCH v4 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts
2025-09-25 19:38 ` [PATCH v4 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts Dzmitry Sankouski
@ 2025-09-25 20:49 ` Dmitry Baryshkov
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2025-09-25 20:49 UTC (permalink / raw)
To: Dzmitry Sankouski
Cc: Chanwoo Choi, Krzysztof Kozlowski, Lee Jones, Rob Herring,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski,
linux-kernel, devicetree, linux-arm-msm, Konrad Dybcio
On Thu, Sep 25, 2025 at 10:38:38PM +0300, 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")
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> ---
> 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..41c93c801703 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
> @@ -599,13 +599,15 @@ &uart9 {
> &i2c14 {
> status = "okay";
>
> - pmic@66 {
> + max77705: pmic@66 {
> compatible = "maxim,max77705";
> reg = <0x66>;
> interrupt-parent = <&pm8998_gpios>;
> interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
> + interrupt-controller;
> pinctrl-0 = <&pmic_int_default>;
> pinctrl-names = "default";
> + #interrupt-cells = <1>;
Nit: if the series get resent please group interrupt-related properties
together.
Anyway,
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>
> leds {
> compatible = "maxim,max77705-rgb";
> @@ -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
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v4 3/3] dt-bindings: max77705: add interrupt-controller property
2025-09-25 19:38 [PATCH v4 0/3] starqltechn: fix max77705 device irqs Dzmitry Sankouski
2025-09-25 19:38 ` [PATCH v4 1/3] arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells Dzmitry Sankouski
2025-09-25 19:38 ` [PATCH v4 2/3] arch: arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts Dzmitry Sankouski
@ 2025-09-25 19:38 ` Dzmitry Sankouski
2025-09-25 20:50 ` Dmitry Baryshkov
2025-10-01 9:59 ` Lee Jones
2 siblings, 2 replies; 7+ messages in thread
From: Dzmitry Sankouski @ 2025-09-25 19:38 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 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..d265c8213a08 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
@@ -120,8 +132,10 @@ examples:
reg = <0x66>;
interrupt-parent = <&pm8998_gpios>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-controller;
pinctrl-0 = <&chg_int_default>;
pinctrl-names = "default";
+ #interrupt-cells = <1>;
leds {
compatible = "maxim,max77705-rgb";
--
2.39.5
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v4 3/3] dt-bindings: max77705: add interrupt-controller property
2025-09-25 19:38 ` [PATCH v4 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
@ 2025-09-25 20:50 ` Dmitry Baryshkov
2025-10-01 9:59 ` Lee Jones
1 sibling, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2025-09-25 20:50 UTC (permalink / raw)
To: Dzmitry Sankouski
Cc: Chanwoo Choi, Krzysztof Kozlowski, Lee Jones, Rob Herring,
Conor Dooley, Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski,
linux-kernel, devicetree, linux-arm-msm, Konrad Dybcio
On Thu, Sep 25, 2025 at 10:38:39PM +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 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..d265c8213a08 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
> @@ -120,8 +132,10 @@ examples:
> reg = <0x66>;
> interrupt-parent = <&pm8998_gpios>;
> interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
> + interrupt-controller;
> pinctrl-0 = <&chg_int_default>;
> pinctrl-names = "default";
> + #interrupt-cells = <1>;
The same: please group them together.
>
> leds {
> compatible = "maxim,max77705-rgb";
>
> --
> 2.39.5
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v4 3/3] dt-bindings: max77705: add interrupt-controller property
2025-09-25 19:38 ` [PATCH v4 3/3] dt-bindings: max77705: add interrupt-controller property Dzmitry Sankouski
2025-09-25 20:50 ` Dmitry Baryshkov
@ 2025-10-01 9:59 ` Lee Jones
1 sibling, 0 replies; 7+ messages in thread
From: Lee Jones @ 2025-10-01 9:59 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 Thu, 25 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 in v4:
> - fix commit message: node -> property
> - fix commit message: minor reword and punctuation
Please also fix the subject line. Format should be:
dt-bindings: mfd: <device>: Subject line starting with an uppercase char
> ---
> 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..d265c8213a08 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
> @@ -120,8 +132,10 @@ examples:
> reg = <0x66>;
> interrupt-parent = <&pm8998_gpios>;
> interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
> + interrupt-controller;
> pinctrl-0 = <&chg_int_default>;
> pinctrl-names = "default";
> + #interrupt-cells = <1>;
>
> leds {
> compatible = "maxim,max77705-rgb";
>
> --
> 2.39.5
>
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 7+ messages in thread