From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D870BF8A173 for ; Thu, 16 Apr 2026 13:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OLBfsemePbGUtd8zlxtnOZP/YHwWEby+hKn6Mo2n9kU=; b=LEW7kmgHtVNhCK8+QKpVvqCSDo +OxjoHOuowWuqt2fyUIYA8Be/4R8ytK8Am9r3U56M0ey286yDQvNC+X8nHjzcvThKesksLBUXTybH sPuH9h7/8xFa7v+ob+HbcCZgcHk5LEoGp/JF5b76kIjnjPTg6+VN4yPKiQoRoYDdxiBG1FjgyGm5s TU2T0nPJcq6KnQz0MjLhw/oBWiIlvoDYLtr08fuFoKDyUc8Ve8sHYRLTg/I2VRaZtJJ/91uTWeJtC lNWoDVpx3vwlruvBh23bEAQ5HsxPjncFEcx5ZIVLvxQinBXuSHAn/cPvbfnTnj+xRf0xLcXmKdnuR kKrTyrrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wDMYk-00000002Tt0-2ifm; Thu, 16 Apr 2026 13:15:06 +0000 Received: from smtpout-04.galae.net ([185.171.202.116]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wDMYh-00000002Tqz-0hm2 for linux-arm-kernel@lists.infradead.org; Thu, 16 Apr 2026 13:15:05 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 59233C5C3D3; Thu, 16 Apr 2026 13:15:37 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 5BFAE60495; Thu, 16 Apr 2026 13:14:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id BB5C61045A159; Thu, 16 Apr 2026 15:14:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1776345298; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=OLBfsemePbGUtd8zlxtnOZP/YHwWEby+hKn6Mo2n9kU=; b=NFiy2LCWt3ajBv3nJymihm0nED/sgoek9T7lakY6WhmtRFbyxfVY+F99XRkdoF9iq6jB3A cld0X3+JtLgVfX9/hjPh1732nd/ERJAi1Qvl0P3JJ6y9cig9rQjdeif8hXbEhqDcCg+AVw kSDTS/S3qho3bV/H7//trbDB+i6IO6irW+FDokPe5TVDzzULI50M1hbeMi/MiJbomSTzoW wEBbS0WaiHhC2hhO8nHS5qBulSLU54xIIOOiZx+WyvSEgd2BDTeKmUq/KW1gIKb6ijfaz2 dQkr7Fp5ZjstBcPuzfUUJwa1f98iKW1AU4O6Nw0jAD6wCbXYfdrYQkp5OxZVxg== From: Richard Genoud To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel Cc: Paul Kocialkowski , Thomas Petazzoni , John Stultz , Joao Schim , bigunclemax@gmail.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Richard Genoud , Conor Dooley Subject: [PATCH v5 1/4] dt-bindings: pwm: allwinner: add h616 pwm compatible Date: Thu, 16 Apr 2026 15:14:16 +0200 Message-ID: <20260416131419.3152419-2-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260416131419.3152419-1-richard.genoud@bootlin.com> References: <20260416131419.3152419-1-richard.genoud@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260416_061503_346701_6B9B6CBC X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allwinner H616 PWM block is quite different from the A10 or H6, but at the end, it uses the same clocks as the H6; so the sun4i pwm binding can be used. It has 6 channels than can generate PWM waveforms. If the bypass is enabled (one bypass per channel) the output is no more a PWM waveform, but a clock that can (and is) used as input for other devices, like the AC300 PHY. Acked-by: Conor Dooley Tested-by: John Stultz Signed-off-by: Richard Genoud --- .../bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml index 1197858e431f..4f58110ec98f 100644 --- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml @@ -14,6 +14,9 @@ properties: "#pwm-cells": const: 3 + "#clock-cells": + const: 1 + compatible: oneOf: - const: allwinner,sun4i-a10-pwm @@ -36,6 +39,7 @@ properties: - const: allwinner,sun50i-h5-pwm - const: allwinner,sun5i-a13-pwm - const: allwinner,sun50i-h6-pwm + - const: allwinner,sun50i-h616-pwm reg: maxItems: 1 @@ -62,7 +66,9 @@ allOf: properties: compatible: contains: - const: allwinner,sun50i-h6-pwm + enum: + - allwinner,sun50i-h6-pwm + - allwinner,sun50i-h616-pwm then: properties: @@ -83,6 +89,17 @@ allOf: clocks: maxItems: 1 + - if: + not: + properties: + compatible: + contains: + const: allwinner,sun50i-h616-pwm + + then: + properties: + "#clock-cells": false + required: - compatible - reg