Linux-mmc Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode
@ 2019-08-14  7:26 Yinbo Zhu
  2019-08-14  7:26 ` [PATCH v1 2/4] soc: fsl: guts: Add definition for LS1028A Yinbo Zhu
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Yinbo Zhu @ 2019-08-14  7:26 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
	Adrian Hunter, Ulf Hansson, Li Yang, Claudiu Manoil, Amit Jain,
	Yangbo Lu, Vabhav Sharma, Rajesh Bhagat, Ashish Kumar,
	devicetree, linux-arm-kernel, linux-kernel, linux-mmc
  Cc: yinbo.zhu, xiaobo.xie, jiafei.pan, Alison Wang, Alex Marginean,
	Catalin Horghidan, Rajat Srivastava, linuxppc-dev

This patch is to enable emmc hs400 mode for ls1028ardb

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index 8a725409e881..f1e46cc4cea1 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -92,8 +92,10 @@
 	};
 
 &esdhc1 {
-	status = "okay";
 	mmc-hs200-1_8v;
+	mmc-hs400-1_8v;
+	bus-width = <8>;
+	status = "okay";
 	};
 
 &i2c0 {
-- 
2.17.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v1 2/4] soc: fsl: guts: Add definition for LS1028A
  2019-08-14  7:26 [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode Yinbo Zhu
@ 2019-08-14  7:26 ` Yinbo Zhu
  2019-08-15 22:40   ` Li Yang
  2019-08-14  7:26 ` [PATCH v1 3/4] arm64: dts: ls1028a: fix little-big endian issue for dcfg Yinbo Zhu
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Yinbo Zhu @ 2019-08-14  7:26 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
	Adrian Hunter, Ulf Hansson, Li Yang, Claudiu Manoil, Amit Jain,
	Yangbo Lu, Vabhav Sharma, Rajesh Bhagat, Ashish Kumar,
	devicetree, linux-arm-kernel, linux-kernel, linux-mmc
  Cc: yinbo.zhu, xiaobo.xie, jiafei.pan, Alison Wang, Alex Marginean,
	Catalin Horghidan, Rajat Srivastava, linuxppc-dev

Adding compatible string "ls1028a-dcfg" to initialize guts driver
for ls1028 and SoC die attribute definition for LS1028A

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
 drivers/soc/fsl/guts.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c
index 1ef8068c8dd3..34810f9bb2ee 100644
--- a/drivers/soc/fsl/guts.c
+++ b/drivers/soc/fsl/guts.c
@@ -102,6 +102,11 @@ static const struct fsl_soc_die_attr fsl_soc_die[] = {
 	  .svr          = 0x87360000,
 	  .mask         = 0xff3f0000,
 	},
+	/* Die: LS1028A, SoC: LS1028A */
+	{ .die          = "LS1028A",
+	  .svr          = 0x870b0000,
+	  .mask         = 0xff3f0000,
+	},
 	{ },
 };
 
@@ -224,6 +229,7 @@ static const struct of_device_id fsl_guts_of_match[] = {
 	{ .compatible = "fsl,ls1012a-dcfg", },
 	{ .compatible = "fsl,ls1046a-dcfg", },
 	{ .compatible = "fsl,lx2160a-dcfg", },
+	{ .compatible = "fsl,ls1028a-dcfg", },
 	{}
 };
 MODULE_DEVICE_TABLE(of, fsl_guts_of_match);
