From patchwork Sun Aug 11 16:34:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13759784 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 8EE36C3DA4A for ; Sun, 11 Aug 2024 16:36:21 +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=KarF2VFUJZr6BEI6bncIXOqUIsVrUhy+mn0gpAzXbC0=; b=DSt5H8jBVQEKWbmbpdgR1J1iht GfWdZ23Ea8FvKOMicnvfDF7yjk0ufKTKK6ThsIo281Lck3VPHAeWn2eAmb+pRwuij2cJYaiHZmaRX ezxJedtdJSANaCJb8aI1A2iTbrt/7mjKtYXPcJXCJuFKsd8MU6+ihlGbTzFO8DINdI/eqamLJS3AP T+JwHJk2uhGGWZd0X1ThiQ84gt+35eyg2hQSqaYY3Mq1OvRA/kynNbUDChuSYzG7KEVtRnWgjo9qv 8zfPsqsGE5dsSeVNDTn58q5IZcgc0hx2VGqxM5v4ZjC4y9Xl3wDA27YCTyB7OOq95Ggf46IFOa8cQ soDZeHGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdBYB-0000000FpKT-2eDZ; Sun, 11 Aug 2024 16:36:11 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdBX7-0000000FpA2-1AF8 for linux-arm-kernel@lists.infradead.org; Sun, 11 Aug 2024 16:35:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id A2E5FCE0B04; Sun, 11 Aug 2024 16:35:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E409FC32786; Sun, 11 Aug 2024 16:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723394102; bh=wJFMhbCv/bZOQ/BXJquP/1bxIHtfQajOUmGI1FVYbnQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vGp+drT5SYfbdlqabf1aF/ZQBjTHEHCeBaWJ5xZEJeIwTOQPWLQl/SLLyWi3cKmLo +5GhYK+sDBogAfdkMTI+uKdgL0w1c+uJ6DB9IyjyMZieohymwetKk02sTuQZ1PvzU0 jxU3ZMFRMuq/bJG5SDJJRJiBBQHmed/VErg3n2Z7Kfw8zUzH1RH3QE1SwynPLDfLDj xOyBazrhi0rrCEc8pfzAuYxArNr2PAR8wWhVnWyLBerb3Xv5HLAP9/muETnqZmmZ9P Oh8wyDv9tYOF6i1LrZT1jaVGB0QjDrTWwSUNynM1Cf7pduAAiFFTJ6eWkdP7AUbwwM hvxfUzN1OUX/w== From: Lorenzo Bianconi To: linux-pwm@vger.kernel.org Cc: ukleinek@kernel.org, lorenzo.bianconi83@gmail.com, krzk+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, benjamin.larsson@genexis.eu, conor+dt@kernel.org, ansuelsmth@gmail.com Subject: [PATCH v2 1/2] dt-bindings: pwm: Document Airoha EN7581 PWM Date: Sun, 11 Aug 2024 18:34:31 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240811_093505_574821_F92F1DAD X-CRM114-Status: GOOD ( 11.73 ) 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Christian Marangi Signed-off-by: Lorenzo Bianconi --- .../bindings/pwm/airoha,en7581-pwm.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml 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>; + };