From patchwork Mon Feb 14 21:21:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 542632 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8E30C433F5 for ; Mon, 14 Feb 2022 21:22:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbiBNVWl (ORCPT ); Mon, 14 Feb 2022 16:22:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230519AbiBNVWX (ORCPT ); Mon, 14 Feb 2022 16:22:23 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB57813C9D7 for ; Mon, 14 Feb 2022 13:22:13 -0800 (PST) Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id EC583407DD for ; Mon, 14 Feb 2022 21:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644873731; bh=11HYmRlx8dE2WpuAnKJ9eGJzYR6C7S08K2HSgZ9haWY=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iVBZPBTYdQTIgMc1qIKnEc0Jih2sab3e/dJJPdE95pdJwLfMNquN/TFhBXvKdGwTe st0OWI6RZrWvpQo3OS0ntzy/jP0iktqYZR/qHmTbKj0S1byXRjawv9cvggtroK1FEP ak+G2RoVuVhRFCBc8XhcyLqLqVgaxPEtlQhg2bYtZP3mi1CfRg9BhC9XdmhbL9o0G9 5e9JTZwm8kvMRJRyBaKFb7pzgTrvKLQdBRHcq+RYA/MCovee1P0Fs9+bwJsNnRJLrH dd7yGJCYhrtbV8sN/GDFEUV4zy1QyIkWR2GagktDF33NrYC7Zz/7NZOk4C2fmRR4fX pF1+LsIyCKjzg== Received: by mail-lj1-f197.google.com with SMTP id l18-20020a2e7012000000b00244db28e67cso581373ljc.8 for ; Mon, 14 Feb 2022 13:22:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=11HYmRlx8dE2WpuAnKJ9eGJzYR6C7S08K2HSgZ9haWY=; b=s32rWXABaMhYQ7q2kMksUmWJiO9wEw6hH7AGme+gab9faqctK86+CY3Shf2x2Y2BD9 9VVYkF5Y4VNiAlQoN0FsWnsk7uOVq6p1cfYStFmrVVhQwEVCazdV/dyIVZCL1xmRluoq 32PCITWtHtPe+gArZRxjyWWXMGy8wPLxbyZ7Ak6utBJBFKVUfaMZ5A50TYqG8AMdkHKb kA8XUy+KfBHn3ueIhi431Vf03auwK8/nnHnv8PLjScRDsyM8iyrenkjz2vV1IGPGN2sK 9kxOHbEk1Uw9NYm8QnYoKARyK8LeS9K5HZ0GI1j/3xMSXu82L50ndlJbkrspZIeow/Aw W0LQ== X-Gm-Message-State: AOAM531ew03MpUm3OB8cGGzXU8Es2RuFbuWkoarUde2fA5//sYZ4IPW6 ud3OqMlOWjnVHaKl360EnyiCcaHIETl+/xHWseaL2CBlOHnRm/svL+RjC55jHOlG5OUxvgN2bhP whssoWZRRlSdxD8Je1SjA+EHTSrAzcHI0fwS+0bo= X-Received: by 2002:a17:906:8a83:: with SMTP id mu3mr507536ejc.699.1644873721204; Mon, 14 Feb 2022 13:22:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBRv82g+ePgMF2+U8SP74RMmwo7vMWesKHUBo0ELgxKNYYBtnBlWhrBbL5O1DcvkqWwBUiLQ== X-Received: by 2002:a17:906:8a83:: with SMTP id mu3mr507532ejc.699.1644873721039; Mon, 14 Feb 2022 13:22:01 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id v24sm2327203ejf.7.2022.02.14.13.21.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:22:00 -0800 (PST) From: Krzysztof Kozlowski To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Lee Jones , Rob Herring , Krzysztof Kozlowski , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Heiko Stuebner , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Philipp Zabel , Anson Huang , Vijayakannan Ayyathurai , Rahul Tanwar , Jeff LaBundy , Yash Shah , Sagar Kadam , Vignesh R , Yoshihiro Shimoda , Laurent Pinchart , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 02/15] dt-bindings: pwm: imx: Include generic pwm schema Date: Mon, 14 Feb 2022 22:21:41 +0100 Message-Id: <20220214212154.8853-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220214212154.8853-1-krzysztof.kozlowski@canonical.com> References: <20220214212154.8853-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Include generic pwm.yaml schema, which enforces PWM node naming and brings pwm-cells requirement. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/pwm/imx-pwm.yaml | 4 +++- Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml index 379d693889f6..b3da4e629341 100644 --- a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml @@ -9,6 +9,9 @@ title: Freescale i.MX PWM controller maintainers: - Philipp Zabel +allOf: + - $ref: pwm.yaml# + properties: "#pwm-cells": description: | @@ -59,7 +62,6 @@ properties: maxItems: 1 required: - - "#pwm-cells" - compatible - reg - clocks diff --git a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml index fe9ef42544f1..8bef9dfeba9a 100644 --- a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml @@ -13,6 +13,9 @@ description: | The TPM counter and period counter are shared between multiple channels, so all channels should use same period setting. +allOf: + - $ref: pwm.yaml# + properties: "#pwm-cells": const: 3 @@ -34,7 +37,6 @@ properties: maxItems: 1 required: - - "#pwm-cells" - compatible - reg - clocks