From patchwork Mon May 8 12:46:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 91128 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2144482vqo; Mon, 8 May 2023 06:11:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6svwFovLUzbtfULAmf3LbH+v2akNJ3BdY1x3rVMBKG7wJZlvmL5L+oT9uo4ZnIc5borr1R X-Received: by 2002:a05:6a20:914d:b0:ff:5c6f:9228 with SMTP id x13-20020a056a20914d00b000ff5c6f9228mr11476025pzc.60.1683551476942; Mon, 08 May 2023 06:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683551476; cv=none; d=google.com; s=arc-20160816; b=aVLv+3ItyFnT2TBv3g1cp5e4ocWHMZ10ixocPq7cNt7Sv8StSyV6R9fpStXnyR4eKK 54DTj4VzB4Tyn7/U3Aj4izbIBt4EM5/LW9bPWdJUoMFHxB6iJYBbcqwqDC+jzbFUv2Va 28cimmIhxVI9ljhDYEjdUKvJmP+YyrWnbfmlTDnkgUelZ2PpcNxLCBNBYItwmif/6C8k WkO46B5a009OXfrkHGUhLxC/PKdRKrtmraSKDCQS76Wa9xh6rdfEBiIeksNQdvfGsw0U Q0y6w4wpxN8YfrQQ8Xuu1OYjC6ohjs/xHPIcwtPJ/hhccg5hjYyuuFgaVSoNpEZoF4Uy c5+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=asbulxWBBUUI7EhpI6L3ou9HymcJhGeGWLD2VK7v0Wk=; b=taaqIu7Px+j6maR/Rf0Bkd/ZKLgixxNaUSpVE250HSHguZhNoNJJtcTu61xcqpYdv4 MT3hxGRDM2wOiG8GM+X4Y8gV8efSADqWvXhmhHT7s9EUr/3gdDaht2OPzvU6pFBluehi 4Yac+RFfol2tGUsjK5DNu51o5IhkODgbLpvOoFS4OcZv8vD5lzfPjwHqhVa+9NLZc4Zr Byk5sdWngN6BBGTyR1r/vrCrwrQMt+0+U7TKRHHcwlUXSr0nruuCFHS2lzfZRWwid6mD PxAuJJlCmHq/dKPPf26c0B7Yld5BAP19URGZwRgWmTrqV+eIRKB7PjJqPsw72VJEtyon eJ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="TIzCwj/p"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a63af4f000000b0052864b23dbasi8390473pgo.41.2023.05.08.06.10.55; Mon, 08 May 2023 06:11:16 -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=@gmail.com header.s=20221208 header.b="TIzCwj/p"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234206AbjEHMqN (ORCPT + 99 others); Mon, 8 May 2023 08:46:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232408AbjEHMqI (ORCPT ); Mon, 8 May 2023 08:46:08 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFB4C18C; Mon, 8 May 2023 05:46:06 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f41dceb9d1so19586985e9.1; Mon, 08 May 2023 05:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683549965; x=1686141965; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=asbulxWBBUUI7EhpI6L3ou9HymcJhGeGWLD2VK7v0Wk=; b=TIzCwj/pI/o0/YWw8CTrR3fZHS2yw48fL9IAOdDFNArHQUatheY+o7DJ2aCyUvy23N j+9Q7cGYTUhJeUQKhvdga0DWYOtSwdcZK6woZAa2jGJ8o2RuOwPKrh2oetm18m31uWHs OXtZmd0tVqYb15iqkpfB85kiUVTa469JT9RgQZOK7gHPMpIwGNSAT2tgbL/HvoQc7GaM V0VHMt1zd9J/5hzWfPi5Ubw2VkIAxWeTS4xL0yEtfD/cDVCWaicb4nfKzijY4ojLx5j9 3OSuitk4sLousbcMjEQn+lthDgyN7QiauUJm8pICKubK6yaupSV63ppnPesac4mFbZ+7 +KKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683549965; x=1686141965; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=asbulxWBBUUI7EhpI6L3ou9HymcJhGeGWLD2VK7v0Wk=; b=HDnOIWObXfG+havnbnX8zqzoN1UPpuqyl91wWLZqnK5HI+eXLTzTeAjMn/j1K3wgBb MhhxfewTMJK6XqnGemOPRCuEU9wWD3ArIQ9JKOZylkflN8IiFk9DhOL7Pxh5AXFAhTF5 DFsw1AcfxyMcZzlreRy0Z7Z2QGfnuD2ASZqgdskRNjXXJ3ZMCE0swMreozEqgdk2Gosu kr9Gl/NbE4r57UMMGvhR/bFp2Jz+b0hvsYmWyKAGZs6CJDUa2lN193sz9FSNhAeD4MiN jO4wdfyqWTyEeDFD/h0wDpWGFU98qDyQ+S59IWqPv1iKsI5jcSpg1i8BIroKnN+hXYP3 /ttQ== X-Gm-Message-State: AC+VfDwIhaQepP6XxiYpUv3eVQmWVX7yKdMp1o4VwtJLKwOg3Yo3MT2W PGrI4X+Qau8dBOvhYXo/3+jEzX9jX2nQHg== X-Received: by 2002:a7b:cb46:0:b0:3f1:82a1:122 with SMTP id v6-20020a7bcb46000000b003f182a10122mr7240608wmj.21.1683549965505; Mon, 08 May 2023 05:46:05 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id l11-20020a7bc34b000000b003f195d2f1a9sm16696200wmj.15.2023.05.08.05.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 05:46:05 -0700 (PDT) Date: Mon, 8 May 2023 14:46:03 +0200 From: Stanislav Jakubek To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: mmc: brcm,kona-sdhci: convert to YAML Message-ID: References: <88c64da50a1af868d8b14054c440e5ff96a63399.1683548624.git.stano.jakubek@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <88c64da50a1af868d8b14054c440e5ff96a63399.1683548624.git.stano.jakubek@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765331673303403157?= X-GMAIL-MSGID: =?utf-8?q?1765331673303403157?= Convert Broadcom Kona family SDHCI controller bindings to DT schema. Changes during conversion: - also mark reg and interrupts as required - drop deprecated compatible (it's been deprecated for ~10 years) Signed-off-by: Stanislav Jakubek Acked-by: Conor Dooley Reviewed-by: Krzysztof Kozlowski --- .../bindings/mmc/brcm,kona-sdhci.txt | 21 -------- .../bindings/mmc/brcm,kona-sdhci.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.txt create mode 100644 Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.yaml diff --git a/Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.txt b/Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.txt deleted file mode 100644 index 7f5dd83f5bd9..000000000000 --- a/Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.txt +++ /dev/null @@ -1,21 +0,0 @@ -Broadcom BCM281xx SDHCI - -This file documents differences between the core properties in mmc.txt -and the properties present in the bcm281xx SDHCI - -Required properties: -- compatible : Should be "brcm,kona-sdhci" -- DEPRECATED: compatible : Should be "bcm,kona-sdhci" -- clocks: phandle + clock specifier pair of the external clock - -Refer to clocks/clock-bindings.txt for generic clock consumer properties. - -Example: - -sdio2: sdio@3f1a0000 { - compatible = "brcm,kona-sdhci"; - reg = <0x3f1a0000 0x10000>; - clocks = <&sdio3_clk>; - interrupts = <0x0 74 0x4>; -}; - diff --git a/Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.yaml b/Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.yaml new file mode 100644 index 000000000000..87711edf9b39 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/brcm,kona-sdhci.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/brcm,kona-sdhci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Kona family SDHCI controller + +maintainers: + - Florian Fainelli + +allOf: + - $ref: sdhci-common.yaml# + +properties: + compatible: + const: brcm,kona-sdhci + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include "dt-bindings/clock/bcm281xx.h" + + mmc@3f1a0000 { + compatible = "brcm,kona-sdhci"; + reg = <0x3f1a0000 0x10000>; + clocks = <&master_ccu BCM281XX_MASTER_CCU_SDIO3>; + interrupts = ; + }; +...