Skip to contentSkip to conversation

dt-bindings: pfuze100.yaml: Add an entry for interrupts

PATCH Superseded Fabio Estevam 2 participants 6 messages May 27, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/3 dt-bindings: pfuze100.yaml: Add an entry for interrupts

From: Fabio Estevam <[email protected]>

The PFUZE100 PMIC has an interrupt pin that can be connected to the host SoC. Describe it in the dt-bindings to avoid warnings like:

imx6q-zii-rdu2.dtb: pmic@8: 'interrupt-parent', 'interrupts' do not match any of the regexes: 'pinctrl-[0-9]+' From schema: Documentation/devicetree/bindings/regulator/pfuze100.yaml

---
 Documentation/devicetree/bindings/regulator/pfuze100.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/regulator/pfuze100.yaml +3 -0
index 67a30b23b92c..e384e4953f0a 100644
@@ -36,6 +36,9 @@ properties:
   reg:
     maxItems: 1
 
+  interrupts:
+    maxItems: 1
+
   fsl,pfuze-support-disable-sw:
     $ref: /schemas/types.yaml#/definitions/flag
     description: |
Signature · 1 line
2.34.1
author reviewer
#1 lore raw

PATCH 2/3 ARM: dts: imx: Use 'pmic' as node name

From: Fabio Estevam <[email protected]>

Devicetree node names should be generic. Use 'pmic' as node name to avoid devicetree check warning from pfuze100.yaml.

---
 arch/arm/boot/dts/imx6dl-riotboard.dts         | 2 +-
 arch/arm/boot/dts/imx6q-dmo-edmqmx6.dts        | 2 +-
 arch/arm/boot/dts/imx6q-novena.dts             | 2 +-
 arch/arm/boot/dts/imx6q-pistachio.dts          | 2 +-
 arch/arm/boot/dts/imx6qdl-gw54xx.dtsi          | 2 +-
 arch/arm/boot/dts/imx6qdl-sabreauto.dtsi       | 2 +-
 arch/arm/boot/dts/imx6qdl-sabresd.dtsi         | 2 +-
 arch/arm/boot/dts/imx6qdl-wandboard-revd1.dtsi | 2 +-
 arch/arm/boot/dts/imx6sl-evk.dts               | 2 +-
 arch/arm/boot/dts/imx6sx-sdb-reva.dts          | 2 +-
 arch/arm/boot/dts/imx6ul-pico.dtsi             | 2 +-
 arch/arm/boot/dts/imx7d-nitrogen7.dts          | 2 +-
 arch/arm/boot/dts/imx7d-sdb.dts                | 2 +-
 arch/arm/boot/dts/imx7s-warp.dts               | 2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)
arch/arm/boot/dts/imx6dl-riotboard.dts +1 -1
index 24c7f535f63b..0366d1037ef4 100644
@@ -177,7 +177,7 @@ codec: sgtl5000@a {
 		VDDIO-supply = <&reg_3p3v>;
 	};
 
