diff mbox series

[v5,12/18] arm64: dts: qcom: pms405: add gpios

Message ID 20181109094417.12109-13-vkoul@kernel.org
State New
Headers show
Series arm64: dts: qcom: qcs404: Add Device tree nodes | expand

Commit Message

Vinod Koul Nov. 9, 2018, 9:44 a.m. UTC
Add the GPIOs present on PMS405 chip.

Signed-off-by: Vinod Koul <vkoul@kernel.org>

---
 arch/arm64/boot/dts/qcom/pms405.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

-- 
2.14.4

Comments

Bjorn Andersson Nov. 17, 2018, 11:12 p.m. UTC | #1
On Fri 09 Nov 01:44 PST 2018, Vinod Koul wrote:

> Add the GPIOs present on PMS405 chip.

> 

> Signed-off-by: Vinod Koul <vkoul@kernel.org>


Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>


Regards,
Bjorn

> ---

>  arch/arm64/boot/dts/qcom/pms405.dtsi | 19 +++++++++++++++++++

>  1 file changed, 19 insertions(+)

> 

> diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi

> index 2b275bbdafa3..8e5a8573430e 100644

> --- a/arch/arm64/boot/dts/qcom/pms405.dtsi

> +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi

> @@ -10,6 +10,25 @@

>  		#address-cells = <1>;

>  		#size-cells = <0>;

>  

> +		pms405_gpios: gpio@c000 {

> +			compatible = "qcom,pms405-gpio";

> +			reg = <0xc000>;

> +			gpio-controller;

> +			#gpio-cells = <2>;

> +			interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,

> +				<0 0xc1 0 IRQ_TYPE_NONE>,

> +				<0 0xc2 0 IRQ_TYPE_NONE>,

> +				<0 0xc3 0 IRQ_TYPE_NONE>,

> +				<0 0xc4 0 IRQ_TYPE_NONE>,

> +				<0 0xc5 0 IRQ_TYPE_NONE>,

> +				<0 0xc6 0 IRQ_TYPE_NONE>,

> +				<0 0xc7 0 IRQ_TYPE_NONE>,

> +				<0 0xc8 0 IRQ_TYPE_NONE>,

> +				<0 0xc9 0 IRQ_TYPE_NONE>,

> +				<0 0xca 0 IRQ_TYPE_NONE>,

> +				<0 0xcb 0 IRQ_TYPE_NONE>;

> +		};

> +

>  		rtc@6000 {

>  			compatible = "qcom,pm8941-rtc";

>  			reg = <0x6000>;

> -- 

> 2.14.4

>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi
index 2b275bbdafa3..8e5a8573430e 100644
--- a/arch/arm64/boot/dts/qcom/pms405.dtsi
+++ b/arch/arm64/boot/dts/qcom/pms405.dtsi
@@ -10,6 +10,25 @@ 
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		pms405_gpios: gpio@c000 {
+			compatible = "qcom,pms405-gpio";
+			reg = <0xc000>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
+				<0 0xc1 0 IRQ_TYPE_NONE>,
+				<0 0xc2 0 IRQ_TYPE_NONE>,
+				<0 0xc3 0 IRQ_TYPE_NONE>,
+				<0 0xc4 0 IRQ_TYPE_NONE>,
+				<0 0xc5 0 IRQ_TYPE_NONE>,
+				<0 0xc6 0 IRQ_TYPE_NONE>,
+				<0 0xc7 0 IRQ_TYPE_NONE>,
+				<0 0xc8 0 IRQ_TYPE_NONE>,
+				<0 0xc9 0 IRQ_TYPE_NONE>,
+				<0 0xca 0 IRQ_TYPE_NONE>,
+				<0 0xcb 0 IRQ_TYPE_NONE>;
+		};
+
 		rtc@6000 {
 			compatible = "qcom,pm8941-rtc";
 			reg = <0x6000>;