* [PATCH v3 0/3] mtd: rawnand: marvell: add support for AC5 SoC
@ 2023-07-03 3:50 Chris Packham
2023-07-03 3:50 ` [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding Chris Packham
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Chris Packham @ 2023-07-03 3:50 UTC (permalink / raw)
To: miquel.raynal, richard, vigneshr, robh+dt, krzysztof.kozlowski+dt,
conor+dt, gregory.clement
Cc: linux-mtd, devicetree, linux-kernel, Chris Packham
This series adds support for the NAND Flash Controller on the AC5/AC5X SOC. Its
dependent series are all in mainline now so this should apply cleanly on top of
that.
I've tried to stick to the minimal changes required to get the NFC working on
the board I have (AC5X + S34ML02G2). Marvell's SDK has hard coded tables of
ndtr values for the different timing modes but so far that seems unnecessary.
Chris Packham (3):
dt-bindings: mtd: Add AC5 specific binding
arm64: dts: marvell: Add NAND flash controller to AC5
mtd: rawnand: marvell: add support for AC5 SoC
.../bindings/mtd/marvell,nand-controller.yaml | 1 +
arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 16 ++++++++++++++++
drivers/mtd/nand/raw/Kconfig | 2 +-
drivers/mtd/nand/raw/marvell_nand.c | 16 ++++++++++++++++
4 files changed, 34 insertions(+), 1 deletion(-)
--
2.41.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding
2023-07-03 3:50 [PATCH v3 0/3] mtd: rawnand: marvell: add support for AC5 SoC Chris Packham
@ 2023-07-03 3:50 ` Chris Packham
2023-07-12 12:32 ` Miquel Raynal
2023-07-13 7:57 ` Miquel Raynal
2023-07-03 3:50 ` [PATCH v3 2/3] arm64: dts: marvell: Add NAND flash controller to AC5 Chris Packham
2023-07-03 3:50 ` [PATCH v3 3/3] mtd: rawnand: marvell: add support for AC5 SoC Chris Packham
2 siblings, 2 replies; 11+ messages in thread
From: Chris Packham @ 2023-07-03 3:50 UTC (permalink / raw)
To: miquel.raynal, richard, vigneshr, robh+dt, krzysztof.kozlowski+dt,
conor+dt, gregory.clement
Cc: linux-mtd, devicetree, linux-kernel, Chris Packham
Add binding for AC5 SoC. This SoC only supports NAND SDR timings up to
mode 3 so a specific compatible value is needed.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
---
Notes:
Changes in v3:
- Collect ack from Conor
Changes in v2:
- Keep compatibles in alphabetical order
- Explain AC5 limitations in commit message
.../devicetree/bindings/mtd/marvell,nand-controller.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml b/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
index a10729bb1840..1ecea848e8b9 100644
--- a/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
+++ b/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
@@ -16,6 +16,7 @@ properties:
- const: marvell,armada-8k-nand-controller
- const: marvell,armada370-nand-controller
- enum:
+ - marvell,ac5-nand-controller
- marvell,armada370-nand-controller
- marvell,pxa3xx-nand-controller
- description: legacy bindings
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 2/3] arm64: dts: marvell: Add NAND flash controller to AC5
2023-07-03 3:50 [PATCH v3 0/3] mtd: rawnand: marvell: add support for AC5 SoC Chris Packham
2023-07-03 3:50 ` [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding Chris Packham
@ 2023-07-03 3:50 ` Chris Packham
2023-07-13 8:59 ` Gregory CLEMENT
2023-07-03 3:50 ` [PATCH v3 3/3] mtd: rawnand: marvell: add support for AC5 SoC Chris Packham
2 siblings, 1 reply; 11+ messages in thread
From: Chris Packham @ 2023-07-03 3:50 UTC (permalink / raw)
To: miquel.raynal, richard, vigneshr, robh+dt, krzysztof.kozlowski+dt,
conor+dt, gregory.clement
Cc: linux-mtd, devicetree, linux-kernel, Chris Packham
The AC5/AC5X SoC has a NAND flash controller (NFC). Add this to
the base SoC dtsi file as a disabled node. The NFC integration
on the AC5/AC5X only supports SDR timing modes up to 3 so requires a
dedicated compatible property so this limitation can be enforced.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Changes in v3:
- Use correct clock for NFC
Changes in v2:
- New.
arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
index c9ce1010c415..c64aaf51deb8 100644
--- a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
@@ -297,6 +297,16 @@ spi1: spi@805a8000 {
status = "disabled";
};
+ nand: nand-controller@805b0000 {
+ compatible = "marvell,ac5-nand-controller";
+ reg = <0x0 0x805b0000 0x0 0x00000054>;
+ #address-cells = <0x1>;
+ #size-cells = <0x0>;
+ interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&nand_clock>;
+ status = "disabled";
+ };
+
gic: interrupt-controller@80600000 {
compatible = "arm,gic-v3";
#interrupt-cells = <3>;
@@ -319,5 +329,11 @@ spi_clock: spi-clock {
#clock-cells = <0>;
clock-frequency = <200000000>;
};
+
+ nand_clock: nand-clock {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <400000000>;
+ };
};
};
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 3/3] mtd: rawnand: marvell: add support for AC5 SoC
2023-07-03 3:50 [PATCH v3 0/3] mtd: rawnand: marvell: add support for AC5 SoC Chris Packham
2023-07-03 3:50 ` [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding Chris Packham
2023-07-03 3:50 ` [PATCH v3 2/3] arm64: dts: marvell: Add NAND flash controller to AC5 Chris Packham
@ 2023-07-03 3:50 ` Chris Packham
2023-07-13 7:57 ` Miquel Raynal
2 siblings, 1 reply; 11+ messages in thread
From: Chris Packham @ 2023-07-03 3:50 UTC (permalink / raw)
To: miquel.raynal, richard, vigneshr, robh+dt, krzysztof.kozlowski+dt,
conor+dt, gregory.clement
Cc: linux-mtd, devicetree, linux-kernel, Chris Packham
Add support for the AC5/AC5X SoC from Marvell. The NFC on this SoC only
supports SDR modes up to 3.
Marvell's SDK includes some predefined values for the ndtr registers.
These haven't been incorporated as the existing code seems to get good
values based on measurements taken with an oscilloscope.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Changes in v3:
- None
Changes in v2:
- None
drivers/mtd/nand/raw/Kconfig | 2 +-
drivers/mtd/nand/raw/marvell_nand.c | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index b523354dfb00..0f4cbb497010 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -160,7 +160,7 @@ config MTD_NAND_MARVELL
including:
- PXA3xx processors (NFCv1)
- 32-bit Armada platforms (XP, 37x, 38x, 39x) (NFCv2)
- - 64-bit Aramda platforms (7k, 8k) (NFCv2)
+ - 64-bit Aramda platforms (7k, 8k, ac5) (NFCv2)
config MTD_NAND_SLC_LPC32XX
tristate "NXP LPC32xx SLC NAND controller"
diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c
index 30c15e4e1cc0..b9a8dd324211 100644
--- a/drivers/mtd/nand/raw/marvell_nand.c
+++ b/drivers/mtd/nand/raw/marvell_nand.c
@@ -375,6 +375,7 @@ static inline struct marvell_nand_chip_sel *to_nand_sel(struct marvell_nand_chip
* BCH error detection and correction algorithm,
* NDCB3 register has been added
* @use_dma: Use dma for data transfers
+ * @max_mode_number: Maximum timing mode supported by the controller
*/
struct marvell_nfc_caps {
unsigned int max_cs_nb;
@@ -383,6 +384,7 @@ struct marvell_nfc_caps {
bool legacy_of_bindings;
bool is_nfcv2;
bool use_dma;
+ unsigned int max_mode_number;
};
/**
@@ -2376,6 +2378,9 @@ static int marvell_nfc_setup_interface(struct nand_chip *chip, int chipnr,
if (IS_ERR(sdr))
return PTR_ERR(sdr);
+ if (nfc->caps->max_mode_number && nfc->caps->max_mode_number < conf->timings.mode)
+ return -EOPNOTSUPP;
+
/*
* SDR timings are given in pico-seconds while NFC timings must be
* expressed in NAND controller clock cycles, which is half of the
@@ -3073,6 +3078,13 @@ static const struct marvell_nfc_caps marvell_armada_8k_nfc_caps = {
.is_nfcv2 = true,
};
+static const struct marvell_nfc_caps marvell_ac5_caps = {
+ .max_cs_nb = 2,
+ .max_rb_nb = 1,
+ .is_nfcv2 = true,
+ .max_mode_number = 3,
+};
+
static const struct marvell_nfc_caps marvell_armada370_nfc_caps = {
.max_cs_nb = 4,
.max_rb_nb = 2,
@@ -3121,6 +3133,10 @@ static const struct of_device_id marvell_nfc_of_ids[] = {
.compatible = "marvell,armada-8k-nand-controller",
.data = &marvell_armada_8k_nfc_caps,
},
+ {
+ .compatible = "marvell,ac5-nand-controller",
+ .data = &marvell_ac5_caps,
+ },
{
.compatible = "marvell,armada370-nand-controller",
.data = &marvell_armada370_nfc_caps,
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding
2023-07-03 3:50 ` [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding Chris Packham
@ 2023-07-12 12:32 ` Miquel Raynal
2023-07-12 18:13 ` Conor Dooley
2023-07-12 20:36 ` Chris Packham
2023-07-13 7:57 ` Miquel Raynal
1 sibling, 2 replies; 11+ messages in thread
From: Miquel Raynal @ 2023-07-12 12:32 UTC (permalink / raw)
To: Chris Packham
Cc: richard, vigneshr, robh+dt, krzysztof.kozlowski+dt, conor+dt,
gregory.clement, linux-mtd, devicetree, linux-kernel
Hi Chris,
chris.packham@alliedtelesis.co.nz wrote on Mon, 3 Jul 2023 15:50:42
+1200:
> Add binding for AC5 SoC. This SoC only supports NAND SDR timings up to
> mode 3 so a specific compatible value is needed.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
I need DT-binding maintainer's ack to take this patch, but this commit
did not receive feedback (positive of negative) from them and is no
longer in their patchwork. Can you please resend the series?
The other patches LGTM.
> ---
>
> Notes:
> Changes in v3:
> - Collect ack from Conor
> Changes in v2:
> - Keep compatibles in alphabetical order
> - Explain AC5 limitations in commit message
>
> .../devicetree/bindings/mtd/marvell,nand-controller.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml b/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
> index a10729bb1840..1ecea848e8b9 100644
> --- a/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
> +++ b/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
> @@ -16,6 +16,7 @@ properties:
> - const: marvell,armada-8k-nand-controller
> - const: marvell,armada370-nand-controller
> - enum:
> + - marvell,ac5-nand-controller
> - marvell,armada370-nand-controller
> - marvell,pxa3xx-nand-controller
> - description: legacy bindings
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding
2023-07-12 12:32 ` Miquel Raynal
@ 2023-07-12 18:13 ` Conor Dooley
2023-07-13 7:23 ` Miquel Raynal
2023-07-12 20:36 ` Chris Packham
1 sibling, 1 reply; 11+ messages in thread
From: Conor Dooley @ 2023-07-12 18:13 UTC (permalink / raw)
To: Miquel Raynal
Cc: Chris Packham, richard, vigneshr, robh+dt, krzysztof.kozlowski+dt,
conor+dt, gregory.clement, linux-mtd, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
On Wed, Jul 12, 2023 at 02:32:20PM +0200, Miquel Raynal wrote:
> Hi Chris,
>
> chris.packham@alliedtelesis.co.nz wrote on Mon, 3 Jul 2023 15:50:42
> +1200:
>
> > Add binding for AC5 SoC. This SoC only supports NAND SDR timings up to
> > mode 3 so a specific compatible value is needed.
> >
> > Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> > Acked-by: Conor Dooley <conor.dooley@microchip.com>
>
> I need DT-binding maintainer's ack to take this patch, but this commit
> did not receive feedback (positive of negative) from them and is no
> longer in their patchwork. Can you please resend the series?
You have one ;)
https://docs.kernel.org/process/maintainers.html?highlight=conor+dooley#open-firmware-and-flattened-device-tree-bindings
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding
2023-07-12 12:32 ` Miquel Raynal
2023-07-12 18:13 ` Conor Dooley
@ 2023-07-12 20:36 ` Chris Packham
1 sibling, 0 replies; 11+ messages in thread
From: Chris Packham @ 2023-07-12 20:36 UTC (permalink / raw)
To: Miquel Raynal
Cc: richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
gregory.clement@bootlin.com, linux-mtd@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Hi Miquel,
On 13/07/23 00:32, Miquel Raynal wrote:
> Hi Chris,
>
> chris.packham@alliedtelesis.co.nz wrote on Mon, 3 Jul 2023 15:50:42
> +1200:
>
>> Add binding for AC5 SoC. This SoC only supports NAND SDR timings up to
>> mode 3 so a specific compatible value is needed.
>>
>> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> I need DT-binding maintainer's ack to take this patch, but this commit
> did not receive feedback (positive of negative) from them and is no
> longer in their patchwork. Can you please resend the series?
Conor's ack was provided on
https://lore.kernel.org/linux-mtd/20230626-immunity-lagged-eaae0182ad0c@spud/
Is this sufficient? I'm happy to resend if needed.
>
> The other patches LGTM.
>
>
>> ---
>>
>> Notes:
>> Changes in v3:
>> - Collect ack from Conor
>> Changes in v2:
>> - Keep compatibles in alphabetical order
>> - Explain AC5 limitations in commit message
>>
>> .../devicetree/bindings/mtd/marvell,nand-controller.yaml | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml b/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
>> index a10729bb1840..1ecea848e8b9 100644
>> --- a/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
>> +++ b/Documentation/devicetree/bindings/mtd/marvell,nand-controller.yaml
>> @@ -16,6 +16,7 @@ properties:
>> - const: marvell,armada-8k-nand-controller
>> - const: marvell,armada370-nand-controller
>> - enum:
>> + - marvell,ac5-nand-controller
>> - marvell,armada370-nand-controller
>> - marvell,pxa3xx-nand-controller
>> - description: legacy bindings
>
> Thanks,
> Miquèl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding
2023-07-12 18:13 ` Conor Dooley
@ 2023-07-13 7:23 ` Miquel Raynal
0 siblings, 0 replies; 11+ messages in thread
From: Miquel Raynal @ 2023-07-13 7:23 UTC (permalink / raw)
To: Conor Dooley
Cc: Chris Packham, richard, vigneshr, robh+dt, krzysztof.kozlowski+dt,
conor+dt, gregory.clement, linux-mtd, devicetree, linux-kernel
Hi Conor,
conor@kernel.org wrote on Wed, 12 Jul 2023 19:13:02 +0100:
> On Wed, Jul 12, 2023 at 02:32:20PM +0200, Miquel Raynal wrote:
> > Hi Chris,
> >
> > chris.packham@alliedtelesis.co.nz wrote on Mon, 3 Jul 2023 15:50:42
> > +1200:
> >
> > > Add binding for AC5 SoC. This SoC only supports NAND SDR timings up to
> > > mode 3 so a specific compatible value is needed.
> > >
> > > Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> > > Acked-by: Conor Dooley <conor.dooley@microchip.com>
> >
> > I need DT-binding maintainer's ack to take this patch, but this commit
> > did not receive feedback (positive of negative) from them and is no
> > longer in their patchwork. Can you please resend the series?
>
> You have one ;)
>
> https://docs.kernel.org/process/maintainers.html?highlight=conor+dooley#open-firmware-and-flattened-device-tree-bindings
\o/
Love that, thanks for stepping-up and good luck!
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 3/3] mtd: rawnand: marvell: add support for AC5 SoC
2023-07-03 3:50 ` [PATCH v3 3/3] mtd: rawnand: marvell: add support for AC5 SoC Chris Packham
@ 2023-07-13 7:57 ` Miquel Raynal
0 siblings, 0 replies; 11+ messages in thread
From: Miquel Raynal @ 2023-07-13 7:57 UTC (permalink / raw)
To: Chris Packham, miquel.raynal, richard, vigneshr, robh+dt,
krzysztof.kozlowski+dt, conor+dt, gregory.clement
Cc: linux-mtd, devicetree, linux-kernel
On Mon, 2023-07-03 at 03:50:44 UTC, Chris Packham wrote:
> Add support for the AC5/AC5X SoC from Marvell. The NFC on this SoC only
> supports SDR modes up to 3.
>
> Marvell's SDK includes some predefined values for the ndtr registers.
> These haven't been incorporated as the existing code seems to get good
> values based on measurements taken with an oscilloscope.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding
2023-07-03 3:50 ` [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding Chris Packham
2023-07-12 12:32 ` Miquel Raynal
@ 2023-07-13 7:57 ` Miquel Raynal
1 sibling, 0 replies; 11+ messages in thread
From: Miquel Raynal @ 2023-07-13 7:57 UTC (permalink / raw)
To: Chris Packham, miquel.raynal, richard, vigneshr, robh+dt,
krzysztof.kozlowski+dt, conor+dt, gregory.clement
Cc: linux-mtd, devicetree, linux-kernel
On Mon, 2023-07-03 at 03:50:42 UTC, Chris Packham wrote:
> Add binding for AC5 SoC. This SoC only supports NAND SDR timings up to
> mode 3 so a specific compatible value is needed.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 2/3] arm64: dts: marvell: Add NAND flash controller to AC5
2023-07-03 3:50 ` [PATCH v3 2/3] arm64: dts: marvell: Add NAND flash controller to AC5 Chris Packham
@ 2023-07-13 8:59 ` Gregory CLEMENT
0 siblings, 0 replies; 11+ messages in thread
From: Gregory CLEMENT @ 2023-07-13 8:59 UTC (permalink / raw)
To: Chris Packham, miquel.raynal, richard, vigneshr, robh+dt,
krzysztof.kozlowski+dt, conor+dt
Cc: linux-mtd, devicetree, linux-kernel, Chris Packham
Chris Packham <chris.packham@alliedtelesis.co.nz> writes:
> The AC5/AC5X SoC has a NAND flash controller (NFC). Add this to
> the base SoC dtsi file as a disabled node. The NFC integration
> on the AC5/AC5X only supports SDR timing modes up to 3 so requires a
> dedicated compatible property so this limitation can be enforced.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Now that binding and code has beeen applied I can apply this one on
mvebu/dt64
Thanks,
Gregory
> ---
>
> Notes:
> Changes in v3:
> - Use correct clock for NFC
> Changes in v2:
> - New.
>
> arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
> index c9ce1010c415..c64aaf51deb8 100644
> --- a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
> +++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
> @@ -297,6 +297,16 @@ spi1: spi@805a8000 {
> status = "disabled";
> };
>
> + nand: nand-controller@805b0000 {
> + compatible = "marvell,ac5-nand-controller";
> + reg = <0x0 0x805b0000 0x0 0x00000054>;
> + #address-cells = <0x1>;
> + #size-cells = <0x0>;
> + interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&nand_clock>;
> + status = "disabled";
> + };
> +
> gic: interrupt-controller@80600000 {
> compatible = "arm,gic-v3";
> #interrupt-cells = <3>;
> @@ -319,5 +329,11 @@ spi_clock: spi-clock {
> #clock-cells = <0>;
> clock-frequency = <200000000>;
> };
> +
> + nand_clock: nand-clock {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <400000000>;
> + };
> };
> };
> --
> 2.41.0
>
--
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2023-07-13 9:00 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03 3:50 [PATCH v3 0/3] mtd: rawnand: marvell: add support for AC5 SoC Chris Packham
2023-07-03 3:50 ` [PATCH v3 1/3] dt-bindings: mtd: Add AC5 specific binding Chris Packham
2023-07-12 12:32 ` Miquel Raynal
2023-07-12 18:13 ` Conor Dooley
2023-07-13 7:23 ` Miquel Raynal
2023-07-12 20:36 ` Chris Packham
2023-07-13 7:57 ` Miquel Raynal
2023-07-03 3:50 ` [PATCH v3 2/3] arm64: dts: marvell: Add NAND flash controller to AC5 Chris Packham
2023-07-13 8:59 ` Gregory CLEMENT
2023-07-03 3:50 ` [PATCH v3 3/3] mtd: rawnand: marvell: add support for AC5 SoC Chris Packham
2023-07-13 7:57 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).