From patchwork Sun May 7 19:07:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 679799 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 E42A9C77B7D for ; Sun, 7 May 2023 19:07:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229920AbjEGTHo (ORCPT ); Sun, 7 May 2023 15:07:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjEGTHo (ORCPT ); Sun, 7 May 2023 15:07:44 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DC93594 for ; Sun, 7 May 2023 12:07:39 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f00d41df22so25277723e87.1 for ; Sun, 07 May 2023 12:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683486458; x=1686078458; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Vi+qNNaZPyxsefGB1oajp1oVBPaOfr1xKPuapQZUe7c=; b=TJ2OW2h9+vAdfIimLLcFyqQpLgWeG13d7qrrf6/L4c9rdK2z/x9YfLYFal1s3weaPq Qas9IUxu4knuqOr+Qc8iqe7KXNJ3/Ui8jDwznA7k2fRx7LK7ycX3Ge/uor9R/QHsOTsj 2tU+/KBSNHO0jehJGuAOFL5YKnqHNgTKtAxGHZreISsnHRozBPIBCYZ8Co+Xg8zlho69 KX7JMZlYmp3+go6LLLSm/AANkOlRsok01w7Dm/NLi2WY0grLrEdqrwE77v97f3sLM15/ hAj1RheSj8S5M8u+V1W7sjS4HS4KR8RBLpcCn1bZGsp9Amuw2+9V5pjodKvQ7ehDXshs nlCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683486458; x=1686078458; h=content-transfer-encoding:mime-version: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=Vi+qNNaZPyxsefGB1oajp1oVBPaOfr1xKPuapQZUe7c=; b=DqFqz+pNeLMJZUXSasfZCmrovK/nz3BS68jyjzgphzwLDHCuKhGNX7YdP8Jvs7zVZR 2xaTtxc7zd5r7JqNy2S9Riy6WZb3/3ak5jCYS0fxEH/lAIK6GkZxXj7WHFBDQXhuyK9O dqE6aDGl0k23r6mrDVO2IfEzcXbHqKcUwsQBqnsIK3yWdpfKZyjBzzjX+hv2yNspojpV lYTb+4rLd/WHXE3rWFo/ujhH0gjuRfJHBTDWu4F9Wy8M7KtYkeyvv+msaKlhIx+VBxtZ bWTupdsLvabaBkDY+2pifkPWFsr4pclvyMLudekcdZhhTcFjAWDkJesDMefKhACPDqy7 SMZA== X-Gm-Message-State: AC+VfDy2x8Ycs4N8hsQ1OfQ6GqwOHlDqKCFF5D7VyN7tJdDUKgzjZ0Q6 gwZvAzounYdYrMLAjmTHlHHiqw== X-Google-Smtp-Source: ACHHUZ54X56ZL4KurSonVDETk5lAq4ryk4zzE4ihXGauROlICUtkYX8683vKfjtxl1NB3mlT5ufddg== X-Received: by 2002:a19:5507:0:b0:4d8:5de4:e3b4 with SMTP id n7-20020a195507000000b004d85de4e3b4mr2069054lfe.1.1683486457955; Sun, 07 May 2023 12:07:37 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id f8-20020a19ae08000000b004f14ecc03f1sm755841lfc.100.2023.05.07.12.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 12:07:37 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 1/4] ARM: dts: qcom: msm8974: add ocmem clock to GPU Date: Sun, 7 May 2023 22:07:32 +0300 Message-Id: <20230507190735.2333145-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> References: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org To get GPU working with the OCMEM, the oxili_ocmemgx_clk clock should be enabled. Pass it to the GPU to get it to work on apq8074/msm8974 boards. Fixes: fe079442db63 ("ARM: dts: qcom: msm8974: add gpu support") Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-msm8974.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 834ad95515b1..fb661c1bd3d5 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -2104,8 +2104,9 @@ gpu: adreno@fdb00000 { clocks = <&mmcc OXILI_GFX3D_CLK>, <&mmcc OXILICX_AHB_CLK>, + <&mmcc OXILI_OCMEMGX_CLK>, <&mmcc OXILICX_AXI_CLK>; - clock-names = "core", "iface", "mem_iface"; + clock-names = "core", "iface", "mem", "mem_iface"; sram = <&gmu_sram>; power-domains = <&mmcc OXILICX_GDSC>; From patchwork Sun May 7 19:07:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 679798 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 184A5C7EE24 for ; Sun, 7 May 2023 19:07:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231641AbjEGTHr (ORCPT ); Sun, 7 May 2023 15:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbjEGTHp (ORCPT ); Sun, 7 May 2023 15:07:45 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A8E73591 for ; Sun, 7 May 2023 12:07:41 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f24ddf514eso488094e87.0 for ; Sun, 07 May 2023 12:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683486459; x=1686078459; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RSq41UJRxM1Id04+5Bgr5nBkxb99E6+NG+r6r99Xdss=; b=X2UPItrb69Iq2LW98ux7h+6Hr+2d7mH9vholzNqwX/ReqBihFSjzMFZMLxdSBnjwRn 1MC5k+sVCusWvTy3FtDGBdNAUqAKG1J/vbflMPMxaiVeWzr482mKTE7pedT4iKGzzF+k K16qIkQ7L4QVvpPa5RvP4vUSzzxRX0rw3XvUidbo64zkaU0OT/K9inIMWZniJ6vjtkIG +TsO/ZAhgNNIDOTIYlJUITc1NEbtaVxCESojBI5/SMabVAgbKGDd3dnSQVVrx+vEA/XO JsxZkCeJX/5K34pK38rz0nlign9+9VX4iISp984hyYQ4SpBxA/0oCUEf3iJ/cZh544Ww Jo5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683486459; x=1686078459; h=content-transfer-encoding:mime-version: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=RSq41UJRxM1Id04+5Bgr5nBkxb99E6+NG+r6r99Xdss=; b=V++GtnUSafranyO6Wsu7kt+pVxuyPjqzK/V3b0R3LckCHca6brYQpCAWH1cvaOZmVJ lJQCBWDI92kB1iVdvkRgsQYk+ibL+9oa5OBPlIU1Eviz+bb887/paBpP0dr+1iMLsM1X nXKRq2RtjPGD49faiBfiRRhOBAxZWipR3W6QRufkl3CSKygG8dA09JclvFFYCS7VESiF LSA0gGv6mY9HHRHXa6oUxnMd5WA6vLDlfJEmnge4+y9emKzy+SptKjMCZdOj2D4ewIgs Uj8aL04RoW8qxqgHv46e5c+P/lmQWcpuS1MFP++O0QN1RLvn2+k252tLo4x7FXZkbdLu H5bA== X-Gm-Message-State: AC+VfDwJX2tAgJ7CXBwNySsm0cWlbt4zlqQPaPyizrGNNZUaTwVsxKdQ 5KR0Gj8p8wBxx6s72Nfw3ojjqA== X-Google-Smtp-Source: ACHHUZ4cx4F0q2aBgA1kXEmiFrVY2oIHHctVd/EdZd+fb7DC1OKAWyz6Ls/a/OeQXeq5q1HFrW+jXQ== X-Received: by 2002:ac2:5542:0:b0:4ec:9e63:6144 with SMTP id l2-20020ac25542000000b004ec9e636144mr1690875lfk.42.1683486459550; Sun, 07 May 2023 12:07:39 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id f8-20020a19ae08000000b004f14ecc03f1sm755841lfc.100.2023.05.07.12.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 12:07:39 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 3/4] ARM: dts: qcom: apq8074-dragonboard: enable adsp and MSS Date: Sun, 7 May 2023 22:07:34 +0300 Message-Id: <20230507190735.2333145-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> References: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable ADSP and Modem DSPs on APQ8074 dragonboard. The MSS region differs from the one defined in the msm8974, so it overriden locally. The modem is specified use mba.mbn instead of mbn.b00 (for the sake of similarity with other platforms). This requires a patch for remoteproc to be applied [1]. [1] https://lore.kernel.org/all/20230507172041.2320279-1-dmitry.baryshkov@linaro.org/ Signed-off-by: Dmitry Baryshkov --- .../arm/boot/dts/qcom-apq8074-dragonboard.dts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts index 6b047c679370..c893afc00eb4 100644 --- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts @@ -4,6 +4,8 @@ #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" +/delete-node/ &mpss_region; + / { model = "Qualcomm APQ8074 Dragonboard"; compatible = "qcom,apq8074-dragonboard", "qcom,apq8074"; @@ -17,6 +19,13 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + reserved-memory { + mpss_region: mpss@ac00000 { + reg = <0x0ac00000 0x2500000>; + no-map; + }; + }; }; &blsp1_uart2 { @@ -39,6 +48,25 @@ eeprom: eeprom@52 { }; }; +&remoteproc_adsp { + cx-supply = <&pm8841_s2>; + + firmware-name = "qcom/apq8074/adsp.mbn"; + + status = "okay"; +}; + +&remoteproc_mss { + cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; + + firmware-name = "qcom/apq8074/mba.mbn", "qcom/apq8074/modem.mbn"; + + status = "okay"; +}; + &rpm_requests { regulators-0 { compatible = "qcom,rpm-pm8841-regulators";