[v3,3/3] arm64: dts: meson: g12a: add the GPIO interrupt controller
diff mbox series

Message ID 20190608190411.14018-4-martin.blumenstingl@googlemail.com
State Accepted
Headers show
Series
  • meson-gpio-irqc: Add support for the Meson-G12A SoC
Related show

Commit Message

Martin Blumenstingl June 8, 2019, 7:04 p.m. UTC
GPIO interrupts are used for the external Ethernet RGMII PHY interrupt
line.
Add the GPIO interrupt controller so we can describe that connection in
the dts files.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Neil Armstrong June 11, 2019, 12:39 p.m. UTC | #1
On 08/06/2019 21:04, Martin Blumenstingl wrote:
> GPIO interrupts are used for the external Ethernet RGMII PHY interrupt
> line.
> Add the GPIO interrupt controller so we can describe that connection in
> the dts files.
> 
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
>  arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
> index 6aec4cf87350..50fcdb3e55bb 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
> @@ -2222,6 +2222,15 @@
>  				#reset-cells = <1>;
>  			};
>  
> +			gpio_intc: interrupt-controller@f080 {
> +				compatible = "amlogic,meson-g12a-gpio-intc",
> +					     "amlogic,meson-gpio-intc";
> +				reg = <0x0 0xf080 0x0 0x10>;
> +				interrupt-controller;
> +				#interrupt-cells = <2>;
> +				amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
> +			};
> +
>  			pwm_ef: pwm@19000 {
>  				compatible = "amlogic,meson-g12a-ee-pwm";
>  				reg = <0x0 0x19000 0x0 0x20>;
> 

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Kevin Hilman June 11, 2019, 11:11 p.m. UTC | #2
Neil Armstrong <narmstrong@baylibre.com> writes:

> On 08/06/2019 21:04, Martin Blumenstingl wrote:
>> GPIO interrupts are used for the external Ethernet RGMII PHY interrupt
>> line.
>> Add the GPIO interrupt controller so we can describe that connection in
>> the dts files.
>> 
>> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
>> ---
>>  arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
>>  1 file changed, 9 insertions(+)
>> 
>> diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
>> index 6aec4cf87350..50fcdb3e55bb 100644
>> --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
>> +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
>> @@ -2222,6 +2222,15 @@
>>  				#reset-cells = <1>;
>>  			};
>>  
>> +			gpio_intc: interrupt-controller@f080 {
>> +				compatible = "amlogic,meson-g12a-gpio-intc",
>> +					     "amlogic,meson-gpio-intc";
>> +				reg = <0x0 0xf080 0x0 0x10>;
>> +				interrupt-controller;
>> +				#interrupt-cells = <2>;
>> +				amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
>> +			};
>> +
>>  			pwm_ef: pwm@19000 {
>>  				compatible = "amlogic,meson-g12a-ee-pwm";
>>  				reg = <0x0 0x19000 0x0 0x20>;
>> 
>
> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>

Queuing for v5.3,

Kevin

Patch
diff mbox series

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
index 6aec4cf87350..50fcdb3e55bb 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi
@@ -2222,6 +2222,15 @@ 
 				#reset-cells = <1>;
 			};
 
+			gpio_intc: interrupt-controller@f080 {
+				compatible = "amlogic,meson-g12a-gpio-intc",
+					     "amlogic,meson-gpio-intc";
+				reg = <0x0 0xf080 0x0 0x10>;
+				interrupt-controller;
+				#interrupt-cells = <2>;
+				amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
+			};
+
 			pwm_ef: pwm@19000 {
 				compatible = "amlogic,meson-g12a-ee-pwm";
 				reg = <0x0 0x19000 0x0 0x20>;