From patchwork Sun Jun 4 12:12:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13266576 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 87A7AC7EE2D for ; Sun, 4 Jun 2023 12:13:50 +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=FkrsYesWbBlqIycHMgENkc+EYVqZyayOH2ftU0Nzdxs=; b=IG9xBcS256EDUJ w48XaakglGSeIKL8QjoH7Z+HsgbeIUTmcOl1byBiv+FzsxFMe2V6TFSS1B0Q3/BfpNL/3MKNkQ3Q5 /IQO5ozsArOEhLS8hq+1DwFd9I6cPxI2K8g3ZVA01PyTceufyO9g8QWlTHJranH+4YKgYDZDtU+Tn 83rsKMdoIEehrmBudKvmCpuI+l+93NTEuwT3kfCyVCSYOP+vzP76BngU0BJgjNF9Tt77YrMarlp2A UDbnDB2bL1Wy8o+48rMhc9+I1tZ83TuLsJ52XnsKqqZQfxTreLUEAEnQr5rponnMjgpxUyFAlim0E DTgaIgAHSm2jcpenTUJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5mbj-00C6cv-2L; Sun, 04 Jun 2023 12:13:15 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5mbb-00C6XU-2A for linux-arm-kernel@lists.infradead.org; Sun, 04 Jun 2023 12:13:11 +0000 Received: from stefanw-SCHENKER ([37.4.248.58]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MORVA-1pgvvi1H4g-00PxEL; Sun, 04 Jun 2023 14:12:48 +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 08/10] dt-bindings: mmc: convert bcm2835-sdhost bindings to YAML Date: Sun, 4 Jun 2023 14:12:21 +0200 Message-Id: <20230604121223.9625-9-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:foogFTxftYvxx0yiHrFE16uks19QrCnC8HH3ae90EqYe99lsUrJ 0V1Ex5ERGkktRr5VKMfruARlqiTli4OCKIgdmgyyKGDyMDGmtiNRqvsC7zh4v1lCkeDzOgg dRL0KiBp28PmlWQX0cK9C12X7tVsj5Wr8UIBmSH04Z0w+QtkfZmiRRd0MplQX6P6GvxiOmC skP4ftc3f1GmijzExRr8w== UI-OutboundReport: notjunk:1;M01:P0:FYmh3L5uoWE=;+L6An8kNOoyMWyRK1uZ2fyOwVVi x7rg4AZbBz/oFY77feJ0cDnQeVECPvGSZzRyuOCoAWPnLPKXNkV1TlfOY7hQYjJxb1v1gJgzl Wc+V4OUWocJbyzyXP/lon16MVPCRyiveYvONFVv3lnBGGxFjnRhVY2929AHRImEt2AbPh6fBz 9AcSjJ/Ah0+Liec7qhp4Ae7noFbuiDsOiDN0jOmcw+mReRxl/1lUhzYohGFFtX3eGN0tE1cAX h6POHKSN5HuyAO/tn7c3LpwU1kkLfC7XmWMEWVRJNJAaWo2NXKQkM1h3pxISJWlwqnNjwiQmF IeFBcHQRB38SWTJ1yTGyh1UBajqWUydyszbQq4BeyNffHeJ7xO1VhxnOpvRIkqE/W041TAA+H 5VEEMIbRH1SWiso/urkCdPVft1dKpze8WjefqWcOwUhdNFuCv/kk0u1D342KErklWJIJB/Uls s6WwzOg7VU/VI3RqErSL4RuVOVXt3nXRf9v0HcQIgIAAp2hnD0Lkykd8RIGkyPM0uyKaNmFVM yBkjifKX7JtvMh+qxt+iXqsmvk/hmHo6tPv7FuVma2lnwlH1HZJZ9Ibn3oEFbo1SRfKPk8Sqx 1Ew2DhLHjExfWKYDeCLXzUWhACCucwjJcsCDzmKzugkwvuWZm5DfK6B0qKMCyL3MMSbP7xCO0 A0LUSpgVXoUPhrg+Ph/PhCcYwwpegDySaeEkiX/Lsg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230604_051307_993162_FD8B2943 X-CRM114-Status: GOOD ( 15.27 ) 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 bcm2835-sdhost from .txt to YAML. Signed-off-by: Stefan Wahren Reviewed-by: Rob Herring --- .../bindings/mmc/brcm,bcm2835-sdhost.txt | 23 -------- .../bindings/mmc/brcm,bcm2835-sdhost.yaml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.txt create mode 100644 Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.yaml diff --git a/Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.txt b/Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.txt deleted file mode 100644 index d876580ae3b8..000000000000 --- a/Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.txt +++ /dev/null @@ -1,23 +0,0 @@ -Broadcom BCM2835 SDHOST controller - -This file documents differences between the core properties described -by mmc.txt and the properties that represent the BCM2835 controller. - -Required properties: -- compatible: Should be "brcm,bcm2835-sdhost". -- clocks: The clock feeding the SDHOST controller. - -Optional properties: -- dmas: DMA channel for read and write. - See Documentation/devicetree/bindings/dma/dma.txt for details - -Example: - -sdhost: mmc@7e202000 { - compatible = "brcm,bcm2835-sdhost"; - reg = <0x7e202000 0x100>; - interrupts = <2 24>; - clocks = <&clocks BCM2835_CLOCK_VPU>; - dmas = <&dma 13>; - dma-names = "rx-tx"; -}; diff --git a/Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.yaml b/Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.yaml new file mode 100644 index 000000000000..3a5a44800675 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/brcm,bcm2835-sdhost.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM2835 SDHOST controller + +maintainers: + - Stefan Wahren + +allOf: + - $ref: mmc-controller.yaml + +properties: + compatible: + const: brcm,bcm2835-sdhost + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + dmas: + maxItems: 1 + + dma-names: + const: rx-tx + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + + sdhost: mmc@7e202000 { + compatible = "brcm,bcm2835-sdhost"; + reg = <0x7e202000 0x100>; + interrupts = <2 24>; + clocks = <&clocks BCM2835_CLOCK_VPU>; + dmas = <&dma 13>; + dma-names = "rx-tx"; + bus-width = <4>; + };