From patchwork Mon Dec 9 12:09:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899433 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 1D363221DAD; Mon, 9 Dec 2024 12:09:39 +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=1733746181; cv=none; b=uj3B2CLgUp1lDsvgLLY0ccTP4b8duYXaKUdI72r6PDZ/LJWBDmkVykPxx3Ng5J9WThMYDEvd0GyKfF4ojsPqnDdlSnCt/BUht2XVFSqUimtTSfXBns9qn860nqW/5Df6vAyuoo3xrJLQrfn2LeVZJtoooPYhg3hZlT+CQzBRn5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746181; c=relaxed/simple; bh=eOIOn3QlgApD/ENdOuFA9hKZGB/68p+jAtBg/Z5OlNg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HiofgMU7KTliv97Kog4MIuIvIhLne29C/vby+I4OxBDZIWGbF7VBKFs+DD9bY4q69AvNC5ElzGjhaVZ+i19SMy9VOZWR5q/15KX9PsuFUgRpU2oB6ClFLb/YcoKcr7tXv8MBEbJ0u0KCDjfJwKWBmRkGnlMEptkz/ygeoq9LxGQ= 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=Wpt71GpW; 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="Wpt71GpW" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aa69251292dso109382566b.2; Mon, 09 Dec 2024 04:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746178; x=1734350978; 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=U6icC5XFDf9W3w1SQon9f4fRnLynaXQsz27WhJ5gCUU=; b=Wpt71GpW0xAcXc7nYDJ+rR6knE3sJoFrY8rm/Q/o1I9PFscKzJ8yVKuKjHokLobFPN nc2PFZOt/pUOXuKwsj7wrrALadWMWddk1O0TJEnQQ2cWmTZXW56Vy2UcgW7DCaHTk71j CuYr1xiay2+hIncc5GUmtTRktRwSRgIMYQCkXkf4/LLu+kiZeeIxOtmZTZ+CeIEw4f8c 5OObt6hRRdlzbr7rJHgQBaShEPl55g9a5hdOcae21U+Ii1AQ16lMbGXJXiLDPDnD1we3 QN5oz7nRY1MQnNSbXP3Wt9e2dIvmCvGOgo+n3VfcW0JoUNKcjCNMM+LVmEtq3/+ViAno 1lYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746178; x=1734350978; 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=U6icC5XFDf9W3w1SQon9f4fRnLynaXQsz27WhJ5gCUU=; b=fgNPGLyneHrn17lRwIF6OHK0B9H49R1OrSpId79n92C75h2YO6r/Vltif2PpOYr9Dj nOaRPqfIgfSQ7umB4OZaLIQhpiKBT4I0Px6rdAASLukDDhaQZmUXQmixUL3rDLyn5wDd auhtUEUuXp9HL7qt9P04A1oKoEtPCQX/dshJQRmwn6TEWj8uMA4e6ysb0EHRaiWXBawe vHr45jly7+rEJ7ylIXm9ldGd3RIYupgO/nde9NHxvxxohhCjQ0ZjlODT6lValD7il3ch Z71hWhvYihBhTbqaCbzGcyIGFtU5nH5rJC/6aN4XDFghGMy7X9xhzwxD2Fnr+5xg6AnB Lksg== X-Forwarded-Encrypted: i=1; AJvYcCW75B0zZWXpAuklwacq0s2LAGrj2h4c5Uao5tOim/9INrIMlDAc02u8JP76Db4llWeKnDD7slthPrwi@vger.kernel.org, AJvYcCWXuIv6s95RTI3x3q7TQsNGfYTZj6jv8DoeXuQ6aG/Ek1Iyuh2PU4sbwwiFnfwaUzbyYSbpTKrauJgHBDc=@vger.kernel.org, AJvYcCXCs47FlW/1XqQxRqgbwETN4lelrHjXyeP9DhmUIiY6sM1+3a3bvL5Tg7oKZLwTqPBhqFdrkUgWOOYXE9JZ@vger.kernel.org X-Gm-Message-State: AOJu0Yy7fgXkaXBU5iBI1yeSX7eMa2FF2VmCxuSfXgCrDr6EL1/PRRGc 72OzBv4ZHThVoCKZi4i6UJzX5JbUcbqIHVgnnckq7Iy+NPhrjeQc X-Gm-Gg: ASbGncscI91lPMnnU7zYifETtnGcbFdZQbzD5gjRptLsGZF24rj6mxSjO9KAqOLH4Nw c7J71IJcWRaMQyYLmd6KNgdrG561rLDScrrsKiJCvnlqEw1pueFmrr6tnhg8z9T4teAz176A7Fj InuLL20oRZl3127AxZNMb7XAVXxs7R3Kb7gobKHUbFPfBIt8JxkRRGl/di9BRNErwsPtnilS7iU Jp5YdLmxOTzItqGST38sKUdgAf56VFA0caK7jTbPqqNYxIU X-Google-Smtp-Source: AGHT+IHxiDLn64m+JcKK9Qf9i79XOmBovQ91OHxEqbb9Ynp/lK73w0C3qT61e+OP/hTDQ1CYF8UBuQ== X-Received: by 2002:a17:907:2595:b0:aa6:88b3:ba4e with SMTP id a640c23a62f3a-aa688b3c0f4mr317323266b.36.1733746178310; Mon, 09 Dec 2024 04:09:38 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:37 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:05 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-1-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=1649; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=eOIOn3QlgApD/ENdOuFA9hKZGB/68p+jAtBg/Z5OlNg=; b=JcK3f33ZOFt0I7tl18mqAboMiWZL/ea8wfYaXQe0umj3DFBgRJzcH6PHV+DVMU1dlm3B4bGft 5HgD3vGZbTFAhKGiJAE0Pmt5ASHvzv3Ahs1dy+CntmKs8f9enZgr3KW 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 Acked-by: Krzysztof Kozlowski --- Changes in v8: - remove #define NUM_CODEC_DAIS, because not binding constant - fix intendation --- MAINTAINERS | 1 + include/dt-bindings/sound/qcom,wcd934x.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7700208f6ccf..f69ef5851298 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19015,6 +19015,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..8b30d34fcc87 --- /dev/null +++ b/include/dt-bindings/sound/qcom,wcd934x.h @@ -0,0 +1,16 @@ +/* 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 + +#endif From patchwork Mon Dec 9 12:09:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899434 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 E9D60223713; Mon, 9 Dec 2024 12:09:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746184; cv=none; b=HkOrxAFOLBM1OGzXgHEV/c4XFeUQ4C6jYa0rtWobgqdT2AF9lbcQohnNvMgyqZsts4rlpZYjIaIt90nJfshymvEjJ1eQLeRqWzQRxZGOztIrkNxMmV+k8Gao7eiy0/TOWoh1VxAOWLln/qhkgMjNlNY1lpCYcKt5dyPAZymlTQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746184; c=relaxed/simple; bh=AkxJa9gm+QAzj6Sm1R/LAYObDvk7bZvdOrvTbAAam9E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H0fmWYubiRRSTvbBdqUjMXibbXk3CW79EmNzQbY7RRHEoNb6v+9z5EV9SkYaVi2KPwwvWRw5vW7NbAmWHRLxCOzlJPgLoYn7pUAuutN4HZwLJx/vAf/XZpf8FijZxyh1O2QKjaFWqkkTrR0/r0AW+F7hboN+Wd8UpveELl6zf2E= 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=DRuGZS0j; arc=none smtp.client-ip=209.85.218.49 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="DRuGZS0j" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a9a0ec0a94fso573217066b.1; Mon, 09 Dec 2024 04:09:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746180; x=1734350980; 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=bN76fDDDd4ByEAfIYdynyJ7hXuJ3DLoSmix7bYa4BD4=; b=DRuGZS0jQuiFAeb95y8zXPAtsmKb481SGev3uWZCsq4QJ90Y8b4DbQc4ZFx9n1mK0o tI11zhF9NI0t9xDIx5Rp9bC7eef7z4sNyEjqsyIjSKt9RnJ/aqZHmbJIZRNCcyYfgicx CNBIcjUYIj9YoT9BaYL52FcPCGLsbCUpxDwoXS8KNfttWW1MqzqpAmiFZmp53MarvKg7 0VraZksKosNL514dtBAbimhRHml3dz0mFpm3GXmex3EPQ9G0yGam49qJih+p9QSBm4rf NgN/xRRfbdPMcLNAGEXBwwcNqntULfSxfhJgBrCWXwthyzQGsPVRJRN1CD+T59r9Oszp fedA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746180; x=1734350980; 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=bN76fDDDd4ByEAfIYdynyJ7hXuJ3DLoSmix7bYa4BD4=; b=Jqv/SXH+WnttvEAvkqA7xjdkxoM4m4Rr0yRtrg/IStOKQipMOepnVbPacxjE/DvDNI o9RDEj4PiMNpYqqQdjREI2KXJjjrHw72y1qnafQzDKVOpupeGqQVJfQ9D2lSxPWxrxkf Xv1f0bLqYGMfawEJrWU75Bk4FdFxlm254tBIhRjTz8NWWYrUFkX7BIrl1OPpO5OeW0dI c6mxQs9kN9ANs1o83omafDC1FFhWnma5ta48tLd8nmUxRA9aSJ/64plNDLRIoNp0vqqc GX8d1A2lbCBb7xi1f/nJHS1bXtXuIIvr2veUBdvrTu9eCkvvhnk2LMvWxYrPV3BSVI5L g8gQ== X-Forwarded-Encrypted: i=1; AJvYcCW7SARL/ngB9sYEg8mFSfish6AR1zvZWRikry4R7J1rTGXvnOpkMJUcVJGOW3DiAiTmXzDG5e62x4AWdOKQ@vger.kernel.org, AJvYcCWHny6HGduKFr9xQpXSNELdges4+nI+cGY5Mbg1tvhuwK0hSlwZrsWh1FRFcxw5G+03b+i5BFVLrCfPs3c=@vger.kernel.org, AJvYcCXFLwxgbeF1VaGMCLkxHhsqufQKE/QZP5AyghzXBH9aqrCaHyu6HQrfXL1wAFEV/l5rc33bkMSf429A@vger.kernel.org X-Gm-Message-State: AOJu0YyRySdhfr14jmd/v9RLR175A2x5mX2ECuY9y9J+kj7IeObZKUnn zaS4KUjmbYc1I8+fTLMj7+NpZRc+DYMf7FcM6ZTwG8hXwT9A0XiQ X-Gm-Gg: ASbGncuxcgl8U10XbIEHuKA8QNkldu1ycQeff94nHzpiZqBAXIHleh4YcmhMA+9yO6W Ie6QeqEfXwbJOVWakgBFqCk2ZqEKXnk1Dg941BQGRUQwg+Ox/rPxAgnxE4RkGv4vYIBu+skGaak yvQ5fcdFVH3KF+qpChWdaQ/+4ouEz8psLIzE1FtrF/0N0X4kO5OebMNsq5Xa/BIvFBizOxIIvQn 50KlVnUDbfuYG2T90bZPXOe/M8CGDs/QupJFALKBhFREHGz X-Google-Smtp-Source: AGHT+IGjZyroqY0+NfIlv1yUCNLJXOhov1rW3il7vsd6V/ggAGAfGH89kDo8PKNMu4KIGVWuDgc3Ww== X-Received: by 2002:a17:906:2189:b0:aa6:748e:d20d with SMTP id a640c23a62f3a-aa6748efc47mr548934066b.32.1733746180181; Mon, 09 Dec 2024 04:09:40 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:39 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:06 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-2-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=1288; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=AkxJa9gm+QAzj6Sm1R/LAYObDvk7bZvdOrvTbAAam9E=; b=ND2IvebE9Ede2YkIvAAdU8v4bxHegGZqKfeEOqFp0Z3+zv34ca9qUUlmw7Bun8wZeTq5c+5MN QtRyDf12dOoAjUGYVybKvsulwe43He8tGNefy+oY2LKl7Bt0/+nqhAv 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 --- Changes in v8: - add #define NUM_CODEC_DAIS --- sound/soc/codecs/wcd934x.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.c index 910852eb9698..dd0cda394bf1 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) @@ -307,6 +309,7 @@ {"SLIM TX" #id, NULL, "CDC_IF TX" #id " MUX"} #define WCD934X_MAX_MICBIAS MIC_BIAS_4 +#define NUM_CODEC_DAIS 9 enum { SIDO_SOURCE_INTERNAL, @@ -434,19 +437,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 Mon Dec 9 12:09:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899435 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 4D60822371A; Mon, 9 Dec 2024 12:09:43 +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=1733746185; cv=none; b=B5mCMDaQYLYw9pJZxJQT8qEc5r7m75PZCAiu7bZaGjF2csljEE66g6bw3nP9tUqLgREjwgsofRdbu7zN2mTu9JCIm6UzjwnooVwQHABtbVId8L94q57+ezjRAkM140V8wTLixxtFIDD6EMiUFc9o+hwncS02wR8CNB5oxLQlmDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746185; c=relaxed/simple; bh=kROiM94VR9bhs8unDDPxON/vPAmMB0+SlnxeyQ097mk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YxLm7r+fkSKAh6gW96jTYnlyrxgjEJRXuiO5CT0zFs2M/7NvABzVRHATuRSw+ygJPD48gvBwAhEUKV8dsEY4eCj3tK+5HMBENX1bdDJd+mdnNoKzqC19pZ++M0i3+aWyULeULWASOPdHixUJyeufhZZlJgo7y/2WeJyS098w404= 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=ihBmC/rV; 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="ihBmC/rV" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-aa696d3901bso62038766b.1; Mon, 09 Dec 2024 04:09:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746181; x=1734350981; 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=ihBmC/rVUpaZAfgsjYzO2XTrRl8WghInj/TplsgHaELefQcPAfFC4R+GpzgsGYDvLT eEm3JkzwzGUZEhkLwCk9hvD3G7TOO9vpqknFftNaxs628OqtoyGlpezaEfFqr5TT5xNF hrtin/baT5RQo/WvMksL2xwM+x0FK6LthXtiXAGl7njYfTCMBgJjzE6wiV4U2NzWrlVQ 5R6JQln0ZeTokgyHajKm8QQ0PxzpL/fICttgu0eUzzPUizzPpDMcy7TJZe62OZdIywtg Me19aNP0/KC5Z50ktF8E5ZaJbjGw4BwoIXF31RvV1JOVaF1FCp/9Z2/PeODhzKtJaQxo 1nKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746181; x=1734350981; 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=fO88ByzSSy9FAeK86qlw1C9WISRW7SCitxg1DWyZzAMfQTVwXn1mJ9TDf5yq/rYdHu 4K1ko5YEGnLYTIlJ6I9tHCiDTXDDh5DQ30/sMuCkwc2Tj3L6hkF2O1FJteyEd1bLNv21 +Ao8e/1axkw9b3FGmPYXXjqPFUn2rQHLKiIbTTnIbvWxrInBEzNumuYuHDK3HQHQYSD0 ZIIVOcfAQaduN9jJ/ZxqCpgRKDIliTSIn5+mcmpNP8EQTtmg9GJMI63wWCE2u53eJ+ZW W37rDzMWQv2Xb5P6gP4I/o9XbwssagYzrqZFeM+1q76SaerFddmhaD2KY2j/5zhaLyo8 DDZg== X-Forwarded-Encrypted: i=1; AJvYcCVlX+HXtzcOeE/Rd9S37uYaP/2UBhxpjZ69An90hUzwFEBUhcm2muF2YHZV4H89zKLMX2rd8lfWc6bk@vger.kernel.org, AJvYcCVo8AmS+sXKCm3HCMbKYZfMl9qejYRsqEpostJLFTL/5r/bZGe17C7kL8TnBrXAeNboNW/upFaFM72VnWj4@vger.kernel.org, AJvYcCWT1vWZkDcOidX4FeTpCxLowms2jcyObbZ6XfZQn9WMwZfcyUHxjCw/994RVsQ24BWaTk2l+MSkw6l22nI=@vger.kernel.org X-Gm-Message-State: AOJu0YxMcFYCQmUQm1pewuhtysHlJnlTnQRXKyQE3LUk56AuSLzKpG3Y ArHR7jflhmsnb2YPxirWhaWqsyqTXz8gA+TST6ZveSsNzkpRLqA/ X-Gm-Gg: ASbGnct7SeXdXpGD3jAjCA6RCgOKkNXvmX14gTqszAyovwUeBuzsz/BmUYY58pdjC8L cC4zWWgn5xBzrF1PoNpCcDwoEFTH8qRIeY8tDIswbvWCKMfbHkTxI2xgBzuLDrhn+vTR2Rc2Gpn /rPdv2LII+dNjFfJkuh6YFqJ3i01cqITTYFYR/FLzG/Qk5UkPaUpjlg349HD3oLIZEaqgulCMOf J6U1AHVPrVccixqUHoHTXwJ6RYrCGo3noj4/ZgH0wZMiTGg X-Google-Smtp-Source: AGHT+IE7Ji3Db0kXMk+Y6enMcAaOyx5WApf21Hjn/1rp5Hk6ORd9Ta3VN/CX5fcnX8RmkBoth3Pd1w== X-Received: by 2002:a17:907:9556:b0:aa6:7ab4:4597 with SMTP id a640c23a62f3a-aa67ab49d0amr526500066b.39.1733746181425; Mon, 09 Dec 2024 04:09:41 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:41 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:07 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-3-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=5144; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=kROiM94VR9bhs8unDDPxON/vPAmMB0+SlnxeyQ097mk=; b=XaYnjhZUhvB0sp++EhyD/Kdu0O9J/5lvX3KFZsQ20p4rVxihKM5cR1FJckFb9wpr0twqL3fB8 zV/dAvQoTB4CzumPMNbbp3BUl21oAXB9BdAsgEP2DqQPvs3/0y04WTl 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 Mon Dec 9 12:09:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899436 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 4056C2248B2; Mon, 9 Dec 2024 12:09:44 +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=1733746187; cv=none; b=s6Ju41LzU/6bZINHuK2uwsKCnaRqeIYBXrKrn540iL4rKeUPMlycC9uLOhfhRYJGkzku2l1/ZT76w1j10KdMElRwol+/iME9j8H03jyxECb8F+GZjGdXJtjwaU/enKuIBSDp7QYUhrNySPgw/07l0WamyG3dt6PuNlWqg/9A0wc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746187; 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=YnJ8XeNirsqQuoob4GzSj9ObCMrWRKA2YptZrOp5Q0U0LpVpRS65LdwRMMq3Ix+5h1HrIGfh8Fo6FRvxJlehNoFDbHcH0qq5U8vlxW8bmlzADr6qc4zgLfmdcGRdAAr6GX3JhTbC4yVxvXiX5Al4khcZLv8pcTiQZA+lE8wnjv8= 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=YEq0oy64; 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="YEq0oy64" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-aa6332dde13so474812666b.1; Mon, 09 Dec 2024 04:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746183; x=1734350983; 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=YEq0oy64j80dx8JC/keG/qjQ/jRjhKokTTlKTKSTB8lFXcib6qhpJj0Dxjo/FYs3MA 7s3GZHGid42q7A6f2daKppLq+zvpZ/UrDA2BtqluYBt/nyZd/qpEObZ9JoIJBkY3tF9H KdciIwVa2YM7sR0QsWE9EbYmWM5rTKoM/kFAUmvJvVEfnQF7+LPN35Nu2zvPyqv2zivS x7OQ4W0a+neRB/qGrgXchqx33tFIHHCWo8mq3hR8TWYEOXPzqZyMUr+AGk+3hahojFHv 86B1N06maPrDLF00XFgO3Yf0Uk/WySoETjnum8zrdKPp3QEWB9bMhrkYrgFi+wnXKNqQ 7JbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746183; x=1734350983; 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=p3828izcKwLFoc7qeSeIhyjBgq1cKbNCRl8Gb5MG8rthAXyzCQlMB8cmq5knoc8Wf/ LqvzFwizIpRTXgsnvQs5mABHXWpLRFXSS5l4fRrEy5BSw1FLhCd8140chDmJWkdxrXx8 PxmF4SV4FmcmiPoq4/KxMsNW24H3VDKa9f0LBj5So3XLt+ogHcaKdDs7dcU9S3jPjXMv 5u4DNyLoJLjhnPe/h68K/lFURwSf6MdFMmf9fVKrkQP4cKr8UqchAD6suU/6CqhfwMzP +IfrmP6iWbeRoaZkWCOIMLodaNIm+V5CWmGyhj1cIlrCc5TtTWOILC62HUJ9RsjmLjTr s4kw== X-Forwarded-Encrypted: i=1; AJvYcCU9TGO6Qs7SaEDoP00+5GHP7A1v1eRC/LtBDBpavrV8taFBN0GPCXhnWLy3vyJPmkezbguk8DhhEF1K+9N5@vger.kernel.org, AJvYcCUlkprazXyPyZGRadSttxUUB/xOMTMSvPIIwtyzgCwBs7L4FxOAWR4nj5YdaVLlj57dhwM8hEIUvgf2@vger.kernel.org, AJvYcCXIx2fEsWjmLsgYpIoZxFBjsADhWLrajE3pso/C1Vjf4KHDbfec2qnBc4z7kG/4PXG57X1VclAn1UVb61w=@vger.kernel.org X-Gm-Message-State: AOJu0Yw4sBUQp3LhbnmcRV4vKgFG6xaGmbp0dnc05nvmBlYSPo4gPJaa yO1K/9m6j6oBKrDLjoKNjhLEsufrVqKxCjVAzNxpiGXHieqdgvwi X-Gm-Gg: ASbGncsdhieHVzOmHImDbvoH6ZlfkNs9w8k9JepVLAmbM2qLORt5ovimgFOsQIolXhL 2Nn1nc9WwjKZnpjXE+UVoL3SGOf85NGa7bksCwEP7wdps0/V3BlB3UkCO593ARhRUU8Y9FUn5z2 MEyoaXlDLMh/1QlHU8YU2DpgrkywkCcsBby7MI6w0NzP14oXNwWeaA5miE8MuGaGV93778exC/u horasdrRO36QdRN+RAPpSJGUjpxFvQSxxLVg6TJvRsxzJNF X-Google-Smtp-Source: AGHT+IECRErKOM6m79XzYC+ruvWhmWnsuYkaCEJpwGYlc9PTZxIHZiiB2OXmBhzZewr3wnNjs+adAA== X-Received: by 2002:a17:906:9c2:b0:aa6:6e10:61f6 with SMTP id a640c23a62f3a-aa66e1062cemr624519766b.52.1733746183288; Mon, 09 Dec 2024 04:09:43 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:42 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:08 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-4-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=1185; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=2tinpZ9cO2Cfmec7WC+wgRZ+VOIH0877oqaFTz105/g=; b=QYeA3Im1uvPRASwBeOqf1G9AuakBjqt2vivQl3+bMYeb+9Y6ZTtX0r2cweHB9fyxGEXjBMxoC PFA0D9txKBSDqh86I9YNmee+7Tg7kV2L6+2wXGC6DKE4r9fZhjKe0Io 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 Mon Dec 9 12:09:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899437 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.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 EEED3225770; Mon, 9 Dec 2024 12:09:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746188; cv=none; b=drS70u8uGJxiQFLDLOgy0D8SFIu2coA0LDrgAIztsKMp3wh3P7vH91PxUvkSS5Ou3mu7u7moPnL4wvU899n/V1m3OGah/G8+lJNfjyviVeI9qrLx45nNdzP8eyxEt0gVU/XMqqXitkyT27o2N4HM1Zuf9GrNbtc7f9tAuzGgMWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746188; c=relaxed/simple; bh=s8D9yeNbQCv2g30M9eXbjNQIQnE1t0x8xMLNaeOtSjs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BJAd6i1BLrhYEcEqrZU0gMA2A2iVDoLeopcbqR8FnSFGqOeFUIM7DfKCL2bcQHC9PUO3p4Tzyhbu9ddk7gpWXfZPV2G9NUrxDiARxyrYTsGIiqUsK3WCi16C9xnMwjiJ2QZ8dAlpa6ZeQ2z99teYHk9wmzv2UddN4mop0VrbYZg= 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=L7PGWMyT; arc=none smtp.client-ip=209.85.208.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="L7PGWMyT" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5d3f57582a2so1813758a12.1; Mon, 09 Dec 2024 04:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746185; x=1734350985; 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=6i9ObfepNy3veehtbbhJfycXTaTrD3xqvTIpZCuucCM=; b=L7PGWMyTMg96WyPFFWVMue6qG8uIDiUzIMjtq6twGEByUaV+Qi/jB4Wo4TLTuR7fVm H1HVC5pGc+qitOecBv7qtRZxvvy8+JOuiPUPH8zDUiBZTB8m5ThdRux8A67TzFaA9Qtd Grh8aKU5pef2HFwJT166rgl0rHmG6iRPpr70NjYVvu0M/QQgsdUJ0fAVY1cvmKo9umAZ Ium6OOy7xv226VEaJ2d3cYE/toDbkLfohGlykxwL1xfJCrRabexak437JDAJUVhbqdfy xw4wNJDdxTMQmjWO/h1fRCqikniPNZvae93KagwLyKdNx8UBXkvGsPSivIDpR9XGLrMi hu5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746185; x=1734350985; 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=6i9ObfepNy3veehtbbhJfycXTaTrD3xqvTIpZCuucCM=; b=AmPKBXzyFSM1qpIGpDzhFXXain/JWki4JBkqP9rgO7VOei+IGn9CZWzBY0TijhpD9O yRD6xpU6hEuRVn7PniSIXzE8lFnk4/Ou8vRxyd89YgFY9XZcLl+U1NuOLM9TGKmyanNT dkUfyz1gHRMMzfcS4EtM4UNK6CyGUs23S08UFaLZSqE8sDnfefOOReQds2e4TVFkJSH7 LxMyxMj4aE2h5thvBgUXQYklxz+8IZnBfqXFWjV0mX8FiDCmdctF8+/sGE1Qj+2Q49VD XFQBZFY++DDvOJMTrCc9O3k7JLye3TWxnvWqyrLV2qMYU02auVdhx6X6y/N6LTghaZxC Vqlg== X-Forwarded-Encrypted: i=1; AJvYcCUD4bB6zSQXDZFOyK3Oj3dQ+6CilDphMd0yhvg4rIN0sD5FrGNf3Uvoyjs0xJiNLbA0sNShK6BR4lI5TN8=@vger.kernel.org, AJvYcCWSo3K3vyK9TWhOk6jGp8WqJ/3rPdvaTcpLjriRGd3CKpdV6ToEqjlSuw3UJf2gM0B3C0U/iowaZ0G2qXRO@vger.kernel.org, AJvYcCXC2Du0WwpflbSzwPiijr+imPVLgfBvPq89S6mdz+nr08aVzowPdf3zkNEEYo0Iqbev/TMZSCwvp+Ir@vger.kernel.org X-Gm-Message-State: AOJu0YyQMAdOkC6XeskiQer2o1/sdFLyA+sx73Xpi40ynlQKxrrl7oU4 p0js+BO2rTONjuNpM7FvlRtFol7V7hiIMN9udF4gyvO0TCwq4ibr X-Gm-Gg: ASbGncvYIBR3lq2IBYkNmwDxmH5tcRBmHcaSiJPi7XTDeSGqUELFa3iRLXapxqfgB5M g6/+FFHrRNTGnJUvSw3oU2bLWhsOEYE1fkaLv6dgFdebPTXDOgMHX8GNYdMXc4WA3zbtvRJdCY1 Z+Oe/72VC9iu0uLVlox/+N7ddo1jnaWbnfiBk3VOxQxajNQdUkcK6rzGVDn1vp1WtHlWuVJf4Ba C9vkZdZdaJqoH9gPae5LiKJn5enlnASzUI8qH9e9JtQjC8v X-Google-Smtp-Source: AGHT+IFKx0pQrWWiP99rg1LvjkAzli3rFoLvLt40Bap2/47L7yv9y17osrpkdcdiGxorPN4cIgNcCw== X-Received: by 2002:a17:906:4784:b0:aa6:9c31:74a1 with SMTP id a640c23a62f3a-aa69c317730mr27644766b.6.1733746185283; Mon, 09 Dec 2024 04:09:45 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:44 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:09 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-5-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=1421; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=s8D9yeNbQCv2g30M9eXbjNQIQnE1t0x8xMLNaeOtSjs=; b=brkQpwlK4Z/X65hK6KKRsbBzasVBI/MioO1da/+IDAAJIpdh6vVh2Fe3lu7scZYUR8ORBAJuh y4i5U35nH+JBGxsrkYo9TwCKCyG/CI4/b8TJUPT8fvNXeetfyDgh0pr 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") Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v8: - add tag: 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 Mon Dec 9 12:09:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899438 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 4E5D3227571; Mon, 9 Dec 2024 12:09:47 +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=1733746190; cv=none; b=JnOpQT2tvyBVy2YQO/+gV1lKsJWwG/Xyisfs3E3wo28vPUxBKaRB9puBTWUYLH60Ze3Ssmd91XKGEA18mSR5su2zztLlK3XFG+WfTx9khIn18VolAIDzmrB3NhZAIkXAAKFWRh3egwVyBkqZz9mzwaw6el99DNgT6kRBeGrAZKs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746190; 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=p6UNuTtoCkAW+8XpkAXW0zL7Nazqkn2fr76eZ8zmeBgQYLJYUX13IOjs4V7fOkU+ecjr10QPohlZm9BoE31d8iDfPbLFnppvY5DuGrPUUtBnzOrCJ6gI+4HjYejhFUanHcYTdHiL0FGbOuPHEFKMnmGWFvQHvVZ8eMvHDfj7fi0= 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=NmY+kVPh; 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="NmY+kVPh" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-aa68d0b9e7bso142514466b.3; Mon, 09 Dec 2024 04:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746186; x=1734350986; 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=NmY+kVPhWo1dg8A1Jqz846EtHzOWmWOtNQCu/RMJL9iDoCC68OKfOvWFb5ANVuFvbX JNaskUdyHiBMkuSRlXgXfm2uPHrNq1BgvvLzwvCS8ypxuMtuwjwvRhushGMD+kgFCsPj +GGrCsCcuvwNiLDtjxL2jlumKKqCFLabDYhe01edqIxPqWkxVqy4kAn7WU2i5wIIMYxB FyjPbo1znmE+6jZzDaKUN+RGlBxQRLgcbFqBkprZ1VBBrguM9LjKSwBf+0yQUYtfKyEu EjnGClhqpsDm/Yslv8Zs6CSa9qUFmM/B9THVYWChAecoYXA0lSbjEGbj1H8KvYAyrF90 i53w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746186; x=1734350986; 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=F2cNWo3FjPpY0ChnhKZDp6xnNKopBbevQjpCa1zgtE9MM3jrR/SfYJpxqwXitD1l55 jLtS5ZEJZh+W9iTWKwL0+xSi7elSe7tvPt5hvC8IM+9YxYfscFoGD/yG8un5PyiaMf+8 5MuQ0oIwkJgShpE+WsbWkxeDShooVtT+q5uks2XryY7nqA+pZtojCHtq3ayXnWd6CC65 VpFFAkpvxwK0t9/6mNu1DHsb9JHX6Yk66hYHggfsQg3RjKoaux+9Y00dHaFLfzAw+H7Z f2dhxkJwmrUZykFw3r8+gHry8pPnhzO7M7mKcGPWcjtXZffp7C2kEN99dOpReliht5zm h0Vw== X-Forwarded-Encrypted: i=1; AJvYcCVnbDd6WUzzxZQoLI05enzDh0rIkzv5ttOSZJcOjj0I5nqUMya4gx3lO+p8Uhd3iZsaw4yjAvwwPCkgJsaj@vger.kernel.org, AJvYcCXXA3sbNnu1dqsSkd9pMxY5REPAV2AO+TYbMM2DlqGr7AUdH7lHnecULpIdiBMVItpKYLekZj3idhcUZmI=@vger.kernel.org, AJvYcCXZvHxaM2HFvHn8V1aRLc74Z9MR5+BgGJJChjDwzMYRwHntkQyYyRZOR/QxHTBhOw2tnSiOsdYjkyEA@vger.kernel.org X-Gm-Message-State: AOJu0YyGmjoGQyZRhU7P3XTNhSAtSCl//BKiZELCrjS12NVds+i4t5FY /G2t4r36T2/HTNtt1vhAmEMcH3bcfpV1n5w1qWlYx3XzinCgx/+Q X-Gm-Gg: ASbGncsF+3BxybCjdBQlGppshNcnwEfSje88vpkJSg+nxT9Pxs9zcTrQWhnsD7hHc52 Miuq5BOcU2Nai7BfoOudkMJXO8XT2VC24Jgsqx7r2C+AoHVMIlmgz7k+K15Vr+Xl06LMWIGVUOE U368zoyp+SNIEKdIstkPWmxjSE7VIa88x+qoLsF/UXEE4LcoxHZZ3g31mdgNHwQ7LvKEfbweDYK 5xZWulvoG4tZk4FAURZ7o0Q2A2QlfgSBV8je7H5Yke3XNKy X-Google-Smtp-Source: AGHT+IGxRu3xHO5VR4TK1xd1uhMWu0pw0GfW+fcrDRiidbylypv1f96Q1s2lS9JtjvShHTa23MhsZA== X-Received: by 2002:a17:906:318c:b0:aa6:851d:af4d with SMTP id a640c23a62f3a-aa69cd466c4mr10720766b.21.1733746186479; Mon, 09 Dec 2024 04:09:46 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:46 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:10 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-6-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=1030; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=7nGbNBR2rlmrlKV+/i/enn28MQ/yQq/coI0HrSWcwhM=; b=oO3BmWykPCewsxUpV+PUe+me9MZVBJQGw1Jmapq4JbBYdOePcz/9NZ+v+xGdLPlvUmTSGQbbR w/3AlnO4q0nAlxO70jUaivdhAHFtcPI6Nyp2u2mHstnaKVIPMy+PM4k 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 Mon Dec 9 12:09:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899439 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 7926C227594; Mon, 9 Dec 2024 12:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746191; cv=none; b=VpxO/kmCINLxffMe6nvH7WKT1tLNd6uqKScd3Hjujw7D8T9/68efc5+RMhLsKapMc8AeCDl2dCLzjR3aC55rdDW/Kq1sirGf5L1gQ+73lui/6+LF/Tg5GNPK8sQdBeTXwhW3pbDZm7TUi0wJ+9Z8Bx8304b8JqZ9RI7eCcoZAf0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746191; c=relaxed/simple; bh=zvVaBsOx8LkyJfd75hG74//crP1potwo+5tyyj61pkA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YHHBurNJB7lf65bRYQFnLFwRUdWRrF+47nCB4lj/Y01SKSzeEnijMNX48/VdyvzXNpJ/rOfw8/zSWads3k1Ek0FuHXB3l6F3cUzuckBQcZR3cUuYqhoP3nP8FNQSHlBzp559XFdBpzx3a3sQxfpY6deYQdZe0MKTMIPFtjnRqI4= 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=d1AETXeI; arc=none smtp.client-ip=209.85.208.49 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="d1AETXeI" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5d3d2a30afcso4037805a12.3; Mon, 09 Dec 2024 04:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746188; x=1734350988; 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=d1AETXeIps8vBj9ur3tfgs8aY4XKFoUh9077Nx67B4g2fLqeabqazsRyz+gU6IgXN1 iVmwtxfgK6OUVKpcOleLNR0zaRuDbc/X5i4HDKRfCD2YkS5dC2bs/Mv0GLTojS9QKizD IK7fXrrG+GvVJ8CcXeoH8Smz0eRodVLddNqDAGCpgGYZng6NwDHdvaG+t0nDgf1l3uhm Abf4lr1JxsZY9bRw8Je9w0NPK9DmEFWPDGrBqzCx553wY443dU8cT+htD5Y01fZ4U9Sh 92o+I348AcNOOtbaPtdZ9nliLT77TOVrLaDHBtadbx2fRt/2n6RniY09SZ7SRKQz7NiB Vivw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746188; x=1734350988; 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=d9VAZ2xLWjaqkWnWnBWG9Skn84OLRbZU4fXYX+3TaVVtlrJAoWCK/xD8UuWty/N6Sh g01LePJu9TSf2L+i9mqExzjJFPCMdgJZUgiGzqHh+FD5iqK9Qzz7hmq1wNx5WDN9oJS9 mD8PwyXoeqma0CRhAtI8sdNxWLQFKByM2FbANentyd2ycK0XB1BkXXUPQ35pGURBFXL7 HF11QjjbcnLDU9fax8waK4PZWDwbutQjgHYzymoYcmPXmWn091fIb0vL6+7Dfb0JLt6i ClFmz1yjHYpCn2qEOvY4O526ivB5JbDMxnFO4biVVGgLnEexeaBLSLHg9z+J4rVlykrf Eu9w== X-Forwarded-Encrypted: i=1; AJvYcCVlGCfG/vgK9vL5i+eLLyZAN7sdQMtU6OBHZTv9jMrvT1iWr3H7Cdq7oQDujLYkPi1Dm+JpC3zYRLqJI6t0@vger.kernel.org, AJvYcCWYWRrs/UwoTTPcnxKsYCN1DEMkSZUeI1ZMCeRAiZt9MYGQJHPcQKpRu9bn6L7gBhDBOAg4f6Oh99HXJMw=@vger.kernel.org, AJvYcCWiVDb6Y2/paNEXxhjTvp043cHSVrf8PqgLTK2U6low11dMr1/2B9IHumyEtS5/hdkiV7j+0UnpY7AX@vger.kernel.org X-Gm-Message-State: AOJu0Yy+Cbvfo1DF4oZlrS28I7B+zzwDrXPBxDaJWKvw3w+W4xe47I3h 228zIUJq2TNqcOX3y11Pp0TYjtZOx6zKR8tOTR1ksvf+eOtmpwG8 X-Gm-Gg: ASbGncvm2w18zHAq27XvZMKG7bHTB5x05orZUwQ981v5lraQTYbqgZ/IU390KqDATwp 5hM5pl8Uf94OOEIqmp+dFrn5GJtGpvJ7mHBkeTYgYBjpYgy5f7FrV2NzNjhAQ2Q6/i7qu86+BJF B2+UT/iHt7fO/GPYssfiDtiJi1PHrIrM+LY00++v7Et8N1hYMtpmcw0pgj8bGI5ZNOzJZHdHQyx 9obDMKYnu39WtN/WgoM6Cd0186TT30rxYvjDGcWeJvJEOu+ X-Google-Smtp-Source: AGHT+IEiX43ptkphjXhqcebMhn6jMforf3MiihkdG5VvJq3E75nT1jVyUg9Vekn/kzvaidZ0SiXKeg== X-Received: by 2002:a17:906:3291:b0:aa6:81dc:6638 with SMTP id a640c23a62f3a-aa681dc6b16mr408727766b.16.1733746187647; Mon, 09 Dec 2024 04:09:47 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:47 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:11 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-7-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=1258; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=zvVaBsOx8LkyJfd75hG74//crP1potwo+5tyyj61pkA=; b=Mp0zG4CT3xuFCVM1x6DjMKBxtpMcdQtD9fyGUU6kPxaCjr63mQPFZZqBxf1GA1oFKzAJGgchd Bd4Wl/0mTqkBSDIEqM6bd9TVVhzrRXl+KHBBswwFNI5jftM/fsS2KKB 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 Mon Dec 9 12:09:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899440 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 8CF22227BBD; Mon, 9 Dec 2024 12:09:50 +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=1733746192; cv=none; b=XiPLItUPk0xWKh/uHJVt9Qpb5KuaB1I7OqGiZA2yuIRQ9ZuTlmcz80UqW3bpT9pIlkFpELMSYz7mHvqnlyJRQfDrGWF9T/8uSuM/SxR58IEuyLtDrUb1YKSjb/dNAlgsMZQB6aYGGz3FZaHb2KtOm9YgSU0+/G20kCmbUcFZmEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746192; c=relaxed/simple; bh=dlgcmmRAJ3MoneeImOkiyCmgGQmRXGdsz+RvU9rtPRQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u+F1e0r5YSkwSHTrfLldGklFAvr+80ClfIyV18vOF2d3ncTguQSTE8b6MbTzNwRQBzmL8OZnA3NYyVdOjRos7QtuqqcOCas78u6cTrevzonPwInWXeTBGOdNhvVBzcJP6TQtEPnzDr1KdmEpv3ImLoz2gYO5oiA99BSGjWHN8Jk= 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=YE0A8whI; 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="YE0A8whI" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-aa68d0b9e7bso142522166b.3; Mon, 09 Dec 2024 04:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746189; x=1734350989; 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=2f7ELYVZ6i0Dpu4rh7kF+9M0py46gZ2QUyL5S6CNu4E=; b=YE0A8whI6cvgUQEaUw2A9MVda+OaUf18T22/7Fo0SPIo/WDRr9slNa8QSzKsMTYNLC TkCns1sDBwKX/KvbfkQw3oMCfFdaZohPVMbR4S2VWJz0AIiLwFSTyeEsgv0uCShsmymk 10MP5jlB3ve3AYdvTe123LyRTyekQz1t73jfd57ae/lIA1NSPlx8YACwRpa5GyJxoIJE li5aG3yZc3rApAl0WhrOp2ZQMY9xpmx/au4TBb+KD5swEFsiPHbb9+SH6c75xTGhqqWg 0fVppEHL87S7mnaChFx4drerDtqpslyb9vn/QBaGXqZGeYijpjXzVMBrfWNjMXMbZCVZ 7Oxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746189; x=1734350989; 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=2f7ELYVZ6i0Dpu4rh7kF+9M0py46gZ2QUyL5S6CNu4E=; b=ondAjWkzPWhMYv54AyRoJpvmOnc5H45b/PuCFb1rO2MIwmAT7ZEgEQqLIVZoh6hW+c 0j+EdrTayksxYxtAUQay6b8x0t3uwb7E3tjkKsXOmDxOVLu9kmsoPAu+f22Iqu/qqj2l vjCSjKgtAXU0Xp9VU+pk9DfiDYFfwtk7e7fXdYdPUkltdJzxcYf3hfLw1O4aavfW9AKl L3UTgqXmvzmzK6rmmBjTshZ1d8PvcwbSLicRLa3QIydiE6Y7hfZznhvwS7ep+Qwmz3F9 Oq7ifS91s8ezLDD7rSGZ/d5hUMoZ+cro8RWbzjBeLIKciflJkshyt+Tf0HtHJbmwswhy tO4g== X-Forwarded-Encrypted: i=1; AJvYcCUlvwhOupkEqUH9E4pRSyQXVxmQ5n1t1BVZO3/mIINnCu6n7J8KGdPHYveZ9hAbIWjApH1JKKeau1S0vjbL@vger.kernel.org, AJvYcCVq/rUApv++hhf2DgDEUzDLTJEm2dv3sBNUIw0wgNPUgRFdjrXdEykfp21X6b8DhXc/kpuHJJ48h/rCa84=@vger.kernel.org, AJvYcCXvQvaPf+Fehh82l7WBBg6P5ryf9B7o+221NysmSzEgVlro7Q90Jbbj+yJXNX2hz3u28GqSy63OBr4+@vger.kernel.org X-Gm-Message-State: AOJu0YzgHbh0PsdZlkO8OmEODIHzIUkXodjxEgWegksvH7pclx9f9+m6 Igt6FQewpE9WGRBz4n//m9kfVm5M+cam6DZZREM8uNHen+Vyd2Wm X-Gm-Gg: ASbGnctnAoUcAQJZLmPZ2hWLtzpSX0EnMgUSWWnkMzp66Yn67ErBMqYhwU+oLvIq31x tZ+8RkfupgdmwoK9hWYOisnTHOsTDx44gHKQzaVO+wAp/VOUZydSS428/nI9XKl0p3bnx/cId8z nO+xGCM0ITov1ynXFjPuSkY4GW0ZPtKzZ/lgIC/ZN9BidBm8fImODiJOkAFfnG/OegbEjv/iU45 9afXZlnGv/a8PRxrEUg5vv+Qf8nP1k6O07chX5cumgLyru4 X-Google-Smtp-Source: AGHT+IEp8z5X2U8OiBEdYqda/aR+XDgWSzRXp6uS/B5o7EaTd7qbArQGCNb+OILme2c0iMt19jYciQ== X-Received: by 2002:a17:907:780a:b0:aa6:38e9:9cfa with SMTP id a640c23a62f3a-aa69cd5ba6amr8682466b.26.1733746188899; Mon, 09 Dec 2024 04:09:48 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:48 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:12 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-8-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=1907; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=dlgcmmRAJ3MoneeImOkiyCmgGQmRXGdsz+RvU9rtPRQ=; b=NzH4ZaUowklqnkXgCP5WUdtmcqMdbTI25YUoyNdcqAiiSzB6wx4OI94lfQKnqSORVGpz1ov2U HV19XcbRz+PA1RMo3l+EcEypPs7cOY6E5Xc7MKUAFgJ5jdYXnvTIus0 X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for phone buttons. Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v8: - add tag: 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 Mon Dec 9 12:09:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899441 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 D3CAA222587; Mon, 9 Dec 2024 12:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746193; cv=none; b=JU8hwNKUVdf2bLh3DXHPMGsvWvjUGYBQmynPOqU/C8CCfv7a/CAJwOLRwoWBDxXmopEF6Nf3pDBKMmIApDrVwbC+DSkX0wZFv9U3ggAO5vwhRDchx5VE39RHL5ZRuMYuMjIx10NLpLUnEC7TCNXYz4kQ7+Lc1slE6LoOTW21xm8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746193; c=relaxed/simple; bh=LSPNUCmMrNEp08ttAGRjUsRLSlyCHX1E55FXJGuWuRk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U40sA/LyuMPaJAmS2UQ8UIaWlWMtTl/HPj57N/teF/GhC89FMv1AU2TsEoklHWMhTrc+SKQNuW/TXppi7vsQJeXMk6snkbbFjdxtVrZQjkU5uhegdSirMzj/M1J+rQfjB3PtfJynRTnt0f+w3/H8/DA/NjRkwkHAE+OoxYoyyPA= 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=mFeNHGe3; arc=none smtp.client-ip=209.85.208.41 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="mFeNHGe3" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5d3e6f6cf69so2623859a12.1; Mon, 09 Dec 2024 04:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746190; x=1734350990; 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=T9GVcRmUREOw+z3UIdzFaTkpOTQAkApvjzIdPEpb/8w=; b=mFeNHGe3SryIH5WVKXJ9XLE0NDqF1/aCM/GZfoxWLNEEDmhLSkmqLTxKT0wMBXJeaT tj6xHsYZ5D+tUgMta7r5N3l0UNAZgcUJJ2ZbykE5Pu96/Wkxo3vNu0RYsrexkLRZ3/my R9xsseCeEJYcZInS/CwSFE/iXKG6NAwtEmUBWCBUmMwDH85Olozw5u+8Taa4rScbiULi RZKqlIQuAHvPm1FCzOTn9NQjFZrxHMQNgEGBGVeSxMkuHl5gOz7TyMAefuejlLjkhK29 MrQ4OLWkBqbo+5pK8lolzfcMIojTugo1mh1ARRCocX2rDHPTOOfxFVDDdPxqmUwV1Fwp lXtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746190; x=1734350990; 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=T9GVcRmUREOw+z3UIdzFaTkpOTQAkApvjzIdPEpb/8w=; b=LT4tuLGkNg4bD6dqMYn1zb4xxezuQyUjs0Pzqn0yNF5Z5nEdCA1Ja3mr0YlQFzE+DJ qKsKIbrZ+f/GUpZKw7sztoRCwSEI8cXkmnuUKLh31OfZxDhLE0Aw64rZG+qrktVM/B/l FpJPEVAZXbS11AAkmQ2oA2pYJ6MjwxPwWGuWv8oqT8F3dSFzR6d/+uit3l8sZjaiYnOp ++oyqIjX0UlhQdN+3wv0Jmvg6VJzRdYYvvZ2Did5ryCvyHNLTjQn0j3HoRyFIaxoyWQ7 VDGa8cEfAKOa9YU7NThgEOIQrrSZpp+hlQB6+nle/H735gnTJr3KPBfk7Pe9yZZYM4A2 eyNA== X-Forwarded-Encrypted: i=1; AJvYcCUz8gyxLn/m5Ibld9+iyaVwUxKmeoSPe0g8yS+S36GM+wCTukR84BEeoDhM1TOdwoCt3AVijLpOanEiBMfJ@vger.kernel.org, AJvYcCV5eheo1jH2RpgrDU8awLGH3wHqZJ/94EtJigo5+bGnqp4oFdRJRWFOOnz87c6M0Lxg0IdeXahu2+9D@vger.kernel.org, AJvYcCWMrdAnQZPvCmOelL2J9iU3irSmpmAT2aMq2eNLfT/N28TiGcqbhKKXpq8UcB/wm7RtrOCSkERGtmv40ew=@vger.kernel.org X-Gm-Message-State: AOJu0YxQ9GENk/8/CVWGHv9N3hZB1todegHXyiN71gYRAp3CqqzeSYwa 08Io5jiWCECbGImGrAgbnVTtOWPicKujWJRzVL3VAUb6Nlx1eyM1 X-Gm-Gg: ASbGnctLFrRjjt6at5oJIHjipgyLuiwTVl7AK8q0LDhlycu5MDlgP6yTqo0SplGnpBf eS8lXYwHtK5SNROLbJoxWfRn8m1Wi/4Nxh+u//BH8AVnd6BZCNUgpHX1YQjQh7sYwCn8wQKI/wz Gp2UvwjUiJdx4DofJPdhsn/7D6RK13YcuZJp3L42L7/CqGaciXZXhkGEK2W2Bkz+gXPmpgCbVGu BQRu4eYY37ziQUrTWFEOMOXFHoR4l74UXGblN0ftgd9me+M X-Google-Smtp-Source: AGHT+IFvfT4FYBaMhWNsO00d64SX1W5y4FSYS2DHiK83jeEzUazYNlH7gT9IIUVObI3DnhTYTe0jLQ== X-Received: by 2002:a17:906:9a95:b0:aa6:84ac:ec0a with SMTP id a640c23a62f3a-aa684ad0deamr322990066b.33.1733746190042; Mon, 09 Dec 2024 04:09:50 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:49 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:13 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-9-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=5421; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=LSPNUCmMrNEp08ttAGRjUsRLSlyCHX1E55FXJGuWuRk=; b=FV3CnUCD3gOR1MxlFTPkK/yEhc9zla/SK8h3Dgcj4xUdn6tm0QCI9gl0d6payzRe88PeklJsk 7f59hcCgckNBZSvTMCpUoPM9vBwINyI+jC+TBAvcPuAI1oufWFU9Hcu 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 Reviewed-by: Konrad Dybcio --- Changes in v8: - revert: add fuelgauge reg property - rename chg_int_default to pmic_int_default, because used not only for charging 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 | 125 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 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..7ed5aa23ba71 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,74 @@ &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 = <&pmic_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 { + compatible = "maxim,max77705-battery"; + 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 +542,36 @@ &pm8998_resin { status = "okay"; }; +&pm8998_gpios { + pmic_int_default: pmic-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 Mon Dec 9 12:09:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899442 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 239B5229B08; Mon, 9 Dec 2024 12:09:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746194; cv=none; b=kndO2TM/NfHwvLzM2cnMuAEx5oYVgwXKHWVLbZjv7vzz0Z+VZzKNHhx5OAZS+ZeAJMRwo8J4CtDAIvrnwsIaZx4yTPZWuipCfkkAQoP6tqbI2dJ/VLMN3PdLvXBS7ThebF6WPHpcAF8EFGUc1uzthi95iQfzYV17STh0Eq6dAsM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746194; c=relaxed/simple; bh=nRXVNZ0Ir0zthUX6DfaXwI0Q5MBmGNM6CenX2bSw5qE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NZMAVEN6XIlFWQVcNUK7YfPtFI5IMN/DJ9St8HLSu4QLJRqvNH/LpDuCVN3XD0gf7ccNwFE0l+Je99MDq7s7ItySbRj8PA3tQxeC7Kh7B2G8vM9X00nwDq42YABPCwyqoBkIYIs8+7NMALZdPtb9qAoxE9dm0tZA8ghyYxewQRM= 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=APfuaGRJ; arc=none smtp.client-ip=209.85.218.51 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="APfuaGRJ" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-aa670ffe302so216397966b.2; Mon, 09 Dec 2024 04:09:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746191; x=1734350991; 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=Zx1Qx+13+dzsB0ASQywpDZUNLBzIb09e6F18nInYGhQ=; b=APfuaGRJtBO2o4gzPyh56yjJvjo4RdFWoLC2IVSklwAmmT7vn0LtEjpKcGAbt+fAeS WHmO25drPNxaDQvzolgFvfLHvkzpEvdpA4/CH+b+BUJhf1svs6lcectN88zRFTtJt40/ a/S0cBwfWh8tSTgyHow3bSgBbZL8jlDC3UX1YfIgHAT83YpQkcMtJsQdtqG+EPGNcBrs tDTyKZ0FhMk5ksUwkcI1PdOtLGs5EbQFKdknU/SREEg31ToMiKetJUFwSNqMA0O9Os5h gb2uGcfFgXKKBarErr/Wi+VgYSzEDIBuqbE7Fye1EGY9KXCtXHUWQCLjn1H7Tl/9YKX2 PmiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746191; x=1734350991; 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=Zx1Qx+13+dzsB0ASQywpDZUNLBzIb09e6F18nInYGhQ=; b=THkzuoNOF9jxMOY7JXtBiwNcQ9FuYvI+YThd6SDrkahF+flo2DybaDSmI3Ck7P8ogv AX/d3/JmEjm1+YlPDbci2u3DSYqXSRTjauWk4vlNHEVNUk2oyWfE6hHuj5LtlTEvEAO2 68YcRGVlwZZgUYizjHyFP6fmRePwVAGyyZVV06Pe7DebhocM7km679EdBSA6JL3Vn5SV WnhF/PZF/Od8uDMd0IIHs2Faur5QqNhEpvAXiIpPVKfUzzsyT6c9a+wqNAKcD/j1EC1+ L4HRAbMfJ6taYqFC/WwPoy45WlDlFCh3l6ctp/bj7WF17toYVUFmwIC883p37IvuAnoD ZtTw== X-Forwarded-Encrypted: i=1; AJvYcCUlEh8nF/kKlS+FI69zLyFBu0fDiUwckDS4ZLV8WGZKT6H2kBb8zdlC4mnhBEO+rPEp6lcTuUrge2NMtl0e@vger.kernel.org, AJvYcCWPBBUvwmyYyK823Adq99uc8+0qXhHowuGW2KLg37oM18rtQAt7hDuuqlpduJHHo7EvDi9hFFRCP5Sb@vger.kernel.org, AJvYcCXtsBx3ziOi48fAn81nZhZHCGD+y17vN/h/6YfSFoXFZjlo6WWp45NOckFD4bfMC6aWx5+loWjHvep/pUY=@vger.kernel.org X-Gm-Message-State: AOJu0Yzl5EGlqwwXJ9jtUiWPOW0tB7yHDlWYk1polEvVBB1oW8i9e222 NC0caag4/W3EsM1oej+bTjW1xtKQ15x9RHEmlxmJu1NqxHXxRzNd X-Gm-Gg: ASbGncuzPR8jsDuD9VD1iGuOoh9qEBeApWj3S7jY0+NVDN0PjmN3rX+t9rAepOikeaT gxtHjflHb64IE2QXvtzHcK1/mjBhuw2/Lts5p/xiH9QhNvyjYEvFYtIj8x41DXlWO0LYs47tQWg Z3ghCUDGXujzdVrzPwqCvCCLSuDXsOd1jkbTQ3Csp/SzoTX8PTYw/2F078B2MHMTLwiFdzZYp6u /o5Ovoiv2t/SsR5aY9u6r8x0567KPuwWYI8FWnIbH9qdO08 X-Google-Smtp-Source: AGHT+IFeDsL2KGlbI5rT/6wDtInyOgP2pWAJYbREiCn0KmWKG1I9KL+bkORKtdqCXg2Ht48ZH9Xhvw== X-Received: by 2002:a17:906:cca:b0:aa6:c55:7398 with SMTP id a640c23a62f3a-aa63a2086d5mr1039756466b.43.1733746191258; Mon, 09 Dec 2024 04:09:51 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:50 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:14 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-10-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=3460; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=nRXVNZ0Ir0zthUX6DfaXwI0Q5MBmGNM6CenX2bSw5qE=; b=vMSUgdUZ0amhteU4g8fU7+29OvbcQEv3xTJa/ydcbHXfOG2qQ6YynPXaSOFXpBp6pPgxSlNJX oijMb0uWHi+DiCU6WwiBYdAT1FY09L/K+W3DMQEcYjzKBUuNi8aDiMX X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for s2dos05 display / touchscreen PMIC Signed-off-by: Dzmitry Sankouski Reviewed-by: Konrad Dybcio --- 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 7ed5aa23ba71..c4d8d7c0bf36 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; @@ -556,6 +619,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 Mon Dec 9 12:09:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899443 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 2B86C227BBA; Mon, 9 Dec 2024 12:09:54 +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=1733746195; cv=none; b=O0XE2KK/o9IRvoMZ8uLAu8JFRrAFyL/LUgPhKs5BpkDmG/yolKeQ8eIujXQX8xP7l5k4Ydcxqi8RcpnVv2JSFTuHeEkSuFqixxxQHMgo/ZQbFis5Rpfgwia2uy556Ia03O29Cu3R6nGwi+hHHgXIKcyZ8jRt3I+9IyJYKQrG90s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746195; c=relaxed/simple; bh=pDdgUcffI7JkVhftgo4PKCSQrf7+UwF10WP+KeGP6/o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sJyHbAcT2MNeRlL/XbByZfXOuvAQjiEAFWn6QxkC3NHWz9CyGRd+a8mKFvzxiOLD9lyO51xio2+zJyvkHElB9+5ArkXcY1l+DgCb7HQS/3RhRpksU8LBsVC4utnXV41OoZKVaNnHomHLH+ZasaGJRHe/S0eTbu9MNtG70EVTXIo= 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=CUjcPoAI; 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="CUjcPoAI" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a9e44654ae3so685762366b.1; Mon, 09 Dec 2024 04:09:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746192; x=1734350992; 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=Q4MVcXicplEdCrwyQKAu4N/9PdxNpFPNbFlchUPxTzQ=; b=CUjcPoAIny+rhH0DewRrLHb+bt+rge12gaOlyCKfivVRjLv2fYT1M92s2gRKeI80Fs tHAr6natV8HHf2L6/FmHtuhmqSqOmvBjm/kXhnF07lRFFaokrtUpWlngzWKnFRVTyg10 PNcefc9w4tNKiSyamdAU1PwOFbs7LZyzm8n1SC9LcaGoYMViO1vSUpVYF//40G63VNqH eP4UcLEjj8E+oXkp9g4mkNpkjIbipN8diBc/J9X3rvouetFF4a3NtUXKz2taJy3dKN9I 99xppeAw2TahW3h6UqEc/qaMDHhci+0CYuQDmLgZ5gzwhEu+3vPhG9RPQq06wuxEqIwf n1RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746192; x=1734350992; 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=Q4MVcXicplEdCrwyQKAu4N/9PdxNpFPNbFlchUPxTzQ=; b=P06t3tVg2QUho7e3Q8aSsZ8+109WXKYR60T1meR77+W9iYqM5o08s5DdPbh3kXoW0p 9Ak3fTf/SKjy5S5Vlo43Wae1GUHgkkwFb1YtOn4OBlyEH7l8RqJIdagU+fE8Tm8ovqzC yjXLfASO8nJQ5PXPquCBZOywh/GqbTEiH7T0QUKY4Cene4hI7gghp9dBiZUmsqhCtyWK j3OXjcwMNrLIM/ZWTvtK4aFIhQr9v+Xb27jIjrMB02nVbN9uAtwoLHl8GcdibuJ8o44y rIHP5mNztSy+ONvyMobX7coCPDhA5cijBjeFb/QoEYwfdZF3+amTLAJQthNAccNE+3WT C9kw== X-Forwarded-Encrypted: i=1; AJvYcCUZNnl0yHWktIitSBNE1/PRfSf6SIp3B1Scj/efP2iTQSg4gw6v+W01hHCEo6JjH3hAllO7Zj2Fz5c+@vger.kernel.org, AJvYcCVk7FI+yI15TB/XR6m9dxdH0SeafowEagvyxefgJwnshev4NraXfUIVWCd3mLWKzlB3c8Bc4V4LWRc9LVwB@vger.kernel.org, AJvYcCXP4YIdi46P0sLbMEOeUBW9oQ/lPNx5Z9CK+8XYH7iuepafJxNzxlcGKDz/9Wedaok6zrBF9tjnR3y8Qak=@vger.kernel.org X-Gm-Message-State: AOJu0YxyAXbFV37S0pZ+sBcc2H1nyS0hc23J0tgzA/+rhUg5jqfeA3va QkkPOz6cZvpcfhsapLYG2FFqgyimDO9BYsrstHTlpxonchORjKn7 X-Gm-Gg: ASbGncu5cPM58gqKRAcuX4WDDfjkOO4yGYOhw+jvXwUBbkxSyQGsW5p4UoVWtncfnoO pk3V6tYXdsEbnX9pC1xoRUJvY0RqwT8y7Ix0w3bRTUYargRZD6+1afCQ+pNvjbT98huAEt03RSa R2kUZgUPM8lFJwDyMHKiRq13VxdoVoNXas8AquU3zZshSvZBh1BKb8plfGsNUt13c/rKYXxflO0 GZukTmZa2E7JUKaSpHqvsdb5DhcRmyas1PVTlvVxjMIvnAZ X-Google-Smtp-Source: AGHT+IEpu4UxqnXpZVxf0EqhFXnT+HhHzwBnhHLCSKKVUsArCXx2gTbPnL8UNgIA0wFEo78dO0A4WA== X-Received: by 2002:a17:906:31cd:b0:aa5:44a8:9ae7 with SMTP id a640c23a62f3a-aa69ce22259mr8134466b.47.1733746192420; Mon, 09 Dec 2024 04:09:52 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:52 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:15 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-11-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=1542; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=pDdgUcffI7JkVhftgo4PKCSQrf7+UwF10WP+KeGP6/o=; b=X812Az663WTkM/CS2AbxlcFD7hGcUgjU0ls1OLqiFcDNnoRuRZCJ6s1153S4lxs/cVehFaUoN /6Vi3AzEK07AJsZgzQ7f+rMC8Ba8U+yxWd0koPd4BNvpgetML8WK6gd X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for samsung,s6sy761 touchscreen. Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v8: - add tag: 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 c4d8d7c0bf36..65f33be55da3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -573,6 +573,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"; }; @@ -677,4 +694,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 Mon Dec 9 12:09:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899444 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 63BA322A1E3; Mon, 9 Dec 2024 12:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746197; cv=none; b=kuyRTncurlAF9CyI5PQdGaL1C6h4f0VSexonJTvwHc5NBm5dnqsA6rtbGPHRMYwcALOpB9Y6nwltNwqHxMXulj+V/kzO+gnDHR/TVrjCAXaGfpbq+5per0S87t3HEV047+0l87bzNRRwj0BYHyiNRCZVT6BVQDYFF7vNq/Mbaz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746197; c=relaxed/simple; bh=3RIouz0/3WqPsQBUs1mPhR2dKLIzwGRxi0K0mx1RK3k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JFXNaqh+XjMy4y01t/MritnSOLyuLKWwd2xmz5Qh5Qfl7gBTJwEUp0slt/LYLWihyCoU8kvi8O9ohR/ykxxtJcL/wskXIqEP9YdaFEXxQHQmhlcFNlYNv2zVQuyitHSW6BjRxP89CftyaYnl+AYMrJ84TROIZO6U4qJXbRGfyow= 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=deH/pfYZ; arc=none smtp.client-ip=209.85.218.47 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="deH/pfYZ" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a9e44654ae3so685765666b.1; Mon, 09 Dec 2024 04:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746194; x=1734350994; 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=bSk4bz0Z5JpRrjbyGlR1qxyngXG02QLF4E9pJ8QrvSw=; b=deH/pfYZ/UHp3kxeAI1ngEMDQLNtVgjI3uEOGqCjoVG6jKrvAMOD4iF8I1+gOlbVQL O6eRMZ39+Dqew3d3jZC+9/MV+fdpWukO6W98WY6slJ+G+Zv70lNyso3xaesIOKEE5Qhe UMiRWDKsZpZ/zQ+W5xa9gbkwdjIMsaq/t50fDl04X0nBaJD+/ApOY6Omf+vMTg0Yq5yG 6gipnUEXO5CseY1mGfTPp9HHO7/QKbOQuVDgdYScBZIM1ipb+VJFwazTQd06Mg/H54dR FIoIZ9e92bKAv6z4h8TFKDESC17rCPeRvMNjsOeYIKbCb/ZAVszZ8fXbzGRKE4EaPEs4 qVlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746194; x=1734350994; 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=bSk4bz0Z5JpRrjbyGlR1qxyngXG02QLF4E9pJ8QrvSw=; b=RDJVfMzoiQfHtboqvJXiBeUeIMAUVCkKa3YTNaSNBbSVHmgnu0qVGHyNQ0Xs0BIcX4 6R24bAlyBjQzVvPqlgAslCFmWzzJHMIQgJZMhKgp3ulFnLzWxxTa8ORVPtmLRV1n3t1z E/qIpQ/oZ43cX0iurqUcvkrKQ2su7NbEr/3wOBeKnT8sJSm8Q9elQBss/Vt/efgSzxyH mJRsWqpSxCBflS0KeiQ4LWrVPPT16icci3sU9DzYy1OFf8mVy8S+AxEHn7f0RNRZbewy tfXaRf98vAlSzBPt07HOk9Urpcpbxl7H99i9KUy6gmoB7lIk3eQsiOEJ+Daiue0kEFuj cMig== X-Forwarded-Encrypted: i=1; AJvYcCV9c32V1DgIWfVJsMOMqjyD4Edg4HF8krR4wL5PJrENs2sKR4gtPHOn9u1THdN9aHgTeO2YlHXclTs9m7Bz@vger.kernel.org, AJvYcCWTpkqlCXXqRs7YID9cTJPWk4+VIldkLa6fKADPBTKYTTboVstFFrNMRPOjqrm2jgFr9L7JTNfvpr/F@vger.kernel.org, AJvYcCWcgHghZBEEXkfTDOBQURVOE1zaBq4un+OhMlMUXoNcykJPRsBPg6dFPTteCobNfsJvK0IgxuV/bPKvjLI=@vger.kernel.org X-Gm-Message-State: AOJu0Yw+jhvSGha867QVjfpgzItVpK+HJPSdpQ3FynPL3+Ep2KL/vm3I 0C0aaDI5twXbnFC0RHsfFs9vFS3k2CFPDBVyasUVyzPo/Y0nGL2p X-Gm-Gg: ASbGnctYDCuolWhrLL7lJgxNwT/0WRsBUwka/QA+LYE5Emax/4WHKgXwFAnObyn/6qs FMwZVjUFi8iMkAsYOSthClMh0ceJHnVtGGTyoL83RnK/jHTjc+rwGay/JV8us3z4xBtHS9dLdB3 WI+5+m+xtpilVzYBjUYkhO0sAW4ddGAnjpJ87YJ+G549sgcF8o19+TiHFRYT6yXMj4PtRozIe2y ZE+ehfaVX2Zo6nn6BKXNV14pdvMlmFUSSCZ+btKMKatKjLr X-Google-Smtp-Source: AGHT+IHAF2vVzPbCtc292FcEXBWuOnnsDMNF6zA1g0QVutxqnM++Ul+aJH5dwUHZA5FIg0hyoQAdFg== X-Received: by 2002:a17:906:31cd:b0:aa5:44a8:9ae7 with SMTP id a640c23a62f3a-aa69ce22259mr8143666b.47.1733746193535; Mon, 09 Dec 2024 04:09:53 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:53 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:16 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-12-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=5556; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=3RIouz0/3WqPsQBUs1mPhR2dKLIzwGRxi0K0mx1RK3k=; b=Oky75ZKmYLrL2UTW/e+jlzy0scELgGviu6tCyHA8q+dVpAQmikU1+gmSlOOj+LfXfIGwcSlq7 xBuVqz05SI+CsDY92oAnjxNsQITbTemANiAgbnzn279JZqAwc99siL2 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 v8: - clarify FM with FM -> FM radio 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 65f33be55da3..3a049459aeb3 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 { @@ -590,6 +608,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", /* FM radio left Tx */ + "AMIC4", "MIC BIAS2", /* FM radio right 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 Mon Dec 9 12:09:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899445 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 6A60722A1F9; Mon, 9 Dec 2024 12:09:56 +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=1733746198; cv=none; b=hQGR0L8iwjYe+/4YqAfwbeLkJ/zyYYp5V7fMvEVNtNt3eJ6SbLxiDEd1QDQEmvLy5n1s8aEeBqTwQAVwa9wr1hQCzgpyAecS0TizT6e10JHmoRBheq0H35/k9IzViMnNUkSMLfxGaDLV8aYiqMP14UqK6bSz82oE/M0WlLIh3bc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746198; c=relaxed/simple; bh=5EUQlsyAc8MhpaEMJFQvmuSsiHXWkuvlPBRm/0hOn9g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XyS/qr1hJu7dpXNYRTNAtv5VEr7Y+DzGZRxH/Gp/ZkH5/TUjdWf+vi4onmAwCOMQ/u4VaDyQyvwGBm95k2JVhWI64Y+OTI1vw2w9M+w7gyBKcaG8z91m8gGPr6ShVVHVGMfKnUttuhtJ03QyNZ+Cy5ytkfTFycjO4owGBlWRx5Y= 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=gMznsNRK; 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="gMznsNRK" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a9e8522445dso841429166b.1; Mon, 09 Dec 2024 04:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746195; x=1734350995; 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=c3r469K9nUPLNtZj+adF415xBNZpP7beV8sQaTcAzKM=; b=gMznsNRK6ifVh9w9FvUOKPNLpL2I7Sk5o0rTjWBi1/jfEUBHufcTQzVXH5Jylw3aky jr8gzpAx7R0AOmlWwMLwPGzw0AQ25/GEy9NZiawx9BpAlrE8Y0ZGfmnCAsiQVwsGey1F +8iMkW9CsiTEvVRIRw2DfGBPoYIkcgCYYud/mhYwmCI6OqdE43PYLQRStVZVMRJM41DR 0NNgVO60m+HvYdGN1zeVuHJBXZCRMAN/Selxblsmm2P2nsF+YOL53Z0ccX4JajVJzwCE pWDFvPDohw5RXBPHFYRHQl9AMNbDPqiIDtQzy9AjLb7On+nWRq8Rix0kwZS8gm/MpwUw ixHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746195; x=1734350995; 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=c3r469K9nUPLNtZj+adF415xBNZpP7beV8sQaTcAzKM=; b=Dt99TNCQk5pfyouXnuihFhVjgK00pjSnpKflxAO0/Q3VJU9gZPrsRi+nkvTNtrELX9 cWI0AX6KVibdv5iv3tj8TmJM0ztZ+qhsCBI55YTcLw/2eg6WahVTqH05/IR1Ab5yCpn2 Cpxc3XeosqAn+qTWKXlKzF388gVMrBagClSCQyLI39mqfXdBUEUhON7qF/aggEkx5cwO pOMM3Ka/NYyBfkJhl5YxDpn6yUxOyT+tFvHt/YikN1NG3wPxkv1fP7KgbDKSiL9FZ59t nfNOexFPoJLQmn7d4sse1RAPpIRjJTwC2mnK95NCHDZWCFDkGNJ4thYiJRTkJsHHWdlj 0Txw== X-Forwarded-Encrypted: i=1; AJvYcCUbiNDPRw5FXfWs8dL0pdkr3Of3q/SacMg/5c0j6JEP+US/66bKWDToyJRCBQgh2KcYCjl2sVj6GU0P@vger.kernel.org, AJvYcCVEhK6K6wfHpFgCBuT24UC1/cYRL35kCbCKdqHfHeH5GwTbRHUU7hN9DdR69kykBFZuK7JDbEfGrSUAaWAA@vger.kernel.org, AJvYcCVywI2OwC2IRfzda9WJ1YxUzOq1px56pqFsb+7Kw2LkRHP8UHcyQZGrMCKdx/nam+7BueO/IiPxpeo9YOM=@vger.kernel.org X-Gm-Message-State: AOJu0Yy8Z1i6oZb2+MNuurDClJBglPhnubfr6y4F+vpcgi2XCL861S5x 9eQl897WDEV4t2+gn/IJpcJXGPOIFKUaJUO2z/8Lip8K7gDh+G7G X-Gm-Gg: ASbGncs/NayAkpiz8c2udp2zp6qM7iu+/lpV/4mUIQ/8M7VzA6tYcpEzEqIerCCfA/a ZZ2w2mfgl2v+0d9pH64lgog8cdCbmxYfssz49+ZtmIMu9V5Ao0MyzIszYXDcA0NLBMBtwq9mXVc 6XSqZdxdoYEiJJAOR3VezPnKicVt2EP7/aQ2HhZw5apeWDt+fMPI72cy/Y6W7EB6ADYdIcJv4ku /K9h04O5F7zSuENOWnZYaMfLvgRzH7MLKuPXBv2Bw+Z62WI X-Google-Smtp-Source: AGHT+IF7ghT0wSD02aFkj824v9gcmc7KXiitumzJKaFhACToDdLNVnkJ0EAVYb0atfpOqgK8Bxnvuw== X-Received: by 2002:a17:906:3cb1:b0:aa6:96ad:f903 with SMTP id a640c23a62f3a-aa69cd5d737mr10438866b.31.1733746194638; Mon, 09 Dec 2024 04:09:54 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:54 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:17 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-13-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=2444; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=5EUQlsyAc8MhpaEMJFQvmuSsiHXWkuvlPBRm/0hOn9g=; b=nNRDvFfo3TjlTv2yArp6Ah+tst9TULx9FBMewzuZi8Dt5rru5iv6bog8vNIEhBqLc9zV3zHRn 9dc7QaN691JBjgMH3gaKyGruiTG+Y52UgZET+qJeD4nxf1P/iXE8piH X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for gpu and panel. Signed-off-by: Dzmitry Sankouski Reviewed-by: Konrad Dybcio --- 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 3a049459aeb3..e709b2062152 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 { @@ -859,6 +905,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 Mon Dec 9 12:09:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13899446 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.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 A658D22B8D4; Mon, 9 Dec 2024 12:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746199; cv=none; b=Q++PO4eFt0SvZqbRL3xci+iJjYJYNtxWQYLuV+p9+n2tN5VqAPOYKg27DaFyGbPs7/JTOdtUp7Wv/M1OSXo5mMAkis7qgIUr83fPo7SGJK+6vPWAWAsm78QvVKJ/dAhGkUipdScrvhXktPYZCy/V59qfPCTf90cwJ85kGSzUo6g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733746199; c=relaxed/simple; bh=ZjJj7jdZ9xsYB3boPqxYaoqch47tPC3g35dATAfAPZw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HtGIWEz+9Oyey992XtQvewojYHA90qYZMJUJjG9cgwW7xsukTr0PIwguz5lR9nHEkDpDtOPPfI19peDUF1pXEmDUA8bgtl/ivw9r1hoq266ticTmLqVW4hh5t5UdX2Yd01fqXSZWvvbKOA1gJg+KQQ7pEu51kXUoAPDB9Nt5WgU= 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=XIG7MBwS; arc=none smtp.client-ip=209.85.128.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="XIG7MBwS" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-434aa222d96so46551855e9.0; Mon, 09 Dec 2024 04:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733746196; x=1734350996; 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=DxtIc8zpHQVSLKJgH3nmYP7x2JqOOyKitx+8aCZ1kjA=; b=XIG7MBwSqMfh/kRzs8gj89Di7L1xt6hViJARrJKds000m55F5mcSaYTj+sQeTkJE74 kMnHGtxuKVB7Cyen3A3BhC4nsDRJrit7kbTd8CxgZqfV7rVUdyCW59ak7sIKUJkKgAOW aZPgbRwJ/j6BORTxwAnVy9Q+xz+fGVN7AXLJ8Kt6MNXASxuh2JswMwL0dk8MHWTmvt32 WB1WPD+LH1rhgdl13QaIbxGMd2HMv5V7vGn0WcnFr4+s77GeVbHFTPVgv0PbTtkg5rYW S9nacG8ihAXpCc016O8+X5GP8cbqMxHAvMFY5XYXgGB33nE8KiQJbj8MAzP/aJiIkT6O fwFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733746196; x=1734350996; 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=DxtIc8zpHQVSLKJgH3nmYP7x2JqOOyKitx+8aCZ1kjA=; b=kyF9LkgAi1nLqve/6gThmYB5XG46U0JbUlYzSqh1v6YeL9Rf2PX+YGmdziqrqumHJq iw/nYbQ6edMNjczYlR++zPdf66beczizuKMfX9lHcW9uxias0IuboDA4HP994Z1wOlq2 o3Stn9KJKvkxVlIAB40EZ+LqN9mbXkx1Nh1oDDWY+/HitIRjlfDb6G0C/rqcxOgpyJVn vCjk8RNsejj+R3sVsw9WoQaeQDOVBywzX9RvBMPbA0APpOb7/n8TxZzsWeIlMU1QBh7h VQij3m8j3gLckxAdNuRi59bQeWT9pK6R4MmfFW3vznIef83P5AYDArf7jj7oGx4dPDYF /ezw== X-Forwarded-Encrypted: i=1; AJvYcCVYGhg6fv8PajdbPwAGtHF9jgQyhjQK8qNW/3oQEgkjJEOiapg0TBIaKt6OJDADwZ5QCfHLgZ1r/XJMxNAM@vger.kernel.org, AJvYcCWDY2LXvpqlv1HZ/W4TJOh5XwMS9nFLYeLc7ExO4wbGOwuzoWOl/GxZkjSW+5pzKnQjjX2XgWuGi/5zX8g=@vger.kernel.org, AJvYcCX+QdIC4Cim5Ope61ysZUFdkVoXHf+IeJBWYGDMe/AlgcEKnHxno04N9SsaXPRWiWED0ZNvri/2xTkd@vger.kernel.org X-Gm-Message-State: AOJu0YyFqNvHlmDDWXQYpEQj91bgChY3l/qAaiwTXCDnbhPO/7j+nVcM TM3KyLs2B99i5yhKCVyt70p1jnK7wpu8SQ4B8K202Hf86Ih2p3HC X-Gm-Gg: ASbGncviZGCdVMTFPIg8El/kQVeVtK49bDe+y602UnSbrz2JH5YbusHiUD3+/UOs+FS 7xdY/sQO27KpWBL9S/Kmr5PszNqMxvBC8eGAqmYgQE1e65b5gMw9jmW/7Dv+DQr0SjImlWeq2H0 scgsEbck25ywblGREv/RYyyl/hl4MN92WXfNLFfFPXZp3CIhr6+JXLZtKs/wyTGU1QXLxWsr2vL 7+iQcIhanj6RrJTFxcE4RlHlb4lqSGwcEeOMORIqDBPsU9u X-Google-Smtp-Source: AGHT+IEsIeX/C7P14AsCS9a4ebjG0rhnbGmPWRK+QJ1UfF3XV/goprpR9W9TfpYIysldiMwDJA/KxQ== X-Received: by 2002:a05:600c:1909:b0:434:f871:1b9e with SMTP id 5b1f17b1804b1-434fff54c84mr2387835e9.19.1733746195847; Mon, 09 Dec 2024 04:09:55 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa69964876csm37308766b.49.2024.12.09.04.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 04:09:55 -0800 (PST) From: Dzmitry Sankouski Date: Mon, 09 Dec 2024 15:09:18 +0300 Subject: [PATCH v8 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: <20241209-starqltechn_integration_upstream-v8-14-ec604481d691@gmail.com> References: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com> In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@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=1733746173; l=2190; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=ZjJj7jdZ9xsYB3boPqxYaoqch47tPC3g35dATAfAPZw=; b=hLEXZL4A5Qguvh9tEnGlnKRyGQ8oKlJX4fhqIDSRJ7I/R2pHVyq6lROD3RWkbBAMF3Oluvbd3 adc6Uu77HpeAvr5sMUiydxYPqO+pPEEeUllco1vSaOIbLOKNr8Nduab 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 e709b2062152..0d80599e893d 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 { @@ -859,6 +885,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"; };