From patchwork Fri Aug 25 22:08:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717870 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 CD144C7EE2C for ; Fri, 25 Aug 2023 22:09:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbjHYWJM (ORCPT ); Fri, 25 Aug 2023 18:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjHYWJB (ORCPT ); Fri, 25 Aug 2023 18:09:01 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 213C526AF for ; Fri, 25 Aug 2023 15:08:58 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2bcde83ce9fso20750341fa.1 for ; Fri, 25 Aug 2023 15:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693001336; x=1693606136; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1DdLoqClMFF2EEiXQ3TopWzMqOLDE24CSNMXs6aJ1gg=; b=GhWtmrb+CQEAIDZ1AArYhTM3vMZrU0b79W5B9D6vleeV7Fh13tkpXsdT2sgoJpCWk5 qE+8+Gt/9rdltki26K9cxMbk99zvXO6DITYJYjhaByjm+gErIlY0+FZNkuCDe92PW3es V1MadJ4zOU7qggCqYvYPbDPXLen77j0MteO/Be2j/Q1fWOGtaRgJknIe6fr0ypAXrCGU 4X2EMlGI25c0ppsxnm5NofXxZ5ycgUHsf+1qbSLhEpqL+09+Y4r3dILqCYOtbUx+Kd39 NmocFo4jvqBFWe6rzuGXP0mhaYTc02wavti/c36W15X1WgJ7yMvMZZSj6WPjR0OQugia pegA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693001336; x=1693606136; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1DdLoqClMFF2EEiXQ3TopWzMqOLDE24CSNMXs6aJ1gg=; b=cmTw/PDH2+hR3J69+4Eee197DDtbkPW5nHbwU5PZQ1BDT+gc6FVXWZacN3Q6Yk+rQw 9mO+xGKGg/h2fNs24aJu3ENXZ21bn0zyHiUfk1/rcugFpQF96J7Aa/ag5sGf0Pl7PXOL JDvv8Swj4KBmfQICQ675JwypdkLy3Ou0wHBXRYQAnEEDcO+/URE7q/GxlUkofB9iGArg uY/jhJ1lC8roRicsfvWMXnfhSaTdJwQUgvFrTf8jDnX1cqcuN6IBPpFvtl6HWMFHtpE+ xCxrLLM4DwW20hbvrwDzeaAz6VRSEAP2ZDncnZMArpki2q/x4kzXWXCD7D+R0BC4e+h5 +itg== X-Gm-Message-State: AOJu0Yxk3ZdPNYDAyvb53BRG5hulrWHopPEMHN1NKdomwBfsHbcJT6pK v/LdwVbWTyLaNAApcT5icZwhOA== X-Google-Smtp-Source: AGHT+IGmvBqafYKaP+PzahP0GFxKhZanJ3vdr71FlGSfFCcyYQujvvLIeCC8q3tG9jWZRIrMy79opQ== X-Received: by 2002:a2e:a201:0:b0:2bb:9894:c3dc with SMTP id h1-20020a2ea201000000b002bb9894c3dcmr13832514ljm.4.1693001335993; Fri, 25 Aug 2023 15:08:55 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u16-20020a2e8550000000b002b9af8422a8sm494951ljj.130.2023.08.25.15.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 15:08:55 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/5] arm64: dts: qcom: sdm845-mtp: fix WiFi configuration Date: Sat, 26 Aug 2023 01:08:50 +0300 Message-Id: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the host-cap-8bit quirk on this device. It is required for the WiFi to function properly. Fixes: 022bccb840b7 ("arm64: dts: sdm845: Add WCN3990 WLAN module device node") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index b3c27a524742..1516113391ed 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -716,6 +716,8 @@ &wifi { vdd-1.8-xo-supply = <&vreg_l7a_1p8>; vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; + + qcom,snoc-host-cap-8bit-quirk; }; /* PINCTRL - additions to nodes defined in sdm845.dtsi */ From patchwork Fri Aug 25 22:08:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717869 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 00454EE49B5 for ; Fri, 25 Aug 2023 22:09:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229593AbjHYWJL (ORCPT ); Fri, 25 Aug 2023 18:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbjHYWJB (ORCPT ); Fri, 25 Aug 2023 18:09:01 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A7C526B1 for ; Fri, 25 Aug 2023 15:08:58 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2bcb89b4767so20770961fa.3 for ; Fri, 25 Aug 2023 15:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693001337; x=1693606137; 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=MesVME7gmyu2rhBwiiVVwaYtOFftxl/qBTkyfI8nZ5k=; b=WmdLErzcDsMXyQs+uhCuCMmPaOV8xQE7mz/vNpbdv4Vdzm9214ze8F8RShby+/iWdr t4GSywmOKkgHjwE1qqdchm1XexDkcCHvPgAM3o+gZ6N8UNDBJCsiPI5rI9AqVYkf1veP UFqiRca/S6P+IqQXWzBciFHYXRi45I+4frn/DTSapjXQZ7z77+h8FjnC9B4Fl3dbriz0 mamH/w62Zvh1DaaoOf3oif4CXAhM7ZBYJLnnsj2eq3vEeQ8ZgU02mBCwDz6Np7Z5lfmY DsARFkej7QAhGN4E/RXaAR1oR1eyn2VjXOUJ6/HQh613c/pJ/3cb5TUI/W7SeSl1yaxT U0UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693001337; x=1693606137; 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=MesVME7gmyu2rhBwiiVVwaYtOFftxl/qBTkyfI8nZ5k=; b=fWjB5XVv7HuD3/Av/gniWDAMKRb+LsvxA2rqIJpoOKwxACwRV0cQtNqLwsUMM6LjL5 duMS/3YEPCBzVHgcDwGlEtWb37v/5f+wLgrA32IudPRF5yLajz+YyWzSfby63Lgf6gNo WOUmFvR+fIE9HkekNo9D9mGiEvy7PQBXVL5J2upFPKbipJ0IDvvHa8eOk8JSJUok+kS0 SJdyhxVHGsR/Cn7vRxUYsJwNK0n3Rrvcf85F4TW64NLVag2FMvPlqPr2AI3xlk0G+Ncg 27s0LIsZGeOtdXcwsyGHhKuPP/+MkYX4x7D13bJq1nVUCu/43EOLfcVodtNgXXcBckS4 QXsg== X-Gm-Message-State: AOJu0YzC6mg5n1Bsljj1P5q8v1T1Vg2Ni8B4AdY1+xnWZNpHutuWAsPm Dwvipct7cOk420yTZfUZjhagBmTVy4l3hS/H3og= X-Google-Smtp-Source: AGHT+IHRk9J6fZvhrTN2KQs7qQwOLc/v0f4o7r8nIk/OqhB6NKrVEg5dOOBtks7L3J6QrNVG0eRMoA== X-Received: by 2002:a2e:9919:0:b0:2bb:8d96:6041 with SMTP id v25-20020a2e9919000000b002bb8d966041mr15077745lji.45.1693001336875; Fri, 25 Aug 2023 15:08:56 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u16-20020a2e8550000000b002b9af8422a8sm494951ljj.130.2023.08.25.15.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 15:08:56 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/5] arm64: dts: qcom: sdm845-mtp: specify wifi variant Date: Sat, 26 Aug 2023 01:08:51 +0300 Message-Id: <20230825220854.1655162-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> References: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Specify the variant for the WiFi BDF file, "Qualcomm_sdm845mtp" to ease distinguishing from other (possible) devices using the same board id. For the reference: ath10k_snoc 18800000.wifi: qmi chip_id 0x30214 chip_family 0x4001 board_id 0x3f soc_id 0x40030001 ath10k_snoc 18800000.wifi: qmi fw_version 0x2009856b fw_build_timestamp 2018-07-19 12:28 fw_build_id QC_IMAGE_VERSION_STRING=WLAN.HL.2.0-01387-QCAHLSWMTPLZ-1 ath10k_snoc 18800000.wifi: failed to fetch board data for bus=snoc,qmi-board-id=3f,qmi-chip-id=30214,variant=Qualcomm_sdm845mtp from ath10k/WCN3990/hw1.0/board-2.bin 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.53 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 --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 1516113391ed..56f5bf52d9bd 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -718,6 +718,7 @@ &wifi { vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; qcom,snoc-host-cap-8bit-quirk; + qcom,ath10k-calibration-variant = "Qualcomm_sdm845mtp"; }; /* PINCTRL - additions to nodes defined in sdm845.dtsi */ From patchwork Fri Aug 25 22:08:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 716913 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 21BF3EE49B7 for ; Fri, 25 Aug 2023 22:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229785AbjHYWJM (ORCPT ); Fri, 25 Aug 2023 18:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbjHYWJB (ORCPT ); Fri, 25 Aug 2023 18:09:01 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7898926B2 for ; Fri, 25 Aug 2023 15:08:59 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b974031aeaso21394441fa.0 for ; Fri, 25 Aug 2023 15:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693001338; x=1693606138; 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=+nLuiyKPnTvwmGaqD45VK8kDibcFDjRREh20W1tVUkQ=; b=O5AFC+CrRznWPFk5vB3kehaVth/iGshyKIRvXun5q81yCPGeSio0L+0fgfdrL4p+QJ 9Jz+Gz9bQQWWlDkPiaV8x6qrsSMGSFHq1EfgPwK3McpWz/GFxZUTJD6u8Ysz3szSkiMJ KYOowhuvm5RYt5HQPO+6UggI2vPpn5OnmvkQhj7odKDvgxvOimTQ8BuvbCb46Nt/+knX LBe1NevB2jbeBZtNgPL8XSbgYrcv9iekjTvCFaiD5Oj83XTIPLZgM6uQrrpDnVHXGSNB 3LkhjnfGT4/4bQoS1Afme/4YWQ1xuq0PSZkQ6HjNtaWDKLeA54W0VZTMTob/MIQ0hWDy zumg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693001338; x=1693606138; 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=+nLuiyKPnTvwmGaqD45VK8kDibcFDjRREh20W1tVUkQ=; b=l2ZMa7ZpzDvk0hxA5WDjikeFkMNFGi7FP5TI8lIx9v+kAZL9kRROGew298ac2m2Ih/ cNrNs6UL5Jf9Ch4wL3viRJ5GhhWHIXzmPKrpvhlDXM71Fg8EbGwLybBjfuojmuAqQTVO 2cFscHjtwuiQe+r3N9/g1BmKy3MqbyD3ASnrC77Xr4Lk+dtUMNfCQtQrbdt4XA/lybM7 eHXTpNeLie1oOgtBOKwaIjV/54zlHfYIAvdjCX0VTOvEeQyovShDK8MF+8v4XsYKf4Oy xYhgOIQhwCwc4pCBTMj6oIWme9J6gx5al3L0X7uUc1V0zZoADXU6rm6d/g1ePK4lPJ/D OFdw== X-Gm-Message-State: AOJu0YzxDfQE+2LIzc8mFwdF9fbapWGsWGNffH9fuex2jc/8swGabCP9 DS6Xhyknw0o2xbRtLXjeYOV8tA== X-Google-Smtp-Source: AGHT+IENIfg40/rpxmoGXpit5rMC+IlHeiNxX7PqKbrFlq9FgKAQYc/rWpW/1nQkldT7fLQ5qfy6YQ== X-Received: by 2002:a2e:9804:0:b0:2b9:e1dd:5756 with SMTP id a4-20020a2e9804000000b002b9e1dd5756mr14256159ljj.45.1693001337746; Fri, 25 Aug 2023 15:08:57 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u16-20020a2e8550000000b002b9af8422a8sm494951ljj.130.2023.08.25.15.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 15:08:57 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: qcom: sdm845-mtp: switch to mbn firmware Date: Sat, 26 Aug 2023 01:08:52 +0300 Message-Id: <20230825220854.1655162-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> References: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org We have switched most of devices to use mbn (squashed) firmware files instead of spit mdt+bNN. Even this DT uses modem.mbn and a630_zap.mbn. Let's switch adsp and cdsp firmware files to use .mbn format too. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 56f5bf52d9bd..7579ba66c6d8 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -114,7 +114,7 @@ trip-point { &adsp_pas { status = "okay"; - firmware-name = "qcom/sdm845/adsp.mdt"; + firmware-name = "qcom/sdm845/adsp.mbn"; }; &apps_rsc { @@ -415,7 +415,7 @@ vreg_s3c_0p6: smps3 { &cdsp_pas { status = "okay"; - firmware-name = "qcom/sdm845/cdsp.mdt"; + firmware-name = "qcom/sdm845/cdsp.mbn"; }; &gcc { From patchwork Fri Aug 25 22:08:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 716912 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 31BC0EE49B6 for ; Fri, 25 Aug 2023 22:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229822AbjHYWJM (ORCPT ); Fri, 25 Aug 2023 18:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbjHYWJC (ORCPT ); Fri, 25 Aug 2023 18:09:02 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A43F26AF for ; Fri, 25 Aug 2023 15:09:00 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bcda0aaf47so27987961fa.1 for ; Fri, 25 Aug 2023 15:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693001338; x=1693606138; 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=LHrt6EyKwHhWexHAYiM7UY5P8HCNxqki1yO0ectc4Lc=; b=SlJel8eCuGtcrj7bgRwYZG2H9dFxspPI5JCdU+GYztVzVMt+o4YUCR9SozPl3duey5 yKqAvmPWhGokOe7VA/Fx5H3BWqHs4icCyJvYFudR+X2RjzlqHhReV1c/KPHenV6muMY3 0hHTtjqdCMn+Afz1PUM1PEp02snImwxnjlF7/Gjb9ECx8qP2+MZ5BO5HqEuv+TqxA2HW j4ElX0OCJl6GpJtk+TE49u2aU77k0z5uhxVK9D5rOhR61AnEeSI/fM8qqv2DKRbt6Xel 3xwEztQpMsN4P/5oXCGRH+pKLNNUBWUuHCjpr9wL6UOsauavGSC95rJwHe8UgXskwXem FTNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693001338; x=1693606138; 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=LHrt6EyKwHhWexHAYiM7UY5P8HCNxqki1yO0ectc4Lc=; b=Vv0lRquzWaI6vXejLI+wRZRAqOkL5H1J9P47FA9Jr2gSZFoKpSkoJJp3xukbBeUhZn /Pc1R5EBCOAsIVRBDTiu/cnXIFBDvAjvvl3dgsRKzSIUqRNAw6XBEC61JcAVHdEHeUQ0 ORKosy0WV1xEWQQ3mW7JrVqZ5HBZh/EnINQzs/mlEfFShjcJBE4frhzxVrEK/Sjp+gvn QMdHwNYnjnTw5Za0uMrj2z0icGzQi26lbBytyy3f7d676P81O0oGsmDP5N7yUOW1sgVD VdnUXGRL9D067qFGNSX5fgNjreQFhh+LBVfJQTa8cd+Iazsx8OM9YEwBjCS56KY/WPLW RLVw== X-Gm-Message-State: AOJu0YzIH1CL6GAtCPPhuhLg12oDxD8iYlzcQobu/wiUTKngYwhRlqm3 UUh5wUcoimdx59QIms6kf8UyLQ== X-Google-Smtp-Source: AGHT+IEPheZn/X4jScpF8eIiY/uiL2vkMyUkKghkIB/PCl8WvjbVfHap2L91CzSurrL4LxkqVLi9Wg== X-Received: by 2002:a2e:9c83:0:b0:2bc:db47:9ae7 with SMTP id x3-20020a2e9c83000000b002bcdb479ae7mr3312893lji.20.1693001338501; Fri, 25 Aug 2023 15:08:58 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u16-20020a2e8550000000b002b9af8422a8sm494951ljj.130.2023.08.25.15.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 15:08:58 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/5] arm64: dts: qcom: sdm845-mtp: enable Vol-/reset button Date: Sat, 26 Aug 2023 01:08:53 +0300 Message-Id: <20230825220854.1655162-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> References: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Wire up the Vol- / reset button on Qualcomm SDM845 MTP board. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 7579ba66c6d8..aec3f358d426 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -609,6 +609,11 @@ quiet-thermistor@4 { }; }; +&pm8998_resin { + linux,code = ; + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; From patchwork Fri Aug 25 22:08:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717868 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 76F4AEE49BC for ; Fri, 25 Aug 2023 22:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229897AbjHYWJO (ORCPT ); Fri, 25 Aug 2023 18:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbjHYWJD (ORCPT ); Fri, 25 Aug 2023 18:09:03 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED61B26B0 for ; Fri, 25 Aug 2023 15:09:00 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2bb9a063f26so20710561fa.2 for ; Fri, 25 Aug 2023 15:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693001339; x=1693606139; 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=Iph0Yx4fWv/y2FEQbDGd9UzSv78Vg6iuUmzH3nYULq0=; b=PhXS8tVA8W4TIHXcGVAMjhPlKxfjY8PP9bGSssfrmI2AVXS+p5KTXTHslyMtS8XVgX YT+2kBLRyYCtykxfmZnk2EkMIWrf0yQAJEfcZ2bIk7xiToy6cTXA4XvvqfahCz1kuRyD UhwfGTUo1XRTgRv+n72o5dCg5DHv3w1fkzsDyXx7jjBIpHVK9YkrU9gS+9Fa1exBXLMa 6aAwMEYFuo3IpfAM2/4TeyU9asIrwIJxePiV2P2NLa79yD+0Wcs8JVdJkbF7SZ1jUkJc ZvtZ4hYCJet9/3FvmH8KaR1/I9IGWv4Z4BfK9c2b/0WHT9yeb0IDTfj5eZi1zODQdlWG nRgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693001339; x=1693606139; 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=Iph0Yx4fWv/y2FEQbDGd9UzSv78Vg6iuUmzH3nYULq0=; b=gBIZZ29DyDLeq7ifJzWZnbsdcvyR+eU9EcALbSv0Nv4jqXYP2C/0xQG0+ybD229lKo nX/yC4EaMzn9cQHqKaay6914JLsRKCJ/rfxmgGNOFT1lZm5NsNpEuEX/VAS5FB44CAQX G1JV66H9GDFtpzX9+RkMtII0N8JQTHDdaHyzVM+kbZRVK96MMjZMMfCd0aWsyCxgamUj JC1Ayju9IxqnhNETH8PfNkdT+lWVtpdYI+bPf8XJg94wUdM8CLGiRV9/l+bCQZTA0QhT mDpepOxa9EapBCT9kWSx5V7UaV8v5Ymku1EIHfoJU10JhXnWE5Km9eDlOe3nQthOGjyN 4ZXQ== X-Gm-Message-State: AOJu0YxNgpUZiTpMB7w2rYsdShSZGw3DkABFcUi3s4nBsvKhhh9ILZMo P/Q27/pXa0kV7z2PP+MCTbPdDQ== X-Google-Smtp-Source: AGHT+IE2L139faDsvKPnFyw0/c/hgzObHDgDrqOTwAG2m8l3VQnK/IoWTwFLaQXXNn0RKvoSo5aJUw== X-Received: by 2002:a2e:9084:0:b0:2b9:f007:9910 with SMTP id l4-20020a2e9084000000b002b9f0079910mr14416022ljg.53.1693001339294; Fri, 25 Aug 2023 15:08:59 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u16-20020a2e8550000000b002b9af8422a8sm494951ljj.130.2023.08.25.15.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 15:08:58 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 5/5] arm64: dts: qcom: sdm845-mtp: enable PCIe support Date: Sat, 26 Aug 2023 01:08:54 +0300 Message-Id: <20230825220854.1655162-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> References: <20230825220854.1655162-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable two PCIe hosts support on Qualcomm SDM845 MTP board. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 81 +++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index aec3f358d426..9fb41d2453c8 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -533,6 +533,36 @@ &mss_pil { firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn"; }; +&pcie0 { + status = "okay"; + perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_default_state>; +}; + +&pcie0_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l26a_1p2>; +}; + +&pcie1 { + status = "okay"; + perst-gpios = <&tlmm 102 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie1_default_state>; +}; + +&pcie1_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l26a_1p2>; +}; + &pm8998_adc { channel@4c { reg = ; @@ -630,6 +660,57 @@ &sdhc_2 { cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; }; +&tlmm { + pcie0_default_state: pcie0-default-state { + clkreq-pins { + pins = "gpio36"; + function = "pci_e0"; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio35"; + function = "gpio"; + + drive-strength = <2>; + output-low; + bias-pull-down; + }; + + wake-n-pins { + pins = "gpio37"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-up; + }; + }; + + pcie1_default_state: pcie1-default-state { + clkreq-pins { + pins = "gpio103"; + function = "pci_e1"; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio102"; + function = "gpio"; + + drive-strength = <16>; + bias-disable; + }; + + wake-n-pins { + pins = "gpio104"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + &uart9 { status = "okay"; };