LS1043A pin muxing in linux kernel

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

LS1043A pin muxing in linux kernel

Jump to solution
442 Views
bhargavjayswal
Contributor III

Dear NXP Team,

 

Currently i'm using layerscape SDK version L6.1.55_1.0.0,  as I have seen for some of NXP processor, pin muxing is handle in u-boot instead of kernel DTS as mentioned below link.

I want to set up pin muxing for custom board based on LS1043A SOC. But I require an information that where pin muxing has implement for LS1043a. 

Kindly provide an information  that, how NXP's has provided pin muxing mechanism. Is it done in uboot or kernel for LS043A. Also provide information that is it directly implimented 

Regards,

Bhargav Jayswal

0 Kudos
Reply
1 Solution
417 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

To verify pin multiplexing, we offer Pinmux tool. This tool is a part of our CodeWarrior ARM v8 software.

CodeWarrior ARMv8 64 bit|NXP 

The PinMuxing tool gives an overview of the SoC pins and their allocations to peripherals.
It is designed to help the board designers and low-level platform programmers to:
• Use the correct and optimal number of pins needed for a custom board design
• Program the platform (for example, reset configuration word (RCW)) in sync with the pins used in a board design

QCVS PinMuxing Tool User Guide

You can find all the RCW configurations available in your device Reference Manual. 

View solution in original post

0 Kudos
Reply
5 Replies
387 Views
bhargavjayswal
Contributor III

Hi @Oswalag ,

Thanks you for the support.

Yes, I have refer "QorIQ LS1043A reference manual",  in chapter-3 (signal description) pin muxing has been explained , they have given base RCW setting for pin muxing in "section-3.4 (Signal multiplexing details)".

So in Layerscape SDK in have modify rcw_1600_sdboot.rcw file for pin muxing. In order to update correct pin muxing, first I have copy all RCW field from SDK build "rcw/git/ls1043aqds/ls1043a.rcwi"  to spread-sheet, after that i was looking in to our custom board schematic and reference manual chapter-3 and updating correct value in spread-sheet in front of respective RCW field.

After Pin muxing has completed , I have copied spread-sheet RCW field and it's value in to file "rcw_1600_sdboot.rcw"  , Let me know if there is flow with this approch.

 

Regards,

Bhargav Jayswal

0 Kudos
Reply
377 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

After you modify the RCW file you have to re-build again your image to save the changes you made.

0 Kudos
Reply
418 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

To verify pin multiplexing, we offer Pinmux tool. This tool is a part of our CodeWarrior ARM v8 software.

CodeWarrior ARMv8 64 bit|NXP 

The PinMuxing tool gives an overview of the SoC pins and their allocations to peripherals.
It is designed to help the board designers and low-level platform programmers to:
• Use the correct and optimal number of pins needed for a custom board design
• Program the platform (for example, reset configuration word (RCW)) in sync with the pins used in a board design

QCVS PinMuxing Tool User Guide

You can find all the RCW configurations available in your device Reference Manual. 

0 Kudos
Reply
277 Views
bhargavjayswal
Contributor III
Hi @Oswalag ,
 
I have further queries on pin. We have done pin muxing for the boot process in RCW, In LS1043 Reference Manual, In "chapter 3 Signal Description" mentioned pin muxing detail using RCW. In "Section 3.4 Signal Muxing details" only mentioned a few pin muxing can be used to start the board tiil bootloader.
 
In general pin muxing can be done through dts/dtsi on ARM SOC. But for LS1043A, I do not find any pin has been configured(muxing) through dts/dtsi at linux KERNEL(fsl-ls1043a.dtsi , fsl-ls1043a-rdb.dts, ... etc).
 
In "chapter 12 Supplemental Configuration unit" describes rest pin muxing details, which pins can not be configured by RCW. I found that pin muxing for a few USB pins has been configured at u-boot in file "board/freescale/ls1043ardb/ls1043ardb.c" inside the function config_board_mux(). Where I do not find any pin muxing has been done using linux KERNEL through "c code" well
 
My query is what is the suggested way of pin muxing for LS1043A SOC ?  Do we need to do pin muxing in bootloader code or at kernel level apart from RCW.
 
Regards,
Bhargav Jayswal
0 Kudos
Reply
239 Views
Oswalag
NXP TechSupport
NXP TechSupport

You are correct, config_board_mux() is a function to configure this mentioned mux pins function.(besides RCW configuration)

Pin muxing cannot be performed using linux kernel.

 

0 Kudos
Reply