This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Could you list up pin mux in default DTB file included in GLSDK?

Hello,

Could you list up pin mux in default DTB file included in GLSDK?

Pin muxing can be done in u-boot & by DTB in linux kernel.

We want to know some kind of recommendation for distinguishing pin mux should be done in u-boot or kernel.

If there is no such guide, the list of pin muxing in DTB will be enough.

Best regards,

Wilson.

  • Hi,

    Following is the recommendation regarding the pinmuxing.

    * All the pinmux and iodelay (some exceptions) should be configured while in isolation (in the first stage of bootloader - MLO)

    * Only some exception pads should be configured at runtime (from kernel DTB)

    Default configuration has MMC pinmux, iodelay configured from kernel, and all other peripherals configured from u-boot.


    I hope this helps

    - Nikhil D

  • Nikhil,

    There are mann pin mux setings in dts except you mentioned.

    For example dra72-evm-vision.dts has VIP pin muxing setting as below.

    &dra7_pmx_core {
    	/* vin5a pins are internally routed to vin1a  */
    	vin5a_pins: pinmux_vin5a_pins {
    		pinctrl-single,pins = <
    			0x374	(PIN_INPUT | MUX_MODE9)	/* vin1a_clk0	*/
    			0x39C	(PIN_INPUT | MUX_MODE9)	/* vin1a_hsync0	*/
    			0x3A0	(PIN_INPUT | MUX_MODE9)	/* vin1a_vsync0	*/
    			0x398	(PIN_INPUT | MUX_MODE9)	/* vin1a_d0	*/
    			0x394	(PIN_INPUT | MUX_MODE9)	/* vin1a_d1	*/
    			0x390	(PIN_INPUT | MUX_MODE9)	/* vin1a_d2	*/
    			0x38C	(PIN_INPUT | MUX_MODE9)	/* vin1a_d3 	*/
    			0x388	(PIN_INPUT | MUX_MODE9)	/* vin1a_d4 	*/
    			0x384	(PIN_INPUT | MUX_MODE9)	/* vin1a_d5	*/
    			0x380	(PIN_INPUT | MUX_MODE9)	/* vin1a_d6	*/
    			0x37C	(PIN_INPUT | MUX_MODE9)	/* vin1a_d7	*/
    		>;
    	};

    I need simple & clear rule.

    Best regards,

    Wilson.

  • Hi Wilson,

    Most likely you are referring to older releases.
    THe latest SDKs - GLSDK 7.04 (k3.14 based) Processor SDK Linux Automotive 3.00 (k4.4 based)
    all follow the recommendation mentioned.

    You can go ahead with the above recommendation.
    - Nikhil D