From patchwork Mon Jul 6 17:43:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kangmin Park X-Patchwork-Id: 11646317 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B349C13BD for ; Mon, 6 Jul 2020 17:45:20 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 89C9E2053B for ; Mon, 6 Jul 2020 17:45:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cDkM+VWO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="d3JM89Ec" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89C9E2053B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=wi/N2npI6yhczUbTBNkq98dWzuhDVDeYkQjBS0+ybf0=; b=cDkM+VWOHe9Rw8dfeDh3M310gG z30WFNTDgZpbKmDeGax/WOW63Gnrdq8kXPdXoLZP2yvugtgts+MdpBY69GWhUVz6AsAVn7dWO95hC tRwkRfPn75AronAsWTYO8SkqpQ20xUVyjnfCeUfFVeb0bH2bUm40yqEBZRadO7ZrQhvvLjfXYlfYa XhjBq979+jH00iMPMAuxi2Rgkesth3mNEATfrGPaNaVCYl/P3ScHNGqhkgnCVKX64MvHj5sVe0ukj FaVoUfqH3IUcPAMzh0ek+rllcdnU/OsU5N2NOs5dFQRmyyCLniovJXhacdghWVeAtoK6WOzNmFWlt mQFPR1yw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsV9f-00059P-U3; Mon, 06 Jul 2020 17:43:47 +0000 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsV9d-00058i-AY for linux-arm-kernel@lists.infradead.org; Mon, 06 Jul 2020 17:43:46 +0000 Received: by mail-pj1-x1041.google.com with SMTP id t15so2928676pjq.5 for ; Mon, 06 Jul 2020 10:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z3qlWcN7g2R3ufNiJ3QnG2MZ3162eOXdLVXk7i7fibM=; b=d3JM89EcsC6xzPgS+G5KDWriXj7NgqYy0rRdr7yRF+6IAWuzEznQRXsCjtPhPt+lvn wTVkb83oZHFQ98glR+ew6b8LxmfNc22kxrh6h6V526beQIiQZNhh6fW03MJFQLDEhG+s 8x85LirICgME+iSWgiPLQ7Sb/BYNoTqtdUuQ8wn9ZPOdFMG7jTzT1KAUGI4m/hMP1+4e Q86kX4PZlappop5xb8B0yVHkd4aHVC/JkqA3puzMw4PZNo9aEHix+x0jSRVe0SDt3+Zp DTEY1hjRZpGQgIfud3k+cOqmEpEqtihT/nezk17Vd/Ik8K7Dt1KaBYa/jIWEMEKWL5S0 q8uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z3qlWcN7g2R3ufNiJ3QnG2MZ3162eOXdLVXk7i7fibM=; b=S1YpSmS1Yl982Ex+gOuZumAHPNnaOVG4rxlVK+ZS8Ycqt+I0dZgcpIJtXaaNX7xfPo OXYMRezxUPS9axizXthsUPcOSJIkMWPshx4ihL3Ch6lV6kMELnWwf1Flq9ANLHH1kr1/ 64Ewrd26TuDqLdRDh6Cyp8n1fmHFG7V/GeLzXLnAUiY1Yd4LfNdY2iRN9yCpvp8g4jqi bPmWTBpRuvNKWIR0DhRTDKxcnl8tNGrjE84A1W1Ub+L6TUDyQ5akARpfXTgXKNuf+HbW 0lfSbwwAaZI/ZmID28DPgI6bOMrla0SHbcnz2Gs39OOmQiq4oztODkbJidC6cTumkqpW 5Vtw== X-Gm-Message-State: AOAM532/tUSEiLy12Cw+c2uGBZ2VvB8wNBPya4N0OlrovlKiKQIcxO7U 3hu2V7Ey6/iMRL58+WV2kUA= X-Google-Smtp-Source: ABdhPJwFZoDu8NhQobie5Dp41SsuH6SnXScpx0FnWwbrHuWQzRUO8AeSFCkFV1ONk0VTqYSAJdFkgQ== X-Received: by 2002:a17:902:b60e:: with SMTP id b14mr42510318pls.81.1594057421401; Mon, 06 Jul 2020 10:43:41 -0700 (PDT) Received: from localhost.localdomain ([1.240.193.107]) by smtp.googlemail.com with ESMTPSA id c27sm19599779pfj.163.2020.07.06.10.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 10:43:40 -0700 (PDT) From: Kangmin Park To: Ulf Hansson Subject: [PATCH] dt-bindings: mmc: Convert sdhci-sirf to json-schema Date: Tue, 7 Jul 2020 02:43:36 +0900 Message-Id: <20200706174336.27251-1-l4stpr0gr4m@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200706_134345_375416_3A0B46E9 X-CRM114-Status: GOOD ( 14.57 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1041 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [l4stpr0gr4m[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Rob Herring , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Convert the sdhci-sirf binding to DT schema format using json-schema. At the same time, fix unit address to match the first address specified in the reg property of the node. Signed-off-by: Kangmin Park --- .../devicetree/bindings/mmc/sdhci-sirf.txt | 18 --------- .../devicetree/bindings/mmc/sdhci-sirf.yaml | 40 +++++++++++++++++++ 2 files changed, 40 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/sdhci-sirf.txt create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-sirf.yaml diff --git a/Documentation/devicetree/bindings/mmc/sdhci-sirf.txt b/Documentation/devicetree/bindings/mmc/sdhci-sirf.txt deleted file mode 100644 index dd6ed464bcb8..000000000000 --- a/Documentation/devicetree/bindings/mmc/sdhci-sirf.txt +++ /dev/null @@ -1,18 +0,0 @@ -* SiRFprimII/marco/atlas6 SDHCI Controller - -This file documents differences between the core properties in mmc.txt -and the properties used by the sdhci-sirf driver. - -Required properties: -- compatible: sirf,prima2-sdhc - -Optional properties: -- cd-gpios: card detect gpio, with zero flags. - -Example: - - sd0: sdhci@56000000 { - compatible = "sirf,prima2-sdhc"; - reg = <0xcd000000 0x100000>; - cd-gpios = <&gpio 6 0>; - }; diff --git a/Documentation/devicetree/bindings/mmc/sdhci-sirf.yaml b/Documentation/devicetree/bindings/mmc/sdhci-sirf.yaml new file mode 100644 index 000000000000..46269378d9b6 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/sdhci-sirf.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/sdhci-sirf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sdhci Sirf Device Tree Bindings + +description: | + This file documents differences between the core properties in + mmc.txt and the properties used by the sdhci-sirf driver. + +maintainers: + - Ulf Hansson + +properties: + compatible: + enum: + - sirf,prima2-sdhc + + reg: + maxItems: 1 + + cd-gpios: + description: + card detect gpio, with zero flags. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + sd0: sdhci@cd000000 { + compatible = "sirf,prima2-sdhc"; + reg = <0xcd000000 0x100000>; + cd-gpios = <&gpio 6 0>; + };