[v4,0/4] Add hstimer support for H616 and T113-S3

Message ID 20260506-h616-t113s-hstimer-v4-0-591d425863d6@mmpsystems.pl (mailing list archive)
Headers
Series Add hstimer support for H616 and T113-S3 |

Message

Michal Piekos May 6, 2026, 3:10 p.m. UTC
Add support for Allwinner D1 high speed timer in sun5i hstimer driver
and describe corresponding nodes in dts for H616 and T113-S3 SoC's.

D1 and H616 uses same model as existing driver except register shift
compared to older variants. 

Added register layout abstraction in the driver, extended the binding
with new compatibles and wired up dts nodes for T113-S3 and H616 which
uses D1 as fallback compatible.

Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
---
Changes in v4:
- Move T113 related dts change to d1s-t113 for D1 to benefit too.
- Link to v3: https://patch.msgid.link/20260428-h616-t113s-hstimer-v3-0-7e02178a93ee@mmpsystems.pl

Changes in v3:
- Removed left over dead code from v1
- Link to v2: https://lore.kernel.org/r/20260426-h616-t113s-hstimer-v2-0-e65e9dc0c9da@mmpsystems.pl

Changes in v2:
- Change driver handling of different offsets to using quirks
- Change from t113s to d1 as the fallback compatible string
- Fix conditional compatible matching
- Link to v1: https://lore.kernel.org/r/20260419-h616-t113s-hstimer-v1-0-1af74ebef7c5@mmpsystems.pl

To: Daniel Lezcano <daniel.lezcano@kernel.org>
To: Thomas Gleixner <tglx@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Chen-Yu Tsai <wens@kernel.org>
To: Jernej Skrabec <jernej.skrabec@gmail.com>
To: Samuel Holland <samuel@sholland.org>
To: Maxime Ripard <mripard@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-sunxi@lists.linux.dev
Cc: Andre Przywara <andre.przywara@arm.com>

---
Michal Piekos (4):
      dt-bindings: timer: allwinner,sun5i-a13-hstimer: add H616 and D1
      clocksource/drivers/sun5i: add D1 hstimer support
      arm: dts: allwinner: d1s-t113: add hstimer node
      arm64: dts: allwinner: h616: add hstimer node

 .../timer/allwinner,sun5i-a13-hstimer.yaml         |  9 ++-
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi     | 10 +++
 arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi  |  9 +++
 drivers/clocksource/timer-sun5i.c                  | 84 +++++++++++++++++-----
 4 files changed, 92 insertions(+), 20 deletions(-)
---
base-commit: 74fe02ce122a6103f207d29fafc8b3a53de6abaf
change-id: 20260413-h616-t113s-hstimer-62939948f91c

Best regards,
--  
Michal Piekos <michal.piekos@mmpsystems.pl>
  

Comments

Chen-Yu Tsai May 8, 2026, 2:16 p.m. UTC | #1
On Wed, 06 May 2026 17:10:25 +0200, Michal Piekos wrote:
> Add support for Allwinner D1 high speed timer in sun5i hstimer driver
> and describe corresponding nodes in dts for H616 and T113-S3 SoC's.
> 
> D1 and H616 uses same model as existing driver except register shift
> compared to older variants.
> 
> Added register layout abstraction in the driver, extended the binding
> with new compatibles and wired up dts nodes for T113-S3 and H616 which
> uses D1 as fallback compatible.
> 
> [...]

Applied to sunxi/dt-for-7.2 in local tree, thanks!

[3/4] arm: dts: allwinner: d1s-t113: add hstimer node
      commit: 7c86694a7b8c9a0b2e29b312b21fcaf61d54b474
[4/4] arm64: dts: allwinner: h616: add hstimer node
      commit: fee10a33d08ae73c87a87d464f29198b6de687d0

Best regards,