UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
83 Views
Registered: ‎02-06-2018

Petalinux registers a different address for peripherals

Hi

In my design, axi_gpio_0 is assigned an address of 0xa0000000 in Address Editor but when Petalinux boots, I see the following:

[    1.800127] GPIO IRQ not connected
[    1.803070] XGpio: gpio@a00c0000: registered, base is 507
[    1.808593] GPIO IRQ not connected
[    1.811735] XGpio: gpio@a00c1000: registered, base is 499

and it means gpio is registered at 0xa00c0000 (which works). pl.dtsi looks like:

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

So I expect GPIO to be registered at 0xa0000000. Why there is a difference in address assignment?

Thanks

0 Kudos
1 Reply
Adventurer
Adventurer
29 Views
Registered: ‎02-06-2018

Re: Petalinux registers a different address for peripherals

I have been studying Yocto workflow and Xilinx documentations and I still don't have an answer to this question. I would be grateful if you could guide me to correct reference to find an answer for it.
0 Kudos