From nobody Mon Feb 9 12:09:08 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 A803136999F; Fri, 23 Jan 2026 09:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769160837; cv=none; b=a3VlDusyvmkiWbqD7L1J9qdWCFHcZa3t7O/8sQ19go5duTffloVaQFagwnMTH/G7kOu48/DP9m0euwnwjQiC6Y3a33PA2Lt9+jvBZiD/XyHbQgZwzrJjSGq+cxrVO/kfLy7W1h2/vVPURhe097gyKs8n0tEMBSnpAbIpOWoKI+8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769160837; c=relaxed/simple; bh=in40fZfBJur7b2gTli4i7mrCZHp27MkqzsX2uoHgeGg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rzytR+i8qzUc32tyIRRMqa4hjx2sp1bHhwQCG4WpX5PpSfKWKhX+j1UmvOXac/x6FG5HntLmLeU1eEb6XS9Dh+56QXo8/HRWmCmliOxVwrm/GDaBVX6OpPp4Ts66LoF8zMBNnhbuA0vGOburUFWMcqtowchT//wUNBGjfJ2OCPE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=bUVGLMgC; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="bUVGLMgC" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 0697F1A2AFF; Fri, 23 Jan 2026 09:33:47 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id CF3396070A; Fri, 23 Jan 2026 09:33:46 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 306B6119A879B; Fri, 23 Jan 2026 10:33:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1769160825; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=AumlAK3D+nBnNV49+1NREtHq21qZzWdFJkGV6lEmtAE=; b=bUVGLMgCg9aRioam0lpyysvJCDaFLPOQhcfrTllGrrS2jyDuwMQsvJt0DH1KGe21byYjyQ 41mr/zGLcvhgMk9BaH0tjgwJexMTkbGFsE9h5FbgUppqrr2C+pI7BhTNDqBVAswNn3sANl 15BCg7BQMN1ocXNcO/FTGVaPaCmm8dz53qKRXeDisqC6/8Xen0AISJG7L8F6+qVmo3vtbx hR7tZQMi/x9RFsadJ181ywUbVyPO70D76TnEuYASXgXL69s5WYrUQ0QNvqJaohq1p7JNMu HatsgjnC6FWSEKDH21MhK8x8m/hCTBp+MX7YqjKJaNgB+nl25oLFHe4qzRqDLw== 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 , 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 Subject: [PATCH v3 1/4] dt-bindings: pwm: allwinner: add h616 pwm compatible Date: Fri, 23 Jan 2026 10:33:19 +0100 Message-ID: <20260123093322.1327389-2-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260123093322.1327389-1-richard.genoud@bootlin.com> References: <20260123093322.1327389-1-richard.genoud@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Richard Genoud Acked-by: Conor Dooley --- .../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 =20 + "#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 =20 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 =20 then: properties: @@ -83,6 +89,17 @@ allOf: clocks: maxItems: 1 =20 + - if: + not: + properties: + compatible: + contains: + const: allwinner,sun50i-h616-pwm + + then: + properties: + "#clock-cells": false + required: - compatible - reg --=20 2.47.3