Message ID | 20230915-ep93xx-v4-17-a1d779dcec10@maquefel.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp888240vqi; Fri, 15 Sep 2023 01:23:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGW0BezeqqQ+DI1JfUwzAVCGHgQpt/iGaB3tAtspSd7DnUlem5uKfy2EJzpcHZUPAuoKZlT X-Received: by 2002:a05:6a00:2354:b0:68f:f33a:7ee3 with SMTP id j20-20020a056a00235400b0068ff33a7ee3mr1075438pfj.29.1694766183382; Fri, 15 Sep 2023 01:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694766183; cv=none; d=google.com; s=arc-20160816; b=ctFKRRw8lWWN54jjVVoOtE3VqKtw2bmOZKK5w1WNljhyGQSCD1kgeg4BogChdh2iOx VDw8doXLnlQkwPR14PdXbkKBGECUy82+Uxp7VjcbrRJhn6Cg4775yHi1VXD99Y+rxiHk 6uwcF1NthQTc6n6zSQ6sd0NTGYdawum1xK7Nyeir3ncOyAGpGycaXXLznNe03MTyKGBu fsVFeh2xEInu6ede0vlRQBPHuxmUhC6TgRl729GuLnXdMU/ZbNee5aASPOuRCnOAUAcg 5cQ5tkk1ksr3TkgDk6kcIq9CsSF6DgzGL+IuvHxaNKAHngeoVNu0Zx/q2h/fu5HljMQJ PxBw== 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=wu8dmyLq+yOXF5pmbWfq3+XznTtuD6+QhoeTuoJ2+uU=; fh=BGC4XMCZXlHneVgTpw+mm2stqN9a/8waB6BqXfi7j5c=; b=YhYgOzPM4/EuY/hGMhptYAt+ui87MBkKobi4u3BDibNJRGwIZaKNQu0qwZ7ghl25Ha EgSVhGV9+1s+00J+iW9WAt/sRW//ChgpUqIWNYtZG3OCJRd/T3HAQOBVhELpgBeKouU1 ETmk4yEdvCrez8DXqEE2qD9L1bvvY2n7Y9LX9ltX1VXfRCOOajGw3Kq+8+ISxwndz1LV CZBC46dUGH8rO8K1qwpwUgV4/yowXxUnjJKWXUkGWfydD021BU7E/UgO3QEPuM5OC2VF HFdd/tdprJja8vVTeniacCQ096E/+aW2mJakiOLI8jxt3Z7aecUU4qcxYenRso+6wXL1 nZKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fvDpEwpN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a26-20020a056a001d1a00b0068e4661404asi2898908pfx.392.2023.09.15.01.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:23:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fvDpEwpN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id EC7168706553; Fri, 15 Sep 2023 01:13:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233142AbjIOINE (ORCPT <rfc822;ruipengqi7@gmail.com> + 32 others); Fri, 15 Sep 2023 04:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232965AbjIOIMc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 15 Sep 2023 04:12:32 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F9F2728; Fri, 15 Sep 2023 01:12:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 23051C4AF69; Fri, 15 Sep 2023 08:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694765529; bh=MJoWZHI2N2uqhqsmwexa0h2+7237tCLh0zSp3grMtww=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=fvDpEwpNNCMTiYyZXlqSN528IKTXl2Pd5yvTkdvOPDg+pHhpr3cWUmsTQplluhfiR TURS0umSQACFA9CAUdlSbp7bJOKg3I6jaeTYCbVPz+81ERXe+OAUZHYFf1TEaF8d+G 3ApaaW50DMFCFr6MiVjeC23FiXwJp5pirEHDI8jfjixvT+pjXKS2ZdapuZQjXvrw8s DeQxLpIQERc13FmOG+Cbr6I2kdiDjaUYAYuxFq6lOWD93TsIZSTiZjbmSHTEITS5cL 4g4XuBzncr4m8R9moI404eyNFEw+ExmLMwGNsKslRerBEOxFLLCLYVw0XfALPlJRKl jpRnsA4TKidjw== 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 0DB22EE6437; Fri, 15 Sep 2023 08:12:09 +0000 (UTC) From: Nikita Shubin via B4 Relay <devnull+nikita.shubin.maquefel.me@kernel.org> Date: Fri, 15 Sep 2023 11:10:59 +0300 Subject: [PATCH v4 17/42] dt-bindings: pwm: Add Cirrus EP93xx MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230915-ep93xx-v4-17-a1d779dcec10@maquefel.me> References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> In-Reply-To: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> To: Thierry Reding <thierry.reding@gmail.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= <u.kleine-koenig@pengutronix.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Alexander Sverdlin <alexander.sverdlin@gmail.com>, Nikita Shubin <nikita.shubin@maquefel.me> Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Alexander Sverdlin <alexander.sverdlin@gmail.com> X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694765525; l=1680; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=HWfGpRfLI0u3c9w/GjlqYijmDqOAH7VeVmchFBxBT10=; =?utf-8?q?b=3DfqwPMVf9im1+?= =?utf-8?q?ACb8pU7d1RD4B+HiPxO2g9wB9axtZVBX55RMDR6WU1GMXfBC0GVs4+RBUTqJ0ba1?= egdQVnyVAsjMeRT8JroESViNMhg3y63qFKdAsIYjnCM2OUY8dwPM 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 <nikita.shubin@maquefel.me> Reply-To: <nikita.shubin@maquefel.me> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:13:14 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777091145385530530 X-GMAIL-MSGID: 1777091145385530530 |
Series |
ep93xx device tree conversion
|
|
Commit Message
Nikita Shubin via B4 Relay
Sept. 15, 2023, 8:10 a.m. UTC
From: Nikita Shubin <nikita.shubin@maquefel.me> Add YAML bindings for ep93xx SoC PWM. Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> --- .../devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+)
Comments
On 15/09/2023 10:10, Nikita Shubin via B4 Relay wrote: > From: Nikita Shubin <nikita.shubin@maquefel.me> > > Add YAML bindings for ep93xx SoC PWM. > > Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> > Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > --- > .../devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml | 46 ++++++++++++++++++++++ > 1 file changed, 46 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..198b9a40f756 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml > @@ -0,0 +1,46 @@ > +# 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 Logick ep93xx PWM controller > + > +maintainers: > + - Alexander Sverdlin <alexander.sverdlin@gmail.com> > + - Nikita Shubin <nikita.shubin@maquefel.me> > + $ref to 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 No pwm-cells? > + > +required: > + - compatible > + - reg > + - clocks > + > +additionalProperties: false and then unevaluatedProperties: false instead Best regards, Krzysztof
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..198b9a40f756 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml @@ -0,0 +1,46 @@ +# 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 Logick ep93xx PWM controller + +maintainers: + - Alexander Sverdlin <alexander.sverdlin@gmail.com> + - Nikita Shubin <nikita.shubin@maquefel.me> + +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 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/cirrus,ep9301-clk.h> + pwm@80910000 { + compatible = "cirrus,ep9301-pwm"; + reg = <0x80910000 0x10>; + clocks = <&syscon EP93XX_CLK_PWM>; + };