Jump to content
43oh

Recommended Posts

Hi everybody,

I have a part of dts file, I want to find offset of the index following:

pinctrl-single,pins = <				0x150        0x21        /* spi0_sclk.uart2_rxd | 							  * MODE1 | PULL_UP */				0x154        0x01        /* spi0_d0.uart2_txd | MODE1 */			>;

I have read many docs about am35xx, and others, but I can not find the way to get '0x21' and '0x01' for its mode.

I hope someone can help me!

Thanks

Link to post
Share on other sites

Hi everybody,

I have a part of dts file, I want to find offset of the index following:

pinctrl-single,pins = <

0x150 0x21 /* spi0_sclk.uart2_rxd |

* MODE1 | PULL_UP */

0x154 0x01 /* spi0_d0.uart2_txd | MODE1 */

>;

I have read many docs about am35xx, and others, but I can not find the way to get '0x21' and '0x01' for its mode.

I hope someone can help me!

Thanks

 

 

Look at Table 9-57. conf_<module>_<pin> Register Field Descriptions of the AM335x Technical Reference Manual for the bitfields:

 

beaglebone_register_field_descriptions.JPG

Link to post
Share on other sites

Thanks bluehash, could you give me more detail to config it, why we can be calculated it ?

'0x21' and '0x01' ?

It is in the table.

0x21H -> 0x0010 0001

 

Slew Rate ( Fast(0), Slow (1) )
Bit 6 -- 0

 

Input/Output ( Output(0), Input(1) )
Bit 5 -- 1

 

Pull Up/Down( up(2), down(0), disabled(1)  )
Bit 4 -- 0

Bit 3 -- 0

 

Mode 

Bit 2 -- 0

Bit 1 -- 0

Bit 0 -- 1

 

So.. 0x21 is FAST | Input | Pull Down | Mode 1

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...