Skip to content

LiteX SoC controller and LiteUART serial driver

Mateusz Holenko linux-devicetree linux-serial lkml 12 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest5 patches 1 replyIn review
  2. v115 patches 16 repliesSuperseded
  3. v105 patches 6 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v95 patches2 repliesSuperseded
v85 patches1 replySuperseded
v75 patches2 repliesSuperseded
v65 patches3 repliesSuperseded
v55 patches9 repliesSuperseded
v45 patches9 repliesSuperseded
v35 patches9 repliesSuperseded
v24 patches11 repliesSuperseded
v13 patches2 repliesSuperseded

Changes in v12 from the cover letter

- fixed descriptions in yaml files
- simplified probe implementations
- introduced litex_{read,write}{8,16,32,64}() fast accessors
- added formal documentation of litex_get_reg()/litex_set_reg()
- fixed possible memory leaks
- removed spin locks from CSR accessors

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: vendor: add vendor prefix for LiteXDocumentation/devicetree/bindings/vendor-prefixes.yaml+2 -00 replies
2/5dt-bindings: soc: document LiteX SoC Controller bindingsDocumentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml MAINTAINERS+45 -00 replies
3/5drivers/soc/litex: add LiteX SoC Controller driverMAINTAINERS drivers/soc/Kconfig drivers/soc/Makefile +4 more+304 -00 replies
4/5dt-bindings: serial: document LiteUART bindingsDocumentation/devicetree/bindings/serial/litex,liteuart.yaml+38 -00 replies
5/5drivers/tty/serial: add LiteUART driverMAINTAINERS drivers/tty/serial/Kconfig drivers/tty/serial/Makefile +1 more+438 -00 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchRob HerringGreg Kroah-Hartman
1/5A-b
2/5R-b
3/5
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v12 thread

Cover letter [PATCH v12 0/5] LiteX SoC controller and LiteUART serial driver

This patchset introduces support for LiteX SoC Controller and LiteUART - serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).

In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.

Later I plan to extend this platform by
adding support for more devices from LiteX suite.

Changes in v12:
- fixed descriptions in yaml files
- simplified probe implementations
- introduced litex_{read,write}{8,16,32,64}() fast accessors
- added formal documentation of litex_get_reg()/litex_set_reg()
- fixed possible memory leaks
- removed spin locks from CSR accessors

Changes in v11:
- added Reviewed-by tag
- reformatted some comments
- switched to WARN instead of BUG on CSR validation fail

Changes in v10:
- added casting to avoid sparse warnings in the SoC Controller's driver

Changes in v9:
- fixed the reg node notation in the DT example
- added exporting of the litex_set_reg/litex_get_reg symbols

Changes in v8:
- fixed help messages in LiteUART's KConfig
- removed dependency between LiteUART and LiteX SoC drivers
- removed litex_check_accessors() helper function
- added crashing (BUG) on the failed LiteX CSR access test

Changes in v7:
- added missing include directive in UART's driver

Changes in v6:
- changed accessors in SoC Controller's driver
- reworked UART driver

Changes in v5:
- added Reviewed-by tag
- removed custom accessors from SoC Controller's driver
- fixed error checking in SoC Controller's driver

Changes in v4:
- fixed copyright headers
- fixed SoC Controller's yaml
- simplified SoC Controller's driver

Changes in v3:
- added Acked-by and Reviewed-by tags
- introduced LiteX SoC Controller driver
- removed endianness detection (handled now by LiteX SoC Controller driver)
- modified litex.h header
- DTS aliases for LiteUART made optional
- renamed SERIAL_LITEUART_NR_PORTS to SERIAL_LITEUART_MAX_PORTS
- changed PORT_LITEUART from 122 to 123

Changes in v2:
- binding description rewritten to a yaml schema file
- added litex.h header with common register access functions

Filip Kokosinski (3):
dt-bindings: vendor: add vendor prefix for LiteX
dt-bindings: serial: document LiteUART bindings drivers/tty/serial: add LiteUART driver

Pawel Czarnecki (2):
dt-bindings: soc: document LiteX SoC Controller bindings drivers/soc/litex: add LiteX SoC Controller driver

 .../bindings/serial/litex,liteuart.yaml       |  38 ++
 .../soc/litex/litex,soc-controller.yaml       |  39 ++
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 MAINTAINERS                                   |   9 +
 drivers/soc/Kconfig                           |   1 +
 drivers/soc/Makefile                          |   1 +
 drivers/soc/litex/Kconfig                     |  19 +
 drivers/soc/litex/Makefile                    |   3 +
 drivers/soc/litex/litex_soc_ctrl.c            | 176 ++++++++
 drivers/tty/serial/Kconfig                    |  32 ++
 drivers/tty/serial/Makefile                   |   1 +
 drivers/tty/serial/liteuart.c                 | 404 ++++++++++++++++++
 include/linux/litex.h                         | 103 +++++
 13 files changed, 831 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/serial/litex,liteuart.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml
 create mode 100644 drivers/soc/litex/Kconfig
 create mode 100644 drivers/soc/litex/Makefile
 create mode 100644 drivers/soc/litex/litex_soc_ctrl.c
 create mode 100644 drivers/tty/serial/liteuart.c
 create mode 100644 include/linux/litex.h
Signature · 1 line
2.25.1