From 6a22e59ebbcfe53bf81a549faf6b2c6fd0bfad87 Mon Sep 17 00:00:00 2001 From: Shyam Kumar Thella Date: Wed, 23 Dec 2020 11:30:01 +0530 Subject: [PATCH] ARM: dts: msm: Change DT configuration for PMIC GPIO device Couple of changes required to match with GPIO driver on msm-5.4 kernel 1. Compatible string should contain PMIC name 2. Need not explicitly list down all the PMIC GPIOs. It is provided as data in match table within the driver. Change-Id: I1b661cffee893779d9233b76bf5cb15fbb19ebc3 --- qcom/pm2250.dtsi | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/qcom/pm2250.dtsi b/qcom/pm2250.dtsi index aa231533cbf6..e22694c8414d 100644 --- a/qcom/pm2250.dtsi +++ b/qcom/pm2250.dtsi @@ -157,27 +157,12 @@ pm2250_gpios: pinctrl@c000 { - compatible = "qcom,spmi-gpio"; + compatible = "qcom,pm2250-gpio"; reg = <0xc000>; - interrupts = <0x0 0xc0 0 IRQ_TYPE_NONE>, - <0x0 0xc1 0 IRQ_TYPE_NONE>, - <0x0 0xc2 0 IRQ_TYPE_NONE>, - <0x0 0xc3 0 IRQ_TYPE_NONE>, - <0x0 0xc4 0 IRQ_TYPE_NONE>, - <0x0 0xc5 0 IRQ_TYPE_NONE>, - <0x0 0xc6 0 IRQ_TYPE_NONE>, - <0x0 0xc7 0 IRQ_TYPE_NONE>, - <0x0 0xc8 0 IRQ_TYPE_NONE>, - <0x0 0xc9 0 IRQ_TYPE_NONE>; - - interrupt-names = "pm2250_gpio1", "pm2250_gpio2", - "pm2250_gpio3", "pm2250_gpio4", - "pm2250_gpio5", "pm2250_gpio6", - "pm2250_gpio7", "pm2250_gpio8", - "pm2250_gpio9", "pm2250_gpio10"; - gpio-controller; #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; }; pm2250_rtc: qcom,pm2250_rtc {