From patchwork Wed Apr 27 18:08:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 12829308 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 E9961C433EF for ; Wed, 27 Apr 2022 18:11:48 +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=2LBuVEp6PT5AVngVb4i5uAhO0QHvQKyBvccdaT3rlOQ=; b=RmV/MHjU5Oanss z6XdgXNwf31ZJPOO8h9jP1lLrqgj13SxyFB1UiIr4RP36FqE67rHfFS/CRpQpU40JZ6RvI8taVZIC +0SRwELz4DmLH6zEbyTYAvRjdnzmGQRQeGFQWTHFr9gqsgqFRlZMHtc8dqP61e1hEPA/cREwVABQ/ 8F1wcMytFFDIh0fV8lnvg2vT6823rFA+L2AceW2W7zFZV2VBnF56BgUOJDvb7AwypiE1mhtSMiMr7 ohkffcbvMeIFb0Xv4FxW3ahbq1Sw4N//VzNtWE9zxjRjirlrN9nPVzzBYgPsRHmLx6j2nabVGkAWD QwF0UyROSMbEhlN18X7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njm7V-002twZ-VA; Wed, 27 Apr 2022 18:10:34 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njm6k-002teS-Sh for linux-arm-kernel@lists.infradead.org; Wed, 27 Apr 2022 18:09:48 +0000 Received: by mail-pj1-x1036.google.com with SMTP id fv2so2128829pjb.4 for ; Wed, 27 Apr 2022 11:09:44 -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=DhDEOGzyYb9G9W/Ih5nKdhPS0DtnHgoSg/tqlnDUmxQ=; b=IaDd2rrWQIS7uiZBU4ssser2L4FmpszX7h5IIzB9lYo3FpnQCSUQqXkS9WKOvDNJJd M+X/bAn8Kwq6GOLUjkCOXvRNKWt6BkFyzF/KmzCeln6bDSaWfFM2nxNteh+S+ISqLDaZ gC0iusiE41nDfRT6oX6eq37yUw5mImMTRbrZSd1xLW/+HLUqMeOK+2Ti73nWRUFRWk+l asMg+UoCCObXpKjUKNl9BkUtxZ2FZ03kpC+wSDmoSgx0KGiEKdBJmZY+AjJNjY6DHRSY A4ly/1+TurEixBoM9CQlm6jwnTn2YyowriCzeI+6w7JRzrR9Lg3tClv6XOhjwrSnDo0e UefQ== 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=DhDEOGzyYb9G9W/Ih5nKdhPS0DtnHgoSg/tqlnDUmxQ=; b=oqojn6C0HOx80XH1cAyCPz//AsR8ogb6SrATSKNofoo7/qQnG5qXAOlpK3nKWMVOMa yVzKNlwhkSFBohJ1pWbDc6YEZtueEbE2/Vsu66rohL2SOTSrtfuuH4ydFbqZhhN7KcmK hS/B1O0wtowIZN/x474fSENCi/JtRYNUV2RcjfBBgcRgvHATrS0ZY6CXHRBmtSXpzec4 K0CGwSaZHnQDZymvCzo3toxF3UQCsbxVi2vbh6MvteXEOPPpkBQon0Wbo2eorrdgWmaE 00FYlFMevYFF7/j5gXuGvCXiez6qR5kbo0l8i1ry86p3VihXGXFycL1q0m+ez8Ki3BGC Pycw== X-Gm-Message-State: AOAM532Ny+sO/9WHzTd40+bEgiM2QWIUh6HUxKHlgdiVB2vy4St73Gpi adSTNXPNcxsFpgut7wkgUGk= X-Google-Smtp-Source: ABdhPJxobOaSK/Wr/ZaH1v9haLS9wKEynarvNVjK2dORpQmy5KjaZxjBuEOEVwXr4MymO7T1dNlJkw== X-Received: by 2002:a17:902:cec4:b0:15d:50ba:d9bf with SMTP id d4-20020a170902cec400b0015d50bad9bfmr4886679plg.28.1651082983837; Wed, 27 Apr 2022 11:09:43 -0700 (PDT) Received: from mail.broadcom.net ([192.19.11.250]) by smtp.gmail.com with ESMTPSA id u25-20020aa78399000000b00505f75651e7sm19076859pfm.158.2022.04.27.11.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 11:09:43 -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 v2 3/4] dt-bindings: mmc: Add Broadcom optional sdio_freq clock Date: Wed, 27 Apr 2022 14:08:52 -0400 Message-Id: <20220427180853.35970-4-kdasu.kdev@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220427180853.35970-1-kdasu.kdev@gmail.com> References: <20220427180853.35970-1-kdasu.kdev@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220427_110946_979802_D5AA7878 X-CRM114-Status: GOOD ( 11.82 ) 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 "max-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 | 24 +++++++++++++++---- 1 file changed, 19 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..bf716c0cf096 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,39 @@ 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 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: + - max-frequency + required: - compatible - reg - interrupts - clocks + - clock-names unevaluatedProperties: false