From patchwork Sat Aug 26 22:19:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717240 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 51138C83F1A for ; Sat, 26 Aug 2023 22:20:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbjHZWTu (ORCPT ); Sat, 26 Aug 2023 18:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbjHZWTX (ORCPT ); Sat, 26 Aug 2023 18:19:23 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BCAC1B3 for ; Sat, 26 Aug 2023 15:19:19 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-500a398cda5so3272916e87.0 for ; Sat, 26 Aug 2023 15:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693088357; x=1693693157; 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=1DdLoqClMFF2EEiXQ3TopWzMqOLDE24CSNMXs6aJ1gg=; b=KQJuMhQupobA0GHfkpoynRWhNMff1NrR4pKarYAlXOR0Vlh0nPcJwFdoFfksBQELzd Bs4nk1CfiuHOmSkJ0AlRIh+izGCSuKtwO67YrTjUiClSJtFJMTVpl40EV3uXhSPjknNY b+Jm5IKq9uIdB1ouDtURnQvPj4tRbv3C7wJMuQ7K9jHyrxzWM6RCXjP9/oKqlK8i1AbH SZUxgQWAWJldqoOXFi3uPBerFxfgcoT6ePzKM0sgXMoTeTI2xTKuoQQKAcDbbEpbRxH+ bzAf47U3RCgj99sSw2YY3OQkr/qoMeB7zKFVgWdPngCDuo233g0+gAeDtYcNlaVMuIr+ U5LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693088357; x=1693693157; 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=1DdLoqClMFF2EEiXQ3TopWzMqOLDE24CSNMXs6aJ1gg=; b=kP28KeXNVqtf9SFj/4aqJ7zUz+B9+RRpIwix/BhTjmen6RgwmaiSOx15Jc5JaQC54h 5eDTqQIc0DOVM2ndTO3Zfgsv3FzOZPa+oX65a7tJj8zrKnvPXgG0naQSx4fDfXdenPP1 eA+WUW0VACtBqFVuPfLlkaOOgSHbpOVVty9QrA2vqkplfqJjnf4EPhl/9VsWyfdjnJK2 tncFOa+jxlopVWse9fVeirSEp8nLTMIENkLkBzgaiaF+kjEJY0xC9wOTPav87fVlmhFH Ca3ka+IKz7QqPjoXqhe1jA3qqlumhtsNerXEbUTrcHGz6YGgnS7ISZX2WOOm8BU4SR5a JIBg== X-Gm-Message-State: AOJu0YyzjNpxWPgwxJdjipg5Qpc1sEAjpI6+r8ap5/m27ECcp2JozaBX 7n4ajtAsz427X0tUmIK3a8Z7gw== X-Google-Smtp-Source: AGHT+IG4DF1LS4Yml9Jr4/8o1x85a86xLAB7QWU7Jlw2IaJ5CuVwYsZDjdK7vHpdeDAqtCzVTdD0+w== X-Received: by 2002:a05:6512:329c:b0:500:9de4:5968 with SMTP id p28-20020a056512329c00b005009de45968mr6435348lfe.59.1693088357378; Sat, 26 Aug 2023 15:19:17 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f25-20020a19ae19000000b004fbad341442sm868672lfc.97.2023.08.26.15.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Aug 2023 15:19:17 -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 v2 1/5] arm64: dts: qcom: sdm845-mtp: fix WiFi configuration Date: Sun, 27 Aug 2023 01:19:11 +0300 Message-Id: <20230826221915.846937-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230826221915.846937-1-dmitry.baryshkov@linaro.org> References: <20230826221915.846937-1-dmitry.baryshkov@linaro.org> 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 Sat Aug 26 22:19:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717239 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 72EA6C83F1C for ; Sat, 26 Aug 2023 22:20:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjHZWTu (ORCPT ); Sat, 26 Aug 2023 18:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229924AbjHZWTX (ORCPT ); Sat, 26 Aug 2023 18:19:23 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C4241B4 for ; Sat, 26 Aug 2023 15:19:20 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4ffa248263cso3298099e87.2 for ; Sat, 26 Aug 2023 15:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693088358; x=1693693158; 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=u04fNM9jM1a8dvFbZeQ1OtE1KJdVDz7ybA7tB9Mdkq0=; b=R14CAKFhTzIwL5BfoMncUWG6dpAc/WJylbDyT+jNdNu+LSYVJ9A/Kqkf1yS+iu5UZ/ Dnlib1f/ipg+v9gL4VzUfwXJEfVg2t9f6liGRsqNFWRcgeachGA7oNzaTYgiNiMo4a6+ wuiDBZXCSDW/sVhgw70aJ1Vf9AKmCJYOTEMCEVdsthSsqJC355siQkxdaeLfdgoESQvd CYxOcSy27fpC1MO2I9sL21o/CUfh59Wm3c3gjorVGeG/I7/p5jz4GUndAp8pk/4ykoxC InR/DiuZKcV+9NiR/b3+fy3HP3mKqDpdScD9bAnBq1bSvoCddTdgymzivohEDpJCBRah FNpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693088358; x=1693693158; 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=u04fNM9jM1a8dvFbZeQ1OtE1KJdVDz7ybA7tB9Mdkq0=; b=dGrlbudswqdAHKcSZe8e/pCEwtHQbw0F1FafOGU7LuLBAyaQfwopophyMPiwbXRvxR Z+2L94HNsHpwvtBpDc6rxdrZTZGu7gop/Wn+1ANeM/8n4bKzlgR6vIVzsCnHv/9U6Iu5 kRAH7u0pPoez77Cxi8QTskP62ox24iLXgrm909SmGg45m/7M3REPqcVEU69IBCADn86Z tpPtbkvXl4nJP7kPkskeFMB0Kby2bZnAl43yfq8kLkZQ3GvUcxScoLCGrom8e1fk+hEM svKMuxknS61lxAZUOutEBqYydIeBj1YtRDy0HmGY2y8D6HqM8Er3Qb9+Ylws+3JUpCkU 8wlg== X-Gm-Message-State: AOJu0YwgwhAUa466Oyto+BkuV5O95iMXgTiET8YyKy7HinuaofjGaA8X i9ZfKBEgCtwPPvlZBZkSarT+rA== X-Google-Smtp-Source: AGHT+IEQhftTnnRV2xZh0DD7CGx84DmRdNjMrYVZIXtSYkz9hAO672jH9cjrdLz9tY/3syRag9qdtA== X-Received: by 2002:a05:6512:689:b0:4fd:d64f:c0a6 with SMTP id t9-20020a056512068900b004fdd64fc0a6mr18710701lfe.48.1693088358299; Sat, 26 Aug 2023 15:19:18 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f25-20020a19ae19000000b004fbad341442sm868672lfc.97.2023.08.26.15.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Aug 2023 15:19:17 -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, Kalle Valo Subject: [PATCH v2 2/5] arm64: dts: qcom: sdm845-mtp: specify wifi variant Date: Sun, 27 Aug 2023 01:19:12 +0300 Message-Id: <20230826221915.846937-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230826221915.846937-1-dmitry.baryshkov@linaro.org> References: <20230826221915.846937-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 Cc: Kalle Valo 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 Sat Aug 26 22:19:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717864 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 76C93C83F01 for ; Sat, 26 Aug 2023 22:20:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229887AbjHZWTu (ORCPT ); Sat, 26 Aug 2023 18:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbjHZWTX (ORCPT ); Sat, 26 Aug 2023 18:19:23 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FFF31A5 for ; Sat, 26 Aug 2023 15:19:21 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5007abb15e9so3141244e87.0 for ; Sat, 26 Aug 2023 15:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693088359; x=1693693159; 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=/OtqmKWQOCsVeVVMPiWgKWfAaJASJVDjkKkH4pptEQ8=; b=Jcu3Y4qRQxebu8OdHAFIpb5dG/MQ+7EFHVf6o1F7CdKxvGug+5LOqF7xHKcvNbdlwk DuGEKTepeGihl3mUhgFrpbesocqjn6nlC3VhaRd3STU2Hhh55t2E+GAHyXLpB5QDqhGp HTpyFjxkcFSHr2qu7TUFPcyWQtMXT1sNIpCm0CDG3Oa8+x7OMG+hYIOlQi0KkKuM0K+l 7ad0kEQYZxKLjecxeC2wSJrrhTAvwELlgITnBGcENWIf8mYY4OhknkAB3WK/ekTAer4X qR4cNZ5rPQRp1GFGgnBGl0jCvwg7knehsWOpS4lO7FL6I2txQ6ZqNIzHG75gTgZbqPfx IMCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693088359; x=1693693159; 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=/OtqmKWQOCsVeVVMPiWgKWfAaJASJVDjkKkH4pptEQ8=; b=C5HSjonx6ybSIU1jsnB+NFQ/AzFBtSP0XwTkf7kNl0YRyIeKzA+lsPnpZGSNJxQG9z QaQ8UsN6WBdmW+y2/Fc8WyYwwvpY9cbjE3WeoQ8qrn/z5QYx2MDYx33BgqnPOV9FbahJ trp5iSpto9Z3uTLkzF8BZEdMm7TmP4F/7z+VvSoLxb9Y/pOTNNo/6rY2EQy4waxPP+Kk JlmvH5egRTq5SRUkKoSKQsUnFhsgcYU+A368YTxdwazS7e8pRhPWFZycVfOVZ3PrLlOI 1zKTwtUFhWf7xmJAmgF0mC3xVk2Agbrgt01/IBZzKqvE0XGKGbR7Bhbyfz2v8VbRPbLj PpqQ== X-Gm-Message-State: AOJu0YzMQhzm4uoA47kyrAhAyxLtahsvuIhhfd9wDXsUVkbftp7n4gDv 0i15+x9MbCDNdqnp1zzUGlpM9A== X-Google-Smtp-Source: AGHT+IH1INk89dWmeSFa8nDQgKfWGxkMznz+aI9MXe9NRiB119RYsVMOQzQf+e7s71BxNhU8SU+9iw== X-Received: by 2002:a05:6512:a8f:b0:4ff:839b:534f with SMTP id m15-20020a0565120a8f00b004ff839b534fmr19207030lfu.33.1693088359107; Sat, 26 Aug 2023 15:19:19 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f25-20020a19ae19000000b004fbad341442sm868672lfc.97.2023.08.26.15.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Aug 2023 15:19:18 -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 v2 3/5] arm64: dts: qcom: sdm845-mtp: switch to mbn firmware Date: Sun, 27 Aug 2023 01:19:13 +0300 Message-Id: <20230826221915.846937-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230826221915.846937-1-dmitry.baryshkov@linaro.org> References: <20230826221915.846937-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. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- 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 Sat Aug 26 22:19:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717862 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 A41D6C83F1D for ; Sat, 26 Aug 2023 22:20:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229920AbjHZWTw (ORCPT ); Sat, 26 Aug 2023 18:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjHZWTY (ORCPT ); Sat, 26 Aug 2023 18:19:24 -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 7C9A91A6 for ; Sat, 26 Aug 2023 15:19:21 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4ff8f2630e3so3136820e87.1 for ; Sat, 26 Aug 2023 15:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693088360; x=1693693160; 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=zEwIPlTV6qxfqZM8MaZOGOzma6eROBWXempa4AAvEfs=; b=NjP6Xa24i9AQpuAqcMAyLd3Nm4F4xLuAzKeVvSDSG38h0LXpH9fTEQcUAi2J2E7VG5 qalFuZoUhHxtIJoH8p682056l2CY0dqAJYrNhtXMwRZKAAGg/HK6ZdPSS8cFUqEviUox hdHVHlAS0CA+ZXmg464/a/F1iB8uybGSt4RQa8tKwcKvafBfgaSOIuF0bk+CDp/Zam46 vQm7F8wVqtsP2GMre4a35DDToZTVnjil6hcFtg3sCZ2YYg9k1PxNZUg/3/JDF1dZZ9Q7 IhdunR94ZjC98/m6B7JBhT2e1NNPr7y2w6km/+i7fvzo+3bXhZ/rwsciub5cA33nfuyi xSPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693088360; x=1693693160; 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=zEwIPlTV6qxfqZM8MaZOGOzma6eROBWXempa4AAvEfs=; b=ICWRM5c07GcbO1vxfWyeYnxsKRQE3nuTvLdD/zfiPC3Jy435VgjArljNuTD2Bfz2S7 JBey5BUi8GB/pvvHZAi/vnkHQ5zPpFzY8iy4jD/w4PKr74Vu1aFRxLPaQBopg7I11RMd fkv5zmEhhRdOhTLw7VE2FM5ot+o2WID96JRiYqgQ1lbkbfip6r2mprvLHw8whLg7DfYB PawZ1uCAdYVt7ey+baWAp9xbfu3ey9Q4qbicz2ms6tD7KnG5LM+KDpYczZaCzGURY7C7 7E3yhLZcdY9aVyjqIOWvoO0dsjsBbzdcMpXm/j9WNLyxerT17GAevnuBruRwf7GFYRXL m+mw== X-Gm-Message-State: AOJu0YzE1VZje1W3aOYCz8OwDS5Rd0Qxyiove++D6nTHCzBj0mCIFou7 tbu7zkSwNl6HWi1F1FPd5G3hgw== X-Google-Smtp-Source: AGHT+IFuvMwwhMYay1wPzuauPRXC3/YFVxdMbTtBPLh7JHyGfOmwmfTWQVVVn0h5FWsZ8lBz5E3a2Q== X-Received: by 2002:ac2:5f8b:0:b0:4fb:8ff2:f2d7 with SMTP id r11-20020ac25f8b000000b004fb8ff2f2d7mr13394021lfe.45.1693088359837; Sat, 26 Aug 2023 15:19:19 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f25-20020a19ae19000000b004fbad341442sm868672lfc.97.2023.08.26.15.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Aug 2023 15:19:19 -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 v2 4/5] arm64: dts: qcom: sdm845-mtp: enable Vol-/reset button Date: Sun, 27 Aug 2023 01:19:14 +0300 Message-Id: <20230826221915.846937-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230826221915.846937-1-dmitry.baryshkov@linaro.org> References: <20230826221915.846937-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. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- 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 Sat Aug 26 22:19:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717238 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 C25ACC83F1F for ; Sat, 26 Aug 2023 22:20:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbjHZWTw (ORCPT ); Sat, 26 Aug 2023 18:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbjHZWTZ (ORCPT ); Sat, 26 Aug 2023 18:19:25 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F0581B3 for ; Sat, 26 Aug 2023 15:19:22 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fe27849e6aso3137122e87.1 for ; Sat, 26 Aug 2023 15:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693088360; x=1693693160; 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=7HfcW2sKs/zrz1JXyCkhYKWgvTXW8hsLwfoBt2SnqaA=; b=CG6f02NxvEHWWuCBh03fQjQ/iOuSaQD1oBApi/x6D2oRvDqt6dUjl0sqMGaajM0IJe 1aidb+telhttTzOQ/lDOfW2NMpMMpBkZtU5yZ2BCIgWqJFt8iRBQJLedo9wkcy13q8Kc E/1YOniyVf1T8ErDvgeFCIYQzVy4xZgt9lDSud5lYUEXqaKPXwdyYB5MRLpYGWAfQMBY TIcCNseV7+PBI75OXBz1ZWYei2ydlfFnDhSFeRfdeRxEDcHbZSevQZRdrWhSCvW0JQh1 /fpkLASTygeMsmPxbmpW9dChbS1TDiHiR6SX/H0lfxLK4NE88rdDCwbgoERk9O77By80 Ub+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693088360; x=1693693160; 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=7HfcW2sKs/zrz1JXyCkhYKWgvTXW8hsLwfoBt2SnqaA=; b=KSWpfbMeQ6pmJFyDHN8O97Algv0BLBNJhK+xXruZTw+DGK7A4w6JjyRx9LkAUe/uv9 YD+TL/H4TCeg+3VuiZfOi1Rvikd5mxde8vohGIH5uoR7kCgKNJXpHiB94b79/W2DxjGG oE5AAbiJgSdCczlROzmKUbTWDvrrk2rt/NyF37ayJSjX13MZkT19NHOQr7+FQMRvkv/9 FlTGcNr5N1P2K5qqJj0ghVY/Jd8WwIIhfcLS+1en69A/MTxADSm6vnc2Y4GP9S/Eadzy aot8kuEFLL58jtGOjao1y4zCpyppJ8bQJUemjCGUfjK9qwxbRmux+2gTIIzU7znhY9xV 7B8Q== X-Gm-Message-State: AOJu0YzAHN7DV/3j4KTlFISejZ7YBkfQAQcrhIrpLn8ziOXZhqX3Lq8/ FlLGEs1z/pa+fWRLY0X9qNp7hg== X-Google-Smtp-Source: AGHT+IG63JICgFMRbkTaMszSt6Xi3auTUa5JOgwfAlgsi5W2YmHHrBfVZqTyTCGtdYRJ/GYNTD4tBA== X-Received: by 2002:a05:6512:2347:b0:4ff:8f71:9713 with SMTP id p7-20020a056512234700b004ff8f719713mr18892741lfu.42.1693088360644; Sat, 26 Aug 2023 15:19:20 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f25-20020a19ae19000000b004fbad341442sm868672lfc.97.2023.08.26.15.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Aug 2023 15:19:20 -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 v2 5/5] arm64: dts: qcom: sdm845-mtp: enable PCIe support Date: Sun, 27 Aug 2023 01:19:15 +0300 Message-Id: <20230826221915.846937-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230826221915.846937-1-dmitry.baryshkov@linaro.org> References: <20230826221915.846937-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 | 78 +++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index aec3f358d426..76bfa786612c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -533,6 +533,38 @@ &mss_pil { firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn"; }; +&pcie0 { + perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&pcie0_default_state>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&pcie0_phy { + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l26a_1p2>; + + status = "okay"; +}; + +&pcie1 { + perst-gpios = <&tlmm 102 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie1_default_state>; + + status = "okay"; +}; + +&pcie1_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l26a_1p2>; +}; + &pm8998_adc { channel@4c { reg = ; @@ -630,6 +662,52 @@ &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>; + 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-pull-down; + }; + + wake-n-pins { + pins = "gpio104"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + &uart9 { status = "okay"; };