Hi,

I am using ZynqMP with the FPGA. I have designed an AXI Gpio in the FPGA and I 
am able to control it through non-root cell Linux. Nevertheless, I want to 
assign an IRQ to the Input GPIO. However, I do not know how pin_base and 
pin_bitmap works in GIC configuration. The AXI Gpio DTS part is:

        axi_gpio_0: gpio@a0000000 {
                #gpio-cells = <2>;
                #interrupt-cells = <2>;
                compatible = "xlnx,xps-gpio-1.00.a";
                gpio-controller ;
                interrupt-controller ;
                interrupt-parent = <&gic>;
                interrupts = <0 89 4>;
                reg = <0x0 0xa0000000 0x0 0x1000>;
                xlnx,all-inputs = <0x0>;
                xlnx,all-inputs-2 = <0x0>;
                xlnx,all-outputs = <0x0>;
                xlnx,all-outputs-2 = <0x0>;
                xlnx,dout-default = <0x00000000>;
                xlnx,dout-default-2 = <0x00000000>;
                xlnx,gpio-width = <0x2>;
                xlnx,gpio2-width = <0x20>;
                xlnx,interrupt-present = <0x1>;
                xlnx,is-dual = <0x0>;
                xlnx,tri-default = <0xFFFFFFFF>;
                xlnx,tri-default-2 = <0xFFFFFFFF>; 
        };

How do I need to assign the IRQ in the GIC conf. The default GIC conf is:
        .irqchips = {
                /* GIC */ {
                        .address = 0xf9010000,
                        .pin_base = 32,
                        .pin_bitmap = {
                                1 << (54 - 32),
                                0,
                                0,
                                (1 << (140 - 128)) | (1 << (142 - 128))
                        },
                },
        },


PD: I do not know why, but in order to put the GPIOs working I had to delete 
the ".pci_devices" data from the root cell conf file. 

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to