From patchwork Wed Sep 6 09:24:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13375422 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 9A521EB8FB5 for ; Wed, 6 Sep 2023 09:25:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236614AbjIFJZF (ORCPT ); Wed, 6 Sep 2023 05:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236558AbjIFJZE (ORCPT ); Wed, 6 Sep 2023 05:25:04 -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 B41241708 for ; Wed, 6 Sep 2023 02:25:00 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50091b91a83so5670227e87.3 for ; Wed, 06 Sep 2023 02:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693992299; x=1694597099; darn=vger.kernel.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=mJcgYLWSDIphTOxwJ5BuSUvMakeC7znWV3Q4BRoGpho=; b=xoJfiZ1EiHZbR6rajBlIdqllieDCqs6U2HKjg7X78UxB/uoFETGR/XxyI8Fm4++7be D3wQaved4IQ/i7ayWY1W0DvGc6iwnd5bF/348LU4UIJar+KrR6JrH8isRo0VkNhV4urD 0WPnXkfaN+ruLTTGli4Vbf0NRxKMf1MawShuyEpxCyyFjJCwedZdJSGgK3/0gPniT45Y V/CpBo75pgRKgg/EAH3X3OMvWG//iUfk5Pw62UqVeLs2Ggj3X5hMd6ORSVmWsbk+ktqA J3FxrmH9tecO36ompI+b7uDTkwhr2WkNL9Cz+sDHEOGJxmqOgNm8eRmgEpwNHiPumK9Y SZGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693992299; x=1694597099; 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=mJcgYLWSDIphTOxwJ5BuSUvMakeC7znWV3Q4BRoGpho=; b=gjWPVK51i/OpW5QbzD8tWIOjwEkTDii5sQthvrY/2tmNdmWujpDSO6FZ5whilCBX1R mpghs1+0WNmefJywvRz7C+IDWckDdlmtL0rI6/JkQDzYersbKUb30Ok1t4JRw/xW38S+ ccRLx+dRQ7irPjdHD3tjisRNyMxdpAyEzd+oJblgWS2PJmcAayaPAIvF/59vaasqrAdu HD5/GYcHDD063CNlnnU771jMfsowuoUrRZNMrxtgDNihP+q1VY/5s9gqkGN4yCkBDPvc M1vNCxPakK4lPfjbfvE7PwYiwTYyeJ5hiJrfi6EOOyP6YlakaxeTmtohRiTnmzU5CJ82 uFQg== X-Gm-Message-State: AOJu0YzMyMG5XexVf3QSdgpqiXi76/+Dj9Fc+ym2ss/p7O9fO5ba8wbR bU7C8UcXQ+coGNs89d6E1upQwA== X-Google-Smtp-Source: AGHT+IFoX1Npgkf71zsR7IeuQz0DY4JRSVdyTXwIXK9fXh2un6wtZWVpCXttWSH5uAxtqkfUyXrCRQ== X-Received: by 2002:a05:6512:707:b0:500:aaea:1494 with SMTP id b7-20020a056512070700b00500aaea1494mr1723138lfs.41.1693992298928; Wed, 06 Sep 2023 02:24:58 -0700 (PDT) Received: from [10.167.154.1] (178235177204.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.204]) by smtp.gmail.com with ESMTPSA id q10-20020aa7cc0a000000b005232c051605sm8096155edt.19.2023.09.06.02.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 02:24:58 -0700 (PDT) From: Konrad Dybcio Date: Wed, 06 Sep 2023 11:24:55 +0200 Subject: [PATCH 1/5] arm64: dts: qcom: qrb2210-rb1: Swap UART index MIME-Version: 1.0 Message-Id: <20230906-topic-rb1_features_sans_icc-v1-1-e92ce6fbde16@linaro.org> References: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> In-Reply-To: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693992295; l=1144; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Xif6UdomCGSQPtwk0BJ/phPNrNvcvHqx0EtrYHlqhc8=; b=5Y5Q2Y0NJTALIxnjTsqAMNygPREAqepvMJ381vGllcBARJwvjcE6w0G55UhV+enTYylQlHmyU Cmyv5jdpzLiD/AUZi5MY3FM/LluzXr7IBRzS1iUo2Qk/XNpFIg7kJSn X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Newer RB1 board revisions have a debug UART on QUP0. Sadly, it looks like even when ordering one in retail, customers receive prototype boards with "Enginering Sample" written on them. Use QUP4 for UART to make all known RB1 boards boot. Fixes: e18771961336 ("arm64: dts: qcom: Add initial QTI RB1 device tree") Signed-off-by: Konrad Dybcio Reported-by: Dmitry Baryshkov Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index eadba066972e..5cda5b761455 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -13,7 +13,7 @@ / { compatible = "qcom,qrb2210-rb1", "qcom,qrb2210", "qcom,qcm2290"; aliases { - serial0 = &uart0; + serial0 = &uart4; sdhc1 = &sdhc_1; sdhc2 = &sdhc_2; }; @@ -357,7 +357,7 @@ key_volp_n: key-volp-n-state { }; /* UART connected to the Micro-USB port via a FTDI chip */ -&uart0 { +&uart4 { compatible = "qcom,geni-debug-uart"; status = "okay"; }; From patchwork Wed Sep 6 09:24:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13375423 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 74150EB8FAD for ; Wed, 6 Sep 2023 09:25:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236656AbjIFJZH (ORCPT ); Wed, 6 Sep 2023 05:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236637AbjIFJZG (ORCPT ); Wed, 6 Sep 2023 05:25:06 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FEC11708 for ; Wed, 6 Sep 2023 02:25:02 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-501bd6f7d11so2749501e87.1 for ; Wed, 06 Sep 2023 02:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693992300; x=1694597100; darn=vger.kernel.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=0tTpQvf5esAbjLqRJbk/GJE3MAqg/M3E5kjL+FFGdtg=; b=bUSEFq+BcZ2qUqPIdixv9E76ji9Btbod/rLCxajolaplddyU6wnCkUNf7VG9c92vTe Qbq3LTzHIk8I8sodNR6vSQIMbBf7DPkwSycpyNeuGvy/r7Zzdv53NqyUwT5DNXFQJV62 IBR/WsX+FgeLAJikp0OcEj8Yk62k3B6JY+JvGO+BWrzxfZmFWShi5cgbzlOjUrhyZ4Dr kJoN/xaakJ4HfzJmntCRpD6t2uo4OGiJDqYV2DTpHmWCmfkSMOV3tsrHl7RBAmD8L9dW 7jeoWhNgPA58J50vJcbwOsvjjhzd0R33+oZ9CeTEO2ECwUOOPt9iZsj34NyY3KlgaIWr aVAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693992300; x=1694597100; 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=0tTpQvf5esAbjLqRJbk/GJE3MAqg/M3E5kjL+FFGdtg=; b=Q5YqbGCkpv3SNv4Wk/vZg5Z7BDS6K4cPt42gELgTkCka7/ncqhAKKaeGmyHVtNyZpZ J5xeZCblv+dSp2GuAGX/mH+dsWCfYJZ7pLOI6C/lsntMFtRCdctmwK1sXYw/rEhQ3Fc0 zuhpYSdC4NqrdXPs5AS2Ze+QU/B2jAI47buIyyaKenpbUpO7g7sFQkYSiDYYDaBbfd1a 0xI/3Z0AGICFGHh2ikyyhfsZhfy4LL1N+S6Q5MzgL51N4yJPO9NQhhF5SkCttOEqNa+w N5Dq2IGwZN2IzQ78snJJXLNi2kPxy0pbTquLeKFzoj/uUhJECjnIAL+2mwg4gQbAMBJr oFCw== X-Gm-Message-State: AOJu0YxAYnBdRjTk/1YPbmr+PQf1U5NWvqpMw5Wv7Blfwe+jm43ybSIc FXEv9wwRX6uf9WQOfcdMH/9bPw== X-Google-Smtp-Source: AGHT+IHTq09S7UVjLcS9Dvpl6hPbgtJKanFRtWmiqDWBfzu1dweqOXsuDIJ1oTvabzh9hlx4UP5/rQ== X-Received: by 2002:a05:6512:4020:b0:501:c3cd:652c with SMTP id br32-20020a056512402000b00501c3cd652cmr2431698lfb.31.1693992300487; Wed, 06 Sep 2023 02:25:00 -0700 (PDT) Received: from [10.167.154.1] (178235177204.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.204]) by smtp.gmail.com with ESMTPSA id q10-20020aa7cc0a000000b005232c051605sm8096155edt.19.2023.09.06.02.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 02:25:00 -0700 (PDT) From: Konrad Dybcio Date: Wed, 06 Sep 2023 11:24:56 +0200 Subject: [PATCH 2/5] arm64: dts: qcom: qrb2210-rb1: Fix regulators MIME-Version: 1.0 Message-Id: <20230906-topic-rb1_features_sans_icc-v1-2-e92ce6fbde16@linaro.org> References: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> In-Reply-To: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Vladimir Zapolskiy X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693992295; l=6762; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DqC8ZXzqnHdza8o/7w0SCcfZdCImiHqgYjjXlkoPTAg=; b=BtIBMDq5Tev94GgSuT3C/DuX/o6Oa9eTQ/larFIK8OgJs5GGdUuHdhuUC6wbnT3H62sjd4Wrg puqy+JSHgPFC+74wGLEc0TTt4QXJ9JTQcphcKeaoCRz1kFwb+EDXMFq X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Commit b4fe47d12f1f ("arm64: dts: qcom: qrb2210-rb1: Add regulators") introduced regulator settings that were never put in place, as all of the properties ended 'microvolts' instead of 'microvolt' (which dt schema did not check for back then). Fix the microvolts-microvolt typo and adjust voltage ranges where it's necessary to fit within the volt = base + n*step formula. Reported-by: Vladimir Zapolskiy Reported-by: Dmitry Baryshkov Fixes: b4fe47d12f1f ("arm64: dts: qcom: qrb2210-rb1: Add regulators") Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 86 ++++++++++++++++---------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index 5cda5b761455..0f7c59187896 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -150,15 +150,15 @@ regulators { pm2250_s3: s3 { /* 0.4V-1.6625V -> 1.3V (Power tree requirements) */ - regulator-min-microvolts = <1350000>; - regulator-max-microvolts = <1350000>; + regulator-min-microvolt = <1352000>; + regulator-max-microvolt = <1352000>; regulator-boot-on; }; pm2250_s4: s4 { /* 1.2V-2.35V -> 2.05V (Power tree requirements) */ - regulator-min-microvolts = <2072000>; - regulator-max-microvolts = <2072000>; + regulator-min-microvolt = <2072000>; + regulator-max-microvolt = <2072000>; regulator-boot-on; }; @@ -166,47 +166,47 @@ pm2250_s4: s4 { pm2250_l2: l2 { /* LPDDR4X VDD2 */ - regulator-min-microvolts = <1136000>; - regulator-max-microvolts = <1136000>; + regulator-min-microvolt = <1136000>; + regulator-max-microvolt = <1136000>; regulator-always-on; regulator-boot-on; }; pm2250_l3: l3 { /* LPDDR4X VDDQ */ - regulator-min-microvolts = <616000>; - regulator-max-microvolts = <616000>; + regulator-min-microvolt = <616000>; + regulator-max-microvolt = <616000>; regulator-always-on; regulator-boot-on; }; pm2250_l4: l4 { - /* max = 3.05V -> max = just below 3V (SDHCI2) */ - regulator-min-microvolts = <1648000>; - regulator-max-microvolts = <2992000>; + /* max = 3.05V -> max = 2.7 to disable 3V signaling (SDHCI2) */ + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2700000>; regulator-allow-set-load; }; pm2250_l5: l5 { /* CSI/DSI */ - regulator-min-microvolts = <1232000>; - regulator-max-microvolts = <1232000>; + regulator-min-microvolt = <1232000>; + regulator-max-microvolt = <1232000>; regulator-allow-set-load; regulator-boot-on; }; pm2250_l6: l6 { /* DRAM PLL */ - regulator-min-microvolts = <928000>; - regulator-max-microvolts = <928000>; + regulator-min-microvolt = <928000>; + regulator-max-microvolt = <928000>; regulator-always-on; regulator-boot-on; }; pm2250_l7: l7 { /* Wi-Fi CX/MX */ - regulator-min-microvolts = <664000>; - regulator-max-microvolts = <664000>; + regulator-min-microvolt = <664000>; + regulator-max-microvolt = <664000>; }; /* @@ -216,37 +216,37 @@ pm2250_l7: l7 { pm2250_l10: l10 { /* Wi-Fi RFA */ - regulator-min-microvolts = <1300000>; - regulator-max-microvolts = <1300000>; + regulator-min-microvolt = <1304000>; + regulator-max-microvolt = <1304000>; }; pm2250_l11: l11 { /* GPS RF1 */ - regulator-min-microvolts = <1000000>; - regulator-max-microvolts = <1000000>; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; regulator-boot-on; }; pm2250_l12: l12 { /* USB PHYs */ - regulator-min-microvolts = <928000>; - regulator-max-microvolts = <928000>; + regulator-min-microvolt = <928000>; + regulator-max-microvolt = <928000>; regulator-allow-set-load; regulator-boot-on; }; pm2250_l13: l13 { /* USB/QFPROM/PLLs */ - regulator-min-microvolts = <1800000>; - regulator-max-microvolts = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-allow-set-load; regulator-boot-on; }; pm2250_l14: l14 { /* SDHCI1 VQMMC */ - regulator-min-microvolts = <1800000>; - regulator-max-microvolts = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-allow-set-load; /* Broken hardware, never turn it off! */ regulator-always-on; @@ -254,8 +254,8 @@ pm2250_l14: l14 { pm2250_l15: l15 { /* WCD/DSI/BT VDDIO */ - regulator-min-microvolts = <1800000>; - regulator-max-microvolts = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-allow-set-load; regulator-always-on; regulator-boot-on; @@ -263,47 +263,47 @@ pm2250_l15: l15 { pm2250_l16: l16 { /* GPS RF2 */ - regulator-min-microvolts = <1800000>; - regulator-max-microvolts = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-boot-on; }; pm2250_l17: l17 { - regulator-min-microvolts = <3000000>; - regulator-max-microvolts = <3000000>; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; }; pm2250_l18: l18 { /* VDD_PXn */ - regulator-min-microvolts = <1800000>; - regulator-max-microvolts = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; }; pm2250_l19: l19 { /* VDD_PXn */ - regulator-min-microvolts = <1800000>; - regulator-max-microvolts = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; }; pm2250_l20: l20 { /* SDHCI1 VMMC */ - regulator-min-microvolts = <2856000>; - regulator-max-microvolts = <2856000>; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3600000>; regulator-allow-set-load; }; pm2250_l21: l21 { /* SDHCI2 VMMC */ - regulator-min-microvolts = <2960000>; - regulator-max-microvolts = <3300000>; + regulator-min-microvolt = <2960000>; + regulator-max-microvolt = <3300000>; regulator-allow-set-load; regulator-boot-on; }; pm2250_l22: l22 { /* Wi-Fi */ - regulator-min-microvolts = <3312000>; - regulator-max-microvolts = <3312000>; + regulator-min-microvolt = <3312000>; + regulator-max-microvolt = <3312000>; }; }; }; From patchwork Wed Sep 6 09:24:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13375424 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 CACE0EB8FB8 for ; Wed, 6 Sep 2023 09:25:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236594AbjIFJZI (ORCPT ); Wed, 6 Sep 2023 05:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236672AbjIFJZI (ORCPT ); Wed, 6 Sep 2023 05:25:08 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A098B1713 for ; Wed, 6 Sep 2023 02:25:03 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-52683b68c2fso4919084a12.0 for ; Wed, 06 Sep 2023 02:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693992302; x=1694597102; darn=vger.kernel.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=LnYwdqbWQjSGcMevmL2xfokfgyKteExecdSmCDZE+XU=; b=hTkz3JBDI5fAhQ2v35kPlvEPg31/qoX94NA0lgNFlYpB7ubSOtpeAdUPc4H5nphoA/ 9027Tnp3Id+MMiRtR7ySlwcpLUfZqRvzux0xkENPEW1nCWfC5dxxT4TD4MGFUOlTvFh4 DGTuAV5y4T3YKGNm/oIg3k5eU1+lUwR2e5jMELM58ibLLE/xHqIJp5oeEaSEblwJv0na jRgultlQk8YbC6n2EjDCm2BXXgsM2ZIQ+Bo5ow4OHlD+ZPm8kVskgIsDeXngVX9JnJIe Py7k98qYWubWs8YI+VAnznRGX45qc0GKyrgALnjds0Hc4d/6UmCnJIgVNQWyYJLwmyUj Zv9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693992302; x=1694597102; 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=LnYwdqbWQjSGcMevmL2xfokfgyKteExecdSmCDZE+XU=; b=SkZJMEUzrmtcPATCUKmO+0fXlkQmotPEOVrwOl6/M73MqqjfTk0/P6VEgsc45dKJHy 9KQ49pdSWXXB/3DkUUUk1dk4IoFTLVoVVrIp2MZk9ApEYyiCLyJXPp4xeIuNYKT7lkZI EPxzB9D8RwmSaHLuBMfG1CJR5fn90gPP/CIPimPnZzXfthPOHeb27KrqNZQKd02iD152 v1F7DmnAZ3PEYWboHEuTa+CS5R7vi64PunwXd6teWWhftnoLLjDBXCWIn2oh1XFwwkCp NeU5w9hkyM/MgtDPf+HJIehz1iUKo+FMfnsDYNp+SAlmUFgnqnrLklQoLf+NngNKtE9e Edew== X-Gm-Message-State: AOJu0YxJVkMRdtEC7590DT/TGD0iE5lVr7cFwwIbzQMq8EQ7M2IvR0jd m7A3FjCENTFtDb+rBdNv1VYnoQ== X-Google-Smtp-Source: AGHT+IEHJE3fGpzoBkTrJS7dRq9rbNAAXB5S+M8nvLb6myUfQXTwv3xVRVwXDoXA+ZA3DxjVdPm0wQ== X-Received: by 2002:aa7:df05:0:b0:523:b133:5c7e with SMTP id c5-20020aa7df05000000b00523b1335c7emr2176561edy.1.1693992302078; Wed, 06 Sep 2023 02:25:02 -0700 (PDT) Received: from [10.167.154.1] (178235177204.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.204]) by smtp.gmail.com with ESMTPSA id q10-20020aa7cc0a000000b005232c051605sm8096155edt.19.2023.09.06.02.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 02:25:01 -0700 (PDT) From: Konrad Dybcio Date: Wed, 06 Sep 2023 11:24:57 +0200 Subject: [PATCH 3/5] arm64: dts: qcom: qrb2210-rb1: Enable remote processors MIME-Version: 1.0 Message-Id: <20230906-topic-rb1_features_sans_icc-v1-3-e92ce6fbde16@linaro.org> References: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> In-Reply-To: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693992295; l=1269; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=GxxdKaABG/4dfsjIOXX0iFhor2LXgsg6bFK7ECFX658=; b=zAiOOe27ov+y+/1gzwTD137dN13wjRsAUY980ds26cVqOaYdE4I6j5PXUkf9im2mXXeUXFm0o BYBKMrQIAimB3U/u3pBlE3IeGMfEituj1qE56BOsSYytIyTTcIoW4T3 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the ADSP, MPSS and Wi-Fi. Tighten up the Wi-Fi regulators to make them compliant with that the chip expects. The Wi-Fi reports: qmi chip_id 0x120 chip_family 0x4007 board_id 0xff soc_id 0x40670000 Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index 0f7c59187896..5f7619518deb 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -134,6 +134,16 @@ &qupv3_id_0 { status = "okay"; }; +&remoteproc_adsp { + firmware-name = "qcom/qcm2290/adsp.mbn"; + status = "okay"; +}; + +&remoteproc_mpss { + firmware-name = "qcom/qcm2290/modem.mbn"; + status = "okay"; +}; + &rpm_requests { regulators { compatible = "qcom,rpm-pm2250-regulators"; @@ -373,6 +383,14 @@ &usb_hsphy { status = "okay"; }; +&wifi { + vdd-0.8-cx-mx-supply = <&pm2250_l7>; + vdd-1.8-xo-supply = <&pm2250_l13>; + vdd-1.3-rfa-supply = <&pm2250_l10>; + vdd-3.3-ch0-supply = <&pm2250_l22>; + status = "okay"; +}; + &xo_board { clock-frequency = <38400000>; }; From patchwork Wed Sep 6 09:24:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13375425 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 816B6EB8FA5 for ; Wed, 6 Sep 2023 09:25:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236717AbjIFJZJ (ORCPT ); Wed, 6 Sep 2023 05:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236702AbjIFJZI (ORCPT ); Wed, 6 Sep 2023 05:25:08 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6D311709 for ; Wed, 6 Sep 2023 02:25:04 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-52bca2e8563so4893258a12.2 for ; Wed, 06 Sep 2023 02:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693992303; x=1694597103; darn=vger.kernel.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=/6p/xZXs900v4vDHCTqR/tX5qKtbr2J5Y6y2wWsKdjA=; b=ApaOGQd9FqXgZftmrsjFERD93alSlyBQfC7VrDm2OYdejxYI5HchDzEAg+mnxUypBu udcs9NfIkuJPtb7uMHvVMnld0KUApqujZ/qqYIxrDu74Bh3kLe8o/Qy0/CQSVqg9zMFd 1R5A+Z+UrZ8O6sy+XSLV4uYqaeQpuZSBJqYyS5vuY87M8EUhKD7tn7/Ldmb435/ZLxMf QVEJae2jruQvRbdk6n/YRXAI2Ok/61ArsfS2iVLR7XPkRU+Tfd43gATRsHmlsb7t75oq aTjI8zXqBhSAmnviR9thMBgf8YPFfz197MW/JhhdSW6ozzbIggArQYBv8hPnLtajowXP ALZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693992303; x=1694597103; 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=/6p/xZXs900v4vDHCTqR/tX5qKtbr2J5Y6y2wWsKdjA=; b=XMo/8Oqx1waJwjZitnXOcn2gx1YTjGwR3JaaQw24yugFmYc/ZjgBrQqn2LLwYy+2rz rdHYVfvawSEES06fIY4iZqbqti/sPvY34qJqBjN/VDW6epZMc7dwhKPkOYa+XmnRQvRj uWPFnTpbFe/IVTzUtlDKCEt7n/je+ChU7MS2SnfYGZXKKawfut5CB2+A1eKDbu/0FShN noNf84fiXPvmn2Ia60LxQyATjbO0+lMkk0ky5SGHFVo3aaMdDWbiVy2MiswhMGMl8UzO xpyOdlPVGf0F4NFUtuBdFF199lG4lJyEn1l0dqPs/bBXIc0FP6OWRejXLFCZrfK+QpXx dtOw== X-Gm-Message-State: AOJu0YyYfspevrBRHLsi6oMYxAGeCIzI/agiTxbso4htO9I38zYbibPu e5+atH9NFA0hjh4BAlH7m96ZyA== X-Google-Smtp-Source: AGHT+IFdAEMUz+88edXZb43tzldXC9wcDLVBbqV0a4yyVzNmNROPo4VCN1khS5KFMQ3UGo0caLGccw== X-Received: by 2002:a05:6402:5172:b0:523:2e30:aaee with SMTP id d18-20020a056402517200b005232e30aaeemr1773809ede.32.1693992303456; Wed, 06 Sep 2023 02:25:03 -0700 (PDT) Received: from [10.167.154.1] (178235177204.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.204]) by smtp.gmail.com with ESMTPSA id q10-20020aa7cc0a000000b005232c051605sm8096155edt.19.2023.09.06.02.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 02:25:03 -0700 (PDT) From: Konrad Dybcio Date: Wed, 06 Sep 2023 11:24:58 +0200 Subject: [PATCH 4/5] arm64: dts: qcom: qrb2210-rb1: Add GPIO LEDs MIME-Version: 1.0 Message-Id: <20230906-topic-rb1_features_sans_icc-v1-4-e92ce6fbde16@linaro.org> References: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> In-Reply-To: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693992295; l=1581; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=UuNd8tggE5iWiyJA3F8yW6H2YAWEjVItZbSqtIqrHRA=; b=vlWYHvPSLfOkpmRgpAeQijRsCZdcBV9xDwMZbr3XygAYB4tIIDlFLKMfebwqwlESs2L4oJgD8 7D5yBqy0iY7CyizPLcKGRnj/YaKJeYHUUMtF8ZnPsqnuyR1Z94G53vc X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the three LEDs (blue/yellow/green) connected to TLMM GPIOs. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index 5f7619518deb..fd45f58e254d 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "qcm2290.dtsi" #include "pm2250.dtsi" @@ -39,6 +40,38 @@ key-volume-up { }; }; + leds { + compatible = "gpio-leds"; + + led-bt { + label = "blue:bt"; + function = LED_FUNCTION_BLUETOOTH; + color = ; + gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "bluetooth-power"; + default-state = "off"; + }; + + led-user0 { + label = "green:user0"; + function = LED_FUNCTION_INDICATOR; + color = ; + gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + default-state = "off"; + panic-indicator; + }; + + led-wlan { + label = "yellow:wlan"; + function = LED_FUNCTION_WLAN; + color = ; + gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + }; + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { compatible = "regulator-fixed"; regulator-name = "VREG_HDMI_OUT_1P2"; From patchwork Wed Sep 6 09:24:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13375426 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 06D50EB8FA5 for ; Wed, 6 Sep 2023 09:25:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236773AbjIFJZM (ORCPT ); Wed, 6 Sep 2023 05:25:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236725AbjIFJZK (ORCPT ); Wed, 6 Sep 2023 05:25:10 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 735371707 for ; Wed, 6 Sep 2023 02:25:06 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5230a22cfd1so4962839a12.1 for ; Wed, 06 Sep 2023 02:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693992305; x=1694597105; darn=vger.kernel.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=XDAh0aCllih17eVlFn1jaipFdLOlK9NfNTLcE0E+Gek=; b=eQhgiDckWFM2iW69fTGqU3JOxMjLP/oEjETlmkWKL6sbrDBwyWeWb7qFXbt27JN4K1 K5Exd9GgCOAO1kKdOwp8Sz9Lkk0FbE0/4Hkb4gko8CRzHK2+6tBRmHZg6sWBiQ5wJPR0 lRZcs6jdJNJnrJ/MvZwYzC3fhTMwnYb2N2H0EQhaRkOsXJDuKSG1mm6n2RAqxdUy+1W6 XLOWRckAdIxQogUSF9QScEefXklrPpCvOU4gr03tcToy+k8VlhTt2ZvUj7hudEB7JvAW 2snT4KHKtAcXuY5b6uY78TGZxWpdei6N6kBTYeYWf32UtJfeRsBG1upBsvQMhtbMNxX4 Ycuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693992305; x=1694597105; 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=XDAh0aCllih17eVlFn1jaipFdLOlK9NfNTLcE0E+Gek=; b=Y5AH8DC4tETS0nsK0MKr44gnDSXqMIMv3k6REZM6xRAxXq36ox28pm/zbikOoDxwyX 0ZgLsZfMpto7v5BQDxYGy8G8OdHdSYDcJCCDoY/z2+0ZK08E5UxnBMnp7VzDCxfhjk8j RFFXWAbEarkLpCs7dnz1MyivUfwAWfHnpdEjJPiAz6v7IG+8+8ujFDmNBWTbuO/Q/S0I LTwx82LSzWASbURVvjLAWE32PvwuKYhoZXp2gmy/Mn7Bv2dwUHZ5gfxZwef7FsM75D+n C9PZcUJenxXND5feuRvkgjtEsCN0ArYLMB5Ve7QW6ZLdYwmFCBZXQPoHsJTZMLaVPH6N hYMw== X-Gm-Message-State: AOJu0YypIYEsXLLvgZwqPEyNFY7iCZfFy2XyebwQnNN83BwHuU8Saz/4 74Uk1i4QnJn1ipPftt2+tZY9Qg== X-Google-Smtp-Source: AGHT+IFFo+QJScmITF/zsTHhCFf8BwYb/OcZFemUtjPrr/hckmIBNoTGAzRiOkyVbW+lJx86HX6gGA== X-Received: by 2002:aa7:dace:0:b0:525:69ec:e1c8 with SMTP id x14-20020aa7dace000000b0052569ece1c8mr1578435eds.40.1693992305071; Wed, 06 Sep 2023 02:25:05 -0700 (PDT) Received: from [10.167.154.1] (178235177204.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.204]) by smtp.gmail.com with ESMTPSA id q10-20020aa7cc0a000000b005232c051605sm8096155edt.19.2023.09.06.02.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 02:25:04 -0700 (PDT) From: Konrad Dybcio Date: Wed, 06 Sep 2023 11:24:59 +0200 Subject: [PATCH 5/5] arm64: dts: qcom: qrb2210-rb1: Hook up USB3 MIME-Version: 1.0 Message-Id: <20230906-topic-rb1_features_sans_icc-v1-5-e92ce6fbde16@linaro.org> References: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> In-Reply-To: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693992295; l=712; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=QbeFe51vD05DVZiBOlvsL2lYN7leouI3Bx68sEs+dDY=; b=xmDOXv3FY/Ud72be9WmQQ9zSBqko7R9Q8DTNzNZ8Ua/mjgwnlHSaLQ42k2pAfxYRXj0uaAuNP jkk5NfbwsbeCPMK8r4ok4+0kTm6ofr5uhAwqWDn95GVs0ebMCkLRXIk X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Configure the USB3 PHY to enable USB3 functionality Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index fd45f58e254d..94885b9c21c8 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -409,6 +409,12 @@ &usb { status = "okay"; }; +&usb_qmpphy { + vdda-phy-supply = <&pm2250_l12>; + vdda-pll-supply = <&pm2250_l13>; + status = "okay"; +}; + &usb_hsphy { vdd-supply = <&pm2250_l12>; vdda-pll-supply = <&pm2250_l13>;