arm: dts: tl1: update emmc dt for tl1 [1/1]
authorruixuan.li <ruixuan.li@amlogic.com>
Wed, 14 Nov 2018 02:14:27 +0000 (10:14 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 27 Nov 2018 02:30:20 +0000 (18:30 -0800)
PD#165583

Problem:
bringup tl1 emmc

Solution:
1.set DDR52 MODE
2.add sdio node in dts
3.hs200 busmod

Verify:
test pass on tl1

Change-Id: I5b5c8bff18093f444e67b8e32e2a46c25ddf1a10
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
arch/arm/boot/dts/amlogic/mesontl1.dtsi
arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts

index 9f42817..51f2d8f 100644 (file)
        };
 
        sd_emmc_c: emmc@ffe07000 {
-               status = "okay";
+               status = "disabled";
                compatible = "amlogic, meson-mmc-tl1";
                reg = <0xffe07000 0x800>;
                interrupts = <0 191 1>;
                };
        };
 
-       sd_emmc_b: sd@ffe05000 {
-               status = "okay";
+       sd_emmc_b: sdio@ffe05000 {
+               status = "disabled";
                compatible = "amlogic, meson-mmc-tl1";
                reg = <0xffe05000 0x800>;
-               interrupts = <0 190 1>;
-
-               pinctrl-names = "sd_all_pins",
-                       "sd_clk_cmd_pins",
-                       "sd_1bit_pins",
-                       "sd_clk_cmd_uart_pins",
-                       "sd_1bit_uart_pins",
-                       "sd_to_ao_uart_pins",
-                       "ao_to_sd_uart_pins",
-                       "sd_to_ao_jtag_pins",
-                       "ao_to_sd_jtag_pins";
-               pinctrl-0 = <&sd_all_pins>;
-               pinctrl-1 = <&sd_clk_cmd_pins>;
-               pinctrl-2 = <&sd_1bit_pins>;
-               pinctrl-3 = <&sd_to_ao_uart_clr_pins
-                       &sd_clk_cmd_pins &ao_to_sd_uart_pins>;
-               pinctrl-4 = <&sd_to_ao_uart_clr_pins
-                       &sd_1bit_pins &ao_to_sd_uart_pins>;
-               pinctrl-5 = <&sd_all_pins &sd_to_ao_uart_pins>;
-               pinctrl-6 = <&sd_to_ao_uart_clr_pins &ao_to_sd_uart_pins>;
-               pinctrl-7 = <&sd_all_pins &sd_to_ao_uart_pins>;
-               pinctrl-8 = <&sd_to_ao_uart_clr_pins &ao_to_sd_uart_pins>;
+               interrupts = <0 190 4>;
+
+               pinctrl-names = "sdio_all_pins",
+                       "sdio_clk_cmd_pins";
+               pinctrl-0 = <&sdio_all_pins>;
+               pinctrl-1 = <&sdio_clk_cmd_pins>;
 
                clocks = <&clkc CLKID_SD_EMMC_B>,
                        <&clkc CLKID_SD_EMMC_B_P0_COMP>,
                cap-mmc-highspeed;
                max-frequency = <100000000>;
                disable-wp;
-               sd {
-                       pinname = "sd";
+               sdio {
+                       pinname = "sdio";
                        ocr_avail = <0x200080>; /**VDD voltage 3.3 ~ 3.4 */
                        max_req_size = <0x20000>; /**128KB*/
-                       gpio_dat3 = <&gpio GPIOC_3 GPIO_ACTIVE_HIGH>;
-                       jtag_pin = <&gpio GPIOC_0 GPIO_ACTIVE_HIGH>;
-                       gpio_cd = <&gpio GPIOC_6 GPIO_ACTIVE_HIGH>;
-                       card_type = <5>;
+                       card_type = <3>;
                        /* 3:sdio device(ie:sdio-wifi),
                         * 4:SD combo (IO+mem) card
                         */
                };
        };
 
-       /* sdemmc portA */
+       /* sdemmc port */
        sdio_clk_cmd_pins: sdio_clk_cmd_pins {
                mux {
-                       groups = "sdio_clk",
-                               "sdio_cmd";
-                       function = "sdio";
+                       groups = "sdcard_clk",
+                               "sdcard_cmd";
+                       function = "sdcard";
                        input-enable;
                        bias-pull-up;
                        drive-strength = <3>;
 
        sdio_all_pins: sdio_all_pins {
                mux {
-                       groups = "sdio_d0",
-                               "sdio_d1",
-                               "sdio_d2",
-                               "sdio_d3",
-                               "sdio_clk",
-                               "sdio_cmd";
-                       function = "sdio";
+                       groups = "sdcard_d0",
+                               "sdcard_d1",
+                               "sdcard_d2",
+                               "sdcard_d3",
+                               "sdcard_clk",
+                               "sdcard_cmd";
+                       function = "sdcard";
                        input-enable;
                        bias-pull-up;
                        drive-strength = <3>;
index 000aa09..bff6e97 100644 (file)
                         "MMC_CAP_MMC_HIGHSPEED",
                         "MMC_CAP_SD_HIGHSPEED",
                         "MMC_CAP_NONREMOVABLE",
-                       /* "MMC_CAP_1_8V_DDR", */
+                        "MMC_CAP_1_8V_DDR",
                         "MMC_CAP_HW_RESET",
                         "MMC_CAP_ERASE",
                         "MMC_CAP_CMD23";
 
 &sd_emmc_b {
        status = "okay";
-       sd {
+       sdio {
                caps = "MMC_CAP_4_BIT_DATA",
                        "MMC_CAP_MMC_HIGHSPEED",
                        "MMC_CAP_SD_HIGHSPEED",
-                       "MMC_CAP_NONREMOVABLE"; /**ptm debug */
+                       "MMC_CAP_NONREMOVABLE", /**ptm debug */
+                        "MMC_CAP_UHS_SDR12",
+                        "MMC_CAP_UHS_SDR25",
+                        "MMC_CAP_UHS_SDR50",
+                        "MMC_CAP_UHS_SDR104",
+                        "MMC_PM_KEEP_POWER",
+                        "MMC_CAP_SDIO_IRQ";
                f_min = <400000>;
                f_max = <200000000>;
        };
index 79dec39..cea7630 100644 (file)
                         "MMC_CAP_MMC_HIGHSPEED",
                         "MMC_CAP_SD_HIGHSPEED",
                         "MMC_CAP_NONREMOVABLE",
-                       /* "MMC_CAP_1_8V_DDR", */
+                        "MMC_CAP_1_8V_DDR",
                         "MMC_CAP_HW_RESET",
                         "MMC_CAP_ERASE",
                         "MMC_CAP_CMD23";
 
 &sd_emmc_b {
        status = "okay";
-       sd {
+       sdio {
                caps = "MMC_CAP_4_BIT_DATA",
                        "MMC_CAP_MMC_HIGHSPEED",
                        "MMC_CAP_SD_HIGHSPEED",
-                       "MMC_CAP_NONREMOVABLE"; /**ptm debug */
+                       "MMC_CAP_NONREMOVABLE", /**ptm debug */
+                        "MMC_CAP_UHS_SDR12",
+                        "MMC_CAP_UHS_SDR25",
+                        "MMC_CAP_UHS_SDR50",
+                        "MMC_CAP_UHS_SDR104",
+                        "MMC_PM_KEEP_POWER",
+                        "MMC_CAP_SDIO_IRQ";
                f_min = <400000>;
                f_max = <200000000>;
        };