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.

Linux/AM5728: MMC IODELAY in device tree

Part Number: AM5728


Tool/software: Linux

Hi Folks,

I am trying to set the iodelay for mmc3 via device tree

            mmc3_iodelay_manual1_conf {
                pinctrl-single,pins = <
                    0x678 0x182 /* CFG_MMC3_CLK_IN */
                    0x680 0x25d /* CFG_MMC3_CLK_OUT */
                    0x684 0x0 /* CFG_MMC3_CMD_IN */
                    0x688 0x0 /* CFG_MMC3_CMD_OEN */
                    0x68c 0x0 /* CFG_MMC3_CMD_OUT */
                    0x690 0xab /* CFG_MMC3_DAT0_IN */
                    0x694 0x0 /* CFG_MMC3_DAT0_OEN */
                    0x698 0x0 /* CFG_MMC3_DAT0_OUT */
                    0x69c 0xdd /* CFG_MMC3_DAT1_IN */
                    0x6a0 0x0 /* CFG_MMC3_DAT1_OEN */
                    0x6a4 0x0 /* CFG_MMC3_DAT1_OUT */
                    0x6a8 0x0 /* CFG_MMC3_DAT2_IN */
                    0x6ac 0x0 /* CFG_MMC3_DAT2_OEN */
                    0x6b0 0x0 /* CFG_MMC3_DAT2_OUT */
                    0x6b4 0x1da /* CFG_MMC3_DAT3_IN */
                    0x6b8 0x0 /* CFG_MMC3_DAT3_OEN */
                    0x6bc 0x0 /* CFG_MMC3_DAT3_OUT */
                >;
                linux,phandle = <0xca>;
                phandle = <0xca>;
            };

        mmc@480ad000 {
            compatible = "ti,dra7-hsmmc", "ti,omap4-hsmmc";
            reg = <0x480ad000 0x400>;
            interrupts = <0x0 0x59 0x4>;
            ti,hwmods = "mmc3";
            ti,needs-special-reset;
            dmas = <0xc9 0x4d 0xc9 0x4e>;
            dma-names = "tx", "rx";
            status = "okay";
            sd-uhs-sdr12;
            sd-uhs-sdr25;
            sd-uhs-sdr50;
            vmmc-supply = <0x506>;
            bus-width = <0x4>;
            pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
            cap-power-off-card;
            keep-power-in-suspend;
            ti,non-removable;
            vb4-twl-gpio = <0xc6 17 0>;
            pinctrl-0 = <0x500>;
            pinctrl-1 = <0x501>;
            pinctrl-2 = <0x502>;
            pinctrl-3 = <0x503>;
            pinctrl-4 = <0x504 0xca>;
            #address-cells = <1>;
            #size-cells = <0>;
        };

In the bootlog I can SDIO for mmc2 is initialized, but when I do a dev2mem on MMC3 IO delay registers I dont see any of this values changed.

Is there something else as well to be done ? The IO delay is set in pinctrl-4 (phandle 0xca)

Thanks,

Mike