From nobody Fri Apr 3 15:11:48 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 54683377EDB; Thu, 5 Mar 2026 09:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772702430; cv=none; b=jk0Z+aI+JkR4lZRGh/+TVmiTLO60zSKGzsFe9ZDlCVq9tn8SmEC4RHh3bevK559ke7WQxJ6819tQe4D8CJXp5GdM2dbDEw3kdhAyQIyusPcaN0eN38ZPgF1N2G+J2bgY67UAfzn53PSozC6YRiR1drLvvZk5Lgm9OR5je1V3A2g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772702430; c=relaxed/simple; bh=HqdVqRbPd818waPKLUsW51+PIGKiW0zHXZ13CSnPEtk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a4vB2QfNAQlonB0ukuZBVUqMllD6p5XghZdEq/oaqnGaFPDZHCb+nH2MhWrHxS+hLhtB01cPQ8wSXcQyOLjkDa49sHn3pg+XKioEne8fy8ICUzJ0m93ttrigSm23BxkZqu6eLY2AdXRliFFwy7TMXY9cDgmnpHZ0ztpjcLVmF84= 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=tOYNQlf3; arc=none smtp.client-ip=185.171.202.116 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="tOYNQlf3" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 0F53DC40417; Thu, 5 Mar 2026 09:20:46 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 88D5B5FDEB; Thu, 5 Mar 2026 09:20:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E838F1036984D; Thu, 5 Mar 2026 10:20:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1772702426; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=OLBfsemePbGUtd8zlxtnOZP/YHwWEby+hKn6Mo2n9kU=; b=tOYNQlf3rSv8k4jM7bLv/IjCo2eMugbKS1z9Pvf7CH5NI0SwrPU7EU0JmgYK+PjkXMmUdR 8Sdyyqc5iJm3fyFicXgL1gKO17Sd6S+APWWqgOKaEbDPkl2P061uHgYtQ4dPGxUM55dbil K0FwgbVzX7O6b9OyhI+/XgE7Hepwa4S+ByTyI0PE8Lv6DjmUdtm12nvqaPeIdpzGDaxCCT vjhJEDRQ/tF30dIqyfu2okxh2yNbxbnyuEzp5EreHWI+7N1kFyyT4U9yhKzm8lprZxwcKR 5xCxS6jdnh5ZAjBp9AMLmjQIRHz2FnlSNs9PEa+NYZwYaxTqIIP4b7CkbDPMhQ== 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 , 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 v4 1/4] dt-bindings: pwm: allwinner: add h616 pwm compatible Date: Thu, 5 Mar 2026 10:19:56 +0100 Message-ID: <20260305091959.2530374-2-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260305091959.2530374-1-richard.genoud@bootlin.com> References: <20260305091959.2530374-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. 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 =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