* [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: linux-kernel, linux-arm-kernel, Martin Blumenstingl
This series adds GPIO interrupt controller support for Meson-G12A SoCs.
Although the total number of pins is the same as the Meson-AXG SoC, the
GPIO banks and IRQ numbers are different. Add a new compatible string
to avoid confusion when using it.
I am re-sending this update because v2 looked good in my opinion (Xingyu
Chen did good work here) but it never made it into mainline.
Changes since v1 at [1]:
- share the device data with Meson-AXG
Changes since v2 at [2]:
- dropped "Change-Id" from patch #2
- added .dts patch #3 - this should go through Kevin's linux-amlogic
tree. if required I can re-send it in a separate series
[1] https://lore.kernel.org/lkml/20181203061324.36248-1-xingyu.chen@amlogic.com
[2] https://lore.kernel.org/patchwork/cover/1021232/
Martin Blumenstingl (1):
arm64: dts: meson: g12a: add the GPIO interrupt controller
Xingyu Chen (2):
dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
irqchip/meson-gpio: Add support for Meson-G12A SoC
.../interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
drivers/irqchip/irq-meson-gpio.c | 1 +
3 files changed, 11 insertions(+)
--
2.21.0
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, linux-kernel, linux-arm-kernel
This series adds GPIO interrupt controller support for Meson-G12A SoCs.
Although the total number of pins is the same as the Meson-AXG SoC, the
GPIO banks and IRQ numbers are different. Add a new compatible string
to avoid confusion when using it.
I am re-sending this update because v2 looked good in my opinion (Xingyu
Chen did good work here) but it never made it into mainline.
Changes since v1 at [1]:
- share the device data with Meson-AXG
Changes since v2 at [2]:
- dropped "Change-Id" from patch #2
- added .dts patch #3 - this should go through Kevin's linux-amlogic
tree. if required I can re-send it in a separate series
[1] https://lore.kernel.org/lkml/20181203061324.36248-1-xingyu.chen@amlogic.com
[2] https://lore.kernel.org/patchwork/cover/1021232/
Martin Blumenstingl (1):
arm64: dts: meson: g12a: add the GPIO interrupt controller
Xingyu Chen (2):
dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
irqchip/meson-gpio: Add support for Meson-G12A SoC
.../interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
drivers/irqchip/irq-meson-gpio.c | 1 +
3 files changed, 11 insertions(+)
--
2.21.0
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, linux-kernel, linux-arm-kernel
This series adds GPIO interrupt controller support for Meson-G12A SoCs.
Although the total number of pins is the same as the Meson-AXG SoC, the
GPIO banks and IRQ numbers are different. Add a new compatible string
to avoid confusion when using it.
I am re-sending this update because v2 looked good in my opinion (Xingyu
Chen did good work here) but it never made it into mainline.
Changes since v1 at [1]:
- share the device data with Meson-AXG
Changes since v2 at [2]:
- dropped "Change-Id" from patch #2
- added .dts patch #3 - this should go through Kevin's linux-amlogic
tree. if required I can re-send it in a separate series
[1] https://lore.kernel.org/lkml/20181203061324.36248-1-xingyu.chen@amlogic.com
[2] https://lore.kernel.org/patchwork/cover/1021232/
Martin Blumenstingl (1):
arm64: dts: meson: g12a: add the GPIO interrupt controller
Xingyu Chen (2):
dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
irqchip/meson-gpio: Add support for Meson-G12A SoC
.../interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
drivers/irqchip/irq-meson-gpio.c | 1 +
3 files changed, 11 insertions(+)
--
2.21.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, linux-kernel, linux-arm-kernel
This series adds GPIO interrupt controller support for Meson-G12A SoCs.
Although the total number of pins is the same as the Meson-AXG SoC, the
GPIO banks and IRQ numbers are different. Add a new compatible string
to avoid confusion when using it.
I am re-sending this update because v2 looked good in my opinion (Xingyu
Chen did good work here) but it never made it into mainline.
Changes since v1 at [1]:
- share the device data with Meson-AXG
Changes since v2 at [2]:
- dropped "Change-Id" from patch #2
- added .dts patch #3 - this should go through Kevin's linux-amlogic
tree. if required I can re-send it in a separate series
[1] https://lore.kernel.org/lkml/20181203061324.36248-1-xingyu.chen@amlogic.com
[2] https://lore.kernel.org/patchwork/cover/1021232/
Martin Blumenstingl (1):
arm64: dts: meson: g12a: add the GPIO interrupt controller
Xingyu Chen (2):
dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
irqchip/meson-gpio: Add support for Meson-G12A SoC
.../interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
drivers/irqchip/irq-meson-gpio.c | 1 +
3 files changed, 11 insertions(+)
--
2.21.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH v3 1/3] dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
2019-06-08 19:04 ` Martin Blumenstingl
(?)
@ 2019-06-08 19:04 ` Martin Blumenstingl
-1 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: linux-kernel, linux-arm-kernel, Xingyu Chen, Jianxin Pan,
Martin Blumenstingl
From: Xingyu Chen <xingyu.chen@amlogic.com>
Update the dt-binding document to support new compatible string for the
GPIO interrupt controller which found in Amlogic's Meson-G12A SoC.
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
.../bindings/interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
index 1502a51548bb..7d531d5fff29 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
+++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
@@ -15,6 +15,7 @@ Required properties:
"amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or
"amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912)
"amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X)
+ "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2)
- reg : Specifies base physical address and size of the registers.
- interrupt-controller : Identifies the node as an interrupt controller.
- #interrupt-cells : Specifies the number of cells needed to encode an
--
2.21.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v3 1/3] dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, Jianxin Pan, Xingyu Chen, linux-kernel,
linux-arm-kernel
From: Xingyu Chen <xingyu.chen@amlogic.com>
Update the dt-binding document to support new compatible string for the
GPIO interrupt controller which found in Amlogic's Meson-G12A SoC.
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
.../bindings/interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
index 1502a51548bb..7d531d5fff29 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
+++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
@@ -15,6 +15,7 @@ Required properties:
"amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or
"amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912)
"amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X)
+ "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2)
- reg : Specifies base physical address and size of the registers.
- interrupt-controller : Identifies the node as an interrupt controller.
- #interrupt-cells : Specifies the number of cells needed to encode an
--
2.21.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v3 1/3] dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, Jianxin Pan, Xingyu Chen, linux-kernel,
linux-arm-kernel
From: Xingyu Chen <xingyu.chen@amlogic.com>
Update the dt-binding document to support new compatible string for the
GPIO interrupt controller which found in Amlogic's Meson-G12A SoC.
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
.../bindings/interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
index 1502a51548bb..7d531d5fff29 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
+++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt
@@ -15,6 +15,7 @@ Required properties:
"amlogic,meson-gxbb-gpio-intc" for GXBB SoCs (S905) or
"amlogic,meson-gxl-gpio-intc" for GXL SoCs (S905X, S912)
"amlogic,meson-axg-gpio-intc" for AXG SoCs (A113D, A113X)
+ "amlogic,meson-g12a-gpio-intc" for G12A SoCs (S905D2, S905X2, S905Y2)
- reg : Specifies base physical address and size of the registers.
- interrupt-controller : Identifies the node as an interrupt controller.
- #interrupt-cells : Specifies the number of cells needed to encode an
--
2.21.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v3 2/3] irqchip/meson-gpio: Add support for Meson-G12A SoC
2019-06-08 19:04 ` Martin Blumenstingl
(?)
@ 2019-06-08 19:04 ` Martin Blumenstingl
-1 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: linux-kernel, linux-arm-kernel, Xingyu Chen, Jianxin Pan,
Martin Blumenstingl
From: Xingyu Chen <xingyu.chen@amlogic.com>
The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the
other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of:
- 223:100 undefined (no interrupt)
- 99:97 3 pins on bank GPIOE
- 96:77 20 pins on bank GPIOX
- 76:61 16 pins on bank GPIOA
- 60:53 8 pins on bank GPIOC
- 52:37 16 pins on bank BOOT
- 36:28 9 pins on bank GPIOH
- 27:12 16 pins on bank GPIOZ
- 11:0 12 pins in the AO domain
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
drivers/irqchip/irq-meson-gpio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index 7b531fd075b8..7599b10ecf09 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -73,6 +73,7 @@ static const struct of_device_id meson_irq_gpio_matches[] = {
{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
{ .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params },
{ .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params },
+ { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &axg_params },
{ }
};
--
2.21.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v3 2/3] irqchip/meson-gpio: Add support for Meson-G12A SoC
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, Jianxin Pan, Xingyu Chen, linux-kernel,
linux-arm-kernel
From: Xingyu Chen <xingyu.chen@amlogic.com>
The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the
other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of:
- 223:100 undefined (no interrupt)
- 99:97 3 pins on bank GPIOE
- 96:77 20 pins on bank GPIOX
- 76:61 16 pins on bank GPIOA
- 60:53 8 pins on bank GPIOC
- 52:37 16 pins on bank BOOT
- 36:28 9 pins on bank GPIOH
- 27:12 16 pins on bank GPIOZ
- 11:0 12 pins in the AO domain
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
drivers/irqchip/irq-meson-gpio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index 7b531fd075b8..7599b10ecf09 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -73,6 +73,7 @@ static const struct of_device_id meson_irq_gpio_matches[] = {
{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
{ .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params },
{ .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params },
+ { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &axg_params },
{ }
};
--
2.21.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v3 2/3] irqchip/meson-gpio: Add support for Meson-G12A SoC
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, Jianxin Pan, Xingyu Chen, linux-kernel,
linux-arm-kernel
From: Xingyu Chen <xingyu.chen@amlogic.com>
The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the
other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of:
- 223:100 undefined (no interrupt)
- 99:97 3 pins on bank GPIOE
- 96:77 20 pins on bank GPIOX
- 76:61 16 pins on bank GPIOA
- 60:53 8 pins on bank GPIOC
- 52:37 16 pins on bank BOOT
- 36:28 9 pins on bank GPIOH
- 27:12 16 pins on bank GPIOZ
- 11:0 12 pins in the AO domain
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
drivers/irqchip/irq-meson-gpio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index 7b531fd075b8..7599b10ecf09 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -73,6 +73,7 @@ static const struct of_device_id meson_irq_gpio_matches[] = {
{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
{ .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params },
{ .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params },
+ { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &axg_params },
{ }
};
--
2.21.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v3 3/3] arm64: dts: meson: g12a: add the GPIO interrupt controller
2019-06-08 19:04 ` Martin Blumenstingl
(?)
@ 2019-06-08 19:04 ` Martin Blumenstingl
-1 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: linux-kernel, linux-arm-kernel, Martin Blumenstingl
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>;
--
2.21.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v3 3/3] arm64: dts: meson: g12a: add the GPIO interrupt controller
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, linux-kernel, linux-arm-kernel
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>;
--
2.21.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v3 3/3] arm64: dts: meson: g12a: add the GPIO interrupt controller
@ 2019-06-08 19:04 ` Martin Blumenstingl
0 siblings, 0 replies; 18+ messages in thread
From: Martin Blumenstingl @ 2019-06-08 19:04 UTC (permalink / raw)
To: devicetree, linux-amlogic, tglx, jason, marc.zyngier, robh+dt,
mark.rutland, khilman
Cc: Martin Blumenstingl, linux-kernel, linux-arm-kernel
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>;
--
2.21.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC
2019-06-08 19:04 ` Martin Blumenstingl
(?)
@ 2019-06-11 11:20 ` Marc Zyngier
-1 siblings, 0 replies; 18+ messages in thread
From: Marc Zyngier @ 2019-06-11 11:20 UTC (permalink / raw)
To: Martin Blumenstingl, devicetree, linux-amlogic, tglx, jason,
robh+dt, mark.rutland, khilman
Cc: linux-kernel, linux-arm-kernel
On 08/06/2019 20:04, Martin Blumenstingl wrote:
> This series adds GPIO interrupt controller support for Meson-G12A SoCs.
> Although the total number of pins is the same as the Meson-AXG SoC, the
> GPIO banks and IRQ numbers are different. Add a new compatible string
> to avoid confusion when using it.
>
> I am re-sending this update because v2 looked good in my opinion (Xingyu
> Chen did good work here) but it never made it into mainline.
>
>
> Changes since v1 at [1]:
> - share the device data with Meson-AXG
>
> Changes since v2 at [2]:
> - dropped "Change-Id" from patch #2
> - added .dts patch #3 - this should go through Kevin's linux-amlogic
> tree. if required I can re-send it in a separate series
>
>
> [1] https://lore.kernel.org/lkml/20181203061324.36248-1-xingyu.chen@amlogic.com
> [2] https://lore.kernel.org/patchwork/cover/1021232/
>
>
> Martin Blumenstingl (1):
> arm64: dts: meson: g12a: add the GPIO interrupt controller
>
> Xingyu Chen (2):
> dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
> irqchip/meson-gpio: Add support for Meson-G12A SoC
>
> .../interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
> arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
> drivers/irqchip/irq-meson-gpio.c | 1 +
> 3 files changed, 11 insertions(+)
>
I've taken patches 1 and 2 into the irqchip tree. Please route patch 3
though armsoc.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC
@ 2019-06-11 11:20 ` Marc Zyngier
0 siblings, 0 replies; 18+ messages in thread
From: Marc Zyngier @ 2019-06-11 11:20 UTC (permalink / raw)
To: Martin Blumenstingl, devicetree, linux-amlogic, tglx, jason,
robh+dt, mark.rutland, khilman
Cc: linux-kernel, linux-arm-kernel
On 08/06/2019 20:04, Martin Blumenstingl wrote:
> This series adds GPIO interrupt controller support for Meson-G12A SoCs.
> Although the total number of pins is the same as the Meson-AXG SoC, the
> GPIO banks and IRQ numbers are different. Add a new compatible string
> to avoid confusion when using it.
>
> I am re-sending this update because v2 looked good in my opinion (Xingyu
> Chen did good work here) but it never made it into mainline.
>
>
> Changes since v1 at [1]:
> - share the device data with Meson-AXG
>
> Changes since v2 at [2]:
> - dropped "Change-Id" from patch #2
> - added .dts patch #3 - this should go through Kevin's linux-amlogic
> tree. if required I can re-send it in a separate series
>
>
> [1] https://lore.kernel.org/lkml/20181203061324.36248-1-xingyu.chen@amlogic.com
> [2] https://lore.kernel.org/patchwork/cover/1021232/
>
>
> Martin Blumenstingl (1):
> arm64: dts: meson: g12a: add the GPIO interrupt controller
>
> Xingyu Chen (2):
> dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
> irqchip/meson-gpio: Add support for Meson-G12A SoC
>
> .../interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
> arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
> drivers/irqchip/irq-meson-gpio.c | 1 +
> 3 files changed, 11 insertions(+)
>
I've taken patches 1 and 2 into the irqchip tree. Please route patch 3
though armsoc.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC
@ 2019-06-11 11:20 ` Marc Zyngier
0 siblings, 0 replies; 18+ messages in thread
From: Marc Zyngier @ 2019-06-11 11:20 UTC (permalink / raw)
To: Martin Blumenstingl, devicetree, linux-amlogic, tglx, jason,
robh+dt, mark.rutland, khilman
Cc: linux-kernel, linux-arm-kernel
On 08/06/2019 20:04, Martin Blumenstingl wrote:
> This series adds GPIO interrupt controller support for Meson-G12A SoCs.
> Although the total number of pins is the same as the Meson-AXG SoC, the
> GPIO banks and IRQ numbers are different. Add a new compatible string
> to avoid confusion when using it.
>
> I am re-sending this update because v2 looked good in my opinion (Xingyu
> Chen did good work here) but it never made it into mainline.
>
>
> Changes since v1 at [1]:
> - share the device data with Meson-AXG
>
> Changes since v2 at [2]:
> - dropped "Change-Id" from patch #2
> - added .dts patch #3 - this should go through Kevin's linux-amlogic
> tree. if required I can re-send it in a separate series
>
>
> [1] https://lore.kernel.org/lkml/20181203061324.36248-1-xingyu.chen@amlogic.com
> [2] https://lore.kernel.org/patchwork/cover/1021232/
>
>
> Martin Blumenstingl (1):
> arm64: dts: meson: g12a: add the GPIO interrupt controller
>
> Xingyu Chen (2):
> dt-bindings: interrupt-controller: New binding for Meson-G12A SoC
> irqchip/meson-gpio: Add support for Meson-G12A SoC
>
> .../interrupt-controller/amlogic,meson-gpio-intc.txt | 1 +
> arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++
> drivers/irqchip/irq-meson-gpio.c | 1 +
> 3 files changed, 11 insertions(+)
>
I've taken patches 1 and 2 into the irqchip tree. Please route patch 3
though armsoc.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: meson: g12a: add the GPIO interrupt controller
2019-06-08 19:04 ` Martin Blumenstingl
(?)
(?)
@ 2019-06-11 12:39 ` Neil Armstrong
2019-06-11 23:11 ` Kevin Hilman
-1 siblings, 1 reply; 18+ messages in thread
From: Neil Armstrong @ 2019-06-11 12:39 UTC (permalink / raw)
To: linux-amlogic
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>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: meson: g12a: add the GPIO interrupt controller
2019-06-11 12:39 ` Neil Armstrong
@ 2019-06-11 23:11 ` Kevin Hilman
0 siblings, 0 replies; 18+ messages in thread
From: Kevin Hilman @ 2019-06-11 23:11 UTC (permalink / raw)
To: Neil Armstrong, linux-amlogic
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
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2019-06-11 23:12 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-08 19:04 [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-08 19:04 ` [PATCH v3 1/3] dt-bindings: interrupt-controller: New binding for " Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-08 19:04 ` [PATCH v3 2/3] irqchip/meson-gpio: Add support " Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-08 19:04 ` [PATCH v3 3/3] arm64: dts: meson: g12a: add the GPIO interrupt controller Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-08 19:04 ` Martin Blumenstingl
2019-06-11 12:39 ` Neil Armstrong
2019-06-11 23:11 ` Kevin Hilman
2019-06-11 11:20 ` [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC Marc Zyngier
2019-06-11 11:20 ` Marc Zyngier
2019-06-11 11:20 ` Marc Zyngier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.