From patchwork Thu Apr 21 18:28:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 12822210 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 376FEC433EF for ; Thu, 21 Apr 2022 18:30:01 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=KP3jdrmFEF5gbbT+aPHwuNtNvHEqcaZsV05ZouCXI+4=; b=A8McUP53YxXci0 +yZN/D6HXCUmfe6Eovm2fhiVtcBG2nQVcQmMV9fFYgnj86Vno9+WoZ4Hhxqm/g8fbrZB/Gz/EHCIY kMoyN5ftzKmxs2WbVxgcgzOH3S5zwnHMUSeFJyspx+809XXEj0Nh9AOwvygfB4CnREw2xl/Nd7Ja2 ziFYVdLAp8MGTfBRNW4BMkLAzdDRy/7x5+VcBYlODhCPWRynP4en1HJUZhhQwMXSfd2EV6jgGXIBM zeBz5m3L/crKxx8NH3n9R4OPNPXnsQQUeB6OMnS5B6QvvL9QJFFRZt4R/5J7noV+9pnpZLVv0J+gQ asMVajVVB32g4bo63RLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhbXx-00EdXI-S2; Thu, 21 Apr 2022 18:28:53 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhbXg-00EdPp-4S for linux-arm-kernel@lists.infradead.org; Thu, 21 Apr 2022 18:28:37 +0000 Received: by mail-pf1-x42f.google.com with SMTP id l127so5764858pfl.6 for ; Thu, 21 Apr 2022 11:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DL6DI5feuJoMlU44P61YM6Wgo//JlAhCvPdBp3CmZdI=; b=qzaGT9qBstujuIErvgj5N/ijlSkXXKv1dd4yHvyPK5vMRZDLH0sQ4QgkfVIJHZqDSh ulxtbFjtU3b6rQVgtH7v6XRVBICdlTWzpSXYoUfDYLo69d1BzrIptOjfsx0aH8NANPbI UnBBTN/1kY+lmSccneUBAaxPSeeXV7QnvEggxiOiGWl4YMblpvIhhRkpGe0TKQ5/e+fA zLHDC2YOI9nK8AQZuBZndvGpt1hq29+wfpJWQ0oRkGCJ4cbjqU7U6Q82y0FkjBT4IZgX XKieTOg/lz4RPntmdRdEZrMs8VMvTMJgML4B4nCNhwpL1BY+nVx8eZqMaR/AWe72y0y6 8v5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DL6DI5feuJoMlU44P61YM6Wgo//JlAhCvPdBp3CmZdI=; b=T/rJJeA5ZQjTbMOutX8XQA+55a3YEz/Qfem2gqsyEvCpk3HK4UfcBR5EWIODTF4azS GsNagyVD9tE4CaU99E/8Wg4vy9Wyec6U5QW7xvkLgjK0QJPCxSOP4o9XQEgPxzNevF4F fhxdqGdFku4yOdbvw6984l5wj/6qwm45l1bwVFXH4Y79cRqR7v9KQGliDEMGeeKiDiEe HpsdTXkiffNjfjrCCWS//1ZXw/mWdk6U1y8I7rWrAxRbiW7s7eh6yP3DtvRjJH6d1TSM BxvwbK+HmVKt65IPIZs1eHhMHyIeM6vWoOq4a0ExR9ND9UVL47AtW44SGLWZ15//aRUJ 7lRw== X-Gm-Message-State: AOAM531kx8cJm01M0218q1y4hGZss4Ax3Yt/LWQ/Muhb5kAKlxBJ12bb 4I8+3yXEXVSPEYnVa3L+2Sc= X-Google-Smtp-Source: ABdhPJyoK0byw8pr/pHJ1F1wx9N4DUcklZjDJIgldLfZhneMCmESqNGOx0SWSjlONpCtT3CGqKFTag== X-Received: by 2002:a05:6a00:198c:b0:505:c18b:3184 with SMTP id d12-20020a056a00198c00b00505c18b3184mr795725pfl.82.1650565713816; Thu, 21 Apr 2022 11:28:33 -0700 (PDT) Received: from mail.broadcom.net ([192.19.11.250]) by smtp.gmail.com with ESMTPSA id s62-20020a635e41000000b003a9eb7f65absm6509333pgb.85.2022.04.21.11.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 11:28:33 -0700 (PDT) From: Kamal Dasu To: ulf.hansson@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org, alcooperx@gmail.com Cc: f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, adrian.hunter@intel.com, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kamal Dasu Subject: [PATCH 4/5] dt-bindings: mmc: Add Broadcom optional sdio_freq clock Date: Thu, 21 Apr 2022 14:28:02 -0400 Message-Id: <20220421182803.6495-5-kdasu.kdev@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220421182803.6495-1-kdasu.kdev@gmail.com> References: <20220421182803.6495-1-kdasu.kdev@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_112836_197827_06E86A3D X-CRM114-Status: GOOD ( 12.23 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The 72116B0 has improved SDIO controllers that allow the max clock rate to be increased from a max of 100MHz to a max of 150MHz. Optional "sdio_freq" clock is used to drive the bus clock if present optional property "clock-frequency" specifies a base clock frequency in Hz that overrides the base clock frequency in the CAPS registers. Signed-off-by: Kamal Dasu --- .../bindings/mmc/brcm,sdhci-brcmstb.yaml | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml index dccd5ad96981..1b45a918400a 100644 --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml +++ b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml @@ -10,8 +10,6 @@ maintainers: - Al Cooper - Florian Fainelli -allOf: - - $ref: mmc-controller.yaml# properties: compatible: @@ -42,23 +40,44 @@ properties: maxItems: 1 clocks: - maxItems: 1 - description: - handle to core clock for the sdhci controller. + minItems: 1 + items: + - description: handle to core clock for the sdhci controller + - description: improved 150Mhz clock for sdhci controller (Optional clock) clock-names: + minItems: 1 items: - const: sw_sdio + - const: sdio_freq # Optional clock + + clock-frequency: + description: Should be the frequency (in Hz) of the base controller clock + minimum: 400000 + maximum: 150000000 sdhci,auto-cmd12: type: boolean description: Specifies that controller should use auto CMD12 +allOf: + - $ref: mmc-controller.yaml# + - if: + properties: + clock-names: + contains: + const: sdio_freq + + - then: + required: + - clock-frequency + required: - compatible - reg - interrupts - clocks + - clock-names unevaluatedProperties: false