From patchwork Tue Oct 22 23:20:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 837898 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A52921CDFD8; Tue, 22 Oct 2024 23:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729639283; cv=none; b=etc/nLhZ1kSA43yoxbTvWbIM6aeR8ldYc42sZ3SbFPtOS1YR08uBTk6B8m774GE9E0VmGvYfuDS8gBk2lYlsZa0Uh8yIgUu/V77hsvAmZeHvozpXUTbsBWddtbg1pHuE9OkMGEZF1Mkai3xn/cavU09oSLOfchgiGbXac04yaYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729639283; c=relaxed/simple; bh=xf3O2KqOGEwytXIWpIp/7uLYcZVVkfANHvZ0KvLjCYk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uGqZZVAy54v0Yqx4vTl4lnfflBWU0kyhROfYdhkKvTk27Nsuj3au8z1J7jBH6aCNFrYSxuW+NpTyZq7S6tEtobAKd/+ocUTISKlLsvtFz1c3rChP7OEK0/MSd2UP0/Gdv7A7kg6797OjpxMGDNpnLuUnGHOf/1e2ZukbKZFjV5k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j+GwTg2e; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j+GwTg2e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 695B5C4CEC3; Tue, 22 Oct 2024 23:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729639283; bh=xf3O2KqOGEwytXIWpIp/7uLYcZVVkfANHvZ0KvLjCYk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=j+GwTg2eSbXQWi89oilcew2yw6HcVamSZ41rytTTRu6g1bRuDKwa24e3wad405X7Z 2b2G+EZC85Y55v3C5NM14fBnykS44z3Ap9n4oeiI97rjhZCaijc1HMOZsGJkgGboJG SGfwpYjKJaYn+uvTqsMuMS/C4MGjMJvXkU6aV4rTeqzvuHMMandj+Sv8cHfv1l9IA3 Bw7jeDS5wQ4l1CtRvdS4r3fu3SZ+PMHRTMT/4cMVRmgk4hNHN7aSdbndt+M6uXdgY5 SiiYHa180wEQ2V31Q31yFyvRjUe1tWZJ379zbswRPLgDfEntYKyiIadLzI3Pkl0IWp 8ciB0tPdJE0aw== From: Lorenzo Bianconi Date: Wed, 23 Oct 2024 01:20:03 +0200 Subject: [PATCH v9 3/6] dt-bindings: pwm: airoha: Add EN7581 pwm Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241023-en7581-pinctrl-v9-3-afb0cbcab0ec@kernel.org> References: <20241023-en7581-pinctrl-v9-0-afb0cbcab0ec@kernel.org> In-Reply-To: <20241023-en7581-pinctrl-v9-0-afb0cbcab0ec@kernel.org> To: Lorenzo Bianconi , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Lee Jones , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, upstream@airoha.com, benjamin.larsson@genexis.eu, ansuelsmth@gmail.com, linux-pwm@vger.kernel.org X-Mailer: b4 0.14.2 Introduce device-tree binding documentation for Airoha EN7581 pwm controller. Co-developed-by: Christian Marangi Signed-off-by: Christian Marangi Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Rob Herring (Arm) Signed-off-by: Lorenzo Bianconi --- .../devicetree/bindings/pwm/airoha,en7581-pwm.yaml | 34 ++++++++++++++++++++++ 1 file changed, 34 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 0000000000000000000000000000000000000000..f36387572a9781636aeacdbcc8947017c7ca75a0 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/airoha,en7581-pwm.yaml @@ -0,0 +1,34 @@ +# 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 Controller + +maintainers: + - Lorenzo Bianconi + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: airoha,en7581-pwm + + "#pwm-cells": + const: 3 + +required: + - compatible + - "#pwm-cells" + +additionalProperties: false + +examples: + - | + pwm { + compatible = "airoha,en7581-pwm"; + + #pwm-cells = <3>; + };