From patchwork Sun Jun 4 12:12:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13266575 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 E6CBDC7EE32 for ; Sun, 4 Jun 2023 12:13:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ix4BlXOAQQTGafA6m8Nmky+t9m9KQUJ7SyV5Ya82Was=; b=OFSB2+F68KfwL2 tSdsQ5LJbIJUK36Y1a8kRZpVTz3XcB6XA8cTgMKW8CW4cj5Nulub5JgnM9Qjahzgf0/qqw45jCj33 +1Sgk/DSsd7i4OTNUXjcUzieXOVCGTcdHvTg8vmaZSioEkuxSf8dBesKewkkN/X7bQQsuDa0Ir0lt t3KpQ8KRwC5nokTzRet+K+Yhly8xCczLsdr/pgQ3bCTyC3YuPc9/mkZvG7uGbe1RqeFWYDSB6OSZp 9LS5s3ETelmGoEMhpKVR2I9w7ooqQKTfe8bvOnQyhKK1FG9Fzp7Y1ABuaO1/VcCP/8DU8B5tl1tgn sGlwe+c6TA0Xs769qDaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5mbm-00C6ed-0q; Sun, 04 Jun 2023 12:13:18 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5mbc-00C6XV-1X for linux-arm-kernel@lists.infradead.org; Sun, 04 Jun 2023 12:13:12 +0000 Received: from stefanw-SCHENKER ([37.4.248.58]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MBmI6-1ptdVR1w9U-00C7LT; Sun, 04 Jun 2023 14:12:45 +0200 From: Stefan Wahren To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Jassi Brar , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Thomas Gleixner Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-mmc@vger.kernel.org, linux-pwm@vger.kernel.org, linux-pm@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Stefan Wahren Subject: [PATCH 05/10] dt-bindings: pwm: convert pwm-bcm2835 bindings to YAML Date: Sun, 4 Jun 2023 14:12:18 +0200 Message-Id: <20230604121223.9625-6-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230604121223.9625-1-stefan.wahren@i2se.com> References: <20230604121223.9625-1-stefan.wahren@i2se.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:yEqjFtXc/3vGmTSJ7Dy2Z8p775o68ILE0NDuwSUWovXrpTHthm4 FKr5gNBh7xasgmosXf5YxVHhdkWm9XJLb/gjD/NCM93yHuAn2oc+MbZn36mQEOhyiyYVp5b 8he2l2knb/bZlBQMolO6Nc2WJqnUIl9OgzIyJ84oR++6vQEA0K2SiW/HCxcstvBUV/QE6Fo A7TZp7Q7AdvNk5Gm6fQWQ== UI-OutboundReport: notjunk:1;M01:P0:H0tTJbhnCxM=;5C7Ip//JOF9H88HOGXhCQghs37M +2AOYrTihZ9ogAa1Ld5EC4aM/ovwSFqOt3HWhh1WE6Y/4rFyQEnL6JBzbE+d2Fnx2HJr7DtpM zgRnuJdbtDrX+EKVIHG8WZ/j6COsghNMrJCK8YjaONRDPjSrlnDpOy4Ge+zWRXlKiokW8gOdG kAKkWECaBUYN75zKL/rOcJvH4jhrPIivMWD3UG1UkLCaYb9mLSKTz772MIqmzcHrlX5kXbl5q PLm5K49yHrVqAm+/0grw0cdAk5WC4UDDSVPY5UUU+LSWBV+vLxf6NrrUEtOrlImJd56X6K8In ruldsRb13XcA5MscluhQfHzFbY5ts0RaPxuh1NRNy1MHbwCAT2H689XX4DCLkgCYvNaWy8GUG moD29tyADPmIX7hd6x42HsnC6wQLOraKaqqM0FojfHnZOxQLSabAPgmcJqA3LyymN/Q3cs+qg i/m7rTpcqiDPjP+4nocPwLq+iRSolvb1dDQSrAzgjVmLZkYCAtbcngL1VoyVYdMVonmjqLcUN 9MtNipE9vkwJEGkgeuwm6WIoO41dnB9wBAmZ5KRBRG9P4Ss2iqlWCWKfM6gejwKnH6jZ2dBIf WxAJKepGsIHkGpESWOqN6fFV5ypOiPfiSrCRXeDYFeXgs7a6cFH0QxblcwZs4+fs/UMqjRwFM Rr684lCeLd9artVpCgO9t/ReWce0Ls2xbzr9Kg1JCw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230604_051308_818395_8135C546 X-CRM114-Status: GOOD ( 16.35 ) 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 Convert the DT binding document for pwm-bcm2835 from .txt to YAML. Signed-off-by: Stefan Wahren Reviewed-by: Uwe Kleine-König Reviewed-by: Rob Herring --- .../devicetree/bindings/pwm/pwm-bcm2835.txt | 30 ------------- .../devicetree/bindings/pwm/pwm-bcm2835.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt create mode 100644 Documentation/devicetree/bindings/pwm/pwm-bcm2835.yaml diff --git a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt deleted file mode 100644 index f5753b3f79df..000000000000 --- a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt +++ /dev/null @@ -1,30 +0,0 @@ -BCM2835 PWM controller (Raspberry Pi controller) - -Required properties: -- compatible: should be "brcm,bcm2835-pwm" -- reg: physical base address and length of the controller's registers -- clocks: This clock defines the base clock frequency of the PWM hardware - system, the period and the duty_cycle of the PWM signal is a multiple of - the base period. -- #pwm-cells: Should be 3. See pwm.yaml in this directory for a description of - the cells format. - -Examples: - -pwm@2020c000 { - compatible = "brcm,bcm2835-pwm"; - reg = <0x2020c000 0x28>; - clocks = <&clk_pwm>; - #pwm-cells = <3>; -}; - -clocks { - .... - clk_pwm: pwm { - compatible = "fixed-clock"; - reg = <3>; - #clock-cells = <0>; - clock-frequency = <9200000>; - }; - .... -}; diff --git a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.yaml b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.yaml new file mode 100644 index 000000000000..15e7fd98defc --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/pwm-bcm2835.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: BCM2835 PWM controller (Raspberry Pi controller) + +maintainers: + - Stefan Wahren + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: brcm,bcm2835-pwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + - clocks + - "#pwm-cells" + +additionalProperties: false + +examples: + - | + pwm@2020c000 { + compatible = "brcm,bcm2835-pwm"; + reg = <0x2020c000 0x28>; + clocks = <&clk_pwm>; + #pwm-cells = <3>; + };