mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 00/22] Add initial Texas Instruments K3 support
Date: Thu,  3 Aug 2023 12:49:41 +0200	[thread overview]
Message-ID: <20230803105003.4088205-1-s.hauer@pengutronix.de> (raw)

This series adds initial basic support for the TI K3 Architecture.
Currently only the AM62x is supported and within there the BeaglePlay
board (https://www.beagleboard.org/boards/beagleplay).

The current support is enough for bringing up barebox 2nd stage after
U-Boot has initialized the SoC. The SoC boots from a FAT partition on
SD/eMMC, the u-boot.img therein can be replaced with a barebox image.

The SoC has a core dedicated to handle clocks, power domains and other
stuff. Communication to this core is done with a mailbox interface and
this series contains patches to implement that interface based on that
a clk driver and a power domain driver.

So far only SD/eMMC is working, so there's plenty of room to add further
support for networking, USB, SPI and I2C. It's a start.

Sascha

Sascha Hauer (22):
  pm_domain: Add onecell support
  gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip
  gpio: davinci: Add support for GPIO controllers on TI K3 SoCs
  ARM64: Add support for debug_ll on TI AM62x SoCs
  Add initial mailbox support
  mailbox: Add TI K3 Secure Proxy Driver
  serial: ns16550: Add support for UARTs on K3 SoCs
  firmware: Add basic support for TI System Control Interface (TI SCI)
    protocol
  lib: Add generic binary search function
  clk: Add K3 SCI clock driver
  soc: ti: Add ti_sci_pm_domains driver
  mci: fix define
  mci: make debugging output more useful
  mci: sdhci: Add common wait for idle function
  mci: sdhci: wait for idle before stopping clock
  mci: Add am654 SDHCI driver
  ARM: Add Texas Instruments K3 architecture
  ARM: k3: Add initial BeaglePlay board support
  ARM: k3: BeaglePlay: Work around non working SD card
  ARM: k3: BeaglePlay: generate FIT image
  doc: K3: Add documentation
  ARM: multi_v8_defconfig: Enable K3 SoCs

 Documentation/boards/k3.rst           |   29 +
 arch/arm/Kconfig                      |   14 +
 arch/arm/Makefile                     |    1 +
 arch/arm/boards/Makefile              |    1 +
 arch/arm/boards/beagleplay/Makefile   |    1 +
 arch/arm/boards/beagleplay/entry.S    |   29 +
 arch/arm/boards/beagleplay/lowlevel.c |   33 +
 arch/arm/configs/multi_v8_defconfig   |   10 +-
 arch/arm/dts/Makefile                 |    1 +
 arch/arm/dts/k3-am625-beagleplay.dts  |   30 +
 arch/arm/include/asm/debug_ll.h       |    2 +
 arch/arm/mach-k3/Kconfig              |   11 +
 arch/arm/mach-k3/Makefile             |    1 +
 arch/arm/mach-k3/common.c             |   24 +
 common/Kconfig                        |   16 +-
 drivers/Kconfig                       |    1 +
 drivers/Makefile                      |    1 +
 drivers/base/power.c                  |   76 +
 drivers/clk/Makefile                  |    1 +
 drivers/clk/ti-sci-clk.c              |  630 ++++++
 drivers/firmware/Kconfig              |   15 +
 drivers/firmware/Makefile             |    1 +
 drivers/firmware/ti_sci.c             | 2745 +++++++++++++++++++++++++
 drivers/firmware/ti_sci.h             | 1533 ++++++++++++++
 drivers/gpio/Kconfig                  |    4 +-
 drivers/gpio/gpio-davinci.c           |   70 +-
 drivers/mailbox/Kconfig               |   22 +
 drivers/mailbox/Makefile              |    2 +
 drivers/mailbox/mailbox.c             |   92 +
 drivers/mailbox/ti-msgmgr.c           |  402 ++++
 drivers/mci/Makefile                  |    1 +
 drivers/mci/am654-sdhci.c             |  680 ++++++
 drivers/mci/arasan-sdhci.c            |   13 +-
 drivers/mci/atmel-sdhci-common.c      |   25 +-
 drivers/mci/dove-sdhci.c              |   23 +-
 drivers/mci/mci-bcm2835.c             |   13 +-
 drivers/mci/mci-core.c                |   13 +-
 drivers/mci/rockchip-dwcmshc-sdhci.c  |   16 +-
 drivers/mci/sdhci.c                   |   24 +
 drivers/mci/sdhci.h                   |    1 +
 drivers/serial/serial_ns16550.c       |    6 +
 drivers/soc/Kconfig                   |    1 +
 drivers/soc/Makefile                  |    1 +
 drivers/soc/ti/Kconfig                |    7 +
 drivers/soc/ti/Makefile               |    1 +
 drivers/soc/ti/ti_sci_pm_domains.c    |  196 ++
 images/Makefile                       |   10 +
 images/Makefile.k3                    |   13 +
 images/k3-am625-beagleplay.its        |   29 +
 include/linux/bsearch.h               |   33 +
 include/linux/types.h                 |    2 +
 include/mach/k3/debug_ll.h            |   49 +
 include/mailbox.h                     |   36 +
 include/mci.h                         |    4 +-
 include/pm_domain.h                   |    9 +
 include/soc/ti/k3-sec-proxy.h         |   25 +
 include/soc/ti/ti_sci_protocol.h      |  657 ++++++
 lib/Makefile                          |    1 +
 lib/bsearch.c                         |   34 +
 59 files changed, 7596 insertions(+), 125 deletions(-)
 create mode 100644 Documentation/boards/k3.rst
 create mode 100644 arch/arm/boards/beagleplay/Makefile
 create mode 100644 arch/arm/boards/beagleplay/entry.S
 create mode 100644 arch/arm/boards/beagleplay/lowlevel.c
 create mode 100644 arch/arm/dts/k3-am625-beagleplay.dts
 create mode 100644 arch/arm/mach-k3/Kconfig
 create mode 100644 arch/arm/mach-k3/Makefile
 create mode 100644 arch/arm/mach-k3/common.c
 create mode 100644 drivers/clk/ti-sci-clk.c
 create mode 100644 drivers/firmware/ti_sci.c
 create mode 100644 drivers/firmware/ti_sci.h
 create mode 100644 drivers/mailbox/Kconfig
 create mode 100644 drivers/mailbox/Makefile
 create mode 100644 drivers/mailbox/mailbox.c
 create mode 100644 drivers/mailbox/ti-msgmgr.c
 create mode 100644 drivers/mci/am654-sdhci.c
 create mode 100644 drivers/soc/ti/Kconfig
 create mode 100644 drivers/soc/ti/Makefile
 create mode 100644 drivers/soc/ti/ti_sci_pm_domains.c
 create mode 100644 images/Makefile.k3
 create mode 100644 images/k3-am625-beagleplay.its
 create mode 100644 include/linux/bsearch.h
 create mode 100644 include/mach/k3/debug_ll.h
 create mode 100644 include/mailbox.h
 create mode 100644 include/soc/ti/k3-sec-proxy.h
 create mode 100644 include/soc/ti/ti_sci_protocol.h
 create mode 100644 lib/bsearch.c

-- 
2.39.2




             reply	other threads:[~2023-08-03 10:51 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-03 10:49 Sascha Hauer [this message]
2023-08-03 10:49 ` [PATCH 01/22] pm_domain: Add onecell support Sascha Hauer
2023-08-03 10:49 ` [PATCH 02/22] gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip Sascha Hauer
2023-08-03 10:49 ` [PATCH 03/22] gpio: davinci: Add support for GPIO controllers on TI K3 SoCs Sascha Hauer
2023-08-03 10:49 ` [PATCH 04/22] ARM64: Add support for debug_ll on TI AM62x SoCs Sascha Hauer
2023-08-03 10:49 ` [PATCH 05/22] Add initial mailbox support Sascha Hauer
2023-08-03 10:49 ` [PATCH 06/22] mailbox: Add TI K3 Secure Proxy Driver Sascha Hauer
2023-08-03 10:49 ` [PATCH 07/22] serial: ns16550: Add support for UARTs on K3 SoCs Sascha Hauer
2023-08-03 10:49 ` [PATCH 08/22] firmware: Add basic support for TI System Control Interface (TI SCI) protocol Sascha Hauer
2023-08-03 10:49 ` [PATCH 09/22] lib: Add generic binary search function Sascha Hauer
2023-08-03 10:49 ` [PATCH 10/22] clk: Add K3 SCI clock driver Sascha Hauer
2023-08-03 10:49 ` [PATCH 11/22] soc: ti: Add ti_sci_pm_domains driver Sascha Hauer
2023-08-03 10:49 ` [PATCH 12/22] mci: fix define Sascha Hauer
2023-08-03 10:49 ` [PATCH 13/22] mci: make debugging output more useful Sascha Hauer
2023-08-03 10:49 ` [PATCH 14/22] mci: sdhci: Add common wait for idle function Sascha Hauer
2023-08-03 10:49 ` [PATCH 15/22] mci: sdhci: wait for idle before stopping clock Sascha Hauer
2023-08-03 10:49 ` [PATCH 16/22] mci: Add am654 SDHCI driver Sascha Hauer
2023-08-03 10:49 ` [PATCH 17/22] ARM: Add Texas Instruments K3 architecture Sascha Hauer
2023-08-03 10:49 ` [PATCH 18/22] ARM: k3: Add initial BeaglePlay board support Sascha Hauer
2023-08-03 10:50 ` [PATCH 19/22] ARM: k3: BeaglePlay: Work around non working SD card Sascha Hauer
2023-08-03 10:50 ` [PATCH 20/22] ARM: k3: BeaglePlay: generate FIT image Sascha Hauer
2023-08-03 10:50 ` [PATCH 21/22] doc: K3: Add documentation Sascha Hauer
2023-08-03 10:50 ` [PATCH 22/22] ARM: multi_v8_defconfig: Enable K3 SoCs Sascha Hauer
2023-11-02 14:12 ` [PATCH 00/22] Add initial Texas Instruments K3 support Ahmad Fatoum
2023-11-03  7:36   ` Sascha Hauer

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=20230803105003.4088205-1-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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