-	pmic: pf0100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 		interrupt-parent = <&gpio5>;
arch/arm/boot/dts/imx6q-dmo-edmqmx6.dts +1 -1
index 9591848cbd37..3815cb660ff7 100644
@@ -134,7 +134,7 @@ &pinctrl_stmpe2
 		     &pinctrl_pfuze>;
 	status = "okay";
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 		interrupt-parent = <&gpio3>;
arch/arm/boot/dts/imx6q-novena.dts +1 -1
index ee8c0bd3ecfd..a7d5a68110fc 100644
@@ -308,7 +308,7 @@ &i2c2 {
 	pinctrl-0 = <&pinctrl_i2c2_novena>;
 	status = "okay";
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx6q-pistachio.dts +1 -1
index bad8d831e64e..109b46a22b5e 100644
@@ -208,7 +208,7 @@ &i2c2 {
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx6qdl-gw54xx.dtsi +1 -1
index f50a16bec67c..864c53d149a6 100644
@@ -400,7 +400,7 @@ &i2c2 {
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +1 -1
index f79caa36f3d2..68e97180d33e 100644
@@ -336,7 +336,7 @@ &i2c2 {
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx6qdl-sabresd.dtsi +1 -1
index 53b080c97f2d..4fe58764b929 100644
@@ -338,7 +338,7 @@ ov5640_to_mipi_csi2: endpoint {
 		};
 	};
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx6qdl-wandboard-revd1.dtsi +1 -1
index bf86b639fdac..9b8c9c23ab54 100644
@@ -27,7 +27,7 @@ &i2c3 {
 	pinctrl-0 = <&pinctrl_i2c3>;
 	status = "okay";
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx6sl-evk.dts +1 -1
index dc5d596c18db..239bc6dfc584 100644
@@ -160,7 +160,7 @@ &i2c1 {
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx6sx-sdb-reva.dts +1 -1
index 7dda42553f4b..48f19dede467 100644
@@ -15,7 +15,7 @@ &i2c1 {
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
 
-	pmic: pfuze100@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze100";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx6ul-pico.dtsi +1 -1
index 357ffb2f5ad6..4ffe99ed55ca 100644
@@ -131,7 +131,7 @@ &i2c1 {
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
 
-	pmic: pfuze3000@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze3000";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx7d-nitrogen7.dts +1 -1
index a31de900139d..9c6476bda4a0 100644
@@ -159,7 +159,7 @@ &i2c1 {
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
 
-	pmic: pfuze3000@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze3000";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx7d-sdb.dts +1 -1
index c9f6137e73e7..cc9b8570ed4d 100644
@@ -275,7 +275,7 @@ &i2c1 {
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
 
-	pmic: pfuze3000@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze3000";
 		reg = <0x08>;
 
arch/arm/boot/dts/imx7s-warp.dts +1 -1
index e8734d218b9d..ba7231b364bb 100644
@@ -94,7 +94,7 @@ &i2c1 {
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
 
-	pmic: pfuze3000@8 {
+	pmic: pmic@8 {
 		compatible = "fsl,pfuze3000";
 		reg = <0x08>;
 
Signature · 1 line
2.34.1
author reviewer
#2 lore raw

PATCH 3/3 ARM: dts: imx6ul-ccimx6ulsom: Remove unexisting PMIC supply

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

There is no "vcoin" supply output provided by the PFUZE100 PMIC.

Remove it to fix the following DT check warning:

imx6ul-ccimx6ulsbcexpress.dtb: pmic@8: regulators: 'vcoin' does not match any of the regexes:

---
 arch/arm/boot/dts/imx6ul-ccimx6ulsom.dtsi | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/boot/dts/imx6ul-ccimx6ulsom.dtsi +0 -5
index b5781c3656d1..fe82f0b6bbda 100644
@@ -157,11 +157,6 @@ ldo4_ext: vldo4 {
 				regulator-min-microvolt = <1800000>;
 				regulator-max-microvolt = <3300000>;
 			};
-
-			vcoin_chg: vcoin {
-				regulator-min-microvolt = <2500000>;
-				regulator-max-microvolt = <3300000>;
-			};
 		};
 	};
 };
Signature · 1 line
2.34.1
Reviewed-by on v1 1/3
#5 lore raw
In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

The PFUZE100 PMIC has an interrupt pin that can be connected to the host SoC. Describe it in the dt-bindings to avoid warnings like:

imx6q-zii-rdu2.dtb: pmic@8: 'interrupt-parent', 'interrupts' do not match any of the regexes: 'pinctrl-[0-9]+' From schema: Documentation/devicetree/bindings/regulator/pfuze100.yaml

Thanks,
Conor.

#3 lore raw

Re: [PATCH 3/3] ARM: dts: imx6ul-ccimx6ulsom: Remove unexisting PMIC supply

In reply to Fabio Estevam

Hey Fabio,

Quoted 7 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

There is no "vcoin" supply output provided by the PFUZE100 PMIC.

Remove it to fix the following DT check warning:

imx6ul-ccimx6ulsbcexpress.dtb: pmic@8: regulators: 'vcoin' does not match any of the regexes:

Dumb question, did you spot this only because of dtbs_check, or is this something you know to be true?
I had the datasheet open to check the interrupt thing, so I figured I may as well look for coin cell chargers too.
Seemly there is a "licell" pin that is an input/output. Is this what the vcoin_chg was referring to, or is that something else entirely?

I know nothing about the hardware at all, so was just something that piqued my curiosity.

Thanks,
Conor.

Quoted 25 lines
---
 arch/arm/boot/dts/imx6ul-ccimx6ulsom.dtsi | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/boot/dts/imx6ul-ccimx6ulsom.dtsi +0 -5
index b5781c3656d1..fe82f0b6bbda 100644
@@ -157,11 +157,6 @@ ldo4_ext: vldo4 {
 				regulator-min-microvolt = <1800000>;
 				regulator-max-microvolt = <3300000>;
 			};
-
-			vcoin_chg: vcoin {
-				regulator-min-microvolt = <2500000>;
-				regulator-max-microvolt = <3300000>;
-			};
 		};
 	};
 };
Signature · 1 line
2.34.1
author reviewer
#4 lore raw

Re: [PATCH 3/3] ARM: dts: imx6ul-ccimx6ulsom: Remove unexisting PMIC supply

Hi Conor,

Quoted 9 lines · Conor Dooley

Dumb question, did you spot this only because of dtbs_check, or is this something you know to be true?
I had the datasheet open to check the interrupt thing, so I figured I may as well look for coin cell chargers too.
Seemly there is a "licell" pin that is an input/output. Is this what the vcoin_chg was referring to, or is that something else entirely?

I know nothing about the hardware at all, so was just something that piqued my curiosity.

Thanks for your review.

I have double-checked it and the correct fix is to change it from "vcoin" to "coin".

I will send a v2 soon.

Thanks