Are there special programs for simplification or automation of device tree creation for the vybrid vf6xx processor?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Are there special programs for simplification or automation of device tree creation for the vybrid vf6xx processor?

跳至解决方案
2,522 次查看
lyudmilavoronin
Contributor II

Hello

We bought several  vybrid vf6xx processor and developed the device.

We have Linux kernel 3.13 from Timesys for TWR-VF65GS10.

Now we want to build  Linux kernel 3.13 for our device, but at first it is necessary

to create the device tree, *. dts, *.dtsi files. Are there special programs for simplification

or automation of device tree creation for the vybrid vf6xx processor?

Thanks in advance

0 项奖励
回复
1 解答
2,201 次查看
Yuri
NXP Employee
NXP Employee

The product, described in 

 https://www.nxp.com/docs/en/user-guide/QCVS_HWDT_User_Guide.pdf 

is intended for QorIQ devices under  Code Warior.  

在原帖中查看解决方案

0 项奖励
回复
9 回复数
2,199 次查看
Yuri
NXP Employee
NXP Employee

Hello,

   I am afraid NXP does not have any special tool to simpify the dts design.

Regards,

Yuri.

0 项奖励
回复
2,201 次查看
kef2
Senior Contributor V

I'm not big Linux expert, but arch/arm/boot/dts/vf610-twr.dts  device tree source file for TWR-VF65GS10 is included in mainline Linux, you will find it even in sources for kernel 5.0, no need to stay with old 3.13.

All you need to make your custom *.dtb - kernel sources, editor to create your custom vf610-twr.dts, crosscompiler to build zImage, dtb and kernel modules. Then just put your *.dts to arch/arm/boot/dts and from kerner sources root issue

  make your_dts_file.dtb ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

to rebuild original TWR-VF65GS10 dtb:

  make vw610-twr.dtb ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

similarily rebuild image

  make zImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

and modules

  make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

install modules to where you need


  make modules_install INSTALL_MOD_PATH=your_modules_path ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

0 项奖励
回复
2,201 次查看
lyudmilavoronin
Contributor II

Edwaed, many thanks for the answer.

With the TWR-VF65GS10 there are no problems, but vf610-twr.dts file  does not match

with our *.dts file for our device.

I should describe our device.

I have all necessary for build of a linux kernel and compilation of *.dts files,

but I do not have the editor to create our *.dts file for our device.

Creation of the *.dts file is difficult and long process, therefore I ask this question:

Are there special programs for simplification or automation of device tree creation (*.dts, *.dtsi files)

for the vybrid vf6xx processor?

Regards,

Lyudmila.

0 项奖励
回复
2,201 次查看
kef2
Senior Contributor V

Any text editor should do.

Yes, vf610-twr.dts doesn't describe everything, but all Vybrid peripherals are defined in files included by vf610-twr.dts. DTS customization from  TWR-VF65GS10 to any other board is mostly disable or enable of one or another already defined peripherals, as well changing and repurposing pins configuration to one or another peripheral. It's not that difficult or long to learn. To ease your task creating new board, I would try following TWR-VF65GS10 schematics and keep changes minimal where you can. You may ask for the help for particular peripheral configuration dts customization.

No, I don't know tools to simplify this.

Regards,

Edward

0 项奖励
回复
2,201 次查看
lyudmilavoronin
Contributor II

Edward, I found in the Internet " NXP Hardware Device Tree Editor User Guide",

but I cannot find the application to download. Is it suitable for Vybrid vf6xx, somebody worked with it,

Regards,

Lyudmila.

0 项奖励
回复
2,202 次查看
Yuri
NXP Employee
NXP Employee

The product, described in 

 https://www.nxp.com/docs/en/user-guide/QCVS_HWDT_User_Guide.pdf 

is intended for QorIQ devices under  Code Warior.  

0 项奖励
回复
2,201 次查看
lyudmilavoronin
Contributor II

Yuri, many thanks for the answer.

Regards, Lyudmila.

вс, 21 апр. 2019 г. в 13:19, Yuri <admin@community.nxp.com>:

NXP Community

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: Are there special programs for simplification or automation of device

tree creation for the vybrid vf6xx processor?

reply from Yuri Muhin

<https://community.nxp.com/people/Yuri?et=watches.email.thread> in *Vybrid

Processors* - View the full discussion

<https://community.nxp.com/message/1141831?commentID=1141831&et=watches.email.thread#comment-1141831>

0 项奖励
回复
2,201 次查看
lyudmilavoronin
Contributor II

I do not know language for description of a Device Tree.
Can You give me the reference to the good manual for
the detail studying of this language?
Whom is it possible to ask for the help if it is necessary?

Regards,

Lyudmila.

0 项奖励
回复
2,201 次查看
Yuri
NXP Employee
NXP Employee
0 项奖励
回复