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.

AM437x .DTS pinmux node names

Hello,


I am trying to modify the am437x-gp-evm.dts file for a custom board. I am using the devicetree.txt file
generated by TI Pinmux Tool as reference.


Inside the tool, I named the MMC0 interface as "SD Card." Due to this, the devicetree.txt file has the pinmux
node names as the following:

sd_card_pins_default: sd_card_pins_default {
...

sd_card_pins_sleep: sd_card_pins_sleep {
...

However, the am437x-gp-evm.dts file has different node names:

mmc1_pins: pinmux_mmc1_pins {
...

mmc1_sleep_pins: pinmux_mmc1_sleep_pins {
...


My question is: Do these names matter?
Will my board work with different names?
If yes, how does the kernel determine which pinmux settings are used for default state and which for sleep state?
If not, should I use the same names as in the evm .dts file?

Thank You,

Rajat Rao

  • I think I found the answer to my question.

    The names used in the pinmux node will be referenced later will describing the module itself. For the example in the question, the names assigned to the default and sleep states are reference at:

    &mmc1 {
    status = "okay";
    vmmc-supply = <&evm_v3_3d>;
    bus-width = <4>;
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&mmc1_pins>;
    pinctrl-1 = <&mmc1_sleep_pins>;
    cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
    };

    So, as long as there is consistency between the two, there should be no problem. Is this right?


    Rajat Rao