| Message ID | 20260419-h616-t113s-hstimer-v1-1-1af74ebef7c5@mmpsystems.pl (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-22874-sunxi=pue.re@lists.linux.dev> X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 416441C0C97 for <noreply@patchwork.local>; Sun, 19 Apr 2026 14:47:51 +0200 (CEST) Authentication-Results: mxe881; dkim=fail header.d=mmpsystems.pl; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-22874-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-22874-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 93F933015452 for <noreply@patchwork.local>; Sun, 19 Apr 2026 12:47:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF67033CEB5; Sun, 19 Apr 2026 12:47:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=mmpsystems.pl header.i=@mmpsystems.pl header.b="w8Zns91L" X-Original-To: linux-sunxi@lists.linux.dev Received: from s106b.cyber-folks.pl (s106b.cyber-folks.pl [195.78.66.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C20B2E413; Sun, 19 Apr 2026 12:47:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.78.66.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776602844; cv=none; b=DmLfmwOYlkFORmeT/uPaViBiPUD0TNM2mkDjMB5pWsuoJHRKQscRWgb0r73Yqknh8pnB36LyuVRvcZuM9QiYaXTgrECi4s6Nsm0nvU2RhUKPPaKZhNaaTCUxQYU1JHebfG+KlwTKUhH/pW0sATn/21UIKCVAAq4E9FbsGh1kvlE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776602844; c=relaxed/simple; bh=dD/RfwTsFCY3zQ8t1EhNPKXgRitASUKlWpSEoGxz1ds=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Bkqim4Of5xN2KYX3SwiNb9f5qLoYny3NwZ0zQkdo1YDH3Dbjnrc4pzg35hnxrZaCfpSSj3+T+QesViFmYfge9HJOqvtIV8TA2prqCainJeVqaHIwq0/p6elSEicwIFa87FcSq/8UX5S7+1t5hsXUt4JW4yzGHrseRd44NIVEwVk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mmpsystems.pl; spf=pass smtp.mailfrom=mmpsystems.pl; dkim=pass (2048-bit key) header.d=mmpsystems.pl header.i=@mmpsystems.pl header.b=w8Zns91L; arc=none smtp.client-ip=195.78.66.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mmpsystems.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mmpsystems.pl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mmpsystems.pl; s=x; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nNGkVqfNLX5y0uPiukZFMwNrvXW0tlDPdmovR+85RVc=; b=w8Zns91L4uCrgUnHvgbLDFHOrP xcY+G46dLuU1feVvzSuL6U344xWsd9bCId6k7jdP1+pg0QV313zzi31uoNSfqRZB9v3uKyJBd45Gq z/fWmIFIfBATvy8isVJaNXbCrLrMW3rvXr3+9lY3MoHxLScMrqew6TFB5GFHqA766JO7Zihuc6rj5 Z6IBqUL+zmt3lIKRB3meky8KqfcQ9l8MRFfF/ex2GViBA4Q2S5WbAjES0l60zKFe0Lrk9OnnOB3Yb A/vTa7bk218pnvemoI4KZnHJOzYK7JMHyHeprkaBhQw//yGTUc1A5Nx/a4Pt65U3i4QMnN2EPGFDX V8NMqtjA==; Received: from user-5-173-16-91.play-internet.pl ([5.173.16.91] helo=localhost) by s106.cyber-folks.pl with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from <michal.piekos@mmpsystems.pl>) id 1wERYT-0000000FcT1-3GqR; Sun, 19 Apr 2026 14:47:17 +0200 From: Michal Piekos <michal.piekos@mmpsystems.pl> Date: Sun, 19 Apr 2026 14:46:07 +0200 Subject: [PATCH 1/4] dt-bindings: timer: allwinner,sun5i-a13-hstimer: add H616 and T113-S3 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: <linux-sunxi.lists.linux.dev> List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260419-h616-t113s-hstimer-v1-1-1af74ebef7c5@mmpsystems.pl> References: <20260419-h616-t113s-hstimer-v1-0-1af74ebef7c5@mmpsystems.pl> In-Reply-To: <20260419-h616-t113s-hstimer-v1-0-1af74ebef7c5@mmpsystems.pl> To: Daniel Lezcano <daniel.lezcano@kernel.org>, Thomas Gleixner <tglx@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@kernel.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Maxime Ripard <mripard@kernel.org> Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Michal Piekos <michal.piekos@mmpsystems.pl> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776602788; l=1615; i=michal.piekos@mmpsystems.pl; s=20260301; h=from:subject:message-id; bh=dD/RfwTsFCY3zQ8t1EhNPKXgRitASUKlWpSEoGxz1ds=; b=4nrUKn+94IDdME4xFuYNSnTvSuLhM+KuSC/GFrXESVLIh2b4USkQsHXGE6Wc6uzTa+NahW8l3 52ir+K2U/Y9B9eKDTLvl+S2C1Q3uPalViRvckW5G43m32MaSMppxa4G X-Developer-Key: i=michal.piekos@mmpsystems.pl; a=ed25519; pk=Aixyx03If7ZDamiKKN0lsa+0mtA+WjIuIf2ZQVYNBqg= X-Authenticated-Id: michal.piekos@mmpsystems.pl X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= |
| Series |
Add hstimer support for H616 and T113-S3
|
|
Commit Message
Michal Piekos
April 19, 2026, 12:46 p.m. UTC
H616 is compatible with the existing sun5i binding, but
require its own compatible string to differentiate register offsets.
T113-S3 uses same offsets as H616.
Add allwinner,sun50i-h616-hstimer
Add allwinner,sun8i-t113s-hstimer with fallback to
allwinner,sun50i-h616-hstimer
Extend schema condition for interrupts to cover H616 compatible variant.
Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
---
.../devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Comments
On Sun, 19 Apr 2026 14:46:07 +0200 Michal Piekos <michal.piekos@mmpsystems.pl> wrote: > H616 is compatible with the existing sun5i binding, but > require its own compatible string to differentiate register offsets. Just a nit: if the register offsets are different, then it's not compatible, not even with the binding. So just say something like "they are similar, but with different register offsets". > T113-S3 uses same offsets as H616. So it looks like (somewhat naturally) this is true for D1 as well? And since that SoC was the first, we use "sun20i-d1" as the compatible string prefix for this SoC's devices. I think we should follow suit here and name that similarly. > > Add allwinner,sun50i-h616-hstimer > Add allwinner,sun8i-t113s-hstimer with fallback to > allwinner,sun50i-h616-hstimer > Extend schema condition for interrupts to cover H616 compatible variant. > > Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl> > --- > .../devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml b/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml > index f1853daec2f9..bb60a85dc34b 100644 > --- a/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml > +++ b/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml > @@ -15,9 +15,13 @@ properties: > oneOf: > - const: allwinner,sun5i-a13-hstimer > - const: allwinner,sun7i-a20-hstimer > + - const: allwinner,sun50i-h616-hstimer > - items: > - const: allwinner,sun6i-a31-hstimer > - const: allwinner,sun7i-a20-hstimer > + - items: > + - const: allwinner,sun8i-t113s-hstimer > + - const: allwinner,sun50i-h616-hstimer > > reg: > maxItems: 1 > @@ -45,7 +49,9 @@ required: > if: > properties: > compatible: > - const: allwinner,sun5i-a13-hstimer > + enum: > + - allwinner,sun5i-a13-hstimer > + - allwinner,sun50i-h616-hstimer IIUC this just matches the H616, but wouldn't match the T113/D1? And there is some construct with "contains" to match for fallback compatibles? Cheers, Andre > > then: > properties: >
diff --git a/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml b/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml index f1853daec2f9..bb60a85dc34b 100644 --- a/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml +++ b/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml @@ -15,9 +15,13 @@ properties: oneOf: - const: allwinner,sun5i-a13-hstimer - const: allwinner,sun7i-a20-hstimer + - const: allwinner,sun50i-h616-hstimer - items: - const: allwinner,sun6i-a31-hstimer - const: allwinner,sun7i-a20-hstimer + - items: + - const: allwinner,sun8i-t113s-hstimer + - const: allwinner,sun50i-h616-hstimer reg: maxItems: 1 @@ -45,7 +49,9 @@ required: if: properties: compatible: - const: allwinner,sun5i-a13-hstimer + enum: + - allwinner,sun5i-a13-hstimer + - allwinner,sun50i-h616-hstimer then: properties: