Skip to content

Commit 977af5e

Browse files
committed
dts: bindings: auxdisplay: Add TM1637 binding
Add device tree binding for TitanMicro TM1637 7-segment LED display controller. The TM1637 uses a GPIO bit-banging protocol with clock and data pins. Properties: - clk-gpios: Clock GPIO pin - dio-gpios: Data I/O GPIO pin - bit-delay-us: Bit delay for GPIO protocol timing Signed-off-by: Siratul Islam <[email protected]>
1 parent dddd738 commit 977af5e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (c) 2025 Siratul Islam
3+
4+
description: TM1637 7-segment LED display controller
5+
6+
compatible: "titanmicro,tm1637"
7+
8+
include: base.yaml
9+
10+
properties:
11+
clk-gpios:
12+
type: phandle-array
13+
required: true
14+
description: Clock GPIO pin
15+
16+
dio-gpios:
17+
type: phandle-array
18+
required: true
19+
description: Data I/O GPIO pin
20+
21+
bit-delay-us:
22+
type: int
23+
default: 100
24+
description: |
25+
Bit delay in microseconds for GPIO bit-banging protocol.
26+
TM1637 datasheet specifies minimum timings of 100ns (setup/hold)
27+
and 400ns (clock pulse width). Default of 100µs provides safe
28+
margin for software GPIO operations across different platforms.

dts/bindings/vendor-prefixes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ thine THine Electronics, Inc.
690690
thingyjp thingy.jp
691691
ti Texas Instruments
692692
tianma Tianma Micro-electronics Co., Ltd.
693+
titanmicro Shenzhen Titan Micro Electronics Co., Ltd.
693694
tlm Trusted Logic Mobility
694695
tmt Tecon Microprocessor Technologies, LLC.
695696
topeet Topeet

0 commit comments

Comments
 (0)