From patchwork Sun Aug 18 12:03:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13767397 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 D444AC52D7C for ; Sun, 18 Aug 2024 12:05:10 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=A5ZIEPWbBpKI/jbq5wAvB9BA5HCcJB3dV+ZpCeQofqA=; b=0vv/hXeh4BAh07fbEFHBl3Q62B IShg/nW61b3sm+AfThd1VrhcnNE1htSHW7tmAqXoIXW9JiKITnIsTiY/SwyrMeg/vtvFu0O/RcEpO g0fkxuqUfv4414Tox4cR8Fy3fCf+xDtYclYJNQd5bPQ7K+6SRDTfrgBOJQ39j8wvKsHitkrp7/bQZ dLZ5mXy89nwmiBMJinFHuXUxFrfbOX2n/WqKqm56adn1T5dsdoVET02l2Dh2FR661zPgGiqoDgHZK HrtSL3jCWdUiD+INUIRViFugKO6DBluh9kPWzTVqxTYbkIxMNItP1RquMoy2bnwsxxmA90x9bXt/Z oy/gX4Ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfeea-0000000GXJF-0NYL; Sun, 18 Aug 2024 12:05:00 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfedJ-0000000GXDM-1qw2 for linux-arm-kernel@lists.infradead.org; Sun, 18 Aug 2024 12:03:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 62BEA61013; Sun, 18 Aug 2024 12:03:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FF60C4AF09; Sun, 18 Aug 2024 12:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723982620; bh=JRyNTg0BGW3/QLQuzTD0wSUydNEf34YgmH0Ssm2r2Sc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QzSOWCKuzqxlttzDn9Pnts5NLIy94NmDhghqf7hBGQoNKHBH28ArCwSr7F40B4h0n TRbSPajNlJ7nrxnIcaBbO8dr9XabZs7rruxIr0edslL0LydBrrvHyyExNhW9HeGUSp 1flU8+3ANbJZBgmnm4xHviefdDEy0OgYmUrZS+OmG3yWmuI2w/QEcfb3Z2vHanWzXz Mfkt/FEcYJtOoFH1PGn4T1aEToXpKleyykygY1DCiyh35XucT39b/TDmUnC3FcxP3P rx+0tB6UA97qZrJBeH1VxwNxtws4tNT4tG3qfbuyjxl+3AMz7KAu2ecI8euhMqsF5E r8X8+W+HPoevw== From: Lorenzo Bianconi Date: Sun, 18 Aug 2024 14:03:26 +0200 Subject: [PATCH v3 1/2] dt-bindings: pwm: Document Airoha EN7581 PWM MIME-Version: 1.0 Message-Id: <20240818-airoha-pwm-drv-v3-1-e398f3e41916@kernel.org> References: <20240818-airoha-pwm-drv-v3-0-e398f3e41916@kernel.org> In-Reply-To: <20240818-airoha-pwm-drv-v3-0-e398f3e41916@kernel.org> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Christian Marangi Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, lorenzo.bianconi83@gmail.com, linux-arm-kernel@lists.infradead.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, ansuelsmth@gmail.com, benjamin.larsson@genexis.eu, Krzysztof Kozlowski , Lorenzo Bianconi X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240818_050341_571464_D044E08A X-CRM114-Status: GOOD ( 10.75 ) 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 From: Christian Marangi Document required property for the Airoha EN7581 PWM. The device requires 3 different address for the sgpio, flash and cycle config. Signed-off-by: Christian Marangi Reviewed-by: Krzysztof Kozlowski Signed-off-by: Lorenzo Bianconi --- .../devicetree/bindings/pwm/airoha,en7581-pwm.yaml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml b/Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml new file mode 100644 index 000000000000..52470668f90e --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/airoha,en7581-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha EN7581 PWM + +maintainers: + - Christian Marangi + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: airoha,en7581-pwm + + reg: + items: + - description: sgpio config address + - description: flash config address + - description: cycle config address + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pwm@1fbf0224 { + compatible = "airoha,en7581-pwm"; + reg = <0x1fbf0224 0x10>, + <0x1fbf0238 0x28>, + <0x1fbf0298 0x8>; + #pwm-cells = <3>; + };