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: 716971 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 116B8EE49B4 for ; Fri, 25 Aug 2023 22:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbjHYWJL (ORCPT ); Fri, 25 Aug 2023 18:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229897AbjHYWJB (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 B88CD2120 for ; Fri, 25 Aug 2023 15:08:57 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bb97f2c99cso21013631fa.0 for ; Fri, 25 Aug 2023 15:08:57 -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=ZZebioRM6//vRcQOanjffnSPtwqrbIYiXfpm1RYNovKOWjO3eiQ2yR3L28vIerxknU RnmKrXckrDEtx4ps43gMC6a/UcV+59C2Mtt11tzp5O82noPZns6aTNy5z+fI1QEgeZKl FF8GVAT9mj9uEL0kzvM7LKB6KhKW3dhJGOX6dCJj5eVt8iW1QN17cXNCoDHFg/rnbp4j FnwxIfBkNWJymXosLOR1MqsLXlw9H/Isbev7Z2WzW+VFJ7Ff1szwWODQ8iioEwolrwYX Ok7dB+kOkhOhfGnr2GszPk7PGZbzrL31QNLdxd14HPvvRmzYjdYM+ccgbpzD1FSYjD+v 5O0g== X-Gm-Message-State: AOJu0YwbMSUAoURPVrSi3zs+rL6QUNI/picU3kvyfNgXSrgXB/iZvTXL aKBdGxfYLX2ES5glxFv2D4tpkA== 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: devicetree@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 Reviewed-by: Konrad Dybcio --- 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: 717257 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 E18D0EE49B3 for ; Fri, 25 Aug 2023 22:09:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbjHYWJM (ORCPT ); Fri, 25 Aug 2023 18:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbjHYWJB (ORCPT ); Fri, 25 Aug 2023 18:09:01 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7914D26B0 for ; Fri, 25 Aug 2023 15:08:58 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50078e52537so2098053e87.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=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=VsuKYkUdYAvp7J5xPUjVLKjAKeaTKrio6xRGXNyFeJ8U9hht7Wt4Ot/55R0H4ULy4t gebHKBQelHR3FApNDTzMJ+1Sh4g3vdbLJh7f8H6EEiSob0t0VMTuDZR/78eELKi7z666 hsFYVgdZfrYe6KQF/0baRu5v1O8TbMFN5IsYNdf8bNhSQmVeKjqDiEX8NDH5TEi6Uk8A o00U67YA02RM+shSJJXLxgqPUhvl9+CIUpJBFNv3VZWRfkI0ITo7U5EYTJfzHGgZ+Vgv NfMDEUDnL8AFZ0ddXN07TFj1kxzSjk8/a0fa/4cgmDLYwRIorimLllD0WkQ3ki66Sjwy FT4Q== X-Gm-Message-State: AOJu0YyqD61QG/rquP7NnlbNQlySN2jMNZrhZjjWaRzOv0dKMfAvifRy G/RAc5WS56+70i82SAJBkXNlCA== 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: devicetree@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: 717255 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 5498AEE49BA for ; Fri, 25 Aug 2023 22:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbjHYWJM (ORCPT ); Fri, 25 Aug 2023 18:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbjHYWJB (ORCPT ); Fri, 25 Aug 2023 18:09:01 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7997E26B8 for ; Fri, 25 Aug 2023 15:08:59 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4fe27849e6aso2087071e87.1 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=SGWp56YbehYbj+Q7Ydebai7qSAz45qGYwMU/Li6vHMUnj3PoVAJ80fij0+hZiNQZih y02+vAt8EGzgbD19WARYxfpXxt2JYS+JC4N9zazIZn3F2kpEoM5m3RFYQuVrAqW/d5wQ isnaS9ZZ4FSmFc8onlkzDAtGpPCWf15CyipiTmW/OTwA00n4IBm0nZ1l39TnUZmIkI1r qSQIkZFV3l1KhYR33rcKOk2NctlVS6xY/3/bVcWHRxSEWyt9YfA3QjrDQoR8M5AoE4xO sixgeSywKQrltRWpCLvykOYmlp1iFUrao4brT/CSjOIP20vwePNhF+WYnxNv02O0B1Cb RnjA== X-Gm-Message-State: AOJu0YyzAondkFlX1l6Mr46lOqAlXR9UZ6WmocWhOH7st+WKUNua7FHH xT+8NuAjWqcv+3+zWm/SnFZ1bg== 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: devicetree@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 --- 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: 716970 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 416E8EE49B8 for ; Fri, 25 Aug 2023 22:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbjHYWJN (ORCPT ); Fri, 25 Aug 2023 18:09:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjHYWJC (ORCPT ); Fri, 25 Aug 2023 18:09:02 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A3BD2120 for ; Fri, 25 Aug 2023 15:09:00 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2bcb54226e7so16916891fa.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=XXoRxJoO44ing3+lw19OMxpsDwZ1o+8fQoDGzi7Hs7DdmVENLj5IVY+MucVXG3hXlN d4+z5c4Msumq1GZbTC84bOST0VXtQlVST379U9dkR0bQp65YSsUO6LAxo+h2Zchl1DMw E9ZSBtuFqivQWGsccgZjnlAGMI0WwJPZjCpQvqdNF3Dc1p7LwIXhAO/QyKs6jFKPxiMX aaWlXn3gIUyi6O1DdONmTlALCk8s1M4auQALPjC0dFeWAwcKSVTFNLVDqGTUtp2KUWTi hHqh2ccfJB02bE2xFHi5H9kASLJe7kgLEl7kyqCaRPAAOlR7TxtCCRU4yvA0OVXA0cah Pvxw== X-Gm-Message-State: AOJu0YxGlIWaKkD+Hg3YBcjovBKRB1b7ePZWsbZmzz1mNm8gs/ZNla+l lqOZYWGQASgnVEbgBjQV0hgHmQ== 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: devicetree@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: 717256 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 660A1EE49B9 for ; Fri, 25 Aug 2023 22:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbjHYWJO (ORCPT ); Fri, 25 Aug 2023 18:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjHYWJD (ORCPT ); Fri, 25 Aug 2023 18:09:03 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE81126B1 for ; Fri, 25 Aug 2023 15:09:00 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2bcc187e0b5so20874511fa.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=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=aG24/hxJdjtKyXWGkUUHG12Ry3081Qxe/5fFWuaFOopFQrm8pAXRR3UpxO3QtklUat TgNiuMNGwFuPbH6WqlsWNoLaPDqcxg5ZumI42aNsU72o27QMcovQFAQJCVtryy7NJzrF jbIPFZ370eOPUbhAcBqZIMq/hexZzWHgVLuge6rEe1HxNmuIkGiwcSv6A/rJXZ6yCEZp wuxx+HcoJC6YLHq+FVfjGCGDYC26WiYuj5GBRgjIOLmLs9kmeT9/gD23C3R07F+xVSd0 83qXuJIXubosZS0EBASO3uqE3E1n54/vTIEhSXO0nzjsp2oeCdEE3b/IJ8kYBIE6Ca9g NddQ== X-Gm-Message-State: AOJu0Yy4zU1ppg115DRz2OMCX/0LIw6h2zmQAHLocT/3NjoO85IH1Wkx fK91S2fwZWgQUhJrafDpDohvzg== 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: devicetree@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"; };