From patchwork Sat Jun 17 13:36:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13283616 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 13A3AEB64D9 for ; Sat, 17 Jun 2023 13:37:25 +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=uFdzvJl/ILFc4j6vdhE5Mp6a/mSU0iSAt6Kno3KlKfA=; b=BWu66ZaLvxlyqQ 2peoOTIkhCYdoOisBqiudkguethasVFxJgbtqsCxkCRD6oK5ZM6Yrbvgslnmop8M635WVvh+tQiLY BiSS773IRpDNWCZxkWFkHw8pWePiMUi6eQ58+ycHNqx2cSrGp0JpyrLO8inrAMV9lU9o6cWHSt9oN OSssD72gqQ6G0aAvAjEtrXIqQiyuSlO+9EEw6HjtFBoLklc7fXWJQ4xt0BkGwFVr9BvehBrWTsR5j kp0UNbnHgwzlzwyq4DmyzJ6YFfLtbyx/lkeNaPXPkchkdiuWe/Kgr07POWo6kx+D+OinDvrwfYgHT nMOCuSvzZREwHNbs6Asw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qAW6u-003frN-0m; Sat, 17 Jun 2023 13:37:00 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qAW6r-003fp6-1N for linux-arm-kernel@lists.infradead.org; Sat, 17 Jun 2023 13:36:59 +0000 Received: from stefanw-SCHENKER ([37.4.248.58]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M3DBd-1q6wnn1KRx-003ahw; Sat, 17 Jun 2023 15:36:42 +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?= , Daniel Lezcano , 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 , Rob Herring Subject: [PATCH V2 4/7] dt-bindings: pwm: convert pwm-bcm2835 bindings to YAML Date: Sat, 17 Jun 2023 15:36:17 +0200 Message-Id: <20230617133620.53129-5-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230617133620.53129-1-stefan.wahren@i2se.com> References: <20230617133620.53129-1-stefan.wahren@i2se.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:TYFuVqZD3jYtkk6+GD5UzcN2416fgXqjUg2mFaGJe6WHPTO7HPH 7oEIfw5baV63U/v7VUx0ZmLTD0Boi51cYj9b962jzufJE4xE1lZo4v1mbPRcQh9zIacH8aJ R/2TXdcQ4FysRSsCfwbESdTPDpsgF23mqfQ1evY3a8f525ge+36+OejV6xoKw1gyLxDpxWk ujo9SJDRLTvDUnzCt4GAg== UI-OutboundReport: notjunk:1;M01:P0:fhUkDUnOG2A=;JiD8inveuTdBC4Sifc1wUqYzewa sOlxnFzOJblh67R7ZAyUU9QH3YDDo13rT9JFwxqPnzNxhtbrjlqWUDxk2JHrjBZ/t8eLd4J7v GRMj9DveSXPwqCX9kL2jiEt02+TxxU5+alKcvDBfJKVFIw/UPVjwQpj+TG12xM2gQCxaTpTaS JM5pEwkWav2fxGs16tA1cHPbEX92yP1pC48dYYNPojyCCKyPuMd4mO+jAsTkATtHDC7eq0Yqv kZC+2s7VK+rl4n5eHRjurOR5ez5OZ9OX0VNUJ+Hwh/ES4KIe/OU1VLDBlpOFlLB0PArNn4FtX CePmKtKR6WdubRjWyjmP7bc5GLLhGkYntG7qGdKnwKrE3N2jZntzkJgVitrxCvMeMBewQxok6 s3GUA0b8QS0Zd5g0vIYcDF497nRtFaXP9gNkxGM1ixYysWPtVMuRoqf/49YQkPGx6wxADHmBc jAPMtd6nJlsuNJ+F6+aYagEeU4TOivc0k3xiLh6cLYBk2v6BC2j7LLlFsVP4ZD2dQqNPpqDmJ uBjOP4aOybwCLlHAL521YHob6/rZb7aGDvY1FTqX8rHduN6f4+472cuPgJxN3vFviTahQSCmu HsOfqfdrpsBa/Zg0mvi5XcVuxddGhmB/0BzW9lE6PsDhdWO+4fdsStwgpi0KdTKyF/iCqcs91 znVOcWSQ8FUpcMBO6NG+J1HobKqWg9vwEJa6uWqgDQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230617_063657_752569_C9A048AE X-CRM114-Status: GOOD ( 15.70 ) 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: Rob Herring Reviewed-by: Uwe Kleine-König --- .../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>; + };