diff mbox series

[3/3] ARM: dts: qcom: pm8226: Add node for the MPP

Message ID 20220124171538.18088-3-rayyan@ansari.sh (mailing list archive)
State Accepted
Headers show
Series [1/3] dt-bindings: pinctrl: qcom,pmic-mpp: Document PM8226 compatible | expand

Commit Message

Rayyan Ansari Jan. 24, 2022, 5:15 p.m. UTC
The PM8226 provides 8 Multi-Purpose Pins (or MPPs for short).
Add a node to support them.

Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
---
 arch/arm/boot/dts/qcom-pm8226.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Bjorn Andersson Feb. 1, 2022, 5:19 a.m. UTC | #1
On Mon, 24 Jan 2022 17:15:38 +0000, Rayyan Ansari wrote:
> The PM8226 provides 8 Multi-Purpose Pins (or MPPs for short).
> Add a node to support them.
> 
> 

Applied, thanks!

[3/3] ARM: dts: qcom: pm8226: Add node for the MPP
      commit: 5fbd593756be9a0ee710b15e14d2797bfbca108f

Best regards,
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm8226.dtsi
index dddb5150dfd7..9db3ea28b321 100644
--- a/arch/arm/boot/dts/qcom-pm8226.dtsi
+++ b/arch/arm/boot/dts/qcom-pm8226.dtsi
@@ -16,6 +16,16 @@  pwrkey@800 {
 			debounce = <15625>;
 			bias-pull-up;
 		};
+
+		pm8226_mpps: mpps@a000 {
+			compatible = "qcom,pm8226-mpp", "qcom,spmi-mpp";
+			reg = <0xa000>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&pm8226_mpps 0 0 8>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
 	};
 
 	pm8226_1: pm8226@1 {