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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,821 Views
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 Kudos
1 Solution
1,500 Views
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.  

View solution in original post

0 Kudos
9 Replies
1,498 Views
Yuri
NXP Employee
NXP Employee

Hello,

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

Regards,

Yuri.

0 Kudos
1,500 Views
kef2
Senior Contributor IV

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 Kudos
1,500 Views
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 Kudos
1,500 Views
kef2
Senior Contributor IV

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 Kudos
1,500 Views
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 Kudos
1,501 Views
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 Kudos
1,500 Views
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 Kudos
1,500 Views
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 Kudos
1,500 Views
Yuri
NXP Employee
NXP Employee
0 Kudos