cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
671 Views
Registered: ‎07-27-2017

AXI memory map

Hi All,

       I added an entry in my device tree and supported bitfile was programmed on to the PL. I dont see this being mapped in /proc/iomem. Am i supposed to see an entry for axi_gpio_0 or gpio@41200000 in /proc/iomem like other entries from PS?. 

 

I am however able to access the registers when i map the physical address 0x41200000. 

 

axi_gpio_0: gpio@41200000 {
#gpio-cells = <2>;
compatible = "xlnx,xps-gpio-1.00.a";
gpio-controller ;
interrupt-parent = <&intc>;
interrupts = < 0 6 4 >;
reg = < 0x41200000 0x10000 >;
xlnx,all-inputs = <0x0>;
xlnx,all-inputs-2 = <0x0>;
xlnx,dout-default = <0x0>;
xlnx,dout-default-2 = <0x0>;
xlnx,gpio-width = <0x2>;
xlnx,gpio2-width = <0x2>;
xlnx,interrupt-present = <0x1>;
xlnx,is-dual = <0x1>;
xlnx,tri-default = <0xffffffff>;
xlnx,tri-default-2 = <0xffffffff>;
};

 

Thanks and Regards,

Djay

0 Kudos
1 Reply
Highlighted
Explorer
Explorer
597 Views
Registered: ‎07-17-2014

I don't think you see it in /proc/iomem until a driver is loaded and maps that memory for use by the driver.

If I load/unload my kernel drivers, I see my device entries in /proc/iomem

I've been doing GPIO through my own custom devices and drivers.

So as for the AXI GPIO IP, I haven't played with it - so I can't say for sure about everything involved with it.

0 Kudos