From patchwork Fri May 13 20:19:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 12849355 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 99F12C433EF for ; Fri, 13 May 2022 20:20:52 +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=6Taf+OC/3XufHbzfJv58RYLpEQkGGcR3Ci2/iJrqhhs=; b=SQWYdka6DwfRAE wFB/P1yfQ2IjR1w/acScUJA7EJOi4x9Q2UQuDViNlZZsL3PCzDfLVfSTK7HrC6Gt2LtqzHSe81hbt JhNpNSiPI9DqC4cLB7QRQx9chKjVF4I2Lu16+t2olnI24KifYmzbPWCqf1RZNnuVqtBcAq/uyQDpI ebO99A4XKfjdf3SZ5/srNxSZ+DWUKLGA2GNN2GktjQtWUZEKFV8rWsNGNFVjIDpQBPoPbTx20twe2 PNJHHtQVXh6mfTVHJHfRGzperOauadig5t1F+q3nEVU/UFyL/oWGR4DJHharNlqNzcxFzvVGuQXNb QvKFOiJMQNg+OEFlCmvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npblQ-00HQHT-I4; Fri, 13 May 2022 20:19:52 +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 1npblN-00HQFf-0h for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2022 20:19:50 +0000 Received: by mail-pf1-x42f.google.com with SMTP id p8so8597168pfh.8 for ; Fri, 13 May 2022 13:19:47 -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=TAxjpCuf4Z57cSMNS8CJQhIeJ34hJFwnu+3W5yoBaxQ=; b=gA6EiPJzsMd+QopYUtkRB508DyVtiWHvcRmlGbjAuqNmKD85P+CVZKANmm/zo+lEOw XqqlX7Aq0KA5SpCnDVlsoQ5wqKLzKuzSmJnamV551wZ55w+XKKchq+Q8wiSt/I9Ec+uA /yGTxVbTv6RO+KCcAqFAwVbLdp3jQv00NTWY4D8EkgZ4MPiors4ceFvQq6XmUMhmpT9c RV1bpoZZ+KoE0tr+qKOxA8+CsUI82k7XiVLGBNUdOkfMwywb0C017Aj0GOZ2jFaVnMCB VO5AEoHeyZWL0t01kIinuov6QBqqWEqUcXFNn3Sv06EDu2iGBDMKTU56a6HkIdOUJm80 Wr6w== 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=TAxjpCuf4Z57cSMNS8CJQhIeJ34hJFwnu+3W5yoBaxQ=; b=1XiR4Tr8xfbSINDdTMPCnvT8NeQv/PZS5l/QitKZ4uH4Wl53EDAMPPTBkF+A23UvWl awtjY+gUvtUjvyDBvWsBNn98OhAU39hDdQTJZuV4aYP0zOfoPB6cl0pJTR15t+slauYb dnFSf2LnVW9eK6T0h3AxRPxsdMwEU1sWQCtmajENE3g4VKH13mqzY4Yt3WkKmeBtzEIg +8o3UEdoHnUXiI9xRPOoOUbqtsg52CscIn2GYaTDU/IyXuEyXAWkDYcW05ep0OQYS00A X4JaRIeJJrg/YckjO/P4TWmau1mH63mXbN5dTpcuY7coNNyaNacgu5CxbtCXZkknyZSl hcGw== X-Gm-Message-State: AOAM532hkrC6ZZ7E85jNYLWzAhCHgJiBjInqJadxJQ6kzJOoigltS3uz d5cgzxpeBoDXDIteWkAwtmI= X-Google-Smtp-Source: ABdhPJwM7oGdsaW7FdCnise0s4myBJBz2Uc6Oj97e02b5odr+lT+uVWe7RyxJS9+V/Pjto7XDuf48g== X-Received: by 2002:a05:6a00:198a:b0:50e:a2a:32e9 with SMTP id d10-20020a056a00198a00b0050e0a2a32e9mr6244227pfl.82.1652473186978; Fri, 13 May 2022 13:19:46 -0700 (PDT) Received: from mail.broadcom.net ([192.19.11.250]) by smtp.gmail.com with ESMTPSA id b190-20020a621bc7000000b0050dc762819csm2182229pfb.118.2022.05.13.13.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 13:19:46 -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 1/2] dt-bindings: mmc: Add Broadcom optional sdio_freq clock Date: Fri, 13 May 2022 16:19:06 -0400 Message-Id: <20220513201907.36470-2-kdasu.kdev@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220513201907.36470-1-kdasu.kdev@gmail.com> References: <20220513201907.36470-1-kdasu.kdev@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220513_131949_094337_0E5FB8A3 X-CRM114-Status: GOOD ( 11.94 ) 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 Reviewed-by: Krzysztof Kozlowski --- .../bindings/mmc/brcm,sdhci-brcmstb.yaml | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml index b672202fff4e..3a4f6e75bf5e 100644 --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml +++ b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml @@ -10,9 +10,6 @@ maintainers: - Al Cooper - Florian Fainelli -allOf: - - $ref: mmc-controller.yaml# - properties: compatible: oneOf: @@ -42,23 +39,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: handle to 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