|
|
Subscribe / Log in / New account

spi: Add support for Realtek RTL838x/RTL839x SoC SPI

From:  Bert Vermeulen <bert-AT-biot.com>
To:  Mark Brown <broonie-AT-kernel.org>, Rob Herring <robh+dt-AT-kernel.org>, Birger Koblitz <mail-AT-birger-koblitz.de>, linux-spi-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org
Subject:  [PATCH v5 0/2] spi: Add support for Realtek RTL838x/RTL839x SoC SPI
Date:  Wed, 20 Jan 2021 14:59:26 +0100
Message-ID:  <20210120135928.246054-1-bert@biot.com>
Cc:  Bert Vermeulen <bert-AT-biot.com>
Archive-link:  Article

v5:
- Changed SoC compatible to list exact models

v4:
- Added SoC series-specific compatible matches.

v3:
- Added cpu_relax() to busy loop.
- Dropped .remove callback from driver struct.
- Use (variations of) realtek-rtl as prefix.
- Dropped Kconfig entry, and use MACH_REALTEK_RTL setting to build the
  driver, since there's no point booting without the SPI-connected flash.

v2:
- Rewrote from spi-nor driver to regular spi driver, implementing only
  set_cs() and transfer_one(). (Thanks Chuanhong Guo!)


Bert Vermeulen (2):
  dt-bindings: spi: Realtek RTL838x/RTL839x SPI controller
  spi: realtek-rtl: Add support for Realtek RTL838x/RTL839x SPI
    controllers

 .../bindings/spi/realtek,rtl-spi.yaml         |  41 ++++
 drivers/spi/Makefile                          |   1 +
 drivers/spi/spi-realtek-rtl.c                 | 209 ++++++++++++++++++
 3 files changed, 251 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/realtek,rtl-spi.yaml
 create mode 100644 drivers/spi/spi-realtek-rtl.c

-- 
2.25.1



Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds