Skip to content

auxdisplay: Add support for the Titanmec TM1628 7 segment display controller

Heiner Kallweit linux-amlogic linux-arm-kernel linux-devicetree linux-spi 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 19 repliesIn review
  2. v46 patches 0 repliesSuperseded
  3. v35 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches11 repliesSuperseded
v16 patches14 repliesSuperseded

v2 from the cover letter

- (re-)add Andreas' SoB to two patches
- fix YAML issues
- include ctype.h explicitly
- add info message in probe()

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dt-bindings: vendor-prefixes: Add Titan Micro ElectronicsDocumentation/devicetree/bindings/vendor-prefixes.yaml+2 -00 replies
2/6dt-bindings: auxdisplay: Add Titan Micro Electronics TM1628Documentation/devicetree/bindings/auxdisplay/titanmec,tm1628.yaml+92 -010 replies
3/6docs: ABI: document tm1628 attribute display_textDocumentation/ABI/testing/sysfs-devices-auxdisplay-tm1628+7 -00 replies
4/6auxdisplay: add support for Titanmec TM1628 7 segment display controllerdrivers/auxdisplay/Kconfig drivers/auxdisplay/Makefile drivers/auxdisplay/tm1628.c+388 -00 replies
5/6arm64: dts: meson-gxl-s905w-tx3-mini: add support for the 7 segment displayarch/arm64/boot/dts/amlogic/meson-gxl-s905w-tx3-mini.dts+59 -00 replies
6/6MAINTAINERS: Add entry for tm1628 auxdisplay driverMAINTAINERS+7 -00 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/6A-b
2/6R-b
3/6
4/6
5/6
6/6

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

Read the v5 thread

Cover letter [PATCH v5 0/6] auxdisplay: Add support for the Titanmec TM1628 7 segment display controller

This series adds support for the Titanmec TM1628 7 segment display controller. It's based on previous RFC work from Andreas Färber. The RFC version placed the driver in the LED subsystem, but this was NAK'ed by the LED maintainer. Therefore I moved the driver to /drivers/auxdisplay what seems most reasonable to me.

Further changes to the RFC version:
- Driver can be built also w/o LED class support, for displays that don't have any symbols to be exposed as LED's.
- Simplified the code and rewrote a lot of it.
- Driver is now kind of a MVP, but functionality should be sufficient for most use cases.
- Use the existing 7 segment support in uapi/linux/map_to_7segment.h as suggested by Geert Uytterhoeven.

Note: There's a number of chips from other manufacturers that are
almost identical, e.g. FD628, SM1628. Only difference I saw so far is that they partially support other display modes.
TM1628: 6x12, 7x11
SM1628C: 4x13, 5x12, 6x11, 7x10
For typical displays on devices using these chips this difference shouldn't matter.

Successfully tested on a TX3 Mini TV box that has an SM1628C and a display with 4 digits and 7 symbols.

v2:
- (re-)add Andreas' SoB to two patches
- fix YAML issues
- include ctype.h explicitly
- add info message in probe()

v3:
- remove patch 1 because it has been applied via the SPI tree already
- fix remaining YAML issues in patch 2
- follow Miguel's suggestion on usage of Co-Developed-by

v4:
- add patch for MAINTAINERS entry
- incorporate Miguel's review comments
- Replace Co-Developed-by with Co-developed-by (checkpatch) v5:
- add vendor prefix to driver-specific dt properties

Andreas Färber (1):
dt-bindings: vendor-prefixes: Add Titan Micro Electronics

Heiner Kallweit (5):
dt-bindings: auxdisplay: Add Titan Micro Electronics TM1628
docs: ABI: document tm1628 attribute display-text
auxdisplay: add support for Titanmec TM1628 7 segment display
controller
arm64: dts: meson-gxl-s905w-tx3-mini: add support for the 7 segment
display
MAINTAINERS: Add entry for tm1628 auxdisplay driver

 .../testing/sysfs-devices-auxdisplay-tm1628   |   7 +
 .../bindings/auxdisplay/titanmec,tm1628.yaml  |  92 +++++
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 MAINTAINERS                                   |   7 +
 .../dts/amlogic/meson-gxl-s905w-tx3-mini.dts  |  59 +++
 drivers/auxdisplay/Kconfig                    |  11 +
 drivers/auxdisplay/Makefile                   |   1 +
 drivers/auxdisplay/tm1628.c                   | 376 ++++++++++++++++++
 8 files changed, 555 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-auxdisplay-tm1628
 create mode 100644 Documentation/devicetree/bindings/auxdisplay/titanmec,tm1628.yaml
 create mode 100644 drivers/auxdisplay/tm1628.c
Signature · 1 line
2.35.1