“amlogic,meson-txl-gpio-intc” for TXL SoCs (T950, T952, T960, T962)
“amlogic,meson-tl1-gpio-intc” for TL1 SoCs (T962X2)
“amlogic,meson-sm1-gpio-intc” for SM1 SoCs (S905D3, S905X3, S905Y3)
+ “amlogic,meson-tm2-gpio-intc” for TM2 SoCs (T962X3, T962E2)
- interrupt-parent : a phandle to the GIC the interrupts are routed to.
Usually this is provided at the root level of the device tree as it is
common to most of the SoC.
gpio_intc: interrupt-controller@f080 {
compatible = "amlogic,meson-gpio-intc",
- "amlogic,meson-tl1-gpio-intc";
+ "amlogic,meson-tm2-gpio-intc";
reg = <0xf080 0x10>;
interrupt-controller;
#interrupt-cells = <2>;
gpio_intc: interrupt-controller@f080 {
compatible = "amlogic,meson-gpio-intc",
- "amlogic,meson-tl1-gpio-intc";
+ "amlogic,meson-tm2-gpio-intc";
reg = <0x0 0xf080 0x0 0x10>;
interrupt-controller;
#interrupt-cells = <2>;
.support_double_edge = 1,
};
+static const struct meson_gpio_irq_params tm2_params = {
+ .nr_hwirq = 104,
+ .support_double_edge = 1,
+};
+
static const struct of_device_id meson_irq_gpio_matches[] = {
{ .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
{ .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
{ .compatible = "amlogic,meson-txl-gpio-intc", .data = &txl_params },
{ .compatible = "amlogic,meson-tl1-gpio-intc", .data = &tl1_params },
{ .compatible = "amlogic,meson-sm1-gpio-intc", .data = &sm1_params },
+ { .compatible = "amlogic,meson-tm2-gpio-intc", .data = &tm2_params },
{ }
};