From patchwork Wed Dec 4 21:34:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894343 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CC5E18FC9F; Wed, 4 Dec 2024 21:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348111; cv=none; b=jEGBWsA9uW2zoYRo047vDY+PqleW5FCZRnhpuDLSEeE0iUfOA5ojb+GfB9eLQLgQhc5NzI0kCNkqRo/7/mRNbMq0rm87g09l/XA9yK3dxW20Vdr5Y48AenhrfxlHsVrIS5JjfeWaGPB3hst3Y4fDHDQhIouKBpknIslEP4XyEEI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348111; c=relaxed/simple; bh=02z0LV2dQuUQp+TnhrC9XL4LwOyBHz6IzTcdaN+LWyU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mBBF/KUHIwXkDO1c0gLHSxRYO+ihjvoqnK97URMFYVAXOnEzaMFbVVzZsWBRNOAWhwm7tsj/k0xPXZfF96GR5TP1lIudq7X3AE33qvw8HC4oKOzGyQj4dlBzJ89AEttBCAy10VKCmVzkoV4FPyfrPcgHpZi/SdypNwnEwn9HUII= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cV9y66yL; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cV9y66yL" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-53de556ecdaso311241e87.1; Wed, 04 Dec 2024 13:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348107; x=1733952907; 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=9Fb76RS5ZLHLloxCRTmC8GhW3Ha398bRNcaTT2D2OEo=; b=cV9y66yLJ6DHt96B7tI9vpeEdafCNbx4m4pBmjYVfpufE5oNRNopG161NgxsIB0H+Q mGIqe6zZ3M4R/jZOcs78j6ZBH+PuVxyz1oEkj8T7xvAEohP0e2quqpwC5mTksNYUjlYo 1riBVCIQEIhLagRZoFU9wnIpENX1anxgDdyhmlZHGlRj3LBAObxp4TEvXPsnNgLnCBPK 7hqQ4W52uoV1NlwbsRlWf3i+4UYEF0CnbkY1hc/KdqwzJ3pYSRKB+8TonJYiJpd58U/H gRenr22N+encufe1lU3GkGp6s+eZKq6xuwVRyhN43SfZuI9HqUdPDpP6y2QYhhG8kTnr gQIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348107; x=1733952907; 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=9Fb76RS5ZLHLloxCRTmC8GhW3Ha398bRNcaTT2D2OEo=; b=MuSezyovQz13FD2mOEdy6Q33iZHmBeJqO3B5YYqHL8aECAhpTxaZTl9cjS+AdKtvMH m9wW76zu0Ma+yRq/4kLuzSGbK8tuX/BKjaFifq92DtzF2qGyP4TMZ5ziKASkBpTKttuA QcUpyM+sTHnpZQ5d/LahW24Dty4DoFgAjcuoMg63Q45JHMVHegsycOnT7bhkiZ4/sPPX g1WoRRRpHHLXoy/KtZkZRbqkUrpeEm1zLaPJxc7cvYytun4j2stk5DuMQf7ZrZaAnHiz 46Itg6Wq0pm7TAMViKlNWe8gVxhQ3HUpgx2gqJF8YYHYkgOa7n6X5Et9AjAxpqeJmerq pVbQ== X-Forwarded-Encrypted: i=1; AJvYcCUIIJ6vXPumszAQaAtPYJdHVs5l4uk9FALtD835EC8AF/xQZy8YgSXZXgz/ICQ/j5baGLvMSIGfPHwA@vger.kernel.org, AJvYcCV1Q8GGczS40MnwGh6uRIgTt+zene+7fua3r/xpsIMgwpcJw03abqm4cCPG4Yh+VlS2CyTbtrwVamNyR2Q=@vger.kernel.org, AJvYcCVVfGC8yfAGlvO++PX0f2lIcWMafykv8fIIh0TevRsB8Sqj2nwbbUSPgNxRAdCHr5rHI+uTvj3lSyuvutCW@vger.kernel.org X-Gm-Message-State: AOJu0YwdtvDGyjM/I3NtFeCBgMOL9Qd+pDUMvpzj86S3kUXDmAy2oH43 tWVDlq9MBO9Uhdwbd6yhBcQNwa+7xzFw9t3dYHv/SSMB+DCzVNI4BI0KIw== X-Gm-Gg: ASbGncumdZ1b1RqPj92NVvmG2qP07ovhzCmZ7l3CqiCJBppfk+aznbiIqcCAsL8e74M GpBRA/vFhwi7+/j8aLyDwyTyo1m7fy5vXRph44W8itVM3xgt4sREKucleVm/6xvM6VZZd8LObae pSjH+X5CYdM6XtlmiSOaqh5iqtZ2L4X8eFcU96IyVyaRVxT75bp/hpZ76pvX11LDMHxN+Te17Pc TxBCLRvstkLK5Io35osgM614i4C9xEvv9bpT5n9EqHJlnJ5 X-Google-Smtp-Source: AGHT+IGOIfMXCNfEiVIihLL7kC7uMDCNR3FrLKu0MbCTB68XrLCygugc076Fd7eMylbYxoJAQ15F0A== X-Received: by 2002:a05:6512:b8e:b0:53d:d3ec:de8c with SMTP id 2adb3069b0e04-53e129fdf0fmr5441906e87.18.1733348106970; Wed, 04 Dec 2024 13:35:06 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:06 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:48 +0300 Subject: [PATCH v7 01/14] ASoC: dt-bindings: Add bindings for WCD934x DAIs Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-1-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1583; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=02z0LV2dQuUQp+TnhrC9XL4LwOyBHz6IzTcdaN+LWyU=; b=D3aUYxHPZJ9GD8wGiu9IaHLRA4akwwzfpdynGQ77aC8mqNhXBwP9AOg4E35RCteoeUTqxnrwy gHA7MJkS0PlDVLnbJinLqTKQKRq6UsH0Jp/S5HeSOrhXkVfGnSl0s9Q X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add bindings for the DAIs available in WCD934x to avoid having to use unclear number indices in device trees. Signed-off-by: Dzmitry Sankouski --- MAINTAINERS | 1 + include/dt-bindings/sound/qcom,wcd934x.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1240e75ecf4b..b25a196c5fab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18984,6 +18984,7 @@ F: Documentation/devicetree/bindings/soc/qcom/qcom,apr* F: Documentation/devicetree/bindings/sound/qcom,* F: drivers/soc/qcom/apr.c F: include/dt-bindings/sound/qcom,wcd9335.h +F: include/dt-bindings/sound/qcom,wcd934x.h F: sound/soc/codecs/lpass-rx-macro.* F: sound/soc/codecs/lpass-tx-macro.* F: sound/soc/codecs/lpass-va-macro.c diff --git a/include/dt-bindings/sound/qcom,wcd934x.h b/include/dt-bindings/sound/qcom,wcd934x.h new file mode 100644 index 000000000000..68c3d43ee898 --- /dev/null +++ b/include/dt-bindings/sound/qcom,wcd934x.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ + +#ifndef __DT_SOUND_QCOM_WCD934x_H +#define __DT_SOUND_QCOM_WCD934x_H + +#define AIF1_PB 0 +#define AIF1_CAP 1 +#define AIF2_PB 2 +#define AIF2_CAP 3 +#define AIF3_PB 4 +#define AIF3_CAP 5 +#define AIF4_PB 6 +#define AIF4_VIFEED 7 +#define AIF4_MAD_TX 8 +#define NUM_CODEC_DAIS 9 + +#endif From patchwork Wed Dec 4 21:34:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894344 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B67F31925A6; Wed, 4 Dec 2024 21:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348112; cv=none; b=CLeHnnC/WySXQJwsjkuB6btXvkUkrG7WERkxH2DNTUwC+IAwXO5gcyi5WGsy3n7tI726JhuTX2yiMSMmPmfH/MW760qWHXep/1J+lOXCf3z1ZlkEgLdKUhvS6ovsn/6pyq4Zb4DjzzwIcw9HqLktI/x/LBrKZrw4iBV2dNcQEBU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348112; c=relaxed/simple; bh=8GYNtMjyvlYyOVOr4Zbky3D7q11kPx9toIZISTyx+JI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ipVQL5l5Q+mv9bwr/pwsxQmpm7K11WjtexfJ4uhw2Weru5SZJib9oXMLvBYxIWOsCAQ3tEbZnJ3hwHI0vv09QGxkAs0/dgOOrY3fB9GWBbqxUKl1iHtmvnSCWhnOzY48HxBXJS4gtvFBpIk9fK/XmqkGEQA9KGRihgBdGzii9as= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Cii4oFpl; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Cii4oFpl" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aa55da18f89so31331566b.0; Wed, 04 Dec 2024 13:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348109; x=1733952909; 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=LuV7cwmdwchb8LB/7r20k40yGp1R1NcwnamjAVAif6s=; b=Cii4oFplZi0U3u894yZB3oQT1213rvvMJmgYYTAuh48wpdigj8eZupbBkSeVnnrR4N 6txTZgstMyMCSu7zI4zYXvcO651xhmX7lZhTlYuFqenYCq9lJ0o+TTsXKIcHbTVR4yrk TqSsJDkiJLJEXx1EyeSJDIVpxC4IjlpZz96fYqa2wqBhlapIJ+QEAdhDGbrpdrOobJnA IyvPbsIpDe9Q/nBqBx8HrWQTD89OJ560Or7WqI+2xZv3JZ0TMHmzpPU09BaqKFzTN7uS 3PKUplA7irC2XiulpktJvaTsDzckSki3EVTXaA1uT6f5Oc7qOb6MnkH0y80We22RjCLR +rSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348109; x=1733952909; 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=LuV7cwmdwchb8LB/7r20k40yGp1R1NcwnamjAVAif6s=; b=bPBwZBu5LGLmd3T60Kd3xdiMvxrl8j5+I61cFTtIGI+zttYQzN2/lI0ULFX5DHvPZf sCeIE59Gse/oakKZL1k9AaI0dSSO1zGoCVUKSo29Gn7yQbDj+ByVRRt6Kr3Zekjj+YOa yeV+4ijn0o6jA2YcDuXaQsTjUt+XhpuRv0Fs5XCeiLEAQ0G9lTyXQZpYaTtIsfgVP9aH diMoiX1ICsdYFFq5Sig5y+PjBKRdg0sAs2NK1I7mKpIXqLppjaGbzPMH0tLOudqhXjYU wcPp/gac4ZlTA7EZkr1nD/m2aod3VVEs15c9P9odbPZgEJhSMgeaBS6PXegV2RFkdWZk lyCw== X-Forwarded-Encrypted: i=1; AJvYcCWGI3Fx8T+s0K+qG4JLgr2tv/khnVJnw+ltGcOH48jDJ5vCTI6DwmFV0ft0Ktx0Glv5jda8dd5sMw/K@vger.kernel.org, AJvYcCWJ9Vl6sgem8+DQdCxNhYd6dDW/6IPylZvxMy1oWQx5qsgHzLS+2MvDU14Bsxd7qjNaIy8v8559vVnqh+0=@vger.kernel.org, AJvYcCXhXKIdLwCGFTLO7Lrg03JzUygmhm+lH14P2aOcYXNxYrPxsnXwHAdzLvs0nrVCx03Uzk7Y7zw4adyRru4V@vger.kernel.org X-Gm-Message-State: AOJu0Yy6OTUstrM+XRFzt/fLe3uxlt4MmZ6Msbtjpvk/Y8b9z36SazZE VpOszAnr8dsuhPBwrWMTjECyv/XfqbsEeIIWT+NvU/wld3wKtqzkYOY98g== X-Gm-Gg: ASbGnctC8rvNW492xEED/MXY/bvRjjsFhRSN0Zs/RJLQL+7JnxVPtg7frYWdZ/cwVov mCawicwp/vmNRqbz8oTyP/zP12/nJ2uI0fRl3+wTwOo6j5A3hEwpnF0GJxdVAIwEAvaf59V5OAn HeQMUaw+Zocm7n7rn9w4VFG7/k49Ygo75j5fbN+YqgJLXcr3gpv8CfWR/pN0Ayt1iSbwObfWtKb YPrubFULj0CedgVNK8rLcPRtqr149fHPe8IyQxF3h7bcfAZ X-Google-Smtp-Source: AGHT+IGtEruR6xCHbI56vFuwlvgypRehvg14vOTyoyTCYLyC22BBypixZhnXeVjhLwlC4wwLHSOP3Q== X-Received: by 2002:a17:906:3ca9:b0:aa5:b639:e2f0 with SMTP id a640c23a62f3a-aa5f7dca34fmr511162066b.35.1733348108388; Wed, 04 Dec 2024 13:35:08 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:07 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:49 +0300 Subject: [PATCH v7 02/14] ASoC: codecs: wcd934x: use wcd934x binding header Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-2-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1049; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=8GYNtMjyvlYyOVOr4Zbky3D7q11kPx9toIZISTyx+JI=; b=secSx3N9rzMzFuvxLewBFyI8nYxZuD1F3+W7BCUXxhpC2UF2Mztzt1ocxq5j3WfdLu846/mAP VpW6E/Cj88zA+6Ec0Iz+d+i5Q0Auojk7xA5OndKYkwkh4gZ6wW9zYY+ X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Replace AIF* enum with binding header include. This allow to get rid of mysterious indeces in dts. Signed-off-by: Dzmitry Sankouski --- sound/soc/codecs/wcd934x.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.c index 910852eb9698..a730d7195bc1 100644 --- a/sound/soc/codecs/wcd934x.c +++ b/sound/soc/codecs/wcd934x.c @@ -23,6 +23,8 @@ #include "wcd-clsh-v2.h" #include "wcd-mbhc-v2.h" +#include + #define WCD934X_RATES_MASK (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000) @@ -434,19 +436,6 @@ enum { COMPANDER_MAX, }; -enum { - AIF1_PB = 0, - AIF1_CAP, - AIF2_PB, - AIF2_CAP, - AIF3_PB, - AIF3_CAP, - AIF4_PB, - AIF4_VIFEED, - AIF4_MAD_TX, - NUM_CODEC_DAIS, -}; - enum { INTn_1_INP_SEL_ZERO = 0, INTn_1_INP_SEL_DEC0, From patchwork Wed Dec 4 21:34:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894345 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00F311946B3; Wed, 4 Dec 2024 21:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348113; cv=none; b=PygTLvgDUWv2Bzh4lkqs6v6wwhe4eyLF3cQwftLok0v7cNEiFAAcEtbshurTnCRo5GIa19ECO5U7g091oEFsGn5kFwEbknBq5Js7wRV1IW/meYsMpGi3amvYk753EgOZzee6SWiqH9kYdXyyPHuuBXxcjjOAJMm6/RQn6uG0loU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348113; c=relaxed/simple; bh=kROiM94VR9bhs8unDDPxON/vPAmMB0+SlnxeyQ097mk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V0Ya/Y0v9vzxoPiT+Q9tz6FARjpQIf+kzEN1Zv6sqddx95/MnB0qgZ/F7mHCBOEinEqmsIL7elOfWgu77y456FZOMXQNQU5DMooBfiU7h98sTZVxUgpRjyBh49QYsvSbPC2UN2p8Tg8U9UQA5iw9r4Aq8wT+zhy+/litZJL6cLs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KxAtkHwP; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KxAtkHwP" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a9ec267b879so34654466b.2; Wed, 04 Dec 2024 13:35:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348110; x=1733952910; 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=1MK9kM+QUYt759u7IDiYEjfkhyjIYyif4Y9G/TxZStg=; b=KxAtkHwPZ3mp875FfuzpsonCem7m8Qeddk2dvtG9osV8oWLWylW1Iveo6XkSknTyy1 UAXFSSlKddVgiaAeGv9Sys2Ixeo0A60gCml5ExnsbRjJ9lxY2mF3HoCbsqjJecFdbNTn IeyAdFhkYq/f7HbZKbAL8gTFhfAL5Uj5cl/yfo8ezWaStgTp92xDYi9yT6Iz5lCaOgS6 lvwCozGKZ8wzxAswQd6A3m//yXlR2dq2uYLoOUqr8yXa7fnT/g5tnpP5xWoFASS//fl1 rivKfodXtT3SaxUp9Bzr2DwyrtpYJU0LkLsAbiuTIJ2YcMJFa1NxAfPHHhGCJTlMrKKA C8JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348110; x=1733952910; 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=1MK9kM+QUYt759u7IDiYEjfkhyjIYyif4Y9G/TxZStg=; b=uUeH/hE3PhJgovvfUhs1+4I6R2+qfHp/qoj2UpZEwrU3IxK7za9T9eNqKGkr+vhxqd A+G2WcSUaPTP0x8m8tx+rODaX7nCf29CfVftYUealD9+P6YwGzk1qig2T0pLNtUlwYEM eCVPg3mLDlsrsGvu4DvurJXS1cOn5yooOVKzc8W8vfkHXISP2EIvrRmqWBViwra4jGR8 gzndcaWRMzXGZElMnQiJN/CQXC0+VFEbn/EUw1TEz4wERWBTVuj/HXGH7aGAnyiz7zcU za/VCkpiBOqLG9UC0D5u3mujLPHh9f8FSpE/9b5nL5o6OijgiEh69as36+biOtw6Vq83 wwgg== X-Forwarded-Encrypted: i=1; AJvYcCV30VMN/GlH89IGE3eB1tBbuz7a8qIdLNUiEr61khlTOacp+Q8k6nP6ZW7SzM0CIY1E4CDaqFMrOKx9fI8=@vger.kernel.org, AJvYcCV7Khnwqq8S/jyMTflPutgPRz2BDVW1B5kWPhs029UjGAgKh/IvmdAdjGgKXiwYUCtgoRQTffusQQlPsUMW@vger.kernel.org, AJvYcCXZ+02gNZmwAxA6IdJYmc8mk8Vf92eB/MTc8S1M824KbtJCf3vITHRFEih12f8ghpXiebZh5qbGNDVX@vger.kernel.org X-Gm-Message-State: AOJu0YyVTtlYc0TbfMfKDhZqFFL4ysmaaAqfw/pcE6rfXqqo0BJJpxVL ZEaqjUCMPEaIp2TVPLum5ltI+2WcwY2EnHnJMR+XsU4sXFHAKwu50/eQag== X-Gm-Gg: ASbGncv/xFUCJWYpPFmys8RjAWpER/r+y3NGTN2vXaMKcvmFXJkP76I68FZOWc2Znue cjBbc5C5QRbJvxdvQLSGZdsRjn/NIMY6dvQDcrqjt5UBr0YRJRen0YSY96f8QjNnrE7FCbrabFX 03SHU0Xz4Buq7IykGYKvCGQaUufDIcngtXCtssdRImuG8kQF7D79r3r9sRe5t3fehKevB70lSEG 4lqu30GBQQ+J2bD/slalBfalY84HG5Tw3FrXXtaZFz9F5Dd X-Google-Smtp-Source: AGHT+IFczzHm/8Qo57m7Hv4iW6tCxe2+aKwQwsavJDV6CBwTUeSvsUhDCx/W1/hLzAOoNJE5vS52ig== X-Received: by 2002:a17:907:783:b0:a99:f6ee:1ee3 with SMTP id a640c23a62f3a-aa5f7f24766mr915947666b.43.1733348109840; Wed, 04 Dec 2024 13:35:09 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:09 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:50 +0300 Subject: [PATCH v7 03/14] arm64: dts: qcom: sdm845: enable gmu Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-3-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski , Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=5144; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=kROiM94VR9bhs8unDDPxON/vPAmMB0+SlnxeyQ097mk=; b=3d8wrEfYC+slUHuwSCZnk+h2S7BFi+qmEo3HfAlDBmYMB1xu/3uQT/L3j8tGhCeTd2fSVnmYV NkFLuHD0RodCIwWvK9XXhcLj3Lg5gn17u+ut3ueoaOwqQUdd+575At1 X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Leave gmu enabled, because it's only probed when GPU is. Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v5: - delete gmu node from sdm850-lenovo-yoga-c630 (it's imported from sdm845.dtsi) --- arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 4 ---- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 4 ---- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 4 ---- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ---- arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 4 ---- arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 4 ---- arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 4 ---- arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts | 4 ---- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 -- arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 4 ---- 10 files changed, 38 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi index 743c339ba108..b7e514f81f92 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi @@ -741,10 +741,6 @@ touchscreen@10 { }; }; -&gmu { - status = "okay"; -}; - &gpu { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 1cc0f571e1f7..92f8cc7e2fed 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -444,10 +444,6 @@ &gcc { ; }; -&gmu { - status = "okay"; -}; - &gpi_dma0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 2391f842c903..d31efad8a321 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -414,10 +414,6 @@ &gcc { ; }; -&gmu { - status = "okay"; -}; - &gpu { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index 46e25c53829a..8a0f154bffc3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -345,10 +345,6 @@ &gcc { ; }; -&gmu { - status = "okay"; -}; - &gpu { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index 486ce175e6bc..87fc4021e024 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts @@ -419,10 +419,6 @@ &gcc { ; }; -&gmu { - status = "okay"; -}; - &gpu { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi index b02a1dc5fecd..a3a304e1ac87 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi @@ -415,10 +415,6 @@ &gcc { ; }; -&gmu { - status = "okay"; -}; - &gpi_dma0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi index 617b17b2d7d9..f790eb73abdd 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi @@ -239,10 +239,6 @@ &gcc { ; }; -&gmu { - status = "okay"; -}; - &gpu { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts index e386b504e978..501575c9beda 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts @@ -381,10 +381,6 @@ &gcc { ; }; -&gmu { - status = "okay"; -}; - &gpi_dma0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 1ed794638a7c..e9d5565b52e2 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4948,8 +4948,6 @@ gmu: gmu@506a000 { operating-points-v2 = <&gmu_opp_table>; - status = "disabled"; - gmu_opp_table: opp-table { compatible = "operating-points-v2"; diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts index f18050848cd8..ca81f3664abd 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -355,10 +355,6 @@ &gcc { ; }; -&gmu { - status = "okay"; -}; - &gpu { status = "okay"; zap-shader { From patchwork Wed Dec 4 21:34:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894346 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A6B91A0AF0; Wed, 4 Dec 2024 21:35:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348114; cv=none; b=rWao9Yj/aKm9myVG9e560EJqqZKFaCSqmJS0qsg+bRqj1XWx7HQkuOWEYUmL7iUui5IuCseXWJz/9Zd600sVhpscskjXFiDuFWUA9Fg130lQQ4HHigGu/I5mdrcRSDGlS01hHD5Ns0GNRF0sQtIQ/S0HVE1h+mqOvqk3HhtXW7U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348114; c=relaxed/simple; bh=2tinpZ9cO2Cfmec7WC+wgRZ+VOIH0877oqaFTz105/g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VZaAeB841oHWSVT/9M8tdrGa2tRlC1EvcVs+0qHyN3AlniauM9/TYFSoXpcN4HmfOyYDzEcR89x1anZn+26LSlNVCl/ddFa4J8WdssVP7T7axigL8ZHVbs8mtlfH0p+4fN9QzoTWCeMK1BNIoH0erokfpdrrVRnRd8zh9kDtBT4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hhF+sNym; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hhF+sNym" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-aa535eed875so30965466b.3; Wed, 04 Dec 2024 13:35:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348111; x=1733952911; 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=J7ZPpMIf7KljHM0C/BgCOacX+DOYg1OD4FK+PFwISpQ=; b=hhF+sNymAFcdoYIv1cCGWc4Ql9QpHaSJ5sr6g/5UuFU7GqlP/4v/MSSOTg9vwJVDaO Kab0FRG9lQ1rpH62iW8KP2rLIz8FXZjFW+U3bXWzVeqzd66LbQKJKo1FaXCqtGryGOXu xdiVYbBzbvO+F1q03aY2CTu7yx0mB6QpWJdjGpzvL1cQ0HvxmQimMRTK8lo8OgqAOPCG ty5xrbY1kvWa6fmQeAm+l1q5simIBGMRHYqh7mA04ER/ee5C0jKdH4pB467LJ0w8k0uN Kp0kwlhI/4Aingtbyq48u6yDvyL83YUZf1y8qOSdwa1NLoeAQb40kSLJjCWsK8MaQ6oB iRCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348111; x=1733952911; 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=J7ZPpMIf7KljHM0C/BgCOacX+DOYg1OD4FK+PFwISpQ=; b=Rog1dhWWBXSs+3zvYwZU6Nu4Hju73oeZ00/QEe0QRBrDhYy10Kkz8z2IRjUihHVkW5 GmTgrDR9Ae9kQWGAQl6UdOTxWa8ionFl5FRaVsq8up5u4o+u3S7d9GclpOJVD2qFxAL8 w6d0BBxYTxx3AWmX9BJx5lM+EvQjD8a3vdEK2CI92RVSLbKrzsn9WnKfe4NldLSRrZnp r/B8hy6d4Ve66++6t/0b/NuZqVWOCcwn/EnhD4GddQ+w0+MZsneVeBy+ClFUiEORraPd dOFr5cypYacOLhTwUnQJgd94+dlXsDJDArXU/16wpA6DcyjD7RTOBLoz6rz32L+3CB8A 1dGw== X-Forwarded-Encrypted: i=1; AJvYcCUPwoQ2Sb0tUTO8j07W0WgKsqJWAy9gYQfm3ieuDXMBsV+3Y9JtNvVbvGvYgQRb5Hya3bjbh/b7K7Q6@vger.kernel.org, AJvYcCUgOqlIBYtIo0uMDqIpqBvIuK0h/Goyfx0xAGqsFk1RDDY4wbvPgpQMe2Jc1IchlnPRtA3/snuyxa6vNFI=@vger.kernel.org, AJvYcCV+qO9EcwKSVfwgWlJ13LKHUNHGwzvfPnVhFnVlzLVC6XvrayIG8aoexomibX06FQ9C2qnCrEW0INCI8mcT@vger.kernel.org X-Gm-Message-State: AOJu0Yy86K5ddA+A3K3emA25SF/wGbXMqGP8OkjsqrDTMiGlwQ2hQr1c wqcHc525iP/MlzLQf9FKydLi7+yDqmK6KuhiPq0tEq0I37KVUhsddgdsPA== X-Gm-Gg: ASbGnctvrd/FZ4PGOC2GrI0lECikKYm1W2s0dQ3Jst8cFRPMAhQgWswaaUxzxAsfrGO 99QbK7hfRJNdeCyg8qHHX4qsjfu+/ktmEZU5aaZ5ctz5kqV2HPq9y/D4J7oXcg5ci4uoZs05Hmc jeT/hmQ85h37/dpmRcPM62RYr0nVWj+IYvCBw6v73KqA+yKC+it5r4OBfwNK2YgufviOxU1//oC 8+vaYUF3pSews3VTv0WPRVPxB5AtnQ+u/dLkhxrI+Vr346A X-Google-Smtp-Source: AGHT+IHoZcC2uvYusfFp6uzADPGKZmkYYwBJc0PnB6zL05dukH1+IMVC0T1Gq3dzpG+MVwYNpEGfVA== X-Received: by 2002:a17:906:31c7:b0:aa5:3c28:e0ae with SMTP id a640c23a62f3a-aa5f7d1b599mr761681166b.15.1733348111102; Wed, 04 Dec 2024 13:35:11 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:10 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:51 +0300 Subject: [PATCH v7 04/14] arm64: dts: qcom: sdm845-starqltechn: remove wifi Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-4-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski , Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1185; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=2tinpZ9cO2Cfmec7WC+wgRZ+VOIH0877oqaFTz105/g=; b=wR4NFoRo5HQ5G1JTl0J+kVuDDVxXa3GZUuu7RSVDbwIltJxA1t96sXSHaOTWu87olxUtfoNB7 NzK5p23EWO8D0CLASLP5kZGa/msERjMTxtX3YSOy6vDL89IKkZLtVAd X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Starqltechn has broadcom chip for wifi, so sdm845 wifi part can be disabled. Fixes: d711b22eee55 ("arm64: dts: qcom: starqltechn: add initial device tree for starqltechn") Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v6: - refactor: no space between tag in commit message. - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index d37a433130b9..6fc30fd1262b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -418,14 +418,6 @@ &usb_1_qmpphy { status = "okay"; }; -&wifi { - vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; - vdd-1.8-xo-supply = <&vreg_l7a_1p8>; - vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; - vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; - status = "okay"; -}; - &tlmm { gpio-reserved-ranges = <0 4>, <27 4>, <81 4>, <85 4>; From patchwork Wed Dec 4 21:34:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894347 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61BA61F03D8; Wed, 4 Dec 2024 21:35:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348117; cv=none; b=XvYioCRES/97A8P/srLIv3Fwv6pAB8uASC1gMCKmeIa4g7h9XGgH9TR7n5f8AU7Aloqs6JLxgWMkHpwHZr37FRQWk+qxBCM5pynd1TYSvilOj7900VUkt05ttYEEVj/eoff4hpNtxCv5GMozjlpyaDrMshqPwuA/oPktJuznqTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348117; c=relaxed/simple; bh=16zBqpIjJcj0/PKT4pKvPKuGnqVpPddOsvoLogicvsM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Pg1BpZm20TMthxT8W/laooOcWHNLPuRDQn/NWDYL3qiuyxIXu/6jZydxnacxT8szy2LcRYoTRzvMwd6n+8jyQ0DHmx3Q8m3edu3K6XIG+JUYc3jeGs/O2Up0Wg/6rXxNS83Qv6MjK+i3s81iA45+YNDJ5DfJ1JqXTwK2kuDKX74= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=grLbXG2J; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="grLbXG2J" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-aa549f2fa32so38854966b.0; Wed, 04 Dec 2024 13:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348112; x=1733952912; 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=oNmUReYQq8n7K1A1rF3BjshEj9D6wX5MoDVYTGtf+6o=; b=grLbXG2Jpq398c1geVUvHdKGcLglJK6w+7aLKmNgeAPU0X2JdqSlVmhYqPXnewgPCP 4ENr51HxOnOZZzjWBFnYAuky+PGMxMzNYWqcFLK+m6+PA3xpW7cfWnVmkU5KzaqFsSK+ Tl33NFQ7JAlGsShpw2YVq/XPz214RFs6bUFNpYSHc/mTtsLgANRSyM1CXygEJNGS8SMW heBxxFVKU5NPydAZZQQ9mX4YysT2FPJfRGwPZH/NYeQKQ3cNuCqnAOtXNho30X2JgvGY zSFtl2VxxRK+rPDpbBH6+5ZKxd7PbOAsOYGCbjqO+Td0vAFmp+d8KyExu24paQLu3omK Xcag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348112; x=1733952912; 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=oNmUReYQq8n7K1A1rF3BjshEj9D6wX5MoDVYTGtf+6o=; b=OSUhN5Y4JAMVXwBqQWe7iYLFEk/XSyaBUl9BLpIB0Wpsa4Vg0WdNFNRZA2MLWiXrGh fw6lF8Hrp5cr+ZzXYnsJ0rBoTUNNJH1zs8UmFfsevytYPMm7TtQC6hNmxld/IHDqbFUV o3wSHWBHqkzQhZY/e2Vu9Sj4qfDrrM2BGyIf9CmSQ3Me85DXrewxxCxHJcXVelJkX+pV Y/GLJwuGCx1ybi0NtFPO4BawgJTmAttlwOkXFmgncjzF0XDiMpsWk8hp+RkoBsQto67x HdbIHcwitSzL7laVJZSLFUSWrupMicx6Gn1ZvjOt2OgsRpz17hymISCt/U8BWdr0ZTxL gwYA== X-Forwarded-Encrypted: i=1; AJvYcCUSvBKl2OWZwXBJ1tkO12o4Zkuh8+kVm8sEfGmUSccIL+YlEj0rAeewIUHDUPi2I1g2H2EW1mn7PMJzKF8w@vger.kernel.org, AJvYcCXGWwbEPew1tiUqkYbEEyec0wXOR+35TaXdKAF2XgWi0yDgZkunAlzpwl1tvc5vPeVPFVxNiC9UPj8q@vger.kernel.org, AJvYcCXLqvk6KrXODxEs8um6RwQr1gzrLH0ltW/phWUB+2hrBFbLyFVnMpgVd5kzHNJMr22DcBHLEsOmvo7hgoc=@vger.kernel.org X-Gm-Message-State: AOJu0Yz2EOgBTOsfp++bihrbvWtuDqC8Um5m/yI3MIXp2kZBD9zFlOkq hzKOSHDZJ0+HjIGgBzK8LVxLrODaB4sMp/FnUurLLXZQCa8/GNkQWg1s9g== X-Gm-Gg: ASbGncuiI6ZYpir07UExwDWu4ZICMFra8FO/nAZVaqRtva5WPH231qLX0kqHf0f52At ucrDUOzqXIqbO/l5+NPoqeJq4r3IdiY93COMXJO5snLpRe7DAFFLDXlvnb1H7neK1JBcjvb5Roa vIr4xKgV/el9jj39CpgZi8qv5o65ChH7xVFVGqPmljt02OpttXPcq84XtCIMv88FU/pF5f0PUTT xEk5iESV3hcxCE2swPZ4jqUsf4/7QvxQx8+hJ+bIFdXGrik X-Google-Smtp-Source: AGHT+IGnlu5/3GrnMXqWqbEDOnytPQMasAnVm8x/yB3BcbZiXVWbuyqplOqyE0ScmkaznN8u4H579w== X-Received: by 2002:a17:906:3183:b0:aa5:9303:1b96 with SMTP id a640c23a62f3a-aa5f7f11565mr661696966b.50.1733348112375; Wed, 04 Dec 2024 13:35:12 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:11 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:52 +0300 Subject: [PATCH v7 05/14] arm64: dts: qcom: sdm845-starqltechn: fix usb regulator mistake Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-5-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1272; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=16zBqpIjJcj0/PKT4pKvPKuGnqVpPddOsvoLogicvsM=; b=t7GfP1a8qsllgex+aY3l6FWLBCZ+F1grxDD6uTAGIRQ8q/Fo5BHXVMQYyCA4rUJqQo5iOkuBU fa26KYlXWDcA/MdKUCBbZDc0JZuHCNs7/OGVg/MO9heCznZRMQHtnBc X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Usb regulator was wrongly pointed to vreg_l1a_0p875. However, on starqltechn it's powered from vreg_l5a_0p8. Fixes: d711b22eee55 ("arm64: dts: qcom: starqltechn: add initial device tree for starqltechn") Signed-off-by: Dzmitry Sankouski Reviewed-by: Konrad Dybcio --- Changes in v6: - refactor: no space between tag in commit message. - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 6fc30fd1262b..f3f2b25883d8 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -135,8 +135,6 @@ vdda_pll_cc_ebi23: vdda_sp_sensor: vdda_ufs1_core: vdda_ufs2_core: - vdda_usb1_ss_core: - vdda_usb2_ss_core: vreg_l1a_0p875: ldo1 { regulator-min-microvolt = <880000>; regulator-max-microvolt = <880000>; @@ -157,6 +155,7 @@ vreg_l3a_1p0: ldo3 { regulator-initial-mode = ; }; + vdda_usb1_ss_core: vdd_wcss_cx: vdd_wcss_mx: vdda_wcss_pll: From patchwork Wed Dec 4 21:34:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894348 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB0DE1F5415; Wed, 4 Dec 2024 21:35:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348117; cv=none; b=YvkvUmXcMvZZXKZZR5DP3BEmIYSMc1VJn0UZNvWpfctm+D/f9UUNrwkyLE5SvwX3sdJTeHOGYviYJhlPB2EuICpl1M3wcjONYIcC/j7yEh1A8BJrxWPZOCmyT0y6f9KEFqouBFl36QEuw2xAUj1plXVeHRoQ1XSQngoqn9U28EA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348117; c=relaxed/simple; bh=7nGbNBR2rlmrlKV+/i/enn28MQ/yQq/coI0HrSWcwhM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tk8V16ID5XqxeDDI89dURXKKR5plnrrZ1tRpJIyRm4J9W0GNvQBAsH80+VPVpK9oBHo2vS1acfQ2O838UtZK8VaclNxgz3m5SwagT6ZA0Vwt3m5FWfeTYadfNCDS1QIJ61XxIZRmKGk5xzequkIGQLrVyA8NvB0GN6xntfdG06k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EecvgY12; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EecvgY12" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-aa549f2f9d2so29184866b.3; Wed, 04 Dec 2024 13:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348114; x=1733952914; 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=4L7W9BAIQ/n8Lu+TgBIRQR0dd3Tfyg7NM8s+Xthj6m8=; b=EecvgY12dzXQGn8lay+CaQx7gbCnt7SDnq8gihm83BwWQ1wjbJkS6o8RQgqmf00Eqi TLw7ruzHnjJ8lHpJPbENdr5pIQAn7l1NcDs8myYgBqY0b18HvVCJKMOzCuvJYyGbWL+W 1YgfzHF5OWLoaJoKzZnjAbDHvZcqlBWg6512rHycvBADrku8C7mkvTHl5hIHUIiwjaXI ZjTxN201z6bYTP6RJ8VUdLzuRgkru46rLkRoSTPmgm2+9YgTZed1C/JKWctzNINgZtIw SQEUHQZVEz9U4FPzpMLxBJzJT+s8hvnNgEpREvLAGJ5T2emhUBs4ZYc3CHU97kITNVHg ul3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348114; x=1733952914; 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=4L7W9BAIQ/n8Lu+TgBIRQR0dd3Tfyg7NM8s+Xthj6m8=; b=jD5s9Gg43fyaAD2I9+850A4ABRzkcqhvvfDYtrEYDt2EqCJESMLDYDYpAhMhhMOhs6 rXM9lFR3QUHIx3gpa9itwirAiqUbiCCP0NCvsD5LtGzisRzXAyph7P6qC04C533GBosK MTXiBwvhyCU54np4Rfj96xUozxZxdH5789YSvUibTJ94medHB/9rSYRxT2bVtnFlVxGM JRwMaDgGDkxNBf9ZaRT5uc8CCNHOUEAqFIHz2FWSy4XAdeUZnM9hY7Yu8dVsoXGznGyn F6bg4tILCBtZ1GMp3b3mTBBqQPMnkoR91L3NFi31b5rjShyEkePNicaaNORyD0WdRcpq xhLg== X-Forwarded-Encrypted: i=1; AJvYcCU7KI52oZgxRfuXVT6Vft1NetBZECF3FhWKeG9Ap5jnLvX/0M6rbw3WJAWhLCskK0kZGpI4iHSkN6ojJgVI@vger.kernel.org, AJvYcCUW1ulA6lYnBSKfo3dvuniCwPcCbIT9fZtWbA+aAHF1MhmMisGbDUwfeBHVGcSKfM5Mtfppf9ufNM9o@vger.kernel.org, AJvYcCXkgoxxA/WnqTu3hx2KQbHBM5DGZUMUSOXpBrX5bR6bcQkUQafQXXdiaP46sMWGVq/7hOYMAfIgN4mOH4M=@vger.kernel.org X-Gm-Message-State: AOJu0YwijINrUirCp/iRja5E4kzAXcALdt3rAdOFy4QJWo1faJn7t+xC 4pEcNBDKkNlCb3W0BRIE34y8XtY2dwqJuuGYGgq/SxsME5Epu+bjnME5Lg== X-Gm-Gg: ASbGnctLs1WiReR3RrQ33UgMFCm+Cr2r1FMdnBznz7YCjwmiv++Pm5iVX+0UTHnXVSW Q1PwSgGQ2UIptV627tGfU2r5h4rzIfESAyXDT5uhznS538IVnU+ELaRUm2s/hl0AvYceMCVCe4m 9ShMGoXmHzloYcKDQUnOrLeUgAP0Yb4F/WE5X7XH4uHiWGh7VIP3TVsy0czve6tZDMyxEKQB3Nw qlQCp6G4xEROMfPmFC0ALodwVfhWSJueOYiYm64D/RpFjGu X-Google-Smtp-Source: AGHT+IFd9GiPgYKS0OrJ8X51O88yZiCTaqgVAj++KcnEwdhvfjlIINzTyh5N9DzuJOTQi91gHf6qAg== X-Received: by 2002:a17:906:4c2:b0:aa5:4672:663b with SMTP id a640c23a62f3a-aa5f7f2ba80mr603979166b.55.1733348113622; Wed, 04 Dec 2024 13:35:13 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:13 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:53 +0300 Subject: [PATCH v7 06/14] arm64: dts: qcom: sdm845-starqltechn: refactor node order Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-6-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1030; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=7nGbNBR2rlmrlKV+/i/enn28MQ/yQq/coI0HrSWcwhM=; b=jJR5LsGtcevXVXF4PPpy2xEEiqnPLOmi805809B9C8p/A7L86qFimNCuOYs6ez4485tCrNghS fDhlMclwPKkBJ5Dj1ytYppYsC6MEp5SEEWFYZoLGRzqKUAUZoM05zhR X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Fixes: d711b22eee55 ("arm64: dts: qcom: starqltechn: add initial device tree for starqltechn") Signed-off-by: Dzmitry Sankouski --- Changes in v6: - refactor: no space between tag in commit message. - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index f3f2b25883d8..8a0d63bd594b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -382,8 +382,8 @@ &ufs_mem_phy { }; &sdhc_2 { - pinctrl-names = "default"; pinctrl-0 = <&sdc2_clk_state &sdc2_cmd_state &sdc2_data_state &sd_card_det_n_state>; + pinctrl-names = "default"; cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; vmmc-supply = <&vreg_l21a_2p95>; vqmmc-supply = <&vddpx_2>; From patchwork Wed Dec 4 21:34:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894349 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00A6F1F5422; Wed, 4 Dec 2024 21:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348118; cv=none; b=VzAOQZXuHGYKXaRl0NPGe1g7mrKpjidPNMGMfeVoEfI1zkeMlQE2nIpBznapthvaGBKgtr+xwj2flTaTwrePACTkY+3R0P+XNiPhk1zjJwcvMWiM4DsjxacIwBe0YaIhEXvsrFDnWft2g5hArbhfzj3RDRHSnPuc2eXTpN+rEnI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348118; c=relaxed/simple; bh=zvVaBsOx8LkyJfd75hG74//crP1potwo+5tyyj61pkA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Gx5mKLsyNzsF76+8J3EcW3BuyPzbVZDOhWQhrYasVcH5nmaK0SFFdew3fhpNid1V+XjcmPo2dWJ0lq5XswCMobLh9mtk6l32YEtxPU71EQQOAtwFvtP+jYULt0KG8mF7V9DSQ4egnHXHG4SbjRLTHcZn3/GaZXF3NQMeHJI6O1Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kWJDTQ7J; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kWJDTQ7J" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-385eed29d17so207958f8f.0; Wed, 04 Dec 2024 13:35:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348115; x=1733952915; 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=AuPrDy8IlYWpbtRwNyfywea8CseYGDtYL9HxzM4l+m8=; b=kWJDTQ7JYRibCrRPQwpBvWF9phuOTdvqVVqTdj85HRGWYBlyTIRL1DHYv/DETW8+8a lMMBPRplgY4NRQ8rmAusTmL2LiqMJi7NQ3HEzeeLLIukVc34iM3usdOEP97SCNEXksRo qG26/0Zg2lodDGQNAuzI5RwF2jdFE29xNLsm1BgNMQtvlANZs72D2e6GVEwuveFlm+NK +JuBWv8cj02GZaJiLG5mkFwEbMRSoAWb2oZcnqURumd4SdHzHf/6VnhMLlXmWZ6+04nv pwrENn6dgmJiCk1Cv+1QrUDK6TLz2GAEr5W/KOPyfgwqMO5UwsrSPeumpaOCA6k4b3QI b2fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348115; x=1733952915; 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=AuPrDy8IlYWpbtRwNyfywea8CseYGDtYL9HxzM4l+m8=; b=Nb0vfed0SKLf7t6kUVFAGaw7nnj+2dPO/YreQq7qNcHpDCTQ4GfisyJBtFJD3BqpEg BLEX+vKux4TcxdkfI2o+isqu9ywhBac4rcwq/oKrQtinJxUaYNYOPTvBm9NIngU1s5uy SAPMH5SoxeGQ+QJlImHsgEd/L26oNj5gh2O2SDXaHHsQ8NC20yPABrTjztOcGnRNErHv sxikYIkT3gRaAnWp/8i/ZD59QGvoXf22L5YiY8VxRcKC65X1OKUV3xj6IICxnPliS8V0 RwIstH4UHau/POwJ/UIdwLDKyJjQheXoGwQw5HxHBMJnhfKjC0VLTGntfXLZeBCJPWJB cSWw== X-Forwarded-Encrypted: i=1; AJvYcCVmKP5EdQq9WWr/YGmD8pAEZdMjiF8s5RewLywm+XTYOCCcp0TkG+xLTKlMJSSKZMdZXEByUIiYQX7nt1E=@vger.kernel.org, AJvYcCXeU5gQXAHl1BoK0O1fIUiAFtlf6KJZgHTV3Tt39I2A2zN6G/ezsV7umKxL58NZjPj9eOUadFazInrTrYJ/@vger.kernel.org, AJvYcCXtXtBkSSmj9rRes21a1SkI4VpDJ679HujNssHwEmM2B8at2+EqxmmWIhMdk6kN1jqMdZ89C65z1W4l@vger.kernel.org X-Gm-Message-State: AOJu0YyImEQwjo3oDHgQCnP3jTexbwulBuPEj4FvBpE6VaRL+PG29V5b B2ZaxBlSH3O6dg41ylWKCaIAs3R3DTStx7EiwzHEDaEMmcYx6pwoV/F8WA== X-Gm-Gg: ASbGnctX2hUlhuY2LMcQZXr3puKDm4idoUvCl3/r37z0tw8ciVQP3TCbtEJqQqyH8N+ GhlTOciJ/Ug1SBvA/GwVDo67OzR5YM1W1lgHOVV/xvUY+sZkAhALi+t97XgQeROZrv6bP/KgnLb 5AmhXqlYfDpO/jveh1bi1+xvqAa5LGsFwMtMO50JfeLlfeLGo7w6l2pTIfL2jGyYs0Nugyblc0v Fvee+SG6zM6RwMZRpGP6MhCJONWfRrZr5kdHkH7NOkjPnsU X-Google-Smtp-Source: AGHT+IEfsyRkYuAHs8u+yl6ZKtUK3ttpKUDUQWPgwjJV3nLLlPiD/hu6PyH68bIU0YLRjquIsUszwQ== X-Received: by 2002:a5d:5889:0:b0:385:c878:62cb with SMTP id ffacd0b85a97d-385fd53ee6amr6663715f8f.39.1733348114888; Wed, 04 Dec 2024 13:35:14 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:14 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:54 +0300 Subject: [PATCH v7 07/14] arm64: dts: qcom: sdm845-starqltechn: remove excess reserved gpios Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-7-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski , Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1258; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=zvVaBsOx8LkyJfd75hG74//crP1potwo+5tyyj61pkA=; b=9rR380WCgGe67pF5MGZ+uKZ+xelAiWdpPbNFFKvMisyVFxgwBqY8LXz6/cIQmTIt902VDjSwJ nKELcHBAMy1AvwW+XcYGWxTSM6QyzylT29VAbbi35/GP+tceka4stx2 X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Starqltechn has 2 reserved gpio ranges <27 4>, <85 4>. <27 4> is spi for eSE(embedded Secure Element). <85 4> is spi for fingerprint. Remove excess reserved gpio regions. Fixes: d711b22eee55 ("arm64: dts: qcom: starqltechn: add initial device tree for starqltechn") Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v6: - refactor: no space between tag in commit message. - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 8a0d63bd594b..5948b401165c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -418,7 +418,8 @@ &usb_1_qmpphy { }; &tlmm { - gpio-reserved-ranges = <0 4>, <27 4>, <81 4>, <85 4>; + gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */ + <85 4>; /* SPI (fingerprint reader) */ sdc2_clk_state: sdc2-clk-state { pins = "sdc2_clk"; From patchwork Wed Dec 4 21:34:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894351 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42A6D2066CF; Wed, 4 Dec 2024 21:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348121; cv=none; b=LppW4aucdVu2LbdmNwvmEFPLBRQxtxOEj9WS16XfHlmlzAzr5swkDmemJQH3EJbWQGA/vSR7rewL9jLXGnkLPzGnuI/awB4qX9SMYYehAPUx8+KbIlAB78P846JXDw3TGFSPf/oChPMpw6+rL/wYR7x3fvxNjTaEzPfykM9klYo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348121; c=relaxed/simple; bh=Gc4/S5UDLLZ+ufg8k/iV7+3SLIdTi//57AzyET94CIk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eB2vkkmqsXcxqIOx2ODm1HMmqyvrkiRJ9T5faZY9JUNJoLXlJAimkdHOYslDOthyviHTEWJskaPJS1rVEuWiZh3y9MyqUFAjrqxWqy2/yIxUotaGlKFl4BAyvMGER/UColOOh539sdYlevsFicMQtwPVE3ca2OgZXWIKgjyct8g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Yg0n6R7Q; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Yg0n6R7Q" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aa5366d3b47so33879066b.0; Wed, 04 Dec 2024 13:35:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348116; x=1733952916; 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=q9SZ4W+7hZgoL3SZDwrOLlupR4pLSVy/RP6+wF06pI8=; b=Yg0n6R7Qo4cwr7cMeiawSG4a5wy+kAgB1TZhYPblQbwVv6U/7ol93wokQv8kJS0L83 lHebecpCX6/Zb/hOFUkeCVYozOmc9+TzHCp6jiDdq7S2x2s2gY/Z1FU4QrIhOkGAZ0le QG2KopYwBfU/fG8S6L9iYYfQsM/bixR2E+rW8prH0rYdwQJRAyQASPsfI0Me82ePh4/Z +iApCXppQDDeaRRDgA6lwCm1hFpFbNCZ9k0yCDWg+fUNLHDC40CbwtFsC/+3O/B628/q ijceRyg9MvOY1NmZy2eQ0pXZvNWmhpGYpi4df4eMC2CPCFhEeCDpgAtHc2jnV6PLKasX wiIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348116; x=1733952916; 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=q9SZ4W+7hZgoL3SZDwrOLlupR4pLSVy/RP6+wF06pI8=; b=gj1UBlg5XD1IfhuYK1nHWVk7vjXmlhmtxHLdbE8OE7xponnYrjb53VhlpgpZxGYwkj tEGBogFZMucqX09G1dY/VdKvz0dDQAs8cDeDPn/fQrwzvXnm6YA34q/8ox9ZTpzipL4s 6gjjvkf5/qIXXdfIE3/s9/HvQHRWI6gZcZvAQ34QSjXi4haYY7Xsr1IOM8mLYeyq3NGz Hje/RAQBTx8ZQ2eWcbjYFkg+0LSRV/HMy9228GGT1ifvSgO8P5iRtvKUJ3u/7dAcZVU9 WnfKMLHOdAI3vTeIZNMHAksja17xsqQyKerzeSP6Fl2pMExTxihXEp78sUHm47PA+Jp3 2ppQ== X-Forwarded-Encrypted: i=1; AJvYcCUffntXDKd42e05gLnfLaNb65h0VTwvVc+iJVTUAoB8u0BioD3yKJS+BQsYuQ4/zeuiHRfUc4Ch3eXhh1EG@vger.kernel.org, AJvYcCVD3N1C8oZCx1cjh59LEypqsAurLYlaql5b2wqvxEGsk+AzC6xq67sbdyt2fQGNKhC9Ge0uYo5W640Z@vger.kernel.org, AJvYcCVeZlMtrQGci+ccopyzlSy5B7jPCQszKxU7T6Kj9uRwwqGnh1c0UfPnmYMkyGcBS88ElVEfhcrsVB2JyCU=@vger.kernel.org X-Gm-Message-State: AOJu0Yycp5AoSlymayIONkYAY/218XSWWgx03iOrbodYy28ONJWbC+G1 DCY7gV8G2PUyexK9h09ttoBKAJusCi9ldgDq4barAAx5+7dvTFDF5RPV6A== X-Gm-Gg: ASbGncudM53jq3SgzN219DTPQxHzQSx9DoV086MH/iwyfz/FJ487v2VRKD0qHucXixO X1O1seSRtPKRu7PvuctYftH46KnpXAfAxxOA426IjzSErcDrIg0KVvhvIf8EIgr65uvJmFayPu0 UQP1WaY1ABa+TswJLYS+r1DCjGs/rd4x+WKjc6oOA0JEaT3/m1/KA0fjvwoVA0RkeMh5uPX54o8 eKrOwN8lGUCu/6M4umH/bYlSEzFpoX+Zow2zE+icktSSh4L X-Google-Smtp-Source: AGHT+IH8AxAueBfrvL9t3nUdP7w0VquTTd5IXyWvNJJ0Xv2RnSD+qG/3b+HJIKWZe87n4F+r6Vn3+Q== X-Received: by 2002:a17:907:c9a6:b0:aa5:1a1c:d0a2 with SMTP id a640c23a62f3a-aa5f7da981amr643688166b.34.1733348116174; Wed, 04 Dec 2024 13:35:16 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:15 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:55 +0300 Subject: [PATCH v7 08/14] arm64: dts: qcom: sdm845-starqltechn: add gpio keys Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-8-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1758; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=Gc4/S5UDLLZ+ufg8k/iV7+3SLIdTi//57AzyET94CIk=; b=kk0JJWftT1FcudBLe5A2apgcGSI0cpi7vvIE6ku7vm84rxsZpkzsqxXk4lpM+pGb7///XkEEI jBfTeG3dNPzD9VccHrRUTu5xvM+WzA2ZHY3JhmmkZt7iW3aWxyOBtGW X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for phone buttons. Signed-off-by: Dzmitry Sankouski Reviewed-by: Konrad Dybcio --- Changes in v7: - s/_/-/ in node name - rename key labels - move pm8998_gpios with chg_int_default pin Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 5948b401165c..38c09e50ccfb 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -7,9 +7,11 @@ /dts-v1/; +#include #include #include #include "sdm845.dtsi" +#include "pm8998.dtsi" / { chassis-type = "handset"; @@ -69,6 +71,25 @@ memory@a1300000 { pmsg-size = <0x40000>; }; }; + + gpio-keys { + compatible = "gpio-keys"; + autorepeat; + + key-vol-up { + label = "Volume Up"; + gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + + key-wink { + label = "Bixby"; + gpios = <&pm8998_gpios 19 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + }; }; @@ -417,6 +438,11 @@ &usb_1_qmpphy { status = "okay"; }; +&pm8998_resin { + linux,code = ; + status = "okay"; +}; + &tlmm { gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */ <85 4>; /* SPI (fingerprint reader) */ From patchwork Wed Dec 4 21:34:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894350 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F192202C57; Wed, 4 Dec 2024 21:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348121; cv=none; b=qcWJfqgfu6aNkcfriC1PcSEmuMEylnnTg8bkbn/tWM5cT8YI1RlBu6G11/r9ETSU3qOaWWwxtAWYVMEyQvCkrQKVX0DTPTgB9k4Jid0vG8ameEuWhVctpJ+qcsWSn+mYWIUgnv2kun1AmIhmiUBC1Vk0KFz7gHVf6iqmbD70YX4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348121; c=relaxed/simple; bh=Qh+xvGITXTYzBDaqW8FdkjoSIro2L81CrVRIGrvD3qk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nCyFYMZl2S48qVOCH8cSGWFHmwa2JFB1405Un/wcmMDipimulxQ/rSp7br0RF4566H6F7L1Hp0LhMz/cihU1zn7elVS3Jkp4rH5K87nAWDltcFjbOPVHlrSeg89rV3p87nlKdnxxm/PshEDuuIjE9Lf/t/biMkRed9v0OnB+wn0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SZtJuPRU; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SZtJuPRU" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5d0e75dd846so250146a12.3; Wed, 04 Dec 2024 13:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348117; x=1733952917; 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=Ph/G4SC+VO4P2VZjitmcYB652smYQ5RMzCQYAyRiSB4=; b=SZtJuPRUo9vCcvPFeCq+MqarOX397pMzhDrVZpBAeS/2ijinaKjzJp6PI4OAB/VqHF FENcCrnzFA7fy5stG0A4KWnrfBORp8+TeklT+bd1vQysBhHcLLrZtbeAT+jd82pAlfgn m7Ea322HNC66fNQk1MIJ3CMvEQAX8YmDPfoBr48ZLWxz32WmP7pkGIWau9UH8lCqpmfx qapr7JOYniKGEnUGn/Wdz1/m1kzDETh1YjfsGoDj+hA9/CfoJIrBMeRFfiQI4dRuEuyF psklihRD1wnIE5/FHzeY7WJ6WRyT9A2B85lysd4/jGfMUUMUzhzM4hbcfz6j/Y0xRyM/ VS8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348117; x=1733952917; 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=Ph/G4SC+VO4P2VZjitmcYB652smYQ5RMzCQYAyRiSB4=; b=OmjEZgKQEC3O/3GRuemCNeIXQu2/JRVLSKLgGLRKMCxid7/rcJK5iTesOUjkmXCY9l ycy6LTw5+C4VO+3ni/5l3o8ueoi44dbZNwJhYuek9LPi7+1DHuN0AKbA53ai1UOrpyIM gxRQ6m3pq/+nuYAezjydVtAVjkfoAYIpmaARhZpoy73pG33ABTG/WTCysxfEugp3CteY dE6EQod4wyGufkcLTC8pxWFEAMxCp1Qj35nRss2CNoT2dvPJm73mJCu1Oq6q/OVouGKD CAC+NbA27oLkUHsOdjymcownYl7RQcMV6mvHXjDLyJuhYPhvEq6cSNer72iQ7wSWiELs gQKQ== X-Forwarded-Encrypted: i=1; AJvYcCUHyPpi29k2OnConcBgTQG6kv680FlTOYW74GCTeF6nsGFjglVrMTJ0BfkItZeElMkEsaRKVL2DOz3m@vger.kernel.org, AJvYcCV5oAmPWWtfYXqU5Q0pdBdhG+9GWBmpqs5pfUSam69tm/dBi2amdx8tTvyhRexxhxdIjabPZ6c8i8q2Eq0=@vger.kernel.org, AJvYcCWBGvP+aHw5LbwJY7RUbdKjYMojsZTCAs6Pe0jaZjM6qAHJ43xqGgxGsNe/bUGWLdZ4b5u2s0KpUp8f5hCr@vger.kernel.org X-Gm-Message-State: AOJu0Yykp+5RkKI3YNeon0ENHj9MaAueLSz7yiY+zGErj5KyHT7pX4EV BDrguYbM8ImJgIinGqQ3Mp4N1IuD8IKEYHqIJcqduM5nhz2gkprBs6ynAg== X-Gm-Gg: ASbGncsW/Ds9q8tMnPvOfHxgqrzAz/hRXklQLOYwSA7TVIRH3LsIOQ0/icfeLJjWdVc 3KKwZ5Dp6kKXXtzwwQX8UgXB1SUg3SosSxXFgOJoURI/fsP7uDDQMYBArosWomd2voUB5A9oj4V bnGo4UG0ICtpdVzLSqEHB9XFsUgKduFI3AjVnQkynAdW9oibIpwv2SPeXf9Gk8l/vlXkt3pX31I rStPs4UDWZeaV2JwgK62tlLKMB8Kq7v7biqbTp8xas8GLOt X-Google-Smtp-Source: AGHT+IHQiqPl03Z5gHjPB14Pue9iy1xGprs4WvdQcP4lh/YLITsIqSUKYpq7++lObh7T9v5adbtqVQ== X-Received: by 2002:a05:6402:4301:b0:5d0:d63e:6f43 with SMTP id 4fb4d7f45d1cf-5d10cb5c1d7mr9403129a12.17.1733348117345; Wed, 04 Dec 2024 13:35:17 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:17 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:56 +0300 Subject: [PATCH v7 09/14] arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-9-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=5299; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=Qh+xvGITXTYzBDaqW8FdkjoSIro2L81CrVRIGrvD3qk=; b=jvJPu3Jb/+c5a2ZQOdfGPppePP/EjJf9l5js3XhCO/V4m0Q9VHgUxnNVP4PTRCEekRbYtIs3H fqGniJTfDh7Bv94697XVlWyi2ZxTNtVJZtr7EnkQGh9upCGebXxLpy2 X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for max77705 MFD device. Supported sub-devices: charger, fuelgauge, haptic, led Signed-off-by: Dzmitry Sankouski --- Changes in v7: - adjust fuelgauge node for max17042 driver (remove monitored-battery because not supprted, rename shunt resistor property) - reorder 'haptic' fixed regulator node - move 'haptic' fixed regulator node to regulators - change leds compatible *-led *-rgb - wrap leds into multi-led node - add fuelgauge reg property - wrap led properties into multi-led - add chg_int_default pinctrl Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject - refactor: 'm' < 's', so putting motor tlmm nodes first Changes in v5: - fix according to binding changes - reorder vib_pwm node --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 38c09e50ccfb..c143501700a4 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -9,6 +9,7 @@ #include #include +#include #include #include "sdm845.dtsi" #include "pm8998.dtsi" @@ -18,6 +19,16 @@ / { model = "Samsung Galaxy S9 SM-G9600"; compatible = "samsung,starqltechn", "qcom,sdm845"; + battery: battery { + compatible = "simple-battery"; + constant-charge-current-max-microamp = <2150000>; + charge-full-design-microamp-hours = <3000000>; + + over-voltage-threshold-microvolt = <4500000>; + voltage-min-design-microvolt = <3400000>; + voltage-max-design-microvolt = <4350000>; + }; + chosen { #address-cells = <2>; #size-cells = <2>; @@ -32,6 +43,19 @@ framebuffer: framebuffer@9d400000 { }; }; + vib_regulator: gpio-regulator { + compatible = "regulator-fixed"; + + regulator-name = "haptic"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + gpio = <&pm8998_gpios 18 GPIO_ACTIVE_HIGH>; + enable-active-high; + + regulator-boot-on; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -90,6 +114,17 @@ key-wink { debounce-interval = <15>; }; }; + + vib_pwm: pwm { + compatible = "clk-pwm"; + #pwm-cells = <2>; + assigned-clock-parents = <&rpmhcc RPMH_CXO_CLK>; + assigned-clocks = <&gcc GCC_GP1_CLK_SRC>; + clocks = <&gcc GCC_GP1_CLK>; + pinctrl-0 = <&motor_pwm_default_state>; + pinctrl-1 = <&motor_pwm_suspend_state>; + pinctrl-names = "default", "suspend"; + }; }; @@ -385,10 +420,75 @@ &qupv3_id_1 { status = "okay"; }; +&gpi_dma1 { + status = "okay"; +}; + &uart9 { status = "okay"; }; +&i2c14 { + status = "okay"; + + pmic@66 { + compatible = "maxim,max77705"; + reg = <0x66>; + interrupt-parent = <&pm8998_gpios>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&chg_int_default>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + + leds { + compatible = "maxim,max77705-rgb"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + + led@3 { + reg = <3>; + color = ; + }; + }; + }; + + max77705_charger: charger { + compatible = "maxim,max77705-charger"; + monitored-battery = <&battery>; + }; + + fuel-gauge@36 { + compatible = "maxim,max77705-battery"; + reg = <0x36>; + power-supplies = <&max77705_charger>; + maxim,rsns-microohm = <5000>; + interrupt-parent = <&pm8998_gpios>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + }; + + haptic { + compatible = "maxim,max77705-haptic"; + haptic-supply = <&vib_regulator>; + pwms = <&vib_pwm 0 100000>; + }; + }; +}; + &ufs_mem_hc { reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; vcc-supply = <&vreg_l20a_2p95>; @@ -443,10 +543,36 @@ &pm8998_resin { status = "okay"; }; +&pm8998_gpios { + chg_int_default: chg-int-default-state { + pins = "gpio11"; + function = "normal"; + input-enable; + bias-disable; + power-source = <0>; + }; +}; + &tlmm { gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */ <85 4>; /* SPI (fingerprint reader) */ + motor_pwm_default_state: motor-pwm-active-state { + pins = "gpio57"; + function = "gcc_gp1"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + motor_pwm_suspend_state: motor-pwm-suspend-state { + pins = "gpio57"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + sdc2_clk_state: sdc2-clk-state { pins = "sdc2_clk"; bias-disable; From patchwork Wed Dec 4 21:34:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894352 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9BED02066D8; Wed, 4 Dec 2024 21:35:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348122; cv=none; b=iH1rn2ZkjV3YNpEI6E+1MNQqWSBYUqketdytjlQ7Snm/FMJDt7jJNAWhcwWdoYLGv7j39WL6OI0khJAQJF4ZMTmvtt/GfoFoHop4ahYj+R2NOiYhhFqYyJ325BYGPDe1MUPpNuidmVbGTKOV1t9aEYvXIACSK7aQkbGysS0sIBQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348122; c=relaxed/simple; bh=I1B6bGjvBKFt4XBd7a8aKNKz7MCwstChV5lIYk6cNX0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=J/RJZm0xW793GVxu6GLQlLQCvhBjJHZx0P2lefzARaRlIhF2exUgwjJRprXskVvDpaxbgklSDgSpOUE06L0CA/IJ6TsvGtmpKC35XvYdPeOpEyWEY17oQvtMyKFGoA7dmAH3mplMbfpkcay79mMgaULdBv48o5OrAtZH4vTZCpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JWupeMdl; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JWupeMdl" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-aa51b8c5f4dso26500766b.2; Wed, 04 Dec 2024 13:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348119; x=1733952919; 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=9v4tDLIwv4qcBhvA0GjLro+h+EIf4V/3OxoVVMD7YQs=; b=JWupeMdlNwNy2OFyCz17GB6sQcU/YhejD++ewL4S/jDREdRyRmbWkUqpFOqzhz9RPb k9XTQ5sgCVq7DFh8/ew+oU5o2DXrnqt3QrOKL3NsxP+Klw5VfUrFeyEjn3UZIfetnjQQ 2vBXqZi0zic5rs77rFT+tPa0peczWjwGu2ui3byQF1KMeT7TA6Cvw01YcIVUfb3iJIDX AYg7w56brVaFxCRyYAyXD4zK2YnOeE9oTOU/SJZl6HnJH/AgkW0qNeh26eju+4t6JsfB yJes7MRe9sT+g/N3C5n7eUqDJK9n5GemncGNUDqRR7fbvSd0QRjF8JizlIi+c+g5/je2 uTMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348119; x=1733952919; 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=9v4tDLIwv4qcBhvA0GjLro+h+EIf4V/3OxoVVMD7YQs=; b=A57+Mm/jdhhOionbVsPIJ7QCVacC+NwcRN3aWTZrPUL288C4jakoIpDszyJPKdhJvB RLi9N5Dn1LX0uOZlppKBtjqNql0agfAqIHLF02o6z5wZAyT9uP4V00JUNs4MejkmXvK0 HjQJ3SkMNtCrDXxfenxXrfEslLPJlWt/tmLGY0gwcpmzjCxb/0YE6oPqOsdHgsVI7rw5 gyCWKbHlyjrKf+lZLGWBAoB0XqUuhrwXeB1Atwsdb9970wM4Wi27P9Mc1r51LAiJI8sM FlRDniOqz7kYQu2R+Pr0xshAmAJuia84uknOei5/3GyCcyCdtb+Gq4/qcimq6CUYezXe 2v6A== X-Forwarded-Encrypted: i=1; AJvYcCVMcLMsHrYOHNfE7HJd963S+PhDp6xp1fvv17Nn/uJggprEnOo9oVIt1sKJxn6LvRLAsWxmC8qQitAQ@vger.kernel.org, AJvYcCVUzuY/koopNNNplJU09aQf+wTWru3FMkHiaj6yOlfmMVHe4H6Cwi3OdzC6End7dDQHk0b4kUrQwkD2R9I=@vger.kernel.org, AJvYcCWKUYEPd6nsG6oFD44lpIUc3t8lk0YZTKSRk7HivaB++EObFNb2qXJBmktPb5tBWjnMAIWLF1MGYUkri39R@vger.kernel.org X-Gm-Message-State: AOJu0YxoJ8oGylVjsU5iqiZ1QSOYyuEVWlfwO6wTUH1hlGaWpZtnuWhG rG6i7TBn556a9jlBXVGt52qoXSHMig+RNOH/hINUapDjRe1urwF9QAWuFg== X-Gm-Gg: ASbGncu2J6RVphUxo4deZ4dgYj7N20KNYtAVVHsHkv6TAN9UU9LmAOpPuIq31BMXUKy 70J1r6SgmEZyBnR5YZsPkaQykuNqHqlniWB5vQBW2GAZygEd/ip08raawKBhKcEy1ZxVNG22FZr gBp5MwVbycg3UApX0rkvd6tn/Vkh0rC5/0GyTCau7ah6uQFo0zT/hviliHvKz1AMduMqxhISIIv VO6IzjTL/W6fuP5EQWnoJZfgTInCiKaMYTlSaX1GjJBu4Yb X-Google-Smtp-Source: AGHT+IFgAGmoGJVsJzPaIMq30KV2D1Qq5ONA0mztbUJgS9L9bVoQF5OqOcYcBkf96O2meVUzed5IGQ== X-Received: by 2002:a17:907:7714:b0:aa6:2241:e170 with SMTP id a640c23a62f3a-aa62241e6c2mr81938666b.19.1733348118644; Wed, 04 Dec 2024 13:35:18 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:18 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:57 +0300 Subject: [PATCH v7 10/14] arm64: dts: qcom: sdm845-starqltechn: add display PMIC Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-10-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=3460; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=I1B6bGjvBKFt4XBd7a8aKNKz7MCwstChV5lIYk6cNX0=; b=qPkS4glj1A7X1Fo7e/l/W2eEBby2Hoj02MyvEZh0gcW5CyvQjrcW9xU5Xhla4KkcdCclvf8fu qF4/r0Yf36TANRXEqmxcc3qd4LQYn7Ovc41Lm7yVrcT0UPSeqWgvNg/ X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for s2dos05 display / touchscreen PMIC Signed-off-by: Dzmitry Sankouski --- Changes in v7: - move i2c21 node before gpio-keys Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject - refactor: 'i' < 'm', so put tlmm i2c node before motor* Changes in v5: - simplify regulator names - remove single buck index --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index c143501700a4..44a70f2f5a09 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -40,6 +40,9 @@ framebuffer: framebuffer@9d400000 { height = <2960>; stride = <(1440 * 4)>; format = "a8r8g8b8"; + vci-supply = <&s2dos05_ldo4>; + vddr-supply = <&s2dos05_buck>; + vdd3-supply = <&s2dos05_ldo1>; }; }; @@ -96,6 +99,66 @@ memory@a1300000 { }; }; + i2c21 { + compatible = "i2c-gpio"; + sda-gpios = <&tlmm 127 GPIO_ACTIVE_HIGH>; + scl-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>; + i2c-gpio,delay-us = <2>; + pinctrl-0 = <&i2c21_sda_state &i2c21_scl_state>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + + pmic@60 { + compatible = "samsung,s2dos05"; + reg = <0x60>; + + regulators { + s2dos05_ldo1: ldo1 { + regulator-active-discharge = <1>; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2000000>; + regulator-name = "ldo1"; + }; + + s2dos05_ldo2: ldo2 { + regulator-active-discharge = <1>; + regulator-boot-on; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "ldo2"; + }; + + s2dos05_ldo3: ldo3 { + regulator-active-discharge = <1>; + regulator-boot-on; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "ldo3"; + }; + + s2dos05_ldo4: ldo4 { + regulator-active-discharge = <1>; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3775000>; + regulator-name = "ldo4"; + }; + + s2dos05_buck: buck { + regulator-active-discharge = <1>; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <2100000>; + regulator-name = "buck"; + }; + }; + }; + }; + gpio-keys { compatible = "gpio-keys"; autorepeat; @@ -557,6 +620,20 @@ &tlmm { gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */ <85 4>; /* SPI (fingerprint reader) */ + i2c21_sda_state: i2c21-sda-state { + pins = "gpio127"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + i2c21_scl_state: i2c21-scl-state { + pins = "gpio128"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + motor_pwm_default_state: motor-pwm-active-state { pins = "gpio57"; function = "gcc_gp1"; From patchwork Wed Dec 4 21:34:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894353 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8A462066F2; Wed, 4 Dec 2024 21:35:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348123; cv=none; b=YAS1ZDRURmbcD0h0nox+PJ8e/jRvUgbznoHXWAhm34XRL9t9k7wcY1kOL8Y0jy+4u0EdK0ZclRWgz9KtVQr3wREZHi3P02iOPWAPEDuUsoBaqhNG1YvmFF3nwhqTMQoIWHAxNNgQFc+4FS3YrfCS1zwyKwTPJD1EBJVwXBVvjUg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348123; c=relaxed/simple; bh=Ppe4XJX8HWC5mRDSAJwcV5zPY6Dxs3QTSmfYtPfGMbI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GL4fa1kL8fO6dRBesrtipPfaku7AEFosk9azWHGADsP7T6n+yCQ9PYNuL7V9vDneAvu3VNiPxEsaN3vDi238UB2AJlBrSt4MUfpOgF5MlpQjptKSwTUVQVfHblt4qXCuqDWnoHCyTB/HaqMScmxK8DW8aBECil4Q9dU/cJIW3KE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=AB6Hnb0p; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AB6Hnb0p" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-aa549f2fa32so38876166b.0; Wed, 04 Dec 2024 13:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348120; x=1733952920; 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=zNMC3VECIaj3V7w9ANzM7fLDJKT28e7iJSL8sOna0Aw=; b=AB6Hnb0pEBoMG13TImLh3UTfI/9OmKK3uoF5c0XvhJPHRmyGgy4ecx8Cd1FTYQG8n8 /Jyy0HYuqF0aIlHCqyfRJFzi33gumi8RG9jt2vxyw5ZvPL8PilP17uyhVybUErhaYFfo GPTAp+7UudX4Ll/MUXRU5eWlVC1E6gQXa5KESgTU9BzA4CbiuivRtJinNIJsNFxEW1L5 lxUrOSmyNkxzY4Uk/VbR11v/l5CGteOzLnTFkMNj5PVZx47SxoxxLGDnVD23RLPC/8hX 7rctmyOiFk00ZGkmbXXqBuRJg2WiPDYQPrFJWkhluxXPVc17brfCatRVvP7XhjvjKxBv b61A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348120; x=1733952920; 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=zNMC3VECIaj3V7w9ANzM7fLDJKT28e7iJSL8sOna0Aw=; b=Q88mTienvIC0EgQFXUrGRFPV+VGbuD4h41nesp6Ss/gzeDacgg98GcKsVrxlFyYoUk oYkemm7wBI0bM1Kc7PeVjrNP02tkwtlW3BPVVyrswg4MCxc9RQE0FWmIO32dAPEic2ix LsqgMDgUv6ZI6ZKZXActTjJIG01/4ht9fdrVimfNBFQRT57VKFwBk0JxEmasjZosxK3t CNU1eiqwYTcUsiEv00Vc6lb5kYdXQyNlc7UXm/l4ZqK/ulelPrmvc9vwoFNEunCOwa4y hZrP2hSDPjdIuhEOMut8VUjH/SASj+yo3oKxY+5zsVF3fjzGmtCRR8ZTiudc+GN+iK/n 57oA== X-Forwarded-Encrypted: i=1; AJvYcCUdsh/6/9x0MNAO9TZ/zgx3gB+ffHgsKniXkFYYYgqcmTPgRMffvlwXvVxjP1PvKuSLwTO6KR3KcWotDdcb@vger.kernel.org, AJvYcCUr/eoqJ8TTkNlTwMHceyLuTxoTiq/s7PY67N0R22P2cr71IBzrDx9FFnRqy1u2I+hT3SOyYXlontXs@vger.kernel.org, AJvYcCVuwiSUj65RFzXavwfMEClMXC5YTyClg0HMvZf813jRjw9xTlWdR5BYr2E74XvkXFAn96Lx+V1+DdW0hyw=@vger.kernel.org X-Gm-Message-State: AOJu0YxQQnF4fXExux1ESjwvIYq2G8WNGJhqxcygPkscA2zL+qqrEOxG 9VMRIFk/vKL0Vhu9bGieYhGwZaoO3o7daZG8W5wQBu+9D8XyxBs264dW3g== X-Gm-Gg: ASbGncsfF2JUJYFI4PNw3wRV+66G7IodzWj3seq1PAepZ0LDPAIhx0ywXQo0JoEw+8R aDY9Rj/TYd/V/SXjeibkPwyFqvWyeClxaD8P8wknfy+cQO4uYXaOxSszCIOChfhFddJYFV28axu bhA5BwgnKcbKz0D52sJ3wAbHnYGiFWHguznYNc1bRsoMM4WkdWiOl6OilD7+k3/AGnYzzGE60sF S6U0eHlk5Q8DwKxJG4Z1vRMXRpO3nP7px3iljNLaykohjV7 X-Google-Smtp-Source: AGHT+IEVNZeXuDchR8MYkMCy3AGS24xV2mHVtm3IOMvGHvJfgPAok1wA2N4NMuXHuPwCfGaHJSRnWQ== X-Received: by 2002:a17:906:1ba1:b0:aa5:f2cb:2285 with SMTP id a640c23a62f3a-aa5f7d1b1eemr518939866b.16.1733348119974; Wed, 04 Dec 2024 13:35:19 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:19 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:58 +0300 Subject: [PATCH v7 11/14] arm64: dts: qcom: sdm845-starqltechn: add touchscreen support Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-11-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1393; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=Ppe4XJX8HWC5mRDSAJwcV5zPY6Dxs3QTSmfYtPfGMbI=; b=XEYZl3l3YrkTptmZ/V1LuJMY1LQXFyMxwC8IUyiAL2oyP0Thmp+fvnKpGtnNLwHrRefjj+A5x KvkWTFuX9IFAGLAYnPGwQYBxlPeqLk3gqkyF4tsZAv6ijuZwPn7bX4T X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for samsung,s6sy761 touchscreen. Signed-off-by: Dzmitry Sankouski Reviewed-by: Konrad Dybcio --- Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 44a70f2f5a09..039feb07ef60 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -574,6 +574,23 @@ &sdhc_2 { status = "okay"; }; +&i2c11 { + clock-frequency = <400000>; + status = "okay"; + + touchscreen@48 { + compatible = "samsung,s6sy761"; + reg = <0x48>; + interrupt-parent = <&tlmm>; + interrupts = <120 IRQ_TYPE_LEVEL_HIGH>; + vdd-supply = <&s2dos05_ldo2>; + avdd-supply = <&s2dos05_ldo3>; + + pinctrl-0 = <&touch_irq_state>; + pinctrl-names = "default"; + }; +}; + &usb_1 { status = "okay"; }; @@ -678,4 +695,15 @@ sd_card_det_n_state: sd-card-det-n-state { function = "gpio"; bias-pull-up; }; + + touch_irq_state: touch-irq-state { + pins = "gpio120"; + function = "gpio"; + bias-disable; + }; +}; + +&qup_i2c11_default { + drive-strength = <2>; + bias-disable; }; From patchwork Wed Dec 4 21:34:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894354 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F272D206F3A; Wed, 4 Dec 2024 21:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348125; cv=none; b=YoyQr7hoxgbF6B1urGYQ+gdli4LDxlS3J2ZgCDa76IuuBHeUbd9xrBfxrm7DsSjq0wx/HSOICfNM62Dp+px2qsSk2fp/QPRvOcDCAu1e1FIheaOcmc4rTjGy7b028/qnuNEJB6bwhtZPIjh8Fbt3z2MRD0yLtZWkkdjVbzYd+Og= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348125; c=relaxed/simple; bh=ZktPBha3MJ5/KlA9AlQzgKigSH5l+ZI/rkQsfGWIGo8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FFaWzfkOgsJJwjSwrHzh0hjRXd2OE1aPmpLnZSMe4ACpMZ3S/dIVhE1A1KM4lLtoUF8891ZQqXpPqLjhe39gLXVAgPwPKy5iyDCT/pmEJzrGqxxjAAEvaT3aNjQtimn+GkyBQL4GiLXg3XuedHzuS4hYWUUfIgB84B6SF8PTo80= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gSKi62n3; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gSKi62n3" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-53de84e4005so378693e87.0; Wed, 04 Dec 2024 13:35:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348122; x=1733952922; 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=unOUW9QTZHC1BrDegDGoofl1UJ0TCXgmMQQ4ICNFgMk=; b=gSKi62n3OWHIBWa+WGHzBps6KFPD9jcZiXIAWtD9vI/lKuAWuCo8NagX7ekn8Zvo+z SAXhS+b5xN/rHwqYDcWI9ig4S2FJzKqUca9OO581nKk1fkntMpIplB3I0NLnIu/GKHIW a8Cbm/mQiTbnPXQhmwOtBRkw4UfYlBSoZXLxHqgt6Y74178aezf7GuKT3A8q6klKKXU/ Gy8lv2PfG9+BNXhkJTrrLVjphKPHD/kLii8LxxdhGEy3+IMqHnBEGb12oyvVkPx5mQ83 nY5S0rQN31yf3WnMhnwjW7UNUD9kWglIt8m8NYihEDgoCXKIfPu9CLyhcN4wFypcBgGF zSng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348122; x=1733952922; 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=unOUW9QTZHC1BrDegDGoofl1UJ0TCXgmMQQ4ICNFgMk=; b=SgSh3LlJwZlc/3S4s2TeziuyanUFJnGhPArfMJ2DFbjJXgTbtQrNAOKMUvvlZ5+59v Au7EMAM0vg/AHeaqlQW2Jr9RZmksgz8lpN35ewPk8laTZRwx+R6pLuNSokpdJMqHU/cf nyq8g7T0akE4UENs7hF8u9OmJCiiZedsZmhLWsfXD/OUGkbKxIC4wIcFUW1LXJ0xrCuU JRO2+NTLDn4QKRSgrRchHSLJpz81/4SiRfgeKMeCxqzMM6ir0qxdG7MtnYzlgGl6tmQ7 n+fNKdsUdK5ndQTfEjtIFwLeulhL1a93X56qHNZzPvcaka7vq+zLClFQexZXRy5EtG30 3E8g== X-Forwarded-Encrypted: i=1; AJvYcCUHRfT2iNNsz0ESgmSNDBKbhHGt5fuafNpFgSlqSriYSw6aZA2MSTAHevBxrlFJf/nkb0668luWYLka@vger.kernel.org, AJvYcCUP10YHfC5BCMkuKleATgvH/UYgB91z/DF+9g0PMt2pa1Ecc7C/O4NDoi1Ll5SxyTRGtSFn3bx2K5APZNhb@vger.kernel.org, AJvYcCXSF0wu9RLhnOYrfVCB43FtFKrHjizP0HhoZ32/o0YyJb4Psu0AYciJJgv/QBoLeIbhy56oiWSjS98ttOA=@vger.kernel.org X-Gm-Message-State: AOJu0YzOA1cSpGkNhs3F0+rcKglO3A9wVj4feYttKGw/S7NGQUmIDvzW owFdzzCbpIyW7mCABts7fuiHssN0U+h0KHX50kfmDr9YridscAUsxeCM/g== X-Gm-Gg: ASbGncsF/DAk5DPAAKalp+N5KIQ0YZ1LIb34OttXTuk34mcIjzcmmHQHGe5ZzQyZFee s/DwNRamNORUZcuvJfKJL2lCwved9YZNYaXzrW3A9dnqI62UJmwo/KWdFLbuaxX1CuTtpBmroOx RTfv3gnGoj5aIS/b+KRA6uBH006yj0kgdGXtPN8NCd2mQuyJX+SP/QATq2L/uccOUxPW2p4ypKk ogr7qAug0iCxA/bzTQLZ9TqI0ayVZBh+T1gLAeDBmb1k79e X-Google-Smtp-Source: AGHT+IFpkU19KP0h8tweTA/NAEZg3pan/G3HYU4xPm0rqs5vgGmcuj0QjoU6cif6ee1dDCvu+jCp7g== X-Received: by 2002:a05:6512:6c9:b0:53d:e4d2:bb3 with SMTP id 2adb3069b0e04-53e12a2e4e5mr5715412e87.50.1733348121816; Wed, 04 Dec 2024 13:35:21 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:20 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:59 +0300 Subject: [PATCH v7 12/14] arm64: dts: qcom: sdm845-starqltechn: add initial sound support Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-12-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=5490; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=ZktPBha3MJ5/KlA9AlQzgKigSH5l+ZI/rkQsfGWIGo8=; b=Am0yDz0wiS+sK7Vn+vDnf9T/2pq+p6KNSC1aq8lTZPFY2qgzeKoIJXlUuoqQGdbJwf2EmH4UP IsEgaEp7j5uD8S8nIyxXwY55/0fiGOzO9l+pgUgkjFjKtYJl4YjJSK+ X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for sound (headphones and mics only) Also redefine slpi reserved memory, because adsp_mem overlaps with slpi_mem inherited from sdm845.dtsi. Signed-off-by: Dzmitry Sankouski --- Changes in v7: - replace indeces with constants from dt-bindings/sound/qcom,wcd9340.h - add spaces after 'link-name' node - remove not connected digital mics from audio routing - add DMIC(0|2) -> MCLK routing, because digital mics need clocks - align mapping comments, add dmics comment Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 223 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 039feb07ef60..04ef4f030931 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -11,8 +11,16 @@ #include #include #include +#include +#include +#include + #include "sdm845.dtsi" #include "pm8998.dtsi" +#include "sdm845-wcd9340.dtsi" + +/delete-node/ &adsp_mem; +/delete-node/ &slpi_mem; / { chassis-type = "handset"; @@ -97,6 +105,16 @@ memory@a1300000 { ftrace-size = <0x40000>; pmsg-size = <0x40000>; }; + + slpi_mem: slpi@96700000 { + reg = <0 0x96700000 0 0xf00000>; + no-map; + }; + + adsp_mem: memory@97800000 { + reg = <0 0x97800000 0 0x2000000>; + no-map; + }; }; i2c21 { @@ -591,6 +609,211 @@ touchscreen@48 { }; }; +&adsp_pas { + firmware-name = "qcom/sdm845/starqltechn/adsp.mbn"; + status = "okay"; +}; + +&lpasscc { + status = "okay"; +}; + +&wcd9340 { + reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; + vdd-buck-supply = <&vreg_s4a_1p8>; + vdd-buck-sido-supply = <&vreg_s4a_1p8>; + vdd-tx-supply = <&vreg_s4a_1p8>; + vdd-rx-supply = <&vreg_s4a_1p8>; + vdd-io-supply = <&vreg_s4a_1p8>; + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <2700000>; + qcom,micbias3-microvolt = <1800000>; + qcom,micbias4-microvolt = <1800000>; +}; + +&sound { + compatible = "qcom,sdm845-sndcard"; + model = "Samsung Galaxy S9"; + pinctrl-0 = <&quat_mi2s_active &quat_mi2s_sd0_active &quat_mi2s_sd1_active>; + pinctrl-names = "default"; + status = "okay"; + + audio-routing = "RX_BIAS", "MCLK", + "AMIC2", "MIC BIAS2", /* Headset Mic */ + "AMIC3", "MIC BIAS2", /* FMLeft Tx */ + "AMIC4", "MIC BIAS2", /* FMRight Tx */ + "DMIC0", "MCLK", /* Bottom Mic */ + "DMIC0", "MIC BIAS1", + "DMIC2", "MCLK", /* Top Mic */ + "DMIC2", "MIC BIAS3"; + + mm1-dai-link { + link-name = "MultiMedia1"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + mm2-dai-link { + link-name = "MultiMedia2"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; + }; + }; + + mm3-dai-link { + link-name = "MultiMedia3"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + }; + + mm4-dai-link { + link-name = "MultiMedia4"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>; + }; + }; + + mm5-dai-link { + link-name = "MultiMedia5"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA5>; + }; + }; + + mm6-dai-link { + link-name = "MultiMedia6"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA6>; + }; + }; + + slim-dai-link { + link-name = "SLIM Playback 1"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_0_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF1_PB>; + }; + }; + + slimcap-dai-link { + link-name = "SLIM Capture 1"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_0_TX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF1_CAP>; + }; + }; + + slim2-dai-link { + link-name = "SLIM Playback 2"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_1_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF2_PB>; + }; + }; + + slimcap2-dai-link { + link-name = "SLIM Capture 2"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_1_TX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF2_CAP>; + }; + }; + + slimcap3-dai-link { + link-name = "SLIM Capture 3"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_2_TX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF3_CAP>; + }; + }; +}; + +&q6afedai { + dai@22 { + reg = <22>; + qcom,sd-lines = <1>; + }; + + dai@23 { + reg = <23>; + qcom,sd-lines = <0>; + }; +}; + +&q6asmdai { + dai@0 { + reg = <0>; + }; + + dai@1 { + reg = <1>; + }; + + dai@2 { + reg = <2>; + }; + + dai@3 { + reg = <3>; + }; + + dai@4 { + reg = <4>; + }; + + dai@5 { + reg = <5>; + }; +}; + &usb_1 { status = "okay"; }; From patchwork Wed Dec 4 21:35:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894355 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00865207656; Wed, 4 Dec 2024 21:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348126; cv=none; b=UvJssyLSNUdvkeqOMVds9ejyxRXY1w7pHFtfelwyE4sFLidtz4BUIaf86FnuyzrVHM8df2l4o1Kbwv3ygoJT3aAG3EHGJwME/x/cxeckEgMBihHf4lXQhp3m0rECtS0qShSAuvuzMhvSZ0yv/sAw3F0J0fIcd/TzjeEM+8k8RDM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348126; c=relaxed/simple; bh=uW3TPvnyVbOWrR6A/8rgsRdgj3Yworgcih8zs6Uk61A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cbSrgRXkIZr2msxSeG/LuSC+8pXkwA7U8TcOOWZ44ToWNaauxLLHSwsA/ayM3/jRnBnxyhyBICGjOtg0ixI83SIkbrqaBUJAojvfa+/Ki3XaoCmRLDCV4i6PrQq+AE6FcN35GCHXJbfh4t7e0PX9UeB0pj74knBCdGQZlz2ei6k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MKoOW3El; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MKoOW3El" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-aa5f1909d6fso32118566b.3; Wed, 04 Dec 2024 13:35:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348123; x=1733952923; 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=VwFQy8X+WDgmt521NCES9Gjn+QOPDf6YmgCxf6bOiC8=; b=MKoOW3El7b93JGUDXG1j+VQ3uU7S1p1Po+AtuUzsutCMHjKt9i4O2vviXJCSwcGqYj qecMm5HckvrKMZwdjxQSdsXX+cpMcOJzjBH1GPq/a3GicKUD0GiAjeCkwUDOj6owe1xA q7DUCgT+/eijglN+oHBdhiMX87FtyP9RNmxGgzTYwchX53abmLxNwM8jofsL+L0dOqqO zJqivi0qgkhrDYjsGBIE/eBK2AkT9mcaR34P6IhWYe17XszY3lVxNV91m6PNXrN5HXxa JXohCFlR9uKY2XbB1NYxoA+jhgANtuyxKlT71uQEpxJ10MCkPPl13gzX+bNmacpNJdW5 pnvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348123; x=1733952923; 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=VwFQy8X+WDgmt521NCES9Gjn+QOPDf6YmgCxf6bOiC8=; b=P0x3MDdf0ikadapWXcGgROwWZKc55u1PYkITGP5UKSwWF68k4U1ETo6bEZSsSTTNZX EF3WZ0KC7QUPRg/RsWVCt96Lok4EqW6lU423lMjr1csbXjX7YTwHMo7T4MmN/rGzHZjd JiHy2ymT1nNjeNkm7cYFUdfDuoQDW+WP5/ZJzezQDngvFoAp++xaqKDcdi/yFo9UXNtu 9Cc4Q3hCqbJniEiK+SG2OsqZ34sKduVDOWjYWYomM/etlnK9pmG5MsgbeRyRDZwC/J5p OOtV/5EkC85TneBD0WDwVeVuVrwsWJoNQT6vwMa/FfpoEdl4LGDoqPM5SBiYGZhxpylw KlwA== X-Forwarded-Encrypted: i=1; AJvYcCVpSdMRRCSB71JRic1sUO5G/j1c8R23tg2UGg8Jy19+lY33eUSb9y2TMl0A5KtNxxxm+Rx/AgqchZBiaGI=@vger.kernel.org, AJvYcCWpcxXEyHQhD1U5DNZqQQhnLr6xKxx7+kwTRj27k6EEvPaPY1bgEf30hJI8zyz/uXhB540kz/ie0aHx@vger.kernel.org, AJvYcCXMnmGx7UZe8M4V0jl+V2I6ZC+Sz/Ks/4IdSqaAec0EnKBECGcv15LV/npu/MPk6oXPVaymtflWbtZo5z9q@vger.kernel.org X-Gm-Message-State: AOJu0YyMnNL2e/T/3m85sYXLzvTwJsbeQOR1k1S/l7GvmpY6l26pE/jr kcD+pIYCKhhTjFRGvon2DDIrEEkbGJbL1jyC7RqvzHsdGlB3xga8TWvUpA== X-Gm-Gg: ASbGncthTYgauCajYLVfI1UbWYTo2YSDvK4FBXKZoI2rDUoPSxdpHrC+JGC6RMa1J+7 p2iQImc0uGbeuh1RetWGa81HbUzcrTm3NCYeujFOChBBWD3Ce20kPF7AtRFGiOKk45C2atC2ONp 8nOf9h9On9IAOZ6B0QI0dwrGxxcUoK+ELwnK9DoRmCgfHT574dXDCgUiAeOsi+Wbom/ap4KIHUg NapAnn8Qz2YeJs+cf4eAgVARM8LyeFTuOJYMVP0hg5gZn1v X-Google-Smtp-Source: AGHT+IEHXts7Ylf/aSIM/txH9nDWPDxCNc1p/Vf/oBZserS/EJIF8uqKXRw6B8TrBFf92AaLPILtjw== X-Received: by 2002:a17:906:fd8e:b0:aa5:241a:dc77 with SMTP id a640c23a62f3a-aa5f7f2a1b4mr976130166b.54.1733348123126; Wed, 04 Dec 2024 13:35:23 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:22 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:35:00 +0300 Subject: [PATCH v7 13/14] arm64: dts: qcom: sdm845-starqltechn: add graphics support Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-13-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=2444; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=uW3TPvnyVbOWrR6A/8rgsRdgj3Yworgcih8zs6Uk61A=; b=m9a3NyVMdItCnJRIRP2Y6uwwrqqoROFKdb+mQDjBRkhctZBn5tbNcqoYz0Zc/fbjkeUf4+dPU UQEmLCfCoXHCyIJJTv1ZrY7C+OKkBy0IPU0n9QhrEGEHKaKVCSAZB7S X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for gpu and panel. Signed-off-by: Dzmitry Sankouski --- Changes for v6: - refactor: s/starqltechn/sdm845-starqltechn in subject - refactor: remove 'sde' prefix in tlmm dsi nodes - refactor: place tlmm dsi nodes alphabetically Changes for v5: - fix label names --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 04ef4f030931..15997cb88576 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -208,6 +208,52 @@ vib_pwm: pwm { }; }; +&gpu { + status = "okay"; + + zap-shader { + memory-region = <&gpu_mem>; + firmware-name = "qcom/sdm845/starqltechn/a630_zap.mbn"; + }; +}; + +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + vdda-supply = <&vreg_l26a_1p2>; + status = "okay"; + + panel@0 { + compatible = "samsung,s6e3ha8"; + reg = <0>; + vci-supply = <&s2dos05_ldo4>; + vddr-supply = <&s2dos05_buck>; + vdd3-supply = <&s2dos05_ldo1>; + te-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&dsi_default &dsi_te>; + pinctrl-1 = <&dsi_suspend &dsi_te>; + pinctrl-names = "default", "suspend"; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + data-lanes = <0 1 2 3>; + remote-endpoint = <&panel_in>; +}; + +&mdss_dsi0_phy { + vdds-supply = <&vdda_mipi_dsi0_pll>; + status = "okay"; +}; &apps_rsc { regulators-0 { @@ -860,6 +906,27 @@ &tlmm { gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */ <85 4>; /* SPI (fingerprint reader) */ + dsi_default: dsi-default-state { + pins = "gpio6"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + dsi_suspend: dsi-suspend-state { + pins = "gpio6"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + dsi_te: dsi-te-state { + pins = "gpio10"; + function = "mdp_vsync"; + drive-strength = <2>; + bias-pull-down; + }; + i2c21_sda_state: i2c21-sda-state { pins = "gpio127"; function = "gpio"; From patchwork Wed Dec 4 21:35:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13894356 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C88C20767C; Wed, 4 Dec 2024 21:35:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348128; cv=none; b=XRE3N5zDuuLSCr91xRy7+1MeuMhGjufES7gzF7KZ5fy+rEdYqqybms/jFy7wqJ/We9GllHHC8qoJjYGOmGVtpByIVFKx6aimFK+8dxXK+pGOPklDbUQhaSc36FGa27lctBLh3hbsHPngF4OFF2L7rymfBQlN5YbkZsC5bEA6F8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348128; c=relaxed/simple; bh=2tHzmSguC9B88sWflOmx2hAs+IwmerQrL2ci2kCVlbc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hAphVaTBQpppsvm2B7sTbh6RHsPtu76ErdhxVc5ztLeGog74FYn5KQyKwic+XcLI7Hkxw4XF8S+3p3CwXPKwiTbFZBNkgbhcyZHIpQsObf4FY+sboA4RClx3pnfp17/aXcZ+Azn3B07HpANp5xvlfE2jHx3fgBOHXQ649YnzOEA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JLYbAuyo; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JLYbAuyo" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-aa1e6ecd353so28659466b.1; Wed, 04 Dec 2024 13:35:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348124; x=1733952924; 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=yxgQfg2BOAQCHKqqupwnI8lgxyjM2FrMmQmc5aOhDZM=; b=JLYbAuyow1f7o3FHUSQOGFpNEf6OSSVmfHiSylJf6d5mQd+5SnDa4e8q6+cUP8xTrj 9d9crOgTRG6r9JIXtPwiIL67HVQoQxaW2u235MAQqQiJAMuh1qZUIMyiFNW3NFZv4gB6 tRVmYaaA1ta+N/Vf0rIAVf9DwsQRJuEJ3T7qg9clkldiBbkncB1ljVXYRMvlo/u2FLCZ LIbEd37STlFzx9t/+Nr5w2D3BLvHAc30gOayRtVTrm8YiYcu1duhuTVFMbiJA3qNy8y9 VgqIUDXgtHV77H+IcC6h5B9QJI+eIJgMNB74SMblLEF03XnH4QeEYqqORWBcYZ1PQYG7 MDvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348124; x=1733952924; 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=yxgQfg2BOAQCHKqqupwnI8lgxyjM2FrMmQmc5aOhDZM=; b=UpeoDDKfOGW+d5oNRz7YQcftNkuMasV1cMDIIWbgXaiiXutKn/8hfldpLEwCs0gWWv 4DEqwgOfUKcUFOJa6ciJswK3MsGDXR9l3DvtXfWqL9ATj5POmSxOuzzsRRz6E0sFgowv JMh0pawQmhN7RlPa+DjQ4nUyDoNSebWscx0nZmRFiEcqdmAHSCD/PaXxD9ENjdcqtFY1 OSZd+PQYMiJHxNb+24RrsMLmrM8AWHD0NfDA79/prmXh9+5Suz/9fcLW30l9xbpAkcwf B/7I/JM2vKoSglLo0wJvxHxUNtwNekHXbDYhBtEA3L9LvH/r0ONjPyot2Irh3oAG4Cuy Nohw== X-Forwarded-Encrypted: i=1; AJvYcCUOaYLIJcFHnUygNbKmeFGZkVy0YARH9C5Fe1/hywZpyKgPcip25U8snCyfDmd2wnWMG4TJCgY/Tf9VqfXl@vger.kernel.org, AJvYcCUR0MLJdQgJqB30jTX3w2adncajcb0WBXADfJKOkd0vzvLl03vhZe9y4egVrOSDAUKpiMwvP9M5UF2B@vger.kernel.org, AJvYcCUxa7gONAdkeKJyT835LEPoP0i/qVzUP0uS32/NQMv5tCwmPt2Ks3lr5Puc9IE6fLEM/h/CmmoLo/IXnLY=@vger.kernel.org X-Gm-Message-State: AOJu0YwPZwDPfL+xTsU8CVmG7c7j5i8jEhqksatQ/eFH/2ctXIMgI4/l te4EJnYIJrds/ZXSrEa4ApXIkoCgmiegINzWEc/0Si9l2uiWZYoLL+sfsA== X-Gm-Gg: ASbGnctEWsXn5H9CT3e1t1uC99iab/bXW3meVnIeogAN+JmGbUVXpjug/eDJfsU9/mb eRx/4D6Fd/o5jV/85vqNSJrUhviwBTR/Zku9g+pKIKp6ZaEbwwQ254jDBjag4IBT3quatIS0YfW wpraYjjgVlMJLE4IxlArrmEPnpGEBA48WyOmYmQBgrlrHAj9PjsInUngVrezBTi6GpIfFSPXqLZ kAfQntc/nKcdef8l1hVqnTtdJRN6yrmKi1ay36eGRmcEKXg X-Google-Smtp-Source: AGHT+IH6mG9xi/70k6iJ4wp2PEjv/SLud4unNTG9xLbEgrvPdO0recQ1Sim7i3L2L47S1NWkk+2mYw== X-Received: by 2002:a05:6402:26d6:b0:5d0:8225:aa19 with SMTP id 4fb4d7f45d1cf-5d10cb4e6f4mr11331230a12.2.1733348124368; Wed, 04 Dec 2024 13:35:24 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:24 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:35:01 +0300 Subject: [PATCH v7 14/14] arm64: dts: qcom: sdm845-starqltechn: add modem support Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-14-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski , Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=2190; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=2tHzmSguC9B88sWflOmx2hAs+IwmerQrL2ci2kCVlbc=; b=q2wZX3JTiwbyE2T0qQQbPRWF/TcfHXn33BTKtXaRAQF62LHBipGA48X+qNaNrBIeJ/jHS0Utt JYDZG1Osu9ICk+CPnxhmmQFdDhvlUfkLXkvSretPAZ+oI4OpwXXU+Pj X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for modem and ipa(IP Accelerator). Add spss reserved memory node. Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 15997cb88576..4583d071409d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -19,6 +19,8 @@ #include "pm8998.dtsi" #include "sdm845-wcd9340.dtsi" +/delete-node/ &rmtfs_mem; +/delete-node/ &spss_mem; /delete-node/ &adsp_mem; /delete-node/ &slpi_mem; @@ -106,15 +108,39 @@ memory@a1300000 { pmsg-size = <0x40000>; }; + /* + * It seems like reserving the old rmtfs_mem region is also needed to prevent + * random crashes which are most likely modem related, more testing needed. + */ + removed_region: removed-region@88f00000 { + reg = <0 0x88f00000 0 0x1c00000>; + no-map; + }; + slpi_mem: slpi@96700000 { reg = <0 0x96700000 0 0xf00000>; no-map; }; + spss_mem: spss@97700000 { + reg = <0 0x97700000 0 0x100000>; + no-map; + }; + adsp_mem: memory@97800000 { reg = <0 0x97800000 0 0x2000000>; no-map; }; + + rmtfs_mem: rmtfs-mem@fde00000 { + compatible = "qcom,rmtfs-mem"; + reg = <0 0xfde00000 0 0x202000>; + qcom,use-guard-pages; + no-map; + + qcom,client-id = <1>; + qcom,vmid = ; + }; }; i2c21 { @@ -860,6 +886,19 @@ dai@5 { }; }; +&mss_pil { + firmware-name = "qcom/sdm845/starqltechn/mba.mbn", + "qcom/sdm845/starqltechn/modem.mbn"; + status = "okay"; +}; + +&ipa { + qcom,gsi-loader = "self"; + memory-region = <&ipa_fw_mem>; + firmware-name = "qcom/sdm845/starqltechn/ipa_fws.mbn"; + status = "okay"; +}; + &usb_1 { status = "okay"; };