From patchwork Sat Aug 10 04:48:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13759407 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 78CDEC3DA7F for ; Sat, 10 Aug 2024 04:51:02 +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=H/oQmiUB2RNHCfKNbETFj9T7um5341jlHcVGFu5Dnfs=; b=1RqESJ2E7BzBZSEamAqKWfFost Rem2kHd1yrIv5TrpEWbAegDq9KEhNRgXOFpoJoOkxZoX5LTIaVuODde3moxZYfK0LU803dsDnc5W2 qfNr/hfIiyszYIqfqmNU9724gQAbV5c9k7AAQ5RITEV6PstjDkBt3Yoa2P0RNdIS15OzEpoCcTOAM XXpSvMYaK+WTT7zi/m6JoeRtUEhDZxVSJq2eDpu2vRnNy38NMOQxyrYZ8BPTyVNGGj3Ob8woPg+S3 8zxge+45meLNVN8bU3ABv3Ez9v+ZksvPbdOs5Gv4O20FOrls9NnqQNLjG3FuGWfBP9b/54WRPhwyB oDbJB0ZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sce3y-0000000DBu9-0kDF; Sat, 10 Aug 2024 04:50:46 +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 1sce2i-0000000DBn1-2vo3 for linux-arm-kernel@lists.infradead.org; Sat, 10 Aug 2024 04:49:30 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id F1A576091C; Sat, 10 Aug 2024 04:49:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AA3BC32781; Sat, 10 Aug 2024 04:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723265367; bh=Mk2rcGEztxQiBiRE+FSeEijjIvEK+CxsM3Jy7NOV8wM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D/uIFJMsY4l4fRE90e+K3E27n8L1A2K/W8jjacLb8FoDfFzp6MdrEkBY2tSbwiV4c O1H+uC4qlvJ3WdZs/UGYoF/oGwN++iTodlLxDTv3x3YnBkazoxl2ZM2DzF1z58jUN0 luYL/GpHaI9vDhddLHuy1Pfv9FyPeejCyYLbb5d2mpctEonh5/e1foOluF6FjeB7U7 KRL4wrqUX21/NmXs422b0JQ32BRpD2675V6472JX2jnSFbMqgeEYLACbKi68zlwbBJ uLX5dLx5SWgTtyRAwicJHZYXV0ICPCH20d8TPGxyKczyrmiBUG/s3miGDxb+OL/sgt LqKGhLVpTaVWA== 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 1/2] dt-bindings: pwm: Document Airoha EN7581 PWM Date: Sat, 10 Aug 2024 06:48:42 +0200 Message-ID: <6a95b1d7fb90045a51a0cf51b9fafff26790904b.1723264979.git.lorenzo@kernel.org> 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-20240809_214928_810236_596C49F9 X-CRM114-Status: GOOD ( 11.53 ) 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 Signed-off-by: Lorenzo Bianconi Reviewed-by: Krzysztof Kozlowski --- .../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>; + };