From patchwork Mon Apr 24 12:13:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mantas Pucka X-Patchwork-Id: 676688 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0342C77B76 for ; Mon, 24 Apr 2023 12:14:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229581AbjDXMOB (ORCPT ); Mon, 24 Apr 2023 08:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231785AbjDXMOA (ORCPT ); Mon, 24 Apr 2023 08:14:00 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C65212B for ; Mon, 24 Apr 2023 05:13:57 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2a8ba693f69so40963981fa.0 for ; Mon, 24 Apr 2023 05:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8devices.com; s=8devices; t=1682338436; x=1684930436; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IQtohBky33MWUdeKOY9B0Jdzwvi92+shTR5B/pXImXU=; b=hTVanmBkAGPFQtISg9J3XJ+Tlq36EE9E8yJoC4vcotb1vZS68CHyPzfh7MQQ3KWvoY iK5E+RDuVKGBgDraT25L+lP6aRY9vY5TBAPhsDMMC5T/sC1GHjJkFsiQKZ13439Hj1c/ xYsZUD4g6tqsXZc8K7+UatulGP6AAL6GuPw+/HQb5rXNLRGw/XflGuZhZoIrrV2cGmYl t2vD/lCz/2DJDSxV0mIGHUpLhappR9I0zILDu+GTu1RHnryQCdbJgr5+nYEqHYU1iJm2 wfD1i+mIaW7SXYr5NwaXh0u/cMNmHi59PymlPUg3al20pUR48scVRwUajHgsO9E1V2M5 Vjvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682338436; x=1684930436; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IQtohBky33MWUdeKOY9B0Jdzwvi92+shTR5B/pXImXU=; b=Sh8CQHBzeHdofLSyFSh3uiUF6aQcNNNFffMlYQqdobN1L2mPNcNOFHZEeAku7wlqDb LZkijuh/86dsOskM2C6OvErpOjP9tx0MBOlELt9fevY7VjJjF1f8w+Gg8mszSBPOLwuK mcw1sjuoxEyUVcvyPfq/6rM7lV2c0oyLJJUXPZ3b+X29SyebzeMeBvq/nk9ASlJM0wEh pjhgj7nWMYiH+Dro4WReSf8lGyQxIO7gj5To8MSGMZAgiYvY3jw5CYQoNrOQoRa8NPC5 UMQ0XOBWoD7KLbftFR5pMLgUKPUvR78f7iIbxz0DG9FEzUvSX5tqDj91XRlQkIlck6TF xXqw== X-Gm-Message-State: AAQBX9dDzqrv+5mW8GrACb3cDJQMIrac6xnZQXPZ3h2GcKdygnwtABUG bVMSk4HfzEnEmq2RUX/NN6dELg== X-Google-Smtp-Source: AKy350akQ8EciT+C0V8pKYtfqBhPEaEv5XPr4eaKZrvmhqi0oiXoFstBdBYa998MK2ui6b6T+gGuMQ== X-Received: by 2002:a2e:2e0e:0:b0:2a8:d13d:88fb with SMTP id u14-20020a2e2e0e000000b002a8d13d88fbmr2642480lju.11.1682338436147; Mon, 24 Apr 2023 05:13:56 -0700 (PDT) Received: from mantas-MS-7994.8devices.com ([84.15.37.222]) by smtp.gmail.com with ESMTPSA id x23-20020a2e7c17000000b002a5f554d263sm1732382ljc.46.2023.04.24.05.13.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2023 05:13:55 -0700 (PDT) From: Mantas Pucka To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Bhupesh Sharma Cc: Abhishek Sahu , Anusha Canchi Ramachandra Rao , Sricharan R , Sivaprakash Murugesan , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Mantas Pucka Subject: [PATCH 1/3] clk: qcom: gcc-ipq6018: Use floor ops for sdcc clocks Date: Mon, 24 Apr 2023 15:13:30 +0300 Message-Id: <1682338412-15420-1-git-send-email-mantas@8devices.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org SDCC clocks must be rounded down to avoid overclocking the controller. Fixes: d9db07f088af ("clk: qcom: Add ipq6018 Global Clock Controller support") Signed-off-by: Mantas Pucka --- drivers/clk/qcom/gcc-ipq6018.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-ipq6018.c b/drivers/clk/qcom/gcc-ipq6018.c index 3f9c2f61a5d9..5c5d1b04ea7a 100644 --- a/drivers/clk/qcom/gcc-ipq6018.c +++ b/drivers/clk/qcom/gcc-ipq6018.c @@ -1654,7 +1654,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { .name = "sdcc1_apps_clk_src", .parent_data = gcc_xo_gpll0_gpll2_gpll0_out_main_div2, .num_parents = 4, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, }; From patchwork Mon Apr 24 12:13:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mantas Pucka X-Patchwork-Id: 677339 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6F07C77B7F for ; Mon, 24 Apr 2023 12:14:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231408AbjDXMOJ (ORCPT ); Mon, 24 Apr 2023 08:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231786AbjDXMOH (ORCPT ); Mon, 24 Apr 2023 08:14:07 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B931646BE for ; Mon, 24 Apr 2023 05:14:04 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4efe8b3f3f7so2093635e87.2 for ; Mon, 24 Apr 2023 05:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8devices.com; s=8devices; t=1682338443; x=1684930443; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=X71BZlzH90rNXlr22ACggW+3L7xadD0OTppCpzd2JQ8=; b=LuKlJ1GsF4/Tm3XEdWCx1kDw43SLE8w98Y2BhJfs1wCcIo4QWQrp7Y3KkUQj0YaCA2 AHRWo0FI+4mJ00cZXqs6cvsAv8XNDKUXTYHrVMMDGVQRfflQuaxWNZRSscKwv33LhL96 lUcxDwbOrGwBoDrYVrM9Rj1DkDrTWB+kBi/a81GPt3KXNKmvlCLQpQXuYdMEmILmOW6U epZNSIexP0zGjHM2iS2S7TIdE2fBgthFGczavpU5IOJW2pPKNKAPpP34Blsm8Z1CoJiT dkRbKV5L4Dr04/Y/zsaP4v0+4uieOYV3c18hEaT15Emakr0Ark5ktNhw0bveSy7xaFQ9 3zQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682338443; x=1684930443; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X71BZlzH90rNXlr22ACggW+3L7xadD0OTppCpzd2JQ8=; b=HNS0OeB5lmae2b7O86txdbAG1y9wG0F8Z3ie3mBP+hG8wudmsflzinTWEBPYWtwF9j U+8Avgsg82/gHN1jgV02QeC6cIKD7k2/GxUiVkTeU495gXxxKNL8OYzCAsks4HcalJpz TJjnj/s7CFf1AMMh7PFh3vavDs3m3g6GTHf24s2c/JOnS/p1kbFYbKWASE0mk74oUPfW TQV9951woyjVsnGy0uylrhUfWPioEm8RJmwnh7qTuYgxjRyXlVHibiRfT3x+ZmxqCPjW wzn2+YqDRnh9Gg1XF3VWQqovmJ153SQkpOkAAt/n3D1aBQrenOKCEgTca5DgtAYvrgac 5XaQ== X-Gm-Message-State: AAQBX9fkLFwkSlNj8Jba5ciDio8X3N4YYo3s5UVcDWUAYRfW+NOxDO0W iCsYlB7L+5Fp3/wnEYJ0CCscBQ== X-Google-Smtp-Source: AKy350ZIKHke2Bo4P+2J1KIAdimioXIF5VL+jfMeT4TVxnIYW3hRTri+yaxbnDftQxPFIzCtbx/e7g== X-Received: by 2002:ac2:5443:0:b0:4ea:f8f0:545f with SMTP id d3-20020ac25443000000b004eaf8f0545fmr3385023lfn.52.1682338443057; Mon, 24 Apr 2023 05:14:03 -0700 (PDT) Received: from mantas-MS-7994.8devices.com ([84.15.37.222]) by smtp.gmail.com with ESMTPSA id x23-20020a2e7c17000000b002a5f554d263sm1732382ljc.46.2023.04.24.05.14.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2023 05:14:02 -0700 (PDT) From: Mantas Pucka To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Bhupesh Sharma Cc: Abhishek Sahu , Anusha Canchi Ramachandra Rao , Sricharan R , Sivaprakash Murugesan , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Mantas Pucka Subject: [PATCH 2/3] dt-bindings: mmc: sdhci-msm: add IPQ6018 compatible Date: Mon, 24 Apr 2023 15:13:31 +0300 Message-Id: <1682338412-15420-2-git-send-email-mantas@8devices.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1682338412-15420-1-git-send-email-mantas@8devices.com> References: <1682338412-15420-1-git-send-email-mantas@8devices.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org IPQ6018 has a sdhci-msm compatible MMC controller. Add the appropriate compatible to the documentation. Signed-off-by: Mantas Pucka --- Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml index 4f2d9e8127dd..5ad846b724f3 100644 --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml @@ -36,6 +36,7 @@ properties: - enum: - qcom,ipq5018-sdhci - qcom,ipq5332-sdhci + - qcom,ipq6018-sdhci - qcom,ipq9574-sdhci - qcom,qcm2290-sdhci - qcom,qcs404-sdhci From patchwork Mon Apr 24 12:13:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mantas Pucka X-Patchwork-Id: 676687 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D72DC77B7F for ; Mon, 24 Apr 2023 12:14:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231472AbjDXMOQ (ORCPT ); Mon, 24 Apr 2023 08:14:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231657AbjDXMOM (ORCPT ); Mon, 24 Apr 2023 08:14:12 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CC4626B7 for ; Mon, 24 Apr 2023 05:14:09 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2a8dd1489b0so41101001fa.3 for ; Mon, 24 Apr 2023 05:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8devices.com; s=8devices; t=1682338447; x=1684930447; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=cSg+Sr4Izv6SuaT8Bc0GsU3O/zi4zb4SC3eF1z+OThY=; b=DnyhHHIEm7sOXD8G9rdXFjq+JJGE0aolitslG+kUVa5NShlUFkU/gQb74Na0IBX0T/ +vyjyltyk4uLFEPmQBVEQBbc8n4Jp53+hpkP9c+5197U2HDW1wHvl623oLJDOUDWAEIs O8ZNxzwVmB9VWKisLIAKF9+Y0LEFm5DR0QtzlIRIDm5lDOlib8OJd/DwA1lhzhtOrLcc FJbkhhR1dUHCQ0fxNQpJEUjBmOe0AIPIRDTf/v7t0tT4Pw9Omhsgb7013aSs8ki/d230 Ng3PdOOadNeA8QUZojqMiMqnFDwwrQh3p7YOwNrlMR7Xd4GJ8+T7My7GIH/JDGkoifqM 4P9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682338447; x=1684930447; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cSg+Sr4Izv6SuaT8Bc0GsU3O/zi4zb4SC3eF1z+OThY=; b=SihqNXlA5pIzCCEvVY5FxyyjnX/584/6RcWZe1aHHHyXgUlmOxd4bT/DNeMCiC61kt v8UNTykEdYrOY+FB/c0FZjckCtz53kGCwx5dcPUCsUgt68soEqKcu0Jrat1Ru3D4lvfG Vgi2RxniPqVUaUwDi/BL5s6dLvd7R5Ci5xIkTmLzvAsu3d8PGXLVgmokHNPeHh/Zsbjz qbSrg7rngt0acDM1D78hWRw32zszJYKgBS1YXxv0NBJl1ZxjY973XlKyhVkkcUvnqoO5 hGDIs9p2Y2N5V0I6lzmJqPJDs9seauSFU1aDTzetqSw5tsHuKBh3pLIV9US+JMwCXPV0 PiOQ== X-Gm-Message-State: AAQBX9d4YBn7L3qY4t4eDf/5tfByTvH4mSEFZpX2ZKg0uC9mXz0FXWdP jhRgsUrmU3UxANoYMa7fz0lh6w== X-Google-Smtp-Source: AKy350aqa3hL84PCEAOSmwTnpLJXRUDhws2ye0MyTd3kcxq8Q2zZlZqvrmn88+r0T9u3JCEatIzbiA== X-Received: by 2002:a2e:a3d6:0:b0:2aa:44ae:45a with SMTP id w22-20020a2ea3d6000000b002aa44ae045amr2102991lje.13.1682338447334; Mon, 24 Apr 2023 05:14:07 -0700 (PDT) Received: from mantas-MS-7994.8devices.com ([84.15.37.222]) by smtp.gmail.com with ESMTPSA id x23-20020a2e7c17000000b002a5f554d263sm1732382ljc.46.2023.04.24.05.14.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2023 05:14:07 -0700 (PDT) From: Mantas Pucka To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Bhupesh Sharma Cc: Abhishek Sahu , Anusha Canchi Ramachandra Rao , Sricharan R , Sivaprakash Murugesan , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Mantas Pucka Subject: [PATCH 3/3] arm64: dts: qcom: ipq6018: add SDHCI node Date: Mon, 24 Apr 2023 15:13:32 +0300 Message-Id: <1682338412-15420-3-git-send-email-mantas@8devices.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1682338412-15420-1-git-send-email-mantas@8devices.com> References: <1682338412-15420-1-git-send-email-mantas@8devices.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org IPQ6018 has one SD/eMMC controller, add node for it. Signed-off-by: Mantas Pucka Tested-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 9ff4e9d45065..b129b23d68b1 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -414,6 +414,29 @@ }; }; + sdhc_1: mmc@7804000 { + compatible = "qcom,ipq6018-sdhci", "qcom,sdhci-msm-v5"; + reg = <0x0 0x07804000 0x0 0x1000>, + <0x0 0x07805000 0x0 0x1000>, + <0x0 0x07808000 0x0 0x2000>; + reg-names = "hc", "cqhci", "ice"; + + interrupts = , + ; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC1_AHB_CLK>, + <&gcc GCC_SDCC1_APPS_CLK>, + <&xo>, + <&gcc GCC_SDCC1_ICE_CORE_CLK>; + clock-names = "iface", "core", "xo", "ice"; + + resets = <&gcc GCC_SDCC1_BCR>; + supports-cqe; + bus-width = <8>; + status = "disabled"; + }; + blsp_dma: dma-controller@7884000 { compatible = "qcom,bam-v1.7.0"; reg = <0x0 0x07884000 0x0 0x2b000>;