Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1384098iof; Tue, 7 Jun 2022 04:42:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypCsnC94yjv7erW5rShgltOtIa0qtT/TtRr2ag4XzqiDTea4khx2d6QZFJSz3EMgzxABdH X-Received: by 2002:a17:907:6d9b:b0:711:d26b:f5ba with SMTP id sb27-20020a1709076d9b00b00711d26bf5bamr7884859ejc.135.1654602122244; Tue, 07 Jun 2022 04:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654602122; cv=none; d=google.com; s=arc-20160816; b=Vy3NMT1s5iJxM0klpakLL8DmxsL0wBLtIEzg0DyLs/EapSllfNMcdf9azf70qNIX7B lTIM4DO9vuFO8BceWbF8EqOj1a8BLYB7dUIRSU9PfS6mQwY3V2S4kVw3NWU+luTwIqsz 98UC1Xk8x2g37e0whhF2K/H21XOb4xcMLC2jkilh/OJowxVqqGlgO/nZdUjsZXje/u0d anAC8IyRjReXkAotfV2Roh0s5YM7oFnyrILMBLsIw7GNZtp4aD+gdjOGCUAPT0uBh/Cr PACMtMUZOqQs2+lLmm478z0NmOexOEVmD9SVKxPi39sb+RVt025eDV9UKUj7+7OwKN2p IC/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tfeUV1AwNiT/W19hxcj/NliOzzEK95QXMUgUDGQeGVM=; b=LQKjrulkO9wr4KaraliX+oyJ1NZyp5tURtz9te9sY/07g/ERYv0yNlmO0Jia96dJK1 i/WppGtjJI0dPmK9cPeoJ+n4s1OuRu5cuogxefMvgcYuwj3bDpMh5ST+9T1Jk+dU4hlz yOdpfuNj5qAAQquxmx8M+RHfdu+I6Z6HYC0CcnDnRHDfzqtxHWe7faW6a8ogd3SU0YS/ kr69275LvagOq3pDIJYPSZeHeB/VHb3n7eJJjjKb6JFWTHomloOeE9p20HRpivyKnGrv nR8si4CHFiiE6qRz7aysZm2An8YO669Uz1S4ipqut0wlB4PSFfhMAl9Jj1b+UVgos9an yLzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mklHMeni; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn40-20020a1709070d2800b006f42491e0a0si18929621ejc.655.2022.06.07.04.41.36; Tue, 07 Jun 2022 04:42:02 -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=@linaro.org header.s=google header.b=mklHMeni; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241386AbiFGKoC (ORCPT + 99 others); Tue, 7 Jun 2022 06:44:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241336AbiFGKnz (ORCPT ); Tue, 7 Jun 2022 06:43:55 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D2C01FCFE for ; Tue, 7 Jun 2022 03:43:54 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id u26so26922550lfd.8 for ; Tue, 07 Jun 2022 03:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tfeUV1AwNiT/W19hxcj/NliOzzEK95QXMUgUDGQeGVM=; b=mklHMeniN+Ch9TA/pHudegQh81MPjZetIIdfVLjDQbypod4GCI5NH296O4xL3oLXX5 EtSB95qGej4GPTANqSeLL+ml3+OGdRkpbbQd3nd+tb1z5QHIZPdeWwIy9GjH8pZQc50C zDzkcvE0nFPpibbibIYz2TxiRK0MjxayLE0RrcacIAZUSgfhpanYLUuZ1lZQ1ef4w2AN GiIxg3XVYvrQR5k8hBIPZ4uPZx8rnz0rqd6kA63O1jDWdVd1H7Bm+5fqY5eA5Cc5zfC6 0g0oy8babwOZ1jqtD/zY3rQIq6OWxFbiaf+s/hVixKGFRHrlCVFvTyQvlxMm1WKzXD6V Wjsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tfeUV1AwNiT/W19hxcj/NliOzzEK95QXMUgUDGQeGVM=; b=KwE6qSKoNRM2/6CMzx77hUh30z4NhH18WNIGwrb4OjBr2N0qLPcnQrGNAYmWbEztCD Scl+gkI8uU2ayE6rlyG0Ogxy/IGHO9Bj8xnTN/H72V/usr12ceHlM5m9gUDZQqmLrPVq Ciucv3SP2nn+DJSpvqDBlCvmzM3qg2lcmFjY4zaezljtt8ED9+bbfWLy/S5SWcvkHu9+ oyqg3/XfEXRly+5N4jLp5fFc8i6t38T3EdyH6YKcwbHtOp2LSPkE8TwYUWvHw+28hBKY nhyc7016GiW2KW61xEgRarX9QCYZJicfGdr6RNgpbyBC5UUJNs/1anOAujoWjWKb5VQe vNpw== X-Gm-Message-State: AOAM532rpWs5kSWfgXtbMUGtIf2jjaTBGuoXCsLv/X65aJMfyGenoj+S 1J6r6twWfAQ37FNeyct96cXxEXQF8P15iMsIV31PtA== X-Received: by 2002:ac2:54b9:0:b0:479:a29:c1ec with SMTP id w25-20020ac254b9000000b004790a29c1ecmr17619658lfk.358.1654598632532; Tue, 07 Jun 2022 03:43:52 -0700 (PDT) MIME-Version: 1.0 References: <20220606201343.514391-1-mail@conchuod.ie> <20220606201343.514391-2-mail@conchuod.ie> In-Reply-To: <20220606201343.514391-2-mail@conchuod.ie> From: Ulf Hansson Date: Tue, 7 Jun 2022 12:43:15 +0200 Message-ID: Subject: Re: [PATCH v3 1/4] dt-bindings: mmc: convert mmc-spi-slot to yaml To: Conor Dooley Cc: Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Support Opensource , Lee Jones , Palmer Dabbelt , Paul Walmsley , Albert Ou , Steve Twiss , Conor Dooley , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-riscv@lists.infradead.org, Atul Khare , Rob Herring Content-Type: text/plain; charset="UTF-8" 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=unavailable 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 On Mon, 6 Jun 2022 at 22:14, Conor Dooley wrote: > > From: Conor Dooley > > Convert the mmc-spi-slot text based binding doc to yaml, > with the side effect of cleaning up some of the riscv > dtbs_check warnings. > > Reviewed-by: Rob Herring > Signed-off-by: Conor Dooley Applied for next, thanks! Kind regards Uffe > --- > .../devicetree/bindings/mmc/mmc-spi-slot.txt | 29 ------- > .../devicetree/bindings/mmc/mmc-spi-slot.yaml | 77 +++++++++++++++++++ > 2 files changed, 77 insertions(+), 29 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt > create mode 100644 Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml > > diff --git a/Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt b/Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt > deleted file mode 100644 > index 5e74db69f581..000000000000 > --- a/Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt > +++ /dev/null > @@ -1,29 +0,0 @@ > -MMC/SD/SDIO slot directly connected to a SPI bus > - > -This file documents differences between the core properties described > -by mmc.txt and the properties used by the mmc_spi driver. > - > -Required properties: > -- spi-max-frequency : maximum frequency for this device (Hz). > - > -Optional properties: > -- voltage-ranges : two cells are required, first cell specifies minimum > - slot voltage (mV), second cell specifies maximum slot voltage (mV). > - Several ranges could be specified. If not provided, 3.2v..3.4v is assumed. > -- gpios : may specify GPIOs in this order: Card-Detect GPIO, > - Write-Protect GPIO. Note that this does not follow the > - binding from mmc.txt, for historical reasons. > - > -Example: > - > - mmc-slot@0 { > - compatible = "fsl,mpc8323rdb-mmc-slot", > - "mmc-spi-slot"; > - reg = <0>; > - gpios = <&qe_pio_d 14 1 > - &qe_pio_d 15 0>; > - voltage-ranges = <3300 3300>; > - spi-max-frequency = <50000000>; > - interrupts = <42>; > - interrupt-parent = <&PIC>; > - }; > diff --git a/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml b/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml > new file mode 100644 > index 000000000000..c45b91099325 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml > @@ -0,0 +1,77 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mmc/mmc-spi-slot.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MMC/SD/SDIO slot directly connected to a SPI bus > + > +maintainers: > + - Ulf Hansson > + > +allOf: > + - $ref: "mmc-controller.yaml" > + - $ref: /schemas/spi/spi-peripheral-props.yaml > + > +description: | > + The extra properties used by an mmc connected via SPI. > + > +properties: > + compatible: > + const: mmc-spi-slot > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: true > + > + interrupts: > + maxItems: 1 > + > + voltage-ranges: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: | > + Two cells are required, first cell specifies minimum slot voltage (mV), > + second cell specifies maximum slot voltage (mV). > + items: > + - description: | > + value for minimum slot voltage in mV > + default: 3200 > + - description: | > + value for maximum slot voltage in mV > + default: 3400 > + > + gpios: > + description: | > + For historical reasons, this does not follow the generic mmc-controller > + binding. > + minItems: 1 > + items: > + - description: Card-Detect GPIO > + - description: Write-Protect GPIO > + > +required: > + - compatible > + - reg > + - spi-max-frequency > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + mmc@0 { > + compatible = "mmc-spi-slot"; > + reg = <0>; > + gpios = <&gpio 14 GPIO_ACTIVE_LOW>, <&gpio 15 GPIO_ACTIVE_HIGH>; > + voltage-ranges = <3300 3300>; > + spi-max-frequency = <50000000>; > + interrupts = <42>; > + interrupt-parent = <&PIC>; > + }; > + }; > + > +... > -- > 2.36.1 >