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.

AM6442: MCU pin controller

Part Number: AM6442


Hello,

I have a board AM6442-SK. I want to connect spi device to mcu connector (mcu_spi0) because main_spiX interfaces are reserved by other devices. I looked at device tree and didn't finded mcu pin controller node (something like mcu_pmx0) to configure spi pins. On main domain there is main_pmx0. Why this mcu_pmx0 node is not present? Can you provide some example what this node needs look like?

BR,

Jakub

  • Hi Jakub,

    The mcu_pmx0 node would be very similar to the main_pmx0 node, the only difference would be in the "reg" property, which specifies the base address and length of the MMR in the mcu pin controller. You can find such information in the TRM.

    mcu_pmx0 is defined in k3-am62-mcu.dtsi for AM62x devices. You can use this as a reference too.

  • Hi Jakub,

    The following patch adds the mcu_pmx0 node. It is already in the mainline kernel. And it will be integrated in the next Processor SDK release.

    diff --git a/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi
    index a8a080e911c6..09a668af9fd3 100644
    --- a/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi
    +++ b/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi
    @@ -121,4 +121,12 @@ wkup_vtm0: temperature-sensor@b00000 {
                    power-domains = <&k3_pds 95 TI_SCI_PD_EXCLUSIVE>;
                    #thermal-sensor-cells = <1>;                                                                                                                                                                                                                   
            };                                                                                                                                                                                                                                                     
    +
    +       mcu_pmx0: pinctrl@4084000 {
    +               compatible = "pinctrl-single";
    +               reg = <0x00 0x4084000 0x00 0x84>;
    +               #pinctrl-cells = <1>;
    +               pinctrl-single,register-width = <32>;
    +               pinctrl-single,function-mask = <0xffffffff>;
    +       };
     };