armv8: dts: fsl-ls1043a: add sata node support
Subsystems (2)
PATCH 1/3 armv8: dts: fsl-ls1043a: add sata node support
From: Peng Ma <[email protected]>
Add sata node to support ls1043a.
--- arch/arm/dts/fsl-ls1043a-qds.dtsi | 4 ++++ arch/arm/dts/fsl-ls1043a.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+), 0 deletions(-)
arch/arm/dts/fsl-ls1043a-qds.dtsi +4 -0
@@ -174,3 +174,7 @@ &lpuart0 { status = "okay"; }; + +&sata { + status = "okay"; +};
arch/arm/dts/fsl-ls1043a.dtsi +8 -0
@@ -287,5 +287,13 @@ ranges = <0x81000000 0x0 0x00000000 0x50 0x00020000 0x0 0x00010000 /* downstream I/O */ 0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ }; + + sata: sata at 3200000 { + compatible = "fsl,ls1043a-ahci"; + reg = <0x0 0x3200000 0x0 0x10000>; + interrupts = <0 69 4>; + clocks = <&clockgen 4 0>; + status = "disabled"; + }; }; };
Signature · 1 line
1.7.1
PATCH 2/3 scsi: ceva: add ls1043a soc support
From: Peng Ma <[email protected]>
Add ahci compatible support for ls1043a soc.
---
depend on:
patchwork.ozlabs.org/patch/924896/
drivers/ata/sata_ceva.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-)
drivers/ata/sata_ceva.c +9 -7
@@ -7,7 +7,6 @@#include <dm.h> #include <ahci.h> #include <scsi.h> -#include <asm/arch/hardware.h> #include <asm/io.h>
@@ -90,6 +89,7 @@enum ceva_soc {CEVA_1V84 ,CEVA_LS1012A , +CEVA_LS1043A , };struct ceva_sata_priv {
@@ -98,6 +98,13 @@ struct ceva_sata_priv {ulong flag; }; +static const struct udevice_id sata_ceva_ids[] = { + { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, + { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, + { .compatible ="fsl,ls1043a-ahci" , .data =CEVA_LS1043A }, + { } +}; +static int ceva_init_sata (struct ceva_sata_priv *priv) {ulong base = priv->base;
@@ -116,6 +123,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv)break ;case CEVA_LS1012A : +case CEVA_LS1043A :writel (ECC_DIS_ADDR_CH2 ,ECC_DIS_VAL_CH2 );writel (CEVA_PHY1_CFG , base +AHCI_VEND_PPCFG );writel (CEVA_TRANS_CFG , base +AHCI_VEND_PTC );
@@ -143,12 +151,6 @@ static int sata_ceva_probe(struct udevice *dev)return ahci_probe_scsi (dev, priv->base); } -static const struct udevice_id sata_ceva_ids[] = { - { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, - { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, - { } -}; -static int sata_ceva_ofdata_to_platdata (struct udevice *dev) {struct ceva_sata_priv *priv =dev_get_priv (dev);
Signature · 1 line
1.7.1
PATCH 2/3 scsi: ceva: add ls1043a soc support
Quoted 55 lines · peng.ma at nxp.com
From: Peng Ma <[email protected]>
Add ahci compatible support for ls1043a soc.
Signed-off-by Peng Ma <[email protected]>---
depend on:patchwork.ozlabs.org/patch/924896/drivers/ata/sata_ceva.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-)drivers/ata/sata_ceva.c +9
-1@@ -7,7 +7,6 @@#include <dm.h> #include <ahci.h> #include <scsi.h> -#include <asm/arch/hardware.h> #include <asm/io.h> @@ -90,6 +89,7 @@enum ceva_soc {CEVA_1V84 ,CEVA_LS1012A , +CEVA_LS1043A , };struct ceva_sata_priv {@@ -98,6 +98,13 @@ struct ceva_sata_priv {ulong flag; }; +static const struct udevice_id sata_ceva_ids[] = { + { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, + { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, + { .compatible ="fsl,ls1043a-ahci" , .data =CEVA_LS1043A }, + { } +}; +static int ceva_init_sata (struct ceva_sata_priv *priv) {ulong base = priv->base;@@ -116,6 +123,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv)break ;case CEVA_LS1012A : +case CEVA_LS1043A :writel (ECC_DIS_ADDR_CH2 ,ECC_DIS_VAL_CH2 );writel (CEVA_PHY1_CFG , base +AHCI_VEND_PPCFG );writel (CEVA_TRANS_CFG , base +AHCI_VEND_PTC );
drivers/ata/sata_ceva.c static int sata_ceva_probe(struct udevice *dev) · line 151
Quoted 9 lines
drivers/ata/sata_ceva.c +0
-6@@ -143,12 +151,6 @@ static int sata_ceva_probe(struct udevice *dev)return ahci_probe_scsi (dev, priv->base); } -static const struct udevice_id sata_ceva_ids[] = { - { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, - { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, - { } -}; -
Why do you move this structure?
York
PATCH 2/3 scsi: ceva: add ls1043a soc support
-----Original Message-----
From: York Sun
Sent: 2018年8月1日 1:38
To: Peng Ma <[email protected]>
Cc: albert.u.boot at aribaud.net; Mingkai Hu <[email protected]>; Pankaj Bansal <[email protected]>; Fabio Estevam <[email protected]>; Yinbo Zhu <[email protected]>; sjg at chromium.org; bmeng.cn at gmail.com; michal.simek at xilinx.com; Andy Tang <[email protected]>; u-boot at lists.denx.de
Subject: Re: [PATCH 2/3] scsi: ceva: add ls1043a soc support
Quoted 54 lines · peng.ma at nxp.com
From: Peng Ma <[email protected]>
Add ahci compatible support for ls1043a soc.
Signed-off-by Peng Ma <[email protected]>---
depend on:patchwork.ozlabs.org/patch/924896/drivers/ata/sata_ceva.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-)drivers/ata/sata_ceva.c index renamed from drivers/ata/sata_ceva.c +0
-04c9ebe4..39269fe 100644
drivers/ata/sata_ceva.c +9
-1@@ -7,7 +7,6 @@#include <dm.h> #include <ahci.h> #include <scsi.h> -#include <asm/arch/hardware.h> #include <asm/io.h> @@ -90,6 +89,7 @@enum ceva_soc {CEVA_1V84 ,CEVA_LS1012A , +CEVA_LS1043A , };struct ceva_sata_priv {@@ -98,6 +98,13 @@ struct ceva_sata_priv {ulong flag; }; +static const struct udevice_id sata_ceva_ids[] = { + { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, + { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, + { .compatible ="fsl,ls1043a-ahci" , .data =CEVA_LS1043A }, + { } +}; +static int ceva_init_sata (struct ceva_sata_priv *priv) {ulong base = priv->base;@@ -116,6 +123,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv)break ;case CEVA_LS1012A : +case CEVA_LS1043A :writel (ECC_DIS_ADDR_CH2 ,ECC_DIS_VAL_CH2 );writel (CEVA_PHY1_CFG , base +AHCI_VEND_PPCFG ); writel(CEVA_TRANS_CFG, base + AHCI_VEND_PTC); @@ -143,12 +151,6 @@static int
sata_ceva_probe(struct udevice *dev)
drivers/ata/sata_ceva.c static int sata_ceva_probe(struct udevice *dev) · line 151
Quoted 8 lines
drivers/ata/sata_ceva.c +0
-6return ahci_probe_scsi (dev, priv->base); } -static const struct udevice_id sata_ceva_ids[] = { - { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, - { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, - { } -}; -
Why do you move this structure?
York
Replay:
In our internal review, you suggested to me that compatible should put before, so I did that.
Best regards
Peng Ma.
PATCH 2/3 scsi: ceva: add ls1043a soc support
Quoted 75 lines · Peng Ma
-----Original Message-----
From: York Sun
Sent: 2018年8月1日 1:38
To: Peng Ma <[email protected]>
Cc: albert.u.boot at aribaud.net; Mingkai Hu <[email protected]>; Pankaj Bansal <[email protected]>; Fabio Estevam <[email protected]>; Yinbo Zhu <[email protected]>; sjg at chromium.org; bmeng.cn at gmail.com; michal.simek at xilinx.com; Andy Tang <[email protected]>; u-boot at lists.denx.de
Subject: Re: [PATCH 2/3] scsi: ceva: add ls1043a soc supportQuoted 54 lines · peng.ma at nxp.com
From: Peng Ma <[email protected]>
Add ahci compatible support for ls1043a soc.
Signed-off-by Peng Ma <[email protected]>---
depend on:patchwork.ozlabs.org/patch/924896/drivers/ata/sata_ceva.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-)drivers/ata/sata_ceva.c index renamed from drivers/ata/sata_ceva.c +0
-04c9ebe4..39269fe 100644
drivers/ata/sata_ceva.c +9
-1@@ -7,7 +7,6 @@#include <dm.h> #include <ahci.h> #include <scsi.h> -#include <asm/arch/hardware.h> #include <asm/io.h> @@ -90,6 +89,7 @@enum ceva_soc {CEVA_1V84 ,CEVA_LS1012A , +CEVA_LS1043A , };struct ceva_sata_priv {@@ -98,6 +98,13 @@ struct ceva_sata_priv {ulong flag; }; +static const struct udevice_id sata_ceva_ids[] = { + { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, + { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, + { .compatible ="fsl,ls1043a-ahci" , .data =CEVA_LS1043A }, + { } +}; +static int ceva_init_sata (struct ceva_sata_priv *priv) {ulong base = priv->base;@@ -116,6 +123,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv)break ;case CEVA_LS1012A : +case CEVA_LS1043A :writel (ECC_DIS_ADDR_CH2 ,ECC_DIS_VAL_CH2 );writel (CEVA_PHY1_CFG , base +AHCI_VEND_PPCFG ); writel(CEVA_TRANS_CFG, base + AHCI_VEND_PTC); @@ -143,12 +151,6 @@static int
sata_ceva_probe(struct udevice *dev)drivers/ata/sata_ceva.c static int sata_ceva_probe(struct udevice *dev) · line 151
Quoted 8 lines
drivers/ata/sata_ceva.c +0
-6return ahci_probe_scsi (dev, priv->base); } -static const struct udevice_id sata_ceva_ids[] = { - { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, - { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, - { } -}; -Why do you move this structure?
Quoted 5 lines
York
Replay:
In our internal review, you suggested to me that compatible should put before, so I did that.
Hmm, I don't remember that for this patch. Checking my emails, I commented on your internal patch set, but not on this change. Anyway, I see your reason.
York
PATCH 2/3 scsi: ceva: add ls1043a soc support
In reply to York SunHi York:
It's My fault, I could misunderstood your suggest, I will send v2 patch to fix this issue.
Thanks
Peng
-----Original Message-----
From: York Sun
Sent: 2018年8月1日 1:38
To: Peng Ma <[email protected]>
Cc: albert.u.boot at aribaud.net; Mingkai Hu <[email protected]>; Pankaj Bansal <[email protected]>; Fabio Estevam <[email protected]>; Yinbo Zhu <[email protected]>; sjg at chromium.org; bmeng.cn at gmail.com; michal.simek at xilinx.com; Andy Tang <[email protected]>; u-boot at lists.denx.de
Subject: Re: [PATCH 2/3] scsi: ceva: add ls1043a soc support
Quoted 54 lines · peng.ma at nxp.com
From: Peng Ma <[email protected]>
Add ahci compatible support for ls1043a soc.
Signed-off-by Peng Ma <[email protected]>---
depend on:patchwork.ozlabs.org/patch/924896/drivers/ata/sata_ceva.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-)drivers/ata/sata_ceva.c index renamed from drivers/ata/sata_ceva.c +0
-04c9ebe4..39269fe 100644
drivers/ata/sata_ceva.c +9
-1@@ -7,7 +7,6 @@#include <dm.h> #include <ahci.h> #include <scsi.h> -#include <asm/arch/hardware.h> #include <asm/io.h> @@ -90,6 +89,7 @@enum ceva_soc {CEVA_1V84 ,CEVA_LS1012A , +CEVA_LS1043A , };struct ceva_sata_priv {@@ -98,6 +98,13 @@ struct ceva_sata_priv {ulong flag; }; +static const struct udevice_id sata_ceva_ids[] = { + { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, + { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, + { .compatible ="fsl,ls1043a-ahci" , .data =CEVA_LS1043A }, + { } +}; +static int ceva_init_sata (struct ceva_sata_priv *priv) {ulong base = priv->base;@@ -116,6 +123,7 @@ static int ceva_init_sata(struct ceva_sata_priv *priv)break ;case CEVA_LS1012A : +case CEVA_LS1043A :writel (ECC_DIS_ADDR_CH2 ,ECC_DIS_VAL_CH2 );writel (CEVA_PHY1_CFG , base +AHCI_VEND_PPCFG ); writel(CEVA_TRANS_CFG, base + AHCI_VEND_PTC); @@ -143,12 +151,6 @@static int
sata_ceva_probe(struct udevice *dev)
drivers/ata/sata_ceva.c static int sata_ceva_probe(struct udevice *dev) · line 151
Quoted 8 lines
drivers/ata/sata_ceva.c +0
-6return ahci_probe_scsi (dev, priv->base); } -static const struct udevice_id sata_ceva_ids[] = { - { .compatible ="ceva,ahci-1v84" , .data =CEVA_1V84 }, - { .compatible ="fsl,ls1012a-ahci" , .data =CEVA_LS1012A }, - { } -}; -
Why do you move this structure?
York