32614_1489253935 0 Posted August 17, 2014 Share Posted August 17, 2014 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 Quote Link to post Share on other sites
bluehash 1,581 Posted August 18, 2014 Share Posted August 18, 2014 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: 32614_1489253935 1 Quote Link to post Share on other sites
32614_1489253935 0 Posted August 18, 2014 Author Share Posted August 18, 2014 Thanks bluehash, could you give me more detail to config it, why we can be calculated it ? '0x21' and '0x01' ? Quote Link to post Share on other sites
bluehash 1,581 Posted August 18, 2014 Share Posted August 18, 2014 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.