-- 
2.17.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v1 3/4] arm64: dts: ls1028a: fix little-big endian issue for dcfg
  2019-08-14  7:26 [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode Yinbo Zhu
  2019-08-14  7:26 ` [PATCH v1 2/4] soc: fsl: guts: Add definition for LS1028A Yinbo Zhu
@ 2019-08-14  7:26 ` Yinbo Zhu
  2019-08-14  7:26 ` [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC Yinbo Zhu
  2019-11-22  3:31 ` [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode Yinbo Zhu
  3 siblings, 0 replies; 8+ messages in thread
From: Yinbo Zhu @ 2019-08-14  7:26 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
	Adrian Hunter, Ulf Hansson, Li Yang, Claudiu Manoil, Amit Jain,
	Yangbo Lu, Vabhav Sharma, Rajesh Bhagat, Ashish Kumar,
	devicetree, linux-arm-kernel, linux-kernel, linux-mmc
  Cc: yinbo.zhu, xiaobo.xie, jiafei.pan, Alison Wang, Alex Marginean,
	Catalin Horghidan, Rajat Srivastava, linuxppc-dev

dcfg use little endian that SoC register value will be correct

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
index b0d4f8916ede..5538e8e354b2 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
@@ -162,7 +162,7 @@
 		dcfg: syscon@1e00000 {
 			compatible = "fsl,ls1028a-dcfg", "syscon";
 			reg = <0x0 0x1e00000 0x0 0x10000>;
-			big-endian;
+			little-endian;
 		};
 
 		scfg: syscon@1fc0000 {
-- 
2.17.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC
  2019-08-14  7:26 [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode Yinbo Zhu
  2019-08-14  7:26 ` [PATCH v1 2/4] soc: fsl: guts: Add definition for LS1028A Yinbo Zhu
  2019-08-14  7:26 ` [PATCH v1 3/4] arm64: dts: ls1028a: fix little-big endian issue for dcfg Yinbo Zhu
@ 2019-08-14  7:26 ` Yinbo Zhu
  2019-08-15 11:48   ` Adrian Hunter
  2019-08-22 12:13   ` Ulf Hansson
  2019-11-22  3:31 ` [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode Yinbo Zhu
  3 siblings, 2 replies; 8+ messages in thread
From: Yinbo Zhu @ 2019-08-14  7:26 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
	Adrian Hunter, Ulf Hansson, Li Yang, Claudiu Manoil, Amit Jain,
	Yangbo Lu, Vabhav Sharma, Rajesh Bhagat, Ashish Kumar,
	devicetree, linux-arm-kernel, linux-kernel, linux-mmc
  Cc: yinbo.zhu, xiaobo.xie, jiafei.pan, Alison Wang, Alex Marginean,
	Catalin Horghidan, Rajat Srivastava, linuxppc-dev

This patch is to add erratum A011334 support in ls1028a 1.0 SoC

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
 drivers/mmc/host/sdhci-of-esdhc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c
index b16f7d440f78..eb2b290447fc 100644
--- a/drivers/mmc/host/sdhci-of-esdhc.c
+++ b/drivers/mmc/host/sdhci-of-esdhc.c
@@ -1006,6 +1006,7 @@ static struct soc_device_attribute soc_incorrect_hostver[] = {
 static struct soc_device_attribute soc_fixup_sdhc_clkdivs[] = {
 	{ .family = "QorIQ LX2160A", .revision = "1.0", },
 	{ .family = "QorIQ LX2160A", .revision = "2.0", },
+	{ .family = "QorIQ LS1028A", .revision = "1.0", },
 	{ },
 };
 
-- 
2.17.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC
  2019-08-14  7:26 ` [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC Yinbo Zhu
@ 2019-08-15 11:48   ` Adrian Hunter
  2019-08-22 12:13   ` Ulf Hansson
  1 sibling, 0 replies; 8+ messages in thread
From: Adrian Hunter @ 2019-08-15 11:48 UTC (permalink / raw)
  To: Yinbo Zhu, Rob Herring, Mark Rutland, Catalin Marinas,
	Will Deacon, Ulf Hansson, Li Yang, Claudiu Manoil, Amit Jain,
	Yangbo Lu, Vabhav Sharma, Rajesh Bhagat, Ashish Kumar,
	devicetree, linux-arm-kernel, linux-kernel, linux-mmc
  Cc: Alison Wang, Alex Marginean, xiaobo.xie, Catalin Horghidan,
	Rajat Srivastava, jiafei.pan, linuxppc-dev

On 14/08/19 10:26 AM, Yinbo Zhu wrote:
> This patch is to add erratum A011334 support in ls1028a 1.0 SoC
> 
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>

Acked-by: Adrian Hunter <adrian.hunter@intel.com>

> ---
>  drivers/mmc/host/sdhci-of-esdhc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c
> index b16f7d440f78..eb2b290447fc 100644
> --- a/drivers/mmc/host/sdhci-of-esdhc.c
> +++ b/drivers/mmc/host/sdhci-of-esdhc.c
> @@ -1006,6 +1006,7 @@ static struct soc_device_attribute soc_incorrect_hostver[] = {
>  static struct soc_device_attribute soc_fixup_sdhc_clkdivs[] = {
>  	{ .family = "QorIQ LX2160A", .revision = "1.0", },
>  	{ .family = "QorIQ LX2160A", .revision = "2.0", },
> +	{ .family = "QorIQ LS1028A", .revision = "1.0", },
>  	{ },
>  };
>  
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v1 2/4] soc: fsl: guts: Add definition for LS1028A
  2019-08-14  7:26 ` [PATCH v1 2/4] soc: fsl: guts: Add definition for LS1028A Yinbo Zhu
@ 2019-08-15 22:40   ` Li Yang
  0 siblings, 0 replies; 8+ messages in thread
From: Li Yang @ 2019-08-15 22:40 UTC (permalink / raw)
  To: Yinbo Zhu
  Cc: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
	Adrian Hunter, Ulf Hansson, Claudiu Manoil, Amit Jain, Yangbo Lu,
	Vabhav Sharma, Rajesh Bhagat, Ashish Kumar,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE, lkml,
	linux-mmc, Xiaobo Xie, Jiafei Pan

On Wed, Aug 14, 2019 at 2:26 AM Yinbo Zhu <yinbo.zhu@nxp.com> wrote:
>
> Adding compatible string "ls1028a-dcfg" to initialize guts driver
> for ls1028 and SoC die attribute definition for LS1028A
>
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>

Applied for next.

> ---
>  drivers/soc/fsl/guts.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c
> index 1ef8068c8dd3..34810f9bb2ee 100644
> --- a/drivers/soc/fsl/guts.c
> +++ b/drivers/soc/fsl/guts.c
> @@ -102,6 +102,11 @@ static const struct fsl_soc_die_attr fsl_soc_die[] = {
>           .svr          = 0x87360000,
>           .mask         = 0xff3f0000,
>         },
> +       /* Die: LS1028A, SoC: LS1028A */
> +       { .die          = "LS1028A",
> +         .svr          = 0x870b0000,
> +         .mask         = 0xff3f0000,
> +       },
>         { },
>  };
>
> @@ -224,6 +229,7 @@ static const struct of_device_id fsl_guts_of_match[] = {
>         { .compatible = "fsl,ls1012a-dcfg", },
>         { .compatible = "fsl,ls1046a-dcfg", },
>         { .compatible = "fsl,lx2160a-dcfg", },
> +       { .compatible = "fsl,ls1028a-dcfg", },
>         {}
>  };
>  MODULE_DEVICE_TABLE(of, fsl_guts_of_match);
> --
> 2.17.1
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC
  2019-08-14  7:26 ` [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC Yinbo Zhu
  2019-08-15 11:48   ` Adrian Hunter
@ 2019-08-22 12:13   ` Ulf Hansson
  1 sibling, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2019-08-22 12:13 UTC (permalink / raw)
  To: Yinbo Zhu
  Cc: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
	Adrian Hunter, Li Yang, Claudiu Manoil, Amit Jain, Yangbo Lu,
	Vabhav Sharma, Rajesh Bhagat, Ashish Kumar, DTML, Linux ARM,
	Linux Kernel Mailing List, linux-mmc, Xiaobo Xie, Jiafei Pan,
	Alison Wang, Alex

On Wed, 14 Aug 2019 at 09:24, Yinbo Zhu <yinbo.zhu@nxp.com> wrote:
>
> This patch is to add erratum A011334 support in ls1028a 1.0 SoC
>
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/sdhci-of-esdhc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c
> index b16f7d440f78..eb2b290447fc 100644
> --- a/drivers/mmc/host/sdhci-of-esdhc.c
> +++ b/drivers/mmc/host/sdhci-of-esdhc.c
> @@ -1006,6 +1006,7 @@ static struct soc_device_attribute soc_incorrect_hostver[] = {
>  static struct soc_device_attribute soc_fixup_sdhc_clkdivs[] = {
>         { .family = "QorIQ LX2160A", .revision = "1.0", },
>         { .family = "QorIQ LX2160A", .revision = "2.0", },
> +       { .family = "QorIQ LS1028A", .revision = "1.0", },
>         { },
>  };
>
> --
> 2.17.1
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode
  2019-08-14  7:26 [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode Yinbo Zhu
                   ` (2 preceding siblings ...)
  2019-08-14  7:26 ` [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC Yinbo Zhu
@ 2019-11-22  3:31 ` Yinbo Zhu
  3 siblings, 0 replies; 8+ messages in thread
From: Yinbo Zhu @ 2019-11-22  3:31 UTC (permalink / raw)
  To: Yinbo Zhu, Rob Herring, Mark Rutland, Catalin Marinas,
	Will Deacon, Adrian Hunter, Ulf Hansson, Leo Li, Claudiu Manoil,
	Amit Jain (aj),
	Y.b. Lu, Vabhav Sharma, Rajesh Bhagat, Ashish Kumar, devicetree,
	linux-arm-kernel, linux-kernel, linux-mmc
  Cc: Alison Wang, Alexandru Marginean, Xiaobo Xie, Catalin Horghidan,
	Rajat Srivastava, Jiafei Pan, linuxppc-dev

Hi 

My hs400 series patches for ls1028 need do any changes? 
  
Regards,
Yinbo Zhu.

-----Original Message-----
From: Yinbo Zhu <yinbo.zhu@nxp.com> 
Sent: 2019年8月14日 15:27
To: Rob Herring <robh+dt@kernel.org>; Mark Rutland <mark.rutland@arm.com>; Catalin Marinas <catalin.marinas@arm.com>; Will Deacon <will.deacon@arm.com>; Adrian Hunter <adrian.hunter@intel.com>; Ulf Hansson <ulf.hansson@linaro.org>; Leo Li <leoyang.li@nxp.com>; Claudiu Manoil <claudiu.manoil@nxp.com>; Amit Jain (aj) <amit.jain_1@nxp.com>; Y.b. Lu <yangbo.lu@nxp.com>; Vabhav Sharma <vabhav.sharma@nxp.com>; Rajesh Bhagat <rajesh.bhagat@nxp.com>; Ashish Kumar <ashish.kumar@nxp.com>; devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; linux-mmc@vger.kernel.org
Cc: Yinbo Zhu <yinbo.zhu@nxp.com>; Xiaobo Xie <xiaobo.xie@nxp.com>; Jiafei Pan <jiafei.pan@nxp.com>; Alison Wang <alison.wang@nxp.com>; Alexandru Marginean <alexandru.marginean@nxp.com>; Catalin Horghidan <catalin.horghidan@nxp.com>; Rajat Srivastava <rajat.srivastava@nxp.com>; linuxppc-dev@lists.ozlabs.org
Subject: [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode

This patch is to enable emmc hs400 mode for ls1028ardb

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index 8a725409e881..f1e46cc4cea1 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -92,8 +92,10 @@
 	};
 
 &esdhc1 {
-	status = "okay";
 	mmc-hs200-1_8v;
+	mmc-hs400-1_8v;
+	bus-width = <8>;
+	status = "okay";
 	};
 
 &i2c0 {
-- 
2.17.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, back to index

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14  7:26 [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode Yinbo Zhu
2019-08-14  7:26 ` [PATCH v1 2/4] soc: fsl: guts: Add definition for LS1028A Yinbo Zhu
2019-08-15 22:40   ` Li Yang
2019-08-14  7:26 ` [PATCH v1 3/4] arm64: dts: ls1028a: fix little-big endian issue for dcfg Yinbo Zhu
2019-08-14  7:26 ` [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC Yinbo Zhu
2019-08-15 11:48   ` Adrian Hunter
2019-08-22 12:13   ` Ulf Hansson
2019-11-22  3:31 ` [PATCH v1 1/4] arm64: dts: ls1028a-rdb: enable emmc hs400 mode Yinbo Zhu

Linux-mmc Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mmc/0 linux-mmc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mmc linux-mmc/ https://lore.kernel.org/linux-mmc \
		linux-mmc@vger.kernel.org
	public-inbox-index linux-mmc

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-mmc


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git