[PATCH] dts: rockchip: rk3399: enable emmc phy for spl

2021-10-31 Thread Yifeng Zhao
adapting commit ac804143cf ("mmc: rockchip_sdhci: add phy and clock config for rk3399") to fix the issue "Not found emmc phy device". Signed-off-by: Yifeng Zhao --- arch/arm/dts/rk3399-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk339

[PATCH] mmc: rockchip_sdhci: enable strobe line for HS400

2021-10-15 Thread Yifeng Zhao
The default configuration of rk3399 EMMC PHY does not enable the strobe line, and EMMC controller will got data transmission error at HS400 mode. Signed-off-by: Yifeng Zhao --- drivers/mmc/rockchip_sdhci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/rockchip_sdhci.c b

[PATCH v3 1/3] mmc: rockchip_sdhci: add phy and clock config for rk3399

2021-06-29 Thread Yifeng Zhao
the clock changes. - Add execute tuning api for hs200 tuning. Signed-off-by: Yifeng Zhao --- Changes in v3: - Optimize hs200 tuning function. - Add check for callback function. - Add return value for tuning function. - Fixed source clock rate with host->max_clk, the interface clock is divi

[PATCH v3 2/3] mmc: rockchip_sdhci: Add support for RK3568

2021-06-29 Thread Yifeng Zhao
This patch adds support for the RK3568 platform to this driver. Signed-off-by: Yifeng Zhao --- Changes in v3: - Config the interface clock by clk_set_rate directly Changes in v2: - Used sdhci_set_clock api to set clock. - Used read_poll_timeout api to check dll status. drivers/mmc

[PATCH v3 0/3] Add hs400 support for rk3399 and rk3568

2021-06-29 Thread Yifeng Zhao
api for hs200 tuning - Used sdhci_set_clock api to set clock. - Used read_poll_timeout api to check dll status. Yifeng Zhao (3): mmc: rockchip_sdhci: add phy and clock config for rk3399 mmc: rockchip_sdhci: Add support for RK3568 rockchip: config: evb-rk3399: add hs400 and SDMA support configs/

[PATCH v3 3/3] rockchip: config: evb-rk3399: add hs400 and SDMA support

2021-06-29 Thread Yifeng Zhao
This enable hs400 and SDMA support for emmc on evb-rk3399. Signed-off-by: Yifeng Zhao --- Changes in v3: - Enable SDMA. configs/evb-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 21477719dc..d5eba1d903

[PATCH v2 1/3] mmc: rockchip_sdhci: add phy and clock config for rk3399

2021-06-28 Thread Yifeng Zhao
the clock changes. - Add execute tuning api for hs200 tuning Signed-off-by: Yifeng Zhao --- Changes in v2: - Add mmc_of_parse to parse dts config. - Used read_poll_timeout api to check dll lock status - Add execute tuning api for hs200 tuning drivers/mmc/rockchip_sdhci.c | 310

[PATCH v2 2/3] mmc: rockchip_sdhci: Add support for RK3568

2021-06-28 Thread Yifeng Zhao
This patch adds support for the RK3568 platform to this driver. Signed-off-by: Yifeng Zhao --- Changes in v2: - Used sdhci_set_clock api to set clock. - Used read_poll_timeout api to check dll status. drivers/mmc/rockchip_sdhci.c | 117 +++ 1 file changed, 117

[PATCH v2 3/3] rockchip: config: evb-rk3399: add hs200 and hs400 support

2021-06-28 Thread Yifeng Zhao
This enable hs200 and hs400 support for emmc on evb-rk3399. Signed-off-by: Yifeng Zhao --- (no changes since v1) configs/evb-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 909c68822c..687aeec26c 100644

[PATCH v2 0/3]

2021-06-28 Thread Yifeng Zhao
for hs200 tuning - Used sdhci_set_clock api to set clock. - Used read_poll_timeout api to check dll status. Yifeng Zhao (3): mmc: rockchip_sdhci: add phy and clock config for rk3399 mmc: rockchip_sdhci: Add support for RK3568 rockchip: config: evb-rk3399: add hs200 and hs400 support configs/evb

[PATCH] mtd: nand: NFC drivers for RK3308, RK2928 and others

2021-06-07 Thread Yifeng Zhao
. - The original bad block mask is not supported. It is recommended to use the BBT(bad block table). Signed-off-by: Yifeng Zhao --- drivers/mtd/nand/raw/Kconfig| 16 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/rockchip_nfc.c | 1253

[PATCH v1 1/2] mmc: rockchip_sdhci: add phy and clock config for rk3399

2021-06-07 Thread Yifeng Zhao
set_ios_post to modify the parameters of phy when the clock changes Signed-off-by: Yifeng Zhao --- drivers/mmc/rockchip_sdhci.c | 334 +++ 1 file changed, 303 insertions(+), 31 deletions(-) diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index

[PATCH v1 2/2] mmc: rockchip_sdhci: Add support for RK3568

2021-06-07 Thread Yifeng Zhao
This patch adds support for the RK3568 platform to this driver. Signed-off-by: Yifeng Zhao --- drivers/mmc/rockchip_sdhci.c | 103 +++ 1 file changed, 103 insertions(+) diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index 05ed998eca

[PATCH v1 0/2]

2021-06-07 Thread Yifeng Zhao
RK3399 and RK3568 are use different sdhci controllers. The drivers need to be updated to support these two platforms and it's easy to support new platforms. Yifeng Zhao (2): mmc: rockchip_sdhci: add phy and clock config for rk3399 mmc: rockchip_sdhci: Add support for RK3568 drivers/mmc