From patchwork Thu Jun 1 05:34:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101723 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp71289vqr; Wed, 31 May 2023 22:47:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6F1288T/jsXcfjIuJtF9RwO/EMVUCVlhVosPA6TFQaQpW+Ml3PbyVEjYC3trXJODk4Y97s X-Received: by 2002:a05:6a20:1611:b0:110:390f:6806 with SMTP id l17-20020a056a20161100b00110390f6806mr6908848pzj.57.1685598462690; Wed, 31 May 2023 22:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598462; cv=none; d=google.com; s=arc-20160816; b=oDf+JYjevGmctoOtXzyxFn6RbxytwONPS4mSVO/qu7YE/AFi4wAgzESDWpMVQgWvPU +vwMR6yjTp1f8sBfiby1nfcgTu92gr5oGzfHWHDAa4RcYYWOc/rKpVSPCeTN3m9s47eY 4CvWkA/6yUys6iNpFI2Tgd9atokpS+V7OYsWVNlq/QR8dHNRR//XAGPALaUVF6caIhay +Zk6jkoM3mTk4NKf5PAZIWLn87Km0boE6TiPWLfdUwLGNGBl68mRXBxRFWdLZUR+qM3c h7Yf6T9QqQfL2R/+Ib8ZVtI54ifjwIbxIrlVDK3BFq3gdm9nKuC+FI0zioA5yQAtEKI/ 7C/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9x0sbFQMwOV8xWUuOaTI2MOW2vx9aWzbCEMNaf6KDSI=; b=MCJ20GVEC081yDBMd4lt4eKFrWGXQVoRGRGLZ9+ZiSlot+iOXUiTE/iaFdhryuVG+X FsGJfu5XYK5/GdkDMyqnaStkynJalGrvEGMLap/WxiiaJK1a/npolg/YeNCzk9FlhcMu +J6cdatZJh0HoOu/XPL7Nfo0WiKXqiC3G4lJCnkRt2VKnCoFa9UJA6lL6SOwbpHGZirt I+G1F65KvWezPYks0o6xC9hUWvl7QjhlpRpAaShYKzGouM9bqFa4zABlpFQZPZVXWpsH vxLE6NETmQX4qxgPio7G7kd9rkE/uyjCZdc5TcvlLNfxTbgg81l4XSwjELSNqSJmlrNB nHBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=qcg1M1DR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a170902e85000b001a66c2f479asi2392009plg.219.2023.05.31.22.47.30; Wed, 31 May 2023 22:47:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=qcg1M1DR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231349AbjFAFjK (ORCPT + 99 others); Thu, 1 Jun 2023 01:39:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231523AbjFAFib (ORCPT ); Thu, 1 Jun 2023 01:38:31 -0400 Received: from forward102c.mail.yandex.net (forward102c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF9E7E5C; Wed, 31 May 2023 22:37:48 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:c83:0:640:84f9:0]) by forward102c.mail.yandex.net (Yandex) with ESMTP id 1A34260029; Thu, 1 Jun 2023 08:37:15 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id OaGNfZvWv8c0-f03XGDan; Thu, 01 Jun 2023 08:37:14 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685597834; bh=9x0sbFQMwOV8xWUuOaTI2MOW2vx9aWzbCEMNaf6KDSI=; h=Cc:Message-Id:References:Date:In-Reply-To:Subject:To:From; b=qcg1M1DR3YgW20BtroUceN5m2HYVKM2WoDzai59NDIX00oMkdWmHGHhMh2FcuRzFS e/Z87wDY/E6cYrIOVbIVqf7YTY4ulo7sfuasa/iriFa9CnnZW4mUeaHENccpEKuumX ybGNYw87bzKLrADOAZ+ZLkNobXf6/LqQy9UeueeA= Authentication-Results: mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Nikita Shubin Cc: Michael Peters , Kris Bahnsen , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 15/43] dt-bindings: pwm: Add Cirrus EP93xx Date: Thu, 1 Jun 2023 08:34:06 +0300 Message-Id: <20230601053546.9574-16-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767478093573109777?= X-GMAIL-MSGID: =?utf-8?q?1767478093573109777?= Add YAML bindings for ep93xx SoC PWM. Signed-off-by: Nikita Shubin Acked-by: Uwe Kleine-König --- Notes: v0 -> v1: Krzysztof Kozlowski: - replaced maintainers with Alexander and me - removed wildcards - use fallback compatible and list all possible compatibles - dropped label - dopped "clock-names" - fix ident .../bindings/pwm/cirrus,ep9301-pwm.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml 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..825c321073ff --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml @@ -0,0 +1,48 @@ +# 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 + - Nikita Shubin + +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 + pwm@80910000 { + compatible = "cirrus,ep9301-pwm"; + reg = <0x80910000 0x10>; + clocks = <&syscon EP93XX_CLK_PWM>; + }; + +...