Config Tools for i.MX - What to do with generated .dtsi, .c, .h files?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Config Tools for i.MX - What to do with generated .dtsi, .c, .h files?

ソリューションへジャンプ
868件の閲覧回数
daneduplooy
Contributor III

Config Tools for i.MX generates the following files (i.MX6 ULL):

- imx6ull-board.dtsi

- iomux_config.c

- iomux_config.h

- pin_mux.c

- pin_mux.h

Can anyone provide any pointers on what should be done with these files, with U-Boot / Buildroot?

Thanks!

 

0 件の賞賛
返信
1 解決策
846件の閲覧回数
daneduplooy
Contributor III

Basically, from what I have learned so far (in case this can help someone else with the same question):

Config Tools for i.Mx in this case helps to generate pin settings (mux, pull-up/-down, etc). With the .dtsi it is not a case of copy-pasting the entire file somewhere but rather copy-pasting individual lines into your Device Tree (.dts / .dtsi) in the relevant places - you need to have some idea of what you are doing with Device Tree in order to do this. Usually you would be copy-modifying an existing Device Tree from a reference board, so should be able to figure out from there where the lines need to go.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
847件の閲覧回数
daneduplooy
Contributor III

Basically, from what I have learned so far (in case this can help someone else with the same question):

Config Tools for i.Mx in this case helps to generate pin settings (mux, pull-up/-down, etc). With the .dtsi it is not a case of copy-pasting the entire file somewhere but rather copy-pasting individual lines into your Device Tree (.dts / .dtsi) in the relevant places - you need to have some idea of what you are doing with Device Tree in order to do this. Usually you would be copy-modifying an existing Device Tree from a reference board, so should be able to figure out from there where the lines need to go.

0 件の賞賛
返信
856件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

refer to the user manual:
Tool generated board-oriented device tree (DTS) DTSI file is only a snippet and not a full device tree file content. There are just basic device tree elements, initial skeleton, and processor-specific "pinfunc.h" includes together with functional groups of fsl, pins = <...> content definitions which provide the initial IOMUXC module configuration according to the tool UI defined pin routing and functional configurations. Content itself must be manually merged together with existing Linux BSP device tree file(s) in order to apply the tool generated pins configuration

the current bsp path for uboot is

dts file is: /arch/arm/dts/

pinmux file: /include/dt-bindings/pinctrl/

kernel:

dts: /arch/arm64/boot/dts/freescale/

pin mux file:/arch/arm64/boot/dts/freescale/

0 件の賞賛
返信