Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4490824rdb; Tue, 12 Dec 2023 00:22:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCRKburv/HEPXYCRAp/exb2hJC3cVZYYhEtHLyU+OQPCz9yPf8lsibBdyiRuKdP7Wc8MyB X-Received: by 2002:a05:6808:211f:b0:3b9:db67:4de6 with SMTP id r31-20020a056808211f00b003b9db674de6mr7614433oiw.47.1702369377039; Tue, 12 Dec 2023 00:22:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702369377; cv=none; d=google.com; s=arc-20160816; b=DvvnBuT/YSa9ee25jj9b7FzfcNxPAA07dWCs2EQJIr5nNNjCSBdY6t4caT5YoyS1+h fQDBIgIrKKU7zCie1VdABWvS+djsmBq9iXtFIgvhrovSRp9/XyEUqNeS6DgAHlxhRlF8 O0r2+0Sjh790ITlJltzMrmHxsDSIa+Bf08qfvNlkh9Lwl66AQ65sygixIyG0KShvb0F5 gD7fHp29k49g8XdSYPm7zaLqZ0ZO32sFAmttdgTyX93FAPLxtbh0izKgSnjUZEk+iJTG zDz2hhLNeT7o2AccaVapmH8RGhleEIzf9v+ZaEQLBDtTpjEVfT4woXCJ0/zzT1caPWRf SiFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=lDanKa6biOSMcdpV3el5K98avC+hy0Qiy3wCta3es1I=; fh=rWfwJSt1eitVYNQlBaIFfxrJOdIXnQqAp+84LWgguzw=; b=pMbGBwqo7CqryodBdaZc09MEREOUL5EKWVqxgJLBnsPTETul6RG4l8/2nPTfiMVntg r3TOtooT9nKgbVUrt/TB4a+nX2zI2ZU/f9UTztuXN0gRGtV4NLCrZCUB8GLz7CktEuHQ U4FemoscEcG7JfDQxiebdz+YFCpDL4MuFDa86SQfTxKTn0BeiFELWOGU1Y91FNA8klsL +zu4chGdk2iEvtIc/iR1ulf62EkIiqXhsuA+EHiFRg4mvdPwdoIKuuXOMkY5cUFz4xM6 lWF0V3IVxHj/IZl1h09xiNH/ncHmQFy+MltY8hTd7Z5jbohpm2LDWfgavZ4W9cN6hFs/ nBfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pt9KPg09; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a22-20020a656416000000b005c1b2c911f0si7396122pgv.328.2023.12.12.00.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 00:22:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pt9KPg09; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 15DC980ABFF1; Tue, 12 Dec 2023 00:22:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346196AbjLLIWk (ORCPT + 99 others); Tue, 12 Dec 2023 03:22:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346049AbjLLIWC (ORCPT ); Tue, 12 Dec 2023 03:22:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41808EA for ; Tue, 12 Dec 2023 00:22:08 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id 327B4C116A7; Tue, 12 Dec 2023 08:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702369325; bh=a/cZdGJuuVrU9Ek8D9oilewhzZsfNMnr7caWbQucbUk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pt9KPg09r3jMiJJ6aWUIv5G1tg8Qp2+aEtuMJ7yFylEpkXRh6i6tjMm9pXnDUGnS7 Cv0gNjR3bUL4iPVKPMw4jEE5BTji2jCnmWJ3IIPVmnajK+uFkkuLSFjiqvJ0EoSrdw p/nD5vnETgjP1rB+hInwdieVxTLKTz7jk+sRrOnzwOrNGKOgj5zeTHP8+3omNjlZmM mQpBVDcdwRzd1b2rRCpD3jEDdnHEuuWAFGaA66r9Kef7XZuz+gDLxMRC1LlJXnWPAS 2JvmdgWzp7L+k8eUQAzS6ATNF8yTd2FgzdPoT/fcccLkK7pV8kUKKsyXrJa1vPamOw vDwqRLgL9XJsQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24DDBC38147; Tue, 12 Dec 2023 08:22:05 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 12 Dec 2023 11:20:30 +0300 Subject: [PATCH v6 13/40] dt-bindings: pwm: Add Cirrus EP93xx MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231212-ep93xx-v6-13-c307b8ac9aa8@maquefel.me> References: <20231212-ep93xx-v6-0-c307b8ac9aa8@maquefel.me> In-Reply-To: <20231212-ep93xx-v6-0-c307b8ac9aa8@maquefel.me> To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexander Sverdlin , Nikita Shubin Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1702369322; l=1848; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=yiCeIO46pBt38m6arFX6dYafL64TrLSuKy+InISqKkU=; =?utf-8?q?b=3Dwr9OAY+iSHXW?= =?utf-8?q?3CdcW50cK4pZHKIutn0mgqORqGrxNWwgq2l7KrvnxRa3Fxbyk8lxb1B5MueySKjM?= JNqNVvxNBL/4qEgLvGp2wwWB04qM8r5sTc64tuX43sBmzGqJA81V X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 00:22:56 -0800 (PST) From: Nikita Shubin Add YAML bindings for ep93xx SoC PWM. Acked-by: Uwe Kleine-König Reviewed-by: Krzysztof Kozlowski Signed-off-by: Nikita Shubin --- .../devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml b/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml new file mode 100644 index 000000000000..903210ef9c31 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/cirrus,ep9301-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic ep93xx PWM controller + +maintainers: + - Alexander Sverdlin + - Nikita Shubin + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-pwm + - items: + - enum: + - cirrus,ep9302-pwm + - cirrus,ep9307-pwm + - cirrus,ep9312-pwm + - cirrus,ep9315-pwm + - const: cirrus,ep9301-pwm + + reg: + maxItems: 1 + + clocks: + items: + - description: SoC PWM clock + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + pwm@80910000 { + compatible = "cirrus,ep9301-pwm"; + reg = <0x80910000 0x10>; + clocks = <&syscon EP93XX_CLK_PWM>; + #pwm-cells = <3>; + }; -- 2.41.0