From patchwork Fri Oct 18 03:48:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chi-Wen Weng X-Patchwork-Id: 13841079 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 B976ED3C545 for ; Fri, 18 Oct 2024 03:52:14 +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=B17V4awjYN0S0ULuazXBmwd7UfCktrAV4iNQfRZYfH0=; b=XB0yPD4+YLfFp0BnAcEyzgWoSb 56EMO2melSS7wSJsSzB0IZmdu+8IUytvUjabogYFst0R7BHlTRAJgK+0EPB5TwbDhKaUwFktQaVND 1+h2UKTgPKXIMM4NIX5naWCEHvOyIB8LnvXdUNYl8flFurVMGko9DBgzbKnMWqqP4KWtUpKJg3T/O sdSzT3r2noIlKJeoCJsjwiNn223IjPS14lR3P9vTz/WEQ2Ok1FBasqQSh5JMXLz/GzJgmkWGZW5C2 SaOa4xo/NVMWx5aCbFd+2VaPNQC+8+pw6RUn/PvzHaNRO4AM5jmVgt2iQJMFAcssg3AvTZ1zC6UF+ Md2/h7uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1e1y-0000000GpeP-3MG0; Fri, 18 Oct 2024 03:52:02 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1dzD-0000000GpOt-2b8O for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2024 03:49:13 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-2884a6b897cso769009fac.3 for ; Thu, 17 Oct 2024 20:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729223350; x=1729828150; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=B17V4awjYN0S0ULuazXBmwd7UfCktrAV4iNQfRZYfH0=; b=HHf6AYMQLKn4LRxumGnD2XigmT5a448WRdYVs1nrldizgLpsxIyxRPYxLTq5aXrgFm dIWlR1deJoBeGF+fH04MGSouaz9km2Gt3XEAd31sGm0KI+N0brgVReKd/3Pp8ZBz4WVq MICQduA2ATbXa7obDS4gQSlWP0NbM311TDsgDBfSgLkK+78QbHkBXdB47LaCt+/Ob01P Ywu/VA7dszfTMfW4/AApkVAarZKaQGncxVBEv9+H9kx4lcRL1qPm5xuV88QCk0dYZlvz j+P06lMYB/K98o7j8Mme5fx57JMCOLUYq/6vSWGOs7IXd0Rmu0ffeqoXPK8dH/1wBFty uExQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729223350; x=1729828150; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B17V4awjYN0S0ULuazXBmwd7UfCktrAV4iNQfRZYfH0=; b=YOPYHPsQdpChNeOc739sROcFYKAnQPV8zqoeuzvnaEwphaaie8BGBzZysNnMAh/4yM OzLf2znuF2/zZ1t2HR+/OqN8cWjLeWqqFhBQD4VpP0Qt25EF2lQ53E+z7r5rZo2wZt+H V7Y5c048IexWu/qSkE4z3mvqQFbKK0mNdxpx1rkbfzeegR7IzXR9jbzKUQKqqeMKJSuH bG1xs9PSjdYkvR43mQxBOTTBskRdD2vpht/A6eueVH0IhZpYHbvGGJcYB0A4cqTs2Bwq W1O0QHHyiP4bs0AQdSgF5InmpdLas5LtWzxT6NhfOcyNEVAHfti0N8cMSmuiIFVoQFc0 FHhA== X-Gm-Message-State: AOJu0YycKjLPBnpdPWDRDS/0abSJLeUu610o90vQIdvSDiymYOV2W+qs EnNgqQdM0QbWDAvZzfmI3VZQDUSud2cPIBJnKM42AZ3UjTurm6/7 X-Google-Smtp-Source: AGHT+IF7MuL5H6Q1aFIBW4w3Skr3dUD1q8TO07yVRunv9OqV0ZUtXM9lLnHuaWEhVNyRPS3WKA9xtQ== X-Received: by 2002:a05:6870:ac22:b0:287:b133:8aca with SMTP id 586e51a60fabf-2892c3425demr908443fac.25.1729223350296; Thu, 17 Oct 2024 20:49:10 -0700 (PDT) Received: from localhost.localdomain (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ea333d6e2sm459066b3a.66.2024.10.17.20.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2024 20:49:10 -0700 (PDT) From: Chi-Wen Weng To: ukleinek@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, ychuang3@nuvoton.com, schung@nuvoton.com, Chi-Wen Weng Subject: [PATCH 1/2] dt-bindings: pwm: Add dt-bindings for Nuvoton MA35D1 SoC PWM Controller Date: Fri, 18 Oct 2024 03:48:56 +0000 Message-Id: <20241018034857.568-2-cwweng.linux@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241018034857.568-1-cwweng.linux@gmail.com> References: <20241018034857.568-1-cwweng.linux@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241017_204911_690274_6AF833A1 X-CRM114-Status: GOOD ( 12.60 ) 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 Add documentation to describe nuvoton ma35d1 PWM controller. Signed-off-by: Chi-Wen Weng --- .../bindings/pwm/nuvoton,ma35d1-pwm.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/nuvoton,ma35d1-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/nuvoton,ma35d1-pwm.yaml b/Documentation/devicetree/bindings/pwm/nuvoton,ma35d1-pwm.yaml new file mode 100644 index 000000000000..95f0a0819f53 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/nuvoton,ma35d1-pwm.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/nuvoton,ma35d1-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 PWM controller + +maintainers: + - Chi-Wen Weng + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + enum: + - nuvoton,ma35d1-pwm + + reg: + maxItems: 2 + + clocks: + maxItems: 1 + + "#pwm-cells": + const: 2 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + #include + + pwm0: pwm@40580000 { + compatible = "nuvoton,ma35d1-pwm"; + reg = <0 0x40580000 0 0x400>; + clocks = <&clk EPWM0_GATE>; + #pwm-cells = <2>; + };