public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@kernel.org>
To: trini@konsulko.com, sjg@chromium.org
Cc: u-boot@lists.denx.de, praneeth@ti.com, Roger Quadros <rogerq@kernel.org>
Subject: [u-boot][PATCH v3 0/4] Introduce MEMORY uclass and TI GPMC driver
Date: Thu, 20 Oct 2022 16:30:45 +0300	[thread overview]
Message-ID: <20221020133049.8398-1-rogerq@kernel.org> (raw)

Hi,

This series introduces the MEMORY controller uclass for the drivers
that exist in drivers/memory directory.

With that, we add the TI GPMC Memory controller driver as the first
user of this uclass.

The GPMC is a unified memory controller dedicated for interfacing
with external memory devices like
 - Asynchronous SRAM-like memories and ASICs
 - Asynchronous, synchronous, and page mode burst NOR flash
 - NAND flash
 - Pseudo-SRAM devices

The driver is pulled straight from the Linux kernel and adapted
for u-boot.
    
This driver will take care of setting up the GPMC based on
the settings specified in the Device tree and then
probe its children.

cheers,
-roger

Changelog:
v3:
- Use CONFIG_MEMORY instead of CONFIG_DM_MEMORY
- Introduce CONFIG_SPL_MEMORY and use it to gate inclusion of
of drivers/memory for SPL build
- Make TI_GPMC depend on OF_CONTROL and CLK as well

v2:
- Introduce MEMORY uclass

Roger Quadros (4):
  dm: memory: Introduce new uclass
  scripts: Makefile.spl: Enable memory drivers to be built for SPL
  dt/bindings: memory: Add bindings for TI GPMC driver
  memory: Add TI GPMC driver

 arch/sandbox/dts/test.dts                     |    4 +
 common/spl/Kconfig                            |    7 +
 .../memory/ti,gpmc-child.yaml                 |  252 ++++
 doc/device-tree-bindings/memory/ti,gpmc.yaml  |  190 +++
 drivers/memory/Kconfig                        |   36 +
 drivers/memory/Makefile                       |    3 +
 drivers/memory/memory-sandbox.c               |   18 +
 drivers/memory/memory-uclass.c                |   13 +
 drivers/memory/ti-gpmc.c                      | 1240 +++++++++++++++++
 drivers/memory/ti-gpmc.h                      |  298 ++++
 include/dm/uclass-id.h                        |    1 +
 include/linux/mtd/omap_gpmc.h                 |    3 +
 scripts/Makefile.spl                          |    1 +
 test/dm/Makefile                              |    1 +
 test/dm/memory.c                              |   21 +
 15 files changed, 2088 insertions(+)
 create mode 100644 doc/device-tree-bindings/memory/ti,gpmc-child.yaml
 create mode 100644 doc/device-tree-bindings/memory/ti,gpmc.yaml
 create mode 100644 drivers/memory/memory-sandbox.c
 create mode 100644 drivers/memory/memory-uclass.c
 create mode 100644 drivers/memory/ti-gpmc.c
 create mode 100644 drivers/memory/ti-gpmc.h
 create mode 100644 test/dm/memory.c

-- 
2.17.1


             reply	other threads:[~2022-10-20 13:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20 13:30 Roger Quadros [this message]
2022-10-20 13:30 ` [u-boot][PATCH v3 1/4] dm: memory: Introduce new uclass Roger Quadros
2022-10-26 19:27   ` Tom Rini
2022-10-20 13:30 ` [u-boot][PATCH v3 2/4] scripts: Makefile.spl: Enable memory drivers to be built for SPL Roger Quadros
2022-10-21 20:17   ` Simon Glass
2022-10-26 19:27   ` Tom Rini
2022-10-20 13:30 ` [u-boot][PATCH v3 3/4] dt/bindings: memory: Add bindings for TI GPMC driver Roger Quadros
2022-10-26 19:27   ` Tom Rini
2022-10-20 13:30 ` [u-boot][PATCH v3 4/4] memory: Add " Roger Quadros
2022-10-26 19:27   ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221020133049.8398-1-rogerq@kernel.org \
    --to=rogerq@kernel.org \
    --cc=praneeth@ti.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox