Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20680 Discussions

sopc2dts gives dts with 64bit address.

Altera_Forum
Honored Contributor II
1,037 Views

Hi, 

 

I am generating the dts from the board xml files by below command.  

 

sopc2dts --input arria10.sopcinfo --output arria10.dts --board hps_a10_common_board_info.xml --board hps_a10_devkit_board_info.xml --bridge-removal all --clocks 

 

After generating the device tree I see it is generating address which were not expected. Due to licensing issues I cannot share the dts or xml files. 

 

* std_busses_i2c_master_0: unknown@0x100005000 { 

compatible = "unknown,unknown-17.0"; 

reg = <0x00000001 0x00005000 0x00000040>; 

interrupt-parent = <&arria10_hps_0_arm_gic_0>; 

interrupts = <0 51 4>; 

}; //end unknown@0x100005000 (std_busses_i2c_master_0) 

I dont know why "0x100005000" is being taken. 

 

But the reg seems to be correct the offset matches with the ranges and gives an address 0xff205000. The ranges are as shown below. But my concern is why it is giving std_busses_i2c_master_0: unknown@0x100005000 { which was supposed to be std_busses_i2c_master_0: unknown@0xff205000 {.  

# address-cells = <2>; 

# size-cells = <1>; 

ranges = <0x00000000 0x00010000 0xc0010000 0x00000040>, 

<0x00000000 0x00200000 0xc0200000 0x00200000>, 

<0x00000001 0x00001000 0xff201000 0x00000020>, 

<0x00000001 0x00001100 0xff201100 0x00000020>, 

<0x00000001 0x00001020 0xff201020 0x00000010>, 

<0x00000001 0x00001120 0xff201120 0x00000010>, 

<0x00000001 0x00000000 0xff200000 0x00000008>, 

<0x00000001 0x00000400 0xff200400 0x00000400>, 

<0x00000001 0x00000800 0xff200800 0x00000400>, 

<0x00000001 0x00000020 0xff200020 0x00000020>, 

<0x00000001 0x00000040 0xff200040 0x00000010>, 

<0x00000001 0x00005000 0xff205000 0x00000040>, 

<0x00000001 0x00005040 0xff205040 0x00000040>, 

<0x00000001 0x00005080 0xff205080 0x00000040>, 

<0x00000001 0x000050c0 0xff2050c0 0x00000040>, 

<0x00000001 0x00005100 0xff205100 0x00000020>, 

<0x00000001 0x00005120 0xff205120 0x00000020>, 

<0x00000001 0x00005140 0xff205140 0x00000020>, 

<0x00000001 0x00005160 0xff205160 0x00000020>;
0 Kudos
0 Replies
Reply