[PATCH 4/6] MIPS: mobileye: eyeq5: add two GPIO bank nodes

Théo Lebrun posted 6 patches 5 months, 1 week ago
[PATCH 4/6] MIPS: mobileye: eyeq5: add two GPIO bank nodes
Posted by Théo Lebrun 5 months, 1 week ago
This platform uses the same GPIO controller as Nomadik. It however has
its own pinconf & pinmux controller. EyeQ5 is the first platform to use
gpio-nomadik independently from pinctrl-nomadik.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
---
 arch/mips/boot/dts/mobileye/eyeq5.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mobileye/eyeq5.dtsi
index b9b6f2684e675020d0377147a04d7ad5bfc272c1..b8df7906231d065032b12d0ffdc93a75c8f3e822 100644
--- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi
+++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi
@@ -253,6 +253,36 @@ timer {
 				clocks = <&olb EQ5C_CPU_CORE0>;
 			};
 		};
+
+		gpio0: gpio@1400000 {
+			compatible = "mobileye,eyeq5-gpio";
+			reg = <0x0 0x1400000 0x0 0x1000>;
+			gpio-bank = <0>;
+			ngpios = <29>;
+			interrupt-parent = <&gic>;
+			interrupts = <GIC_SHARED 14 IRQ_TYPE_LEVEL_HIGH>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&olb 0 0 29>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			resets = <&olb 0 26>;
+		};
+
+		gpio1: gpio@1500000 {
+			compatible = "mobileye,eyeq5-gpio";
+			reg = <0x0 0x1500000 0x0 0x1000>;
+			gpio-bank = <1>;
+			ngpios = <23>;
+			interrupt-parent = <&gic>;
+			interrupts = <GIC_SHARED 14 IRQ_TYPE_LEVEL_HIGH>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			gpio-ranges = <&olb 0 29 23>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			resets = <&olb 0 26>;
+		};
 	};
 };
 

-- 
2.50.0

Re: [PATCH 4/6] MIPS: mobileye: eyeq5: add two GPIO bank nodes
Posted by Gregory CLEMENT 5 months ago
Théo Lebrun <theo.lebrun@bootlin.com> writes:

> This platform uses the same GPIO controller as Nomadik. It however has
> its own pinconf & pinmux controller. EyeQ5 is the first platform to use
> gpio-nomadik independently from pinctrl-nomadik.
>

Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>

Thanks,

Gregory

> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
> ---
>  arch/mips/boot/dts/mobileye/eyeq5.dtsi | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>
> diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mobileye/eyeq5.dtsi
> index b9b6f2684e675020d0377147a04d7ad5bfc272c1..b8df7906231d065032b12d0ffdc93a75c8f3e822 100644
> --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi
> +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi
> @@ -253,6 +253,36 @@ timer {
>  				clocks = <&olb EQ5C_CPU_CORE0>;
>  			};
>  		};
> +
> +		gpio0: gpio@1400000 {
> +			compatible = "mobileye,eyeq5-gpio";
> +			reg = <0x0 0x1400000 0x0 0x1000>;
> +			gpio-bank = <0>;
> +			ngpios = <29>;
> +			interrupt-parent = <&gic>;
> +			interrupts = <GIC_SHARED 14 IRQ_TYPE_LEVEL_HIGH>;
> +			gpio-controller;
> +			#gpio-cells = <2>;
> +			gpio-ranges = <&olb 0 0 29>;
> +			interrupt-controller;
> +			#interrupt-cells = <2>;
> +			resets = <&olb 0 26>;
> +		};
> +
> +		gpio1: gpio@1500000 {
> +			compatible = "mobileye,eyeq5-gpio";
> +			reg = <0x0 0x1500000 0x0 0x1000>;
> +			gpio-bank = <1>;
> +			ngpios = <23>;
> +			interrupt-parent = <&gic>;
> +			interrupts = <GIC_SHARED 14 IRQ_TYPE_LEVEL_HIGH>;
> +			gpio-controller;
> +			#gpio-cells = <2>;
> +			gpio-ranges = <&olb 0 29 23>;
> +			interrupt-controller;
> +			#interrupt-cells = <2>;
> +			resets = <&olb 0 26>;
> +		};
>  	};
>  };
>  
>
> -- 
> 2.50.0
>

-- 
Grégory CLEMENT, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com