From patchwork Sat Sep 7 18:48:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795271 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 D8C84EB64CA for ; Sat, 7 Sep 2024 18:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ASoLCFAFth+L/RYaTTbW4gr5zkHU8LUy6gZz0L/32b0=; b=c8YQMvV1vyimw32G+PXs4eDVT2 rsAeXkjPC/8KwxDuL0HieiCE8zBYFRlLgzW0PeWhOjBtbhkOhqTMsFl50h5mk9I9i0sbIp5AgfWmH Pa4Z7auYxfU1Mc+yE0cb4z8NiKRGfMlTm7/rSSGEf8/9VkCLFbUuEtD1lUHV735bvKlZgvjL0BI8F CebSyyHfFsll2f6gK5KilVV7WMY6+S1XGdxII904so2bO35mYimVCi02xWcL971q32Z2oMukX5+pP g8aXeYHLIK5e8tp/pUXj6pFnXqrxQxhZLJX5Th44tV2YlPDxL4CijM2ESbGX4JRUv2fy4ipu8be29 HTVeHyVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Xn-0000000FUQ4-3LtD; Sat, 07 Sep 2024 18:52:23 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Tu-0000000FTZd-2JzS for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 18:48:25 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2f7502f09fdso17671161fa.1 for ; Sat, 07 Sep 2024 11:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734901; x=1726339701; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ASoLCFAFth+L/RYaTTbW4gr5zkHU8LUy6gZz0L/32b0=; b=bkUQw0ayp/avhMcq6r1IsSTmOBh2n5nerThzBE1D6Z/rUurQ+9CAw7z47RwbrF/qmk UklmYbdnmJv0kQqzrs3CK2RiP3uIw993oif9buuIL2IXZlZsWjCzE2WddonIxMjLESnk lso6f4yewcfucMW+Mvuu3jtXiY37PR1LGrq2PKz8TEaGMGtd95j1slHpyGtltOKGI/mf ghHrasGAp09RZeABzodALEQkyOx5SMwsZD7LIIzYLHJEKLyWS8neVS4sqKVMvY58d7/z oRBqGI8kHGlHL8i9rLKGXMYkQULiDiNU5BIkMXpTGrk+lu6la8/kp0kTQQJa/iF5Ssx9 AMJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734901; x=1726339701; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ASoLCFAFth+L/RYaTTbW4gr5zkHU8LUy6gZz0L/32b0=; b=f73BbGi4NtgHBgEqR/9f3i4xI/rsjV/WNdpn4ZKF+rH6VtQZU2fDGJZazRA+B1t61Z 9I0ZP46PMuuwSyjjM7Dpj/xn0cNkGrZgXhpOXmpN46gB7pceEN2cLBJuXTJ0riJ8ia5W Wi6vWMguIHSeWrrmHVitTc7ey0ETO3HE7D38sxZrKgItVQ50f/+g2UWdOL4t1uiZRRn4 uTg0Kdn+HyredfcYGrkNpxZ3J7Z9sx5cofHVKKmRtL3u03X+vjx2ygdNmFDqw+Chi96s /8dEz2SLVZP6itdXQ2VRVS7nPGFKSnWK7HJWJKAE9V+/IYOLPrC7Yh/28gJvIvc7Kcs+ nI1Q== X-Forwarded-Encrypted: i=1; AJvYcCVFqkK41PDk9H1uYBHVAKQimkOB8Wib8/TxANLBlj2TE2TW2HInT8g35H0PHYw63XRAD8b0weO/Eku7j5g7laQS@lists.infradead.org X-Gm-Message-State: AOJu0YyfavuAGsDh77jkbPneCOAj9rACipp/urrspmrDtZ2io9jzqknz wECGe/dxQhDb5/fiMSh0IGcGrvnrAhwjUqTAiifSDjZ/EMKCJ1TObkzQU46PagU= X-Google-Smtp-Source: AGHT+IHT9NJuhuG4AamvpeXk9LoAYFX1Rx0Iy7N0kMWiubohIUwXALW2N+6wWLpExdHwsDiK/BRP1g== X-Received: by 2002:a05:651c:19a3:b0:2f7:586d:e5e7 with SMTP id 38308e7fff4ca-2f7586de6f4mr12201981fa.5.1725734899905; Sat, 07 Sep 2024 11:48:19 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:19 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 07 Sep 2024 21:48:12 +0300 Subject: [PATCH 1/7] iommu/arm-smmu-qcom: apply num_context_bank fixes for SDM630 / SDM660 MIME-Version: 1.0 Message-Id: <20240907-sdm660-wifi-v1-1-e316055142f8@linaro.org> References: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> In-Reply-To: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1917; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=4jg/7UcRjOk5Aa8PYPjFu4S06h+6mU5cJuLQp0/H3QE=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/xHjCopDQPiYASMPf01hRA68yz6IxH2T4eL eC6cfgV0lyJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf8QAKCRCLPIo+Aiko 1Q9uB/0ag1ZGlUF+StHNMO5RSRr8jbA8TML029hF2MBiqykw2lDs8s8+suyKE9WYe4KswcqvVgN 4bLu2KGe0WcbuoHG/wD/0SUKHISGgj5Anq4r23QlfVb2bxp4eyH5lJGlFpX19EANfZl3+VaMWyY 9heRsRGZ3eCyB+Lbo0qZGCWzU7Stf3ugs2tVW/KpgpE+RU64fzV2B+hAZRoqrH/SSzcvZ0qR1tL NzKtpFdruw/1UcKNwMKoQJV9xo58sMiOz6W2+uJB9Md+VVFGfmCFmjQ1uK0VdwVnpwVVxQgT9Jo vCdHx4iMWcz8ZKPEMLUY7mTi4Uw0ad36gbt2aAtXUl6jX6xT X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240907_114823_141867_A502FFA2 X-CRM114-Status: GOOD ( 15.24 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Qualcomm SDM630 / SDM660 platform requires the same kind of workaround as MSM8998: some IOMMUs have context banks reserved by firmware / TZ, touching those banks resets the board. Apply the num_context_bank workaround to those two SMMU devices in order to allow them to be used by Linux. Fixes: b812834b5329 ("iommu: arm-smmu-qcom: Add sdm630/msm8998 compatibles for qcom quirks") Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c index 087fb4f6f4d3..13a3e3585c89 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c @@ -288,6 +288,12 @@ static int qcom_smmu_cfg_probe(struct arm_smmu_device *smmu) */ if (of_device_is_compatible(smmu->dev->of_node, "qcom,msm8998-smmu-v2") && smmu->num_context_banks == 13) smmu->num_context_banks = 12; + else if (of_device_is_compatible(smmu->dev->of_node, "qcom,sdm630-smmu-v2")) { + if (smmu->num_context_banks == 21) /* SDM630 / SDM660 A2NOC SMMU */ + smmu->num_context_banks = 7; + else if (smmu->num_context_banks == 14) /* SDM630 / SDM660 LPASS SMMU */ + smmu->num_context_banks = 13; + } /* * Some platforms support more than the Arm SMMU architected maximum of @@ -350,6 +356,11 @@ static int qcom_adreno_smmuv2_cfg_probe(struct arm_smmu_device *smmu) /* Support for 16K pages is advertised on some SoCs, but it doesn't seem to work */ smmu->features &= ~ARM_SMMU_FEAT_FMT_AARCH64_16K; + /* TZ protects several last context banks, hide them from Linux */ + if (of_device_is_compatible(smmu->dev->of_node, "qcom,sdm630-smmu-v2") && + smmu->num_context_banks == 5) + smmu->num_context_banks = 2; + return 0; } From patchwork Sat Sep 7 18:48:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795269 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 762C4EB64CF for ; Sat, 7 Sep 2024 18:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jpkFdCDWxG+jHgwK52QzUzAkGgglAsm4AAFdePfcRFY=; b=fEcdIrJ/SI2LYajaEuZK89YilO o9nP+cALgAf32usLxk1IKj6WxvB+CVBUbziDdCe9ldgvt6bZNgYNWGxhpW+/T11nX4fBsgmJ29htS Xu6tb5Ewe+UKR/zJ6hhOxt8chrzFRWVqQNH6jvG2rDW5srmrjaqnHwdgHOhWl4azhU7dW5ypuAhAA CgGx3mXFHLLf+8vf645MzQXhjL5yBdQHEJuIQh56PyM6bv9icnWHvwtJhNHW2R17Qwu+xdBgJ9s0y E6WsGZUYgdHtRszHLcciFAecW06mFZ6E2flnpTMqAFNUPVGob+Mzdy/oqFrRPly++yXjGphj1xfGZ 8BBqgJYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Vt-0000000FUCC-31zU; Sat, 07 Sep 2024 18:50:25 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Tu-0000000FTZe-36SY for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 18:48:24 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2f502086419so38319081fa.3 for ; Sat, 07 Sep 2024 11:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734901; x=1726339701; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jpkFdCDWxG+jHgwK52QzUzAkGgglAsm4AAFdePfcRFY=; b=jDpPPpX8VF8d6tGFgCQK/dYu8Mw6/yPOERcLnmksPMVgmAtZaMGT1839KwWkVVyOBz J5XNxnJJB3GB/MVG5AQ2z3Eu8u/PjrqRqhhSuV450B2VsqwqyiiN5SOWgKjxAYbsUjU/ NrKVAFB8iw9+yKNIqOphIHGjWjogfCTs65rKzn/IA7KIyi7hubhbK9esJYu2PZMd5KV3 9PS57BTz3+j6Cd28TKq7yvXxabh0ztANLPC5pqy8goKcnE6v0g+h7K1M4i7YqzC8suzR dSNnTBYfY1hKUb0eiLhvgZTS14xRE0Hzy0UrbY3mFAetPf/KZ3Q+cBsE4Q/RsKEUNyk2 leyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734901; x=1726339701; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jpkFdCDWxG+jHgwK52QzUzAkGgglAsm4AAFdePfcRFY=; b=ZCjDYBxM+MpyVrN/t9Hu05+8MyrAs5HCL2OK8zIcry8POmKO3hCj7B++3f3T+rOfRT YjzwL1lHRUKOmwBlQSFsvV//hqbBc2MDtPobyprHNSuqzVtk3976baw72YgZL3UGpnLx ZS/J26h/4Z9dExjgG1hbM8fWITa/MreKYoQtY4ecJteJoJwJH9lEp6n8daF2OaeqtEGQ o7uISJVj+1FwlqjaSpdPAf+Eh11JgbqnCksWCiePIUF5jvjQq2acGnnu1Kg+p8f5BlAg RXcFTYaji1+iprE8+Vv1w3/7ZjAbZrF0JtXGcQFrfxf6/tW1zwn/Lihho8WPCg8Kfsjm lowg== X-Forwarded-Encrypted: i=1; AJvYcCVt0p+UGTVJuzbof6bW8zlFWaHq1jrq1gmdTJaUR7wwaSOootreUZn7hH4kr6i+nLQRTEU4mqoirBI85rSvM6di@lists.infradead.org X-Gm-Message-State: AOJu0YyzfKVxySDWoJ9uc24XHZVbaLiJmEDmJYmtC4WWLOhZiY9CPQxj tMIeWAdHYiEWR8ZMRxbHBWtOi6zMOZm9KDi4HiOUvm0rEp19Orb+Gi8yznbiQM0= X-Google-Smtp-Source: AGHT+IEGc+rw8n897S3k/I+r66uqWMoCaEiaxiGscVL7WMTLCAC9tURU0h8WtjoSPAnSuDv8f4FDdg== X-Received: by 2002:a2e:6111:0:b0:2f3:e2fd:7dcd with SMTP id 38308e7fff4ca-2f751ea7abdmr36668801fa.6.1725734900596; Sat, 07 Sep 2024 11:48:20 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:20 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 07 Sep 2024 21:48:13 +0300 Subject: [PATCH 2/7] arm64: dts: qcom: sdm630: enable GPU SMMU and GPUCC MIME-Version: 1.0 Message-Id: <20240907-sdm660-wifi-v1-2-e316055142f8@linaro.org> References: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> In-Reply-To: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1099; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=G8XjAsr7l2bULeKDkj37t5ZchnBw4CW6FlfjTvSZkX0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/xN40BsuEdXIGn7p9ScsoJtdiTQB8SViteB gBGFCIKcZuJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf8QAKCRCLPIo+Aiko 1ZcRB/9PjGkhtUodJVh3czV+ADqc3yYyhY69r+wl7qdHHU3JzuspOjFVoU7ZuoqO/THcsYrx6wh LmYqzCA+xmVgYwm4sp07bWG0O/4lMNAv/3BR6OdEHyfP82lLpx+ZRsb2ivv8ccP9rOMYaQWe1G3 F7ay5oXlt3EUu5Nexny42eGZI8QY4Zq1ojF6hIcbwAZbrHXQcIwpkR9G78ACDBjodJIKCBrxWTR eDgg+hxpGLLGDqvotRO5ud5gXAlZiU0EstTkAygeVPGOOC2TqSTfXGMXNtcnVrSHx6ltk2oZmFq maTpaJaHMZmCeRXNHNAhZlTM9sgMK7AvwdhJx2gZlUV2akfY X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240907_114823_141606_5E1262F1 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now as the arm-smmu-qcom driver gained workarounds for the Adreno SMMU, it becomes possible to safely enable GPU on the devices. Enable GPU SMMU and GPU clock controller. GPU should be enabled for target devices that have ZAP shader blob. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index c8da5cb8d04e..40ad99d75738 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -1186,8 +1186,6 @@ kgsl_smmu: iommu@5040000 { , , ; - - status = "disabled"; }; gpucc: clock-controller@5065000 { @@ -1203,7 +1201,6 @@ gpucc: clock-controller@5065000 { clock-names = "xo", "gcc_gpu_gpll0_clk", "gcc_gpu_gpll0_div_clk"; - status = "disabled"; }; lpass_smmu: iommu@5100000 { From patchwork Sat Sep 7 18:48:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795270 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 3DFD0EB64CA for ; Sat, 7 Sep 2024 18:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+MQl+w+EtPc0//xS+aXieS9CbUw0+8xjxLVKoHk7Lo0=; b=Rw0ED01GQkLf/igVT05fAaTiJS zYV555gVnElybKtqAhTGig43jMYSywd3LEB+1v2CLhX5wMSmUoT5SJizkPP/e/OsO40fk2uMF0M5y /Y6qzfWoDriBQpg9E7X3F1gedy892sBIDxieH4Wj/3o1/7iF4AWNen3d6F6ozN2VYQQV0nqjqi/FV epaqlp7oHA3Ojs9rXmPNlDV4r1yTPRKm6lNOQy4LqJwSdcRZaGeiqgubCKW/SvfWVrAzR2YRJiF6K HDIHw3Ws/AGY+ls8BNxX8/+4zbFEoTHJ5/et4PIiZz4egQBZeYDix3IV6pIGGlxui4oY47jZfogAb VFyaaDaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Wr-0000000FUJz-1QAm; Sat, 07 Sep 2024 18:51:25 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Tv-0000000FTaD-3V3n for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 18:48:25 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2f75aaaade6so6706281fa.1 for ; Sat, 07 Sep 2024 11:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734902; x=1726339702; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=+MQl+w+EtPc0//xS+aXieS9CbUw0+8xjxLVKoHk7Lo0=; b=m3xc6wJnTDM50STXW7X4yUjq9gqSAW0EtKeLhwPlVqMWWCRZjbIkeim7kVZhXvaShx BIam+rfFeSS7a1UBV/xNKo4BScwPN9idXIZcI5Q44ewJuRncMZn9H1fs1I3tqQ3miPGP 1VM/i9Zi/8+T7m/CUXh+wzlmGVsXy1v+HdoLTHQY0rePhc66X3YVl2lUwfN6msqGE1jA Nh1JoeXvDlQdkjv/4GcmF+m1NzpAT8+vnrIIFARbmebUFzMJVy9iAMip4WFeFQnXmfwH aPYuUu5WmKiLLEA9b8t+IQOLGmCqNHwND7LBIm+2wIl+lXxnHLDuX0Ycx+5dpXeWGmCn bKpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734902; x=1726339702; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+MQl+w+EtPc0//xS+aXieS9CbUw0+8xjxLVKoHk7Lo0=; b=GGuBewFxU/kI4tXbToTtZUQr9WHLkaZO4gHO9cUV92CztM26vGV805m8ByhvcieKEs FppeeUk5IzPt/uk4KQThaNDI9i0f8bv6o528g7RHQXnxCcQbkHL1T02zCJThn1vDW0pS rFmYChlKAebJZdWGQGC6k9F1uRAH7VI+mJKF3OnvlPqbwejd4LdqiG3c3z3nFwjFLqjK hHBjVOtGFYXVTXwQaOpljofYmQK9M/pLU3jCU82/9/mbGNGEAIfWDwW80UfRk7Q8+z0+ PG0ltybaXN6YkMvk8Abex2BzKh8wDR5SvpYakQTLY9l9k9qOWUSlvNBUzqdkzrH6rUTd AFSg== X-Forwarded-Encrypted: i=1; AJvYcCXiGrTu3Yn6lc+kyw3SyjXLN3VydaWNdp5dN0OP13AuWeLJqRjb8l4OkdeNnP0NnFri7zamRVcKEeYaKhvhYYVB@lists.infradead.org X-Gm-Message-State: AOJu0YwPn54ux81lVX/2P5Z09X6outB6p77XAOmJO0NrG3RyCCk1qi4h tOQ44Ib+9Wr6U9jIUZg8mOySdaiA89EhBiAxNdKhrZgqfMVbi+9DMt13ntpcekY= X-Google-Smtp-Source: AGHT+IFt/F9gdcOgwpNi7fafKgTp/rZCPURIU7Ulv5ZyfJmoQN15S9LX022Fh+nYO3YABMxPYuOVhw== X-Received: by 2002:a2e:d02:0:b0:2f6:5d4e:bead with SMTP id 38308e7fff4ca-2f751f2b131mr30255761fa.21.1725734901592; Sat, 07 Sep 2024 11:48:21 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:20 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 07 Sep 2024 21:48:14 +0300 Subject: [PATCH 3/7] arm64: dts: qcom: sda660-ifc6560: enable GPU MIME-Version: 1.0 Message-Id: <20240907-sdm660-wifi-v1-3-e316055142f8@linaro.org> References: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> In-Reply-To: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1341; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=czZ7T+mf6XqWzU6Vf6WURi7MEzoc/X2h0XJq3zPX//0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/x7F2PoifzzkkFHxz2+pRkYLt9ML0xZEW+o 3DWhVRfPlCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf8QAKCRCLPIo+Aiko 1bLJCACJMd8jResuMsuhYfRhbO4DeTthTfGRK4rkPdDurx7rNtoeMvbbUL5rG3y2eVui87VLDfN EUAEwA6xXp4405PqYaI4rFWM0vWw5e4NEETlX0rgWjkglYhwNw5kN7xAA9SNakt27ds/M6MuN3L tJUM4EdZkcZfx4LF9qOlqX+JYa8SL+KidSHFtDbqK/3XYBqaIDYNWQUPwiUkbTbdqwgCGJrO+/J 3zWN7oDuWEH6MUsiyP9+fryFrqlDqZhw4/Ru3fQAias+d6YtPv/AT9ZEuLLrBKzyb1XV0t9g0mV dx6JraJkMAwruTpCoJiLcV8qTA2QHCIeT1IO2T8HP7OBYSqA X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240907_114823_918588_E1BD3BCE X-CRM114-Status: GOOD ( 10.26 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable Adreno GPU on the Inforce IFC6560 SBC. It requires the Zap shader binary that was provided by the vendor. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts | 8 ++++++++ arch/arm64/boot/dts/qcom/sdm630.dtsi | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts index 60412281ab27..ac0197624c09 100644 --- a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts +++ b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts @@ -110,6 +110,14 @@ vreg_l10a_1p8: vreg-l10a-regulator { }; }; +&adreno_gpu { + status = "okay"; +}; + +&adreno_gpu_zap { + firmware-name = "qcom/sda660/a512_zap.mbn"; +}; + &adsp_pil { firmware-name = "qcom/sda660/adsp.mbn"; }; diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index 40ad99d75738..92695375a63b 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -1150,6 +1150,10 @@ opp-160000000 { opp-supported-hw = <0xff>; }; }; + + adreno_gpu_zap: zap-shader { + memory-region = <&zap_shader_region>; + }; }; kgsl_smmu: iommu@5040000 { From patchwork Sat Sep 7 18:48:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795272 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 07708EB64CA for ; Sat, 7 Sep 2024 18:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Rm1chB3YeV/rbRF4sUAZL0Reqk72Eb44oLJJOE10AxM=; b=QUCtXe3nq9tmKlj3uvCat5f8XW OMtlNeZEkQ3Yi1rE9sD5iSIwmJ0KHTvmIc7oWHZt3hQE0G5PKmcXE1cxZnKvY2csZi8VnIYtIu+CC iEDPx+rqCBJeifocHVFolfHYNRnr4CAILuS0/SOYpYeK46PTwlUmzFOn9vZGydBiO94NC9hlV1px4 5+LGWpYgcSffymcQDSNqxFmBKGSLyU3siH6AMsldl0OHC40rsJpJ8bt7cwm0Fm7OvpBSGltaRKKBM ppvhrUOzxU+XDnOG0yDyNnQduQBBxWiw35UtN/QTDX7W5sEv6ImS6NnnjK0xPG2GGOkvIRuhaP5T3 OtFpmSWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Ym-0000000FUZu-2G8l; Sat, 07 Sep 2024 18:53:24 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Tw-0000000FTai-2Uc5 for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 18:48:25 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2f74e468aa8so31806621fa.1 for ; Sat, 07 Sep 2024 11:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734903; x=1726339703; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Rm1chB3YeV/rbRF4sUAZL0Reqk72Eb44oLJJOE10AxM=; b=QvnMbQv/543h5O2mbIxJTNqqdwr0Rrz+OYlDiZOdV3cx7G1Ka0uIABYaTREtKdb6Rk i6SQNNJB0fNGGV5FVJ5JG2tYettaCPRaReRK/L+m4QcASH16NBRrEij2d7cLURIVoYV3 xSy+5NVhxRTiYHhx+CsQqvmXzdmqRqHg/QbiVgubtU2t3KtmzHTxuTO/m4mx37IP3dhw AaWqOxUU+wzVxzeGCXMC+hc6wQoz7fpFczgVHzgeZE6uHUyzFQZkRS0VE9a0gOF38X3x N4va9HV9dHNP6F94o2q9js/9rRHl+/s0OsH5PSAOQiV62c2a+yXqS1fAxtPSnzdSR2aO sQ8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734903; x=1726339703; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rm1chB3YeV/rbRF4sUAZL0Reqk72Eb44oLJJOE10AxM=; b=WTo6DqNw4oRLWh216HQrk4K/dqvFq2nzRmHg2N5M7x2kODH+qwx6rHIzt62HOD8+G8 AiZoUWumBzJKN47qDy3rEhBE1ErSoDZKlfY/lb1A0/imSPxHyR+1ssYRHRl48Fubu+L4 PwE2HuQR8EaWbWROrPP0Aombds+BWcE5MLVud9EyVrE5HgHxGsoXZoJWy1HVf1b4+iwn hhrtpTFiSVLJNbasGAeGGckz3fy+cqkS9teIPAmqOvA+iTfsoNp3jGVLgw6Q2PKonCGg 6GnjcFmcw57K19PPPuwurjBQ9oY4JkppSlMOtnKJRKlR6qupXGlVm6O9XYY2SRo/eDpS gldA== X-Forwarded-Encrypted: i=1; AJvYcCXRG5cW2IPo3PMnk1qI+6jiXgkXMg99QvLPG1JT+3eTj7n1JqzPnWcf/CyTk76zqDPzN2Gn9gykHOqBVrjSbCTe@lists.infradead.org X-Gm-Message-State: AOJu0Yx2E568qERI9mKFPDPmwqw6QUhIV0o1bXQGU4d2DdeSAD27pKBM xRo7q1QHwLXQpXW3GOUCZtVHKTM+cHLFINKJGWE7FyTLCq+mlzgMhfm8tcZJJO8= X-Google-Smtp-Source: AGHT+IHu563+x1ywd7U+RrDE+KW3K25LUY98BF0NdOnVsnzEUTN6YUx2CDuriBbnNOmez6VMCEAmJw== X-Received: by 2002:a2e:819:0:b0:2f7:4c9d:7a87 with SMTP id 38308e7fff4ca-2f75232641cmr33900971fa.21.1725734902386; Sat, 07 Sep 2024 11:48:22 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:21 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 07 Sep 2024 21:48:15 +0300 Subject: [PATCH 4/7] arm64: dts: qcom: sda660-ifc6560: fix l10a voltage ranges MIME-Version: 1.0 Message-Id: <20240907-sdm660-wifi-v1-4-e316055142f8@linaro.org> References: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> In-Reply-To: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1040; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=6TCDPpBkY5pK/ecMFCBKg6KyrCqiL2Nwxp1MC/3FL0Y=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/yYgngcJjUMb3ImAgjjHipMpb3WTf93cRNT iQYHXaOttKJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf8gAKCRCLPIo+Aiko 1QQ1B/9bAfy4pGc7ZPqq1iHOoY3bTcWAcmd7v2Qz79lyDxIMcv6LmE7qVWnxa3xXBT9FzGon5UF 9mVlaNnMAPckOLbCL5rLh1e+ipDAycCXla3X8iPEmzZsLdvzdSsNjm7SJ403+kB0JkBoBmLzQEE 5c7OuYEkLOhNkb90pSzBBV/UgmfvZoAGSEaes2pf4FwH+R4Qz7cFFCj/iHI5AY8JGVKr89eFJH8 9i1ITgZ4uEXit1VxxeEba8+y9wW1wlGe4yXolhk9o8pOSifAYL1qWLjEGoUZSfMXxgthP6yN+7/ GpgBONEmhzqQy9Mkb0GsjthGtQu0xfaLV1COcEVd8ObQS6jc X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240907_114824_670913_ED7F9F79 X-CRM114-Status: GOOD ( 11.18 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org L10A, being a fixed regulator, should have min_voltage = max_voltage, otherwise fixed rulator fails to probe. Fix the max_voltage range to be equal to minimum. Fixes: 4edbcf264fe2 ("arm64: dts: qcom: sda660-ifc6560: document missing USB PHY supplies") Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts index ac0197624c09..09bc010ce56a 100644 --- a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts +++ b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts @@ -104,7 +104,7 @@ vreg_l10a_1p8: vreg-l10a-regulator { compatible = "regulator-fixed"; regulator-name = "vreg_l10a_1p8"; regulator-min-microvolt = <1804000>; - regulator-max-microvolt = <1896000>; + regulator-max-microvolt = <1804000>; regulator-always-on; regulator-boot-on; }; From patchwork Sat Sep 7 18:48:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795273 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 4AF30EB64CA for ; Sat, 7 Sep 2024 18:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=u7LsuAqj5Yv+PzKysRic0Rp3tIs0Hiyq7Bki4F0WIhU=; b=s/pbs1aceIaXe0TWsw5N8Jqx1f X3H8Un2Wdjefj2j77WO+Uib5yMKH3irr1nbmKJDTlHTwAh4wd73iBE+h+zuuh0qNtbCSz3fpJcPTc UqHSCcQe2XKkvLugU0dFRznRP+DZdt74sWmfQwqgB3hBdFR1FnzRY5I31PTwLhWoWSwIOF5DhvUeI dHlIDIhSifXBIohYfBsku6XPamDrlKUYIQsgdHIQGnzPu6DVWl5hkcS467AjNsWBN6r9HZnZSCn1g qYGswMJYTeTaIF6qXvtZFyVzPCDWf00siOvKvmpOXQQ+hCqw9jmT8X3m4xXDuVtKZaBg1p4aLt25v Z5Ss2neg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Zj-0000000FUgV-2hfm; Sat, 07 Sep 2024 18:54:23 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Tx-0000000FTb5-11ai for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 18:48:26 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2f75de9a503so5165441fa.0 for ; Sat, 07 Sep 2024 11:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734903; x=1726339703; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=u7LsuAqj5Yv+PzKysRic0Rp3tIs0Hiyq7Bki4F0WIhU=; b=VdZ0gtgVt31dcPWQW9Q9SYAMW2nem7WxWxF26DNQCTJdzK0eJowmeloCWvpC6ofzB6 xf2BbnCK6r+PK2o+8HXjI5IuLax4MBtfnrZoTtnkxqKMCxcBiiiuobgPsd4e4fjGP8BB 6/gJ311Y1AOa1Gpb4mf8TkOTLdr646LSyiWlJdBdpwRKovrRpFWTDQHMGmmlfAoqQrBp BvBc+zkjmBZxKcdKJIfHZWTT0AJF2NhwsfiO9VtX3Aef+uX7j91nQq/stGg+MjTPnaMo ksXLTYzIW+pROPTcH5rLcqv5WAXfp5ATcdHqbQykOIxfq9HZqTrow0NTDfHfDIsLbkGi jDGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734903; x=1726339703; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u7LsuAqj5Yv+PzKysRic0Rp3tIs0Hiyq7Bki4F0WIhU=; b=oAuFkhYMkAeqDPZ6cxp8dpNMYotgHqrw/pDPCvu26652NuwKieV9RIlgHpbDQpuJNG Xd9skLOZStCr3hdZurzdtyf4AzZMbeIj81GzQaUb97Ladj6txrnUuuOYtkP6txFOEhL/ lSjOyNcQP037OuZ/05e7AMwBPn1lBjhnwc2xaLaVEy9xFz/SYzTvZBNVqk4od/ILZAju /ykkUBDaARt6H/q4BCWHhbMqbnwdMT3bD9yUGo7d9MNKC71xa9KM9iC17lrcsGMb5evb W/ImUyPOIYsMW1JlPMOr4J4vCD5GSOKLe+h6/WoIdscTeVRpoP0unuMyr8WuTNr3uYAE aqjA== X-Forwarded-Encrypted: i=1; AJvYcCWwHzRJobf4FXYzYb6b0eU4YKLguIQgmCDWttKn2lWJx/KeA/9DfDDHL7ZCGT3h+SbFKigotkOhpSDjHwmDv64Y@lists.infradead.org X-Gm-Message-State: AOJu0YwqpkdM6lu5Qrj869nG00U+oxcmpONEnSnOE01MGoE0aXdlKv2y Q0t/2Rhjg87e4HZ6r47dlLhficME+jVOjSZyoaPr0X5qGfKOZsXH4YoRijy2gqXNkwwq/YGi+bG d X-Google-Smtp-Source: AGHT+IG6Er2WTTB9ykLtsnwLJMIhAvVqgLPtZjGk+LCEAz8mWM1M2LvXxH2Ll6NQE9F97hNSetaCCQ== X-Received: by 2002:a2e:be83:0:b0:2ee:8453:5164 with SMTP id 38308e7fff4ca-2f751db7570mr44719081fa.0.1725734903101; Sat, 07 Sep 2024 11:48:23 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:22 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 07 Sep 2024 21:48:16 +0300 Subject: [PATCH 5/7] arm64: dts: qcom: sdm630: enable A2NOC and LPASS SMMU MIME-Version: 1.0 Message-Id: <20240907-sdm660-wifi-v1-5-e316055142f8@linaro.org> References: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> In-Reply-To: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=980; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=gth7VehLLAYczDDqOTK1mioSLmcntX+IjHSeS1+PsRg=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/yK0Kr6gfauwYtKBj2YifOOoYasEb2/KJQy oQEzjAtvuWJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf8gAKCRCLPIo+Aiko 1eXDB/9YMK3v0BNnzKGqm5xYDSjWyN0LHPfuoGLoxqF11BB6jzZ6HjSdbB6BPi6n8/uMcF2CYCU pUhc1bXjxfVuHGaf6cHWqtrnm7QnBYbY9S7oexm20BZreHSMx1mnvyugF1faew9zNq1i2P1VmaW tewDNsm9c7RZhrMo8cO/oHOa9PCy0u9yKVQlnBYbWFEdjODYF+LEK4HQTo3Nz/eca3UAyniGYYK NoyD5wvdIVIhaTLstIx19dmx4DHhmbkyOR5XRyfpvPD6mMbJJQd3pK9+vtPWua3amdHbpfVaJaS UyTHeyQAsEcjpl2psOw4Yjpzg+Yj+fS2DFCA/EGPiMz/yeke X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240907_114825_321233_38068F06 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now as the arm-smmu-qcom driver gained workarounds for the A2NOC and LPASS SMMU devices, enable those two devices. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index 92695375a63b..dc8bc63bdc70 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -665,8 +665,6 @@ anoc2_smmu: iommu@16c0000 { , , ; - - status = "disabled"; }; a2noc: interconnect@1704000 { @@ -1234,8 +1232,6 @@ lpass_smmu: iommu@5100000 { , , ; - - status = "disabled"; }; sram@290000 { From patchwork Sat Sep 7 18:48:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795274 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 66293EB64CA for ; Sat, 7 Sep 2024 18:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hL1dl2amOVSJoO70LsDuP43oRXVn+WYe2abWDJx9WBc=; b=jO5Iex1Uf6tWEq+bJ9iLsg1Flf /Y7FXsCiddmuJxEqO8QM38McUkriz+P1KAT8bU5hDFbuLr8eMkOokUIZH7gkag6pAIOhoo5T9cnjr LLFGxydxxpNEfIluohHcbjl25syQGgwEiv45qbekcYH5mLX6xw7lwL4E/2sdbbzxCfeKIMWBURAG1 vfyM8R2JUbDb+zM73HscbwJ2i53bbLv2tmQb1L2DXjAYMAdYlnSlyh7OWoqAbPaisKUVnHew75fLy cvJi6sau74XkShzLuH8oIlyk+pcpP2/HU5Dt8o29S3qGOY3JopuI1gytNmgcT6rE0k4aGh2FExyU1 vHIQGJuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0ah-0000000FUom-0gp7; Sat, 07 Sep 2024 18:55:23 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Tx-0000000FTbN-2Cr0 for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 18:48:26 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2f74e468baeso33576671fa.2 for ; Sat, 07 Sep 2024 11:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734904; x=1726339704; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hL1dl2amOVSJoO70LsDuP43oRXVn+WYe2abWDJx9WBc=; b=iMJOGojzsdtZjSLtWvVkzCJsL/uR8uHHoSyHsh6d7h2JmTOHByCZ5HRLb03dETSIMZ LDanUIgklmdiHikU+U1Z9PHGQpK890rMZ6y5vFOnoC3ZFbE+nFQ8hQZyDzeOlRw8U3Q8 FmK+4Pcil8ixnz9wQFCy0KOp/86/n5OY6iqnfP2ix6nGaibVqIKSlyQtXdGmM2TsIqSk sOQU0vDiXSrUaNuJQyTrLcjTl+7x8xp/NPZ5schtXX3O7VqxTIbIpDHuzXIlhDlWhl0z /CS5fe1xDxVe2n5wFTrULyiwWchqaGo1XrlPHP54Em6xMtW+pZPShJ/vX6lYRcFmGyDa JgVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734904; x=1726339704; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hL1dl2amOVSJoO70LsDuP43oRXVn+WYe2abWDJx9WBc=; b=gL35ZCozXVOjtU+AZeqkYFmLSpMjOikPy+cZjEVT4ngVECU1DPVfdFv9f3bHQ1fS4W BYp3yja2wPXD/+A0R1/k9bCA9jMlII2Npl7HRHkzL3brr7rPjmP2UgsrDfDavHAZqcOh c8Qd5ZQWeA3F4cd1Rjqqm3N0GWa/Kd+sk33B9G5o1YJ91q9cN6SVg6WqMrEDrlnjCyGG hwQ5oOxriflWH3MO6C6khjwxbyV0aF/AlmUmckw0o0HIHPV08RK1UNzG6mgnRcL0FNzR j8KtSRGTr7kvGpcxoiVNT17SOiKA0nrQs6/NnFVGLoWXYAtJ2azQApqPqE0lQCm4VabH cb3Q== X-Forwarded-Encrypted: i=1; AJvYcCX6/gA11bmCzQx2wFZ88xhl2yz0dB4TYT/v+6088vvwxT+2zkALBGAlvKhnNK6sXOxU+vrCU3c1k95VVfQ5Ho/z@lists.infradead.org X-Gm-Message-State: AOJu0YxWZBFD+b5Ceh7Jn/E9l7iS7fqXiMBrKUwpCNJYK252URvJT0op 8CtpzrFr7njaIE6bJkxCH3seVJhDIxSBKPfdjJPGoYlh9SBNpkFAgNX/+ZOzcFM= X-Google-Smtp-Source: AGHT+IG58gmWVk9fhlraqb5aPvd2mdHJvcE/HBMUnVruL6uhb+sYPDa968ikGXxOgKNrOey3AJXC2A== X-Received: by 2002:a2e:be9e:0:b0:2f7:5914:c22e with SMTP id 38308e7fff4ca-2f75b87ec72mr17930011fa.6.1725734903789; Sat, 07 Sep 2024 11:48:23 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:23 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 07 Sep 2024 21:48:17 +0300 Subject: [PATCH 6/7] arm64: dts: qcom: sdm630: add WiFI device node MIME-Version: 1.0 Message-Id: <20240907-sdm660-wifi-v1-6-e316055142f8@linaro.org> References: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> In-Reply-To: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1627; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=m8Zi+I7r4mzRkaQx4Q0uAvjUN8Er2tlAYnR9jC1UHiY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/ySmr6XcpVpgukwQyVFouN74yoqzLc+oHg4 jmtygX/pVqJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf8gAKCRCLPIo+Aiko 1dPwCACKHKRnAYP+o0a7nDiomZPJ1StU5CG1h4B+3pdo2s5q7n4Cbpk91b5RsdifWtVHW4QQO4K vnX2NV+OIvBQhHNbNCSANijMPk8Hf4DbIinGV1I9G1ShIdGjvv7rfq9Su2OPFFg1WOussGxre+E 6hGbLT2YrlZKtO5HKTYhEC7IrlftsXKHlCPxZeld61nTxWJZNvzJoifbqZMCT3UCIy8SWngE7j2 YOKLzOU67j4Li2c1yO/AaIGhjx1DYnn9rOP6hAe+cmgxifCW0XjMTv4uEqV06Ulh8b2qFaSWHZh QCeOWE4asT4+t9tcQaVmspLRVXYSq5CtCSAJNYxAMMUcHmts X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240907_114825_638332_017FE655 X-CRM114-Status: GOOD ( 10.02 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add device node for the WiFi device being a part of the integrated SDM660 / SDM630 platforms. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index dc8bc63bdc70..4536fa45869a 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -2412,6 +2412,33 @@ intc: interrupt-controller@17a00000 { redistributor-stride = <0x0 0x20000>; interrupts = ; }; + + wifi: wifi@18800000 { + compatible = "qcom,wcn3990-wifi"; + reg = <0x18800000 0x800000>; + reg-names = "membase"; + memory-region = <&wlan_msa_mem>; + clocks = <&rpmcc RPM_SMD_RF_CLK1_PIN>; + clock-names = "cxo_ref_clk_pin"; + interrupts = + , + , + , + , + , + , + , + , + , + , + , + ; + iommus = <&anoc2_smmu 0x1a00>, + <&anoc2_smmu 0x1a01>; + qcom,snoc-host-cap-8bit-quirk; + qcom,no-msa-ready-indicator; + status = "disabled"; + }; }; sound: sound { From patchwork Sat Sep 7 18:48:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795275 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 36809EB64CF for ; Sat, 7 Sep 2024 18:56:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wa6fMV9tZ2Snsz6tr/dYASfgwbJ2HTPtEyRdc5RFNjI=; b=PdMVnI261NaFRY7RV9xqUMEAgU uKU4j5arD+coUi0wz0znsxYNqxIiOnd0lRCAqaoUBdjJehcjkF4tSifhG+IOuqZ/1R9IBMo1YG+Jy QJRMPm3Fxzj445bLvV7IZaYAfX/K1ihLMHixHB9fVHIlCEvcWrrJ7ikEoI+XXf6StAZ0We7eZWJ/Z qkHwZVdnMQhoqZwUN92RS5gqlgN1jTS3x2xVawD6TSERb81nZ6x36xnFMe8DPGLy/tgHQJJ6LpWjp f+L+tXeFJyKHXRdpadJ0z0GGlLzaLagQyC40xv/jhEaC31hXq8Jz3y2j3hsY4GFsv2paAeL1CrlGu /gvEbhgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0bd-0000000FUux-2OVM; Sat, 07 Sep 2024 18:56:21 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Ty-0000000FTbx-1OIp for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 18:48:27 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2f762de00e5so243631fa.3 for ; Sat, 07 Sep 2024 11:48:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734905; x=1726339705; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wa6fMV9tZ2Snsz6tr/dYASfgwbJ2HTPtEyRdc5RFNjI=; b=aYgPMDOLiQJL0k0KczR7f83eUMOxWlrc0vYsN0Yh+mAeJYZMWXF5I2zjhzZI8gIIxt 6YCgS+BQ+lKl4y2ChxMFLkTlKew+Xq/w9FVEk0cpLnF6z3NfcUKtWp40Vcf5lJObR13z SQHeJjCBZcu+MUfb+6kD1nj4uxD4m2fR6Fstjd2CQvnbD4p5otEBClB8FMaXiX+g8HLc d+1+71yfnnJQ0nU0ho4l/429e74J3aWTfDDFTQ/aAYUurXHxWljwWkvAAfd9P+ZgrjjA c+N82SaDLdW6SCJXj+78FYky2lCN0e+9chSmOx0VkQXGe4ECm3VIiQ4nag+6yQzmXwLQ 9IVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734905; x=1726339705; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wa6fMV9tZ2Snsz6tr/dYASfgwbJ2HTPtEyRdc5RFNjI=; b=gGVwZfHIKIfVZ6VqQb+eQPlkL+lNEboWmsAedxqbpmBpzRL/UcdaD4rvDqSXY/YGEW mb2oCdTOv2qeTyGFcDgdT6pv2aHMCyz7dZoVrwyOoK9cG4cVu2/vxYriQUBu5CG+BEYu UswwJ81MccXIfXzIh2Sl92+lpj+gFFLTQeHczel+uqzwwWtNba4HZ3YSm4H/2zZYK/6y OcGmuVCajyrkZ+1M80KltNCcKIagLQas3eyUL3ognvGCHguZhOureS+TaGr9geHUHSvx ++ZbqJQlEuYVVat+IHWjMvkO0enW+c7j8p/VULiwdcVP/yND9oGVMYkc43R1bW4noac2 LRcg== X-Forwarded-Encrypted: i=1; AJvYcCXQGHlBco7KpB482yqb+y1qP+Oh7pAg/hyAtckYwnSvVcCZN997tdhzpwGS4tc0ehHPxB3xlNPI7UL3mpeMePB3@lists.infradead.org X-Gm-Message-State: AOJu0Yx2KQQAZL8RFjR6sT/4F0RqKTn1QERHIcOi5lfqKH4sNfC0ww7p uhABABvXdOrjFlVQPQI8RhottdDfnaq4jT6m09ltIaQiJCjUanaG5t/n3k0B4rY= X-Google-Smtp-Source: AGHT+IHSIoknUKa0V2bIajtq0UbQnlrrMTwcNCvk0Cm0DK+8zJifYj/tq+SFZ349vHrP4HPAC7liRw== X-Received: by 2002:a2e:bc13:0:b0:2f7:5c58:cc7c with SMTP id 38308e7fff4ca-2f75c58cd06mr15833141fa.44.1725734904516; Sat, 07 Sep 2024 11:48:24 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:24 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 07 Sep 2024 21:48:18 +0300 Subject: [PATCH 7/7] arm64: dts: qcom: sda660-ifc6560: enable mDSP and WiFi devices MIME-Version: 1.0 Message-Id: <20240907-sdm660-wifi-v1-7-e316055142f8@linaro.org> References: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> In-Reply-To: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, ath11k@lists.infradead.org, Kalle Valo X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2512; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=XTnySTBdd5sawEDE4jiRSfy1oa5Ctl+YWAAqUv4joIg=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/yWVPTASuqwGf6KgTFf9lHvriPxuej/lwbV aZEbLvM9JWJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf8gAKCRCLPIo+Aiko 1ZEqB/4/aeZwm+BdnM4GZPBXDOBNORRCXxR7ErRiln3e5RdBCf4xXCE6iQvmGFXEXS/LrebtK/X FNMW65S93BZFnkwxHn6UQ+EHAFGW27njCs/KvrkXnGPtjv50v4+JiV2Kp1cUWTb3w21MJAnJSU5 5TP4gUddxWWFBAqPeK0Khdh4ojgcQcxkbJZg49A+fkAl1eQ2+Muneg+woHbjtFa51jJYnvX0SWE /Xu+uP5bMQ3+J+0Y+lS2f+HdM6ZAKIvLcVs4cEzVqh4+fljZ6NUrrfM4P/TAlLZ3Q6M0gheBeJV 4PQ81KBAp7c2Opqwvn3clTZnknpVaurmdvLR2aBlgRtUjDU5 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240907_114826_412606_C735ABFF X-CRM114-Status: GOOD ( 10.51 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the onboard WiFi device present on the Inforce IFC6560 SBC. Pretty much like MSM8998 this device also doesn't generate the MSA_READY_IND indication. For the reference: ath10k_snoc 18800000.wifi: qmi chip_id 0x30214 chip_family 0x4001 board_id 0xff soc_id 0x40050000 ath10k_snoc 18800000.wifi: qmi fw_version 0x101d01da fw_build_timestamp 2018-07-26 21:42 fw_build_id QC_IMAGE_VERSION_STRING=WLAN.HL.1.0.1.c2-00474-QCAHLSWMTPLZ-1 ath10k_snoc 18800000.wifi: qmi not waiting for msa_ready indicator ath10k_snoc 18800000.wifi: wcn3990 hw1.0 target 0x00000008 chip_id 0x00000000 sub 0000:0000 ath10k_snoc 18800000.wifi: kconfig debug 1 debugfs 0 tracing 0 dfs 0 testmode 0 ath10k_snoc 18800000.wifi: firmware ver api 5 features wowlan,mgmt-tx-by-reference,non-bmi crc32 b3d4b790 ath10k_snoc 18800000.wifi: htt-ver 3.54 wmi-op 4 htt-op 3 cal file max-sta 32 raw 0 hwcrypto 1 ath10k_snoc 18800000.wifi: invalid MAC address; choosing random Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- Cc: ath11k@lists.infradead.org Cc: Kalle Valo --- .../arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts index 09bc010ce56a..7948c8f6ab64 100644 --- a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts +++ b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts @@ -252,6 +252,11 @@ &qusb2phy1 { vdda-phy-dpdm-supply = <&vreg_l7b_3p125>; }; +&remoteproc_mss { + firmware-name = "qcom/sda660/mba.mbn", "qcom/sda660/modem.mbn"; + status = "okay"; +}; + &rpm_requests { regulators-0 { compatible = "qcom,rpm-pm660-regulators"; @@ -291,6 +296,11 @@ vreg_l1a_1p225: l1 { regulator-allow-set-load; }; + vreg_l5a_0p8: l5 { + regulator-min-microvolt = <848000>; + regulator-max-microvolt = <848000>; + }; + vreg_l6a_1p3: l6 { regulator-min-microvolt = <1304000>; regulator-max-microvolt = <1368000>; @@ -489,3 +499,15 @@ &usb3_qmpphy { vdda-pll-supply = <&vreg_l10a_1p8>; status = "okay"; }; + +&wifi { + status = "okay"; + + vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; + vdd-1.8-xo-supply = <&vreg_l9a_1p8>; + vdd-1.3-rfa-supply = <&vreg_l6a_1p3>; + vdd-3.3-ch0-supply = <&vreg_l19a_3p3>; + vdd-3.3-ch1-supply = <&vreg_l8b_3p3>; + + qcom,ath10k-calibration-variant = "Inforce_IFC6560"; +};