Linux-ARM-Kernel 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
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ 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: Alison Wang, Alex Marginean, xiaobo.xie, Catalin Horghidan,
	Rajat Srivastava, jiafei.pan, linuxppc-dev, yinbo.zhu

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] 7+ 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
  2019-08-14  7:26 ` [PATCH v1 4/4] mmc: sdhci-of-esdhc: add erratum A011334 support in ls1028a 1.0 SoC Yinbo Zhu
  2 siblings, 1 reply; 7+ 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: Alison Wang, Alex Marginean, xiaobo.xie, Catalin Horghidan,
	Rajat Srivastava, jiafei.pan, linuxppc-dev, yinbo.zhu

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


_______________________________________________
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] 7+ 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
  2 siblings, 0 replies; 7+ 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: Alison Wang, Alex Marginean, xiaobo.xie, Catalin Horghidan,
	Rajat Srivastava, jiafei.pan, linuxppc-dev, yinbo.zhu

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


_______________________________________________
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] 7+ 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
  2 siblings, 2 replies; 7+ 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: Alison Wang, Alex Marginean, xiaobo.xie, Catalin Horghidan,
	Rajat Srivastava, jiafei.pan, linuxppc-dev, yinbo.zhu

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


_______________________________________________
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] 7+ 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; 7+ 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", },
>  	{ },
>  };
>  
> 


_______________________________________________
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] 7+ 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; 7+ messages in thread
From: Li Yang @ 2019-08-15 22:40 UTC (permalink / raw)
  To: Yinbo Zhu
  Cc: Mark Rutland, Ulf Hansson, Catalin Marinas, Will Deacon,
	Adrian Hunter, Catalin Horghidan, linux-mmc,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Rajesh Bhagat, Alison Wang, Ashish Kumar, Claudiu Manoil,
	Rob Herring, Vabhav Sharma,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
	Amit Jain, Alex Marginean, lkml, Rajat Srivastava, Yangbo Lu,
	Jiafei Pan, linuxppc-dev, Xiaobo Xie

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
>

_______________________________________________
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] 7+ 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; 7+ messages in thread
From: Ulf Hansson @ 2019-08-22 12:13 UTC (permalink / raw)
  To: Yinbo Zhu
  Cc: Mark Rutland, Catalin Marinas, Will Deacon, Adrian Hunter,
	Catalin Horghidan, linux-mmc, DTML, Rajesh Bhagat, Alison Wang,
	Ashish Kumar, Claudiu Manoil, Rob Herring, Vabhav Sharma,
	Linux ARM, Amit Jain, Alex Marginean, Linux Kernel Mailing List,
	Li Yang, Rajat Srivastava, Yangbo Lu, Jiafei Pan, linuxppc-dev,
	Xiaobo Xie

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
>

_______________________________________________
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] 7+ messages in thread

end of thread, back to index

Thread overview: 7+ 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

Linux-ARM-Kernel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/0 linux-arm-kernel/git/0.git
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/1 linux-arm-kernel/git/1.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-arm-kernel linux-arm-kernel/ https://lore.kernel.org/linux-arm-kernel \
		linux-arm-kernel@lists.infradead.org infradead-linux-arm-kernel@archiver.kernel.org
	public-inbox-index linux-arm-kernel


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-arm-kernel


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