{"id":2223968,"url":"http://patchwork.ozlabs.org/api/patches/2223968/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pwm/patch/20260416131419.3152419-2-richard.genoud@bootlin.com/","project":{"id":38,"url":"http://patchwork.ozlabs.org/api/projects/38/?format=json","name":"Linux PWM development","link_name":"linux-pwm","list_id":"linux-pwm.vger.kernel.org","list_email":"linux-pwm@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260416131419.3152419-2-richard.genoud@bootlin.com>","list_archive_url":null,"date":"2026-04-16T13:14:16","name":"[v5,1/4] dt-bindings: pwm: allwinner: add h616 pwm compatible","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"47fda5ba3f608a5f5d6cf65726144cc9d89e543c","submitter":{"id":88519,"url":"http://patchwork.ozlabs.org/api/people/88519/?format=json","name":"Richard GENOUD","email":"richard.genoud@bootlin.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-pwm/patch/20260416131419.3152419-2-richard.genoud@bootlin.com/mbox/","series":[{"id":500160,"url":"http://patchwork.ozlabs.org/api/series/500160/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pwm/list/?series=500160","date":"2026-04-16T13:14:15","name":"Introduce Allwinner H616 PWM controller","version":5,"mbox":"http://patchwork.ozlabs.org/series/500160/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2223968/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2223968/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <linux-pwm+bounces-8609-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pwm@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=NFiy2LCW;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-pwm+bounces-8609-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=\"NFiy2LCW\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=185.246.84.56","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=bootlin.com"],"Received":["from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxJQh23Qsz1yG9\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 23:15:08 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 2FAF53020752\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 13:15:04 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 8E3833BD226;\n\tThu, 16 Apr 2026 13:15:02 +0000 (UTC)","from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id E00A13BADB8\n\tfor <linux-pwm@vger.kernel.org>; Thu, 16 Apr 2026 13:15:00 +0000 (UTC)","from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n\tby smtpout-02.galae.net (Postfix) with ESMTPS id 86B5D1A3306;\n\tThu, 16 Apr 2026 13:14:59 +0000 (UTC)","from mail.galae.net (mail.galae.net [212.83.136.155])\n\tby smtpout-01.galae.net (Postfix) with ESMTPS id 5BFAE60495;\n\tThu, 16 Apr 2026 13:14:59 +0000 (UTC)","from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id BB5C61045A159;\n\tThu, 16 Apr 2026 15:14:56 +0200 (CEST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776345302; cv=none;\n b=uxeVry5LR5mRccYsvV2+kdfXPXJRkPAgjD4BckW5MDZaQsrBUxAndoAe3joN37jOLWXh6WWDchCD8TTcpR5ZzefVxybPj6kx5hwwqZOAFPo8jG1xGlC2HUSCxVghrwubpn/apdVBZzjmLYN0ft9hNtK6Y1S0j0xMWcHxpnp39W0=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776345302; c=relaxed/simple;\n\tbh=HqdVqRbPd818waPKLUsW51+PIGKiW0zHXZ13CSnPEtk=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=DW29m/cXGPq+bQoSeAl4YGLmFldQu8yJIrjgVDdB+RhXX7AHaLI98cRm3lFS/EuZypRt+WVbEJYJpedmXx7AeAp36L8AurRLZBUZeEJCFCQbQ5mrvBFE8VH8n9cVB1sAsl6BULyn/rdflzj0osuTs4Z7CWG/ClggCm2cJ3nkdNU=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com;\n spf=pass smtp.mailfrom=bootlin.com;\n dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=NFiy2LCW; arc=none smtp.client-ip=185.246.84.56","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n\tt=1776345298; h=from:subject:date:message-id:to:cc:mime-version:\n\t content-transfer-encoding:in-reply-to:references;\n\tbh=OLBfsemePbGUtd8zlxtnOZP/YHwWEby+hKn6Mo2n9kU=;\n\tb=NFiy2LCWt3ajBv3nJymihm0nED/sgoek9T7lakY6WhmtRFbyxfVY+F99XRkdoF9iq6jB3A\n\tcld0X3+JtLgVfX9/hjPh1732nd/ERJAi1Qvl0P3JJ6y9cig9rQjdeif8hXbEhqDcCg+AVw\n\tkSDTS/S3qho3bV/H7//trbDB+i6IO6irW+FDokPe5TVDzzULI50M1hbeMi/MiJbomSTzoW\n\twEBbS0WaiHhC2hhO8nHS5qBulSLU54xIIOOiZx+WyvSEgd2BDTeKmUq/KW1gIKb6ijfaz2\n\tdQkr7Fp5ZjstBcPuzfUUJwa1f98iKW1AU4O6Nw0jAD6wCbXYfdrYQkp5OxZVxg==","From":"Richard Genoud <richard.genoud@bootlin.com>","To":"=?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <ukleinek@kernel.org>,\n Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,\n Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@kernel.org>,\n Jernej Skrabec <jernej.skrabec@gmail.com>,\n Samuel Holland <samuel@sholland.org>, Philipp Zabel <p.zabel@pengutronix.de>","Cc":"Paul Kocialkowski <paulk@sys-base.io>,\n\tThomas Petazzoni <thomas.petazzoni@bootlin.com>,\n\tJohn Stultz <jstultz@google.com>,\n\tJoao Schim <joao@schimsalabim.eu>,\n\tbigunclemax@gmail.com,\n\tlinux-pwm@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org,\n\tlinux-sunxi@lists.linux.dev,\n\tlinux-kernel@vger.kernel.org,\n\tRichard Genoud <richard.genoud@bootlin.com>,\n\tConor Dooley <conor.dooley@microchip.com>","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>","Precedence":"bulk","X-Mailing-List":"linux-pwm@vger.kernel.org","List-Id":"<linux-pwm.vger.kernel.org>","List-Subscribe":"<mailto:linux-pwm+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pwm+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Last-TLS-Session-Version":"TLSv1.3"},"content":"Allwinner H616 PWM block is quite different from the A10 or H6, but at\nthe end, it uses the same clocks as the H6; so the sun4i pwm binding can\nbe used.\nIt has 6 channels than can generate PWM waveforms.\nIf the bypass is enabled (one bypass per channel) the output is no more\na PWM waveform, but a clock that can (and is) used as input for other\ndevices, like the AC300 PHY.\n\nAcked-by: Conor Dooley <conor.dooley@microchip.com>\nTested-by: John Stultz <jstultz@google.com>\nSigned-off-by: Richard Genoud <richard.genoud@bootlin.com>\n---\n .../bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 19 ++++++++++++++++++-\n 1 file changed, 18 insertions(+), 1 deletion(-)","diff":"diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml\nindex 1197858e431f..4f58110ec98f 100644\n--- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml\n+++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml\n@@ -14,6 +14,9 @@ properties:\n   \"#pwm-cells\":\n     const: 3\n \n+  \"#clock-cells\":\n+    const: 1\n+\n   compatible:\n     oneOf:\n       - const: allwinner,sun4i-a10-pwm\n@@ -36,6 +39,7 @@ properties:\n           - const: allwinner,sun50i-h5-pwm\n           - const: allwinner,sun5i-a13-pwm\n       - const: allwinner,sun50i-h6-pwm\n+      - const: allwinner,sun50i-h616-pwm\n \n   reg:\n     maxItems: 1\n@@ -62,7 +66,9 @@ allOf:\n       properties:\n         compatible:\n           contains:\n-            const: allwinner,sun50i-h6-pwm\n+            enum:\n+              - allwinner,sun50i-h6-pwm\n+              - allwinner,sun50i-h616-pwm\n \n     then:\n       properties:\n@@ -83,6 +89,17 @@ allOf:\n         clocks:\n           maxItems: 1\n \n+  - if:\n+      not:\n+        properties:\n+          compatible:\n+            contains:\n+              const: allwinner,sun50i-h616-pwm\n+\n+    then:\n+      properties:\n+        \"#clock-cells\": false\n+\n required:\n   - compatible\n   - reg\n","prefixes":["v5","1/4"]}