From patchwork Tue Oct 8 16:51:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 834078 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F9421E0DF9; Tue, 8 Oct 2024 16:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406319; cv=none; b=IW24zkczbGkRzY2J548YbTkIE8gTGoinurHos7chDqPPb6yu8ax5Gj2LRX7/YMPU23LKT6uLBESZLhasKQQfAr4lsea8EQVFcSHR/GvH3TicIeaju8USvFxsxtgFUCcQGR4ZKiT3i21PUSgJYU5K6ivsO/q9R/63IhQWDfWNCr4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406319; c=relaxed/simple; bh=/iktY1Qr4cDbg+smVKPbu2YLVIRiCzs0v9OPFLn1NXQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=B0klpsaan/wtHReYzJ5A2O/l8+/zjOIhMhN5ApddXDE4mV3LxZ8pVayba4LyTtgq8og3cYNsLR9bWiVnWWVT8IxOAp2oez2Sfp0sNkE4Fx5o7lKoDaVs49x8tysF/53g/jRmB/82nNoTh3CqRnzyqEiADPb4nxDSk02/tEWdecE= 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=XEb2CO9T; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XEb2CO9T" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5398e58ceebso4108e87.0; Tue, 08 Oct 2024 09:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406315; x=1729011115; 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=x9H8i7ClA2yhmLwTa0npbr75xPThbyTRHnFtPQKqGaE=; b=XEb2CO9TRN3sGJUc/veKiqtjP7RrMeN88JnK2p40E6Lh4G44ug0eJR48rBsR5LDLEs 5evMD81B2gFSPNoVKBQJeTiDCiMoLolcLGtdfY7t0Jy1Snja/2/7m2CM7jnLcK2iQtK0 QSoIiNNN9roHCrRdSZ9TX3FI1x6gASKkKwlxnWu5iEWmPWRPfqfjlleDa+XPjgr8fR97 ES+SVOFrouTQGvdBxGGuOvPehXEk1SZ9MFClsDESr7Rf+LCbs31+bHQX7X40tPlBSCtD oSfIkFW24UpDv4dT4kQNvDUj+rNSdZd/lDRo+vbWUybsOQ2lIcUy9PTH1P+nlkvJqxJa 6M8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406315; x=1729011115; 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=x9H8i7ClA2yhmLwTa0npbr75xPThbyTRHnFtPQKqGaE=; b=uRQ56CeY33sU46MlBOH9C6DnAeBsgLgVEpckvQeoukuyEs2yiRSk/0ihMdR7lxiYxi RydpCAUNxth4qoiNshRCnpgC4FDTCnYDH9jdnR/8UrKX4e1khtvvpqqQbdvjZ9aege17 xXSPCnH9n//cJKCaBcNfimXyNTD4YUvuM6D+P/P76Qc+6fiUdHGRuyiapyInHb0QgJL4 e9y2xfEUuBeU2OpSy+kjBxP8CSDdViUrdRdsIuGFlyJp4Sk0j37GaoqNfu8VqxzxmqbS 7EPK5uPwgDjJIEgCvkiEDDoo4V3x3F59qLtiupqZ0NUjFtHsALiqNzSzaMjpzKlAjvpY GYXQ== X-Forwarded-Encrypted: i=1; AJvYcCUKl6n5TQ415m9uzSo/ZHsguNp8VZPWWpKpeGb9WGJL26iCwG7seqyMU2coJhpFc/F30PIDH0CruPT5@vger.kernel.org, AJvYcCVPdXefAc/RMZX2ybu1jeJ8Hfob/96zFgBELcZm4BjjNeIpP9iWTzVIHBsPMsNx6RFpcKd3kkH9feoIimz0@vger.kernel.org X-Gm-Message-State: AOJu0Yy9XG0Z2blK1foTF8GjBR0gnHkVhU4dMfNk6NbNiAKJz/5lB5oN eteOTbbNaF/AA2zKirSNwNg1dsT19s8dZTqtYH3BMsT+yHTS08p//FtkbQ== X-Google-Smtp-Source: AGHT+IFAihMr7yO0pCQG+JRx2gEn2/5/7NfpXfFVoY35f8LwZpqlDFvCA77wj5Nw4Ym6ALg1hzi1PA== X-Received: by 2002:a05:6512:3087:b0:539:9360:b283 with SMTP id 2adb3069b0e04-539bdb10dc7mr1197265e87.25.1728406315111; Tue, 08 Oct 2024 09:51:55 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:51:54 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:38 +0300 Subject: [PATCH v6 01/12] arm64: dts: qcom: sdm845: enable gmu Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-1-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=5083; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=/iktY1Qr4cDbg+smVKPbu2YLVIRiCzs0v9OPFLn1NXQ=; b=Dr7q3rWN6PU8ewCvPs6hOpzZx4lry5NFapKh89r6ruthB1F66qFdR/5JmF0WKxAoFi8i5WFcJ L9c/L98eM40A/SRZ7famQ3U3OUacR0qhR70JzFHaN/w2wU5f5Ry7CsY X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Leave gmu enabled, because it's only probed when GPU is. 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 e8276db9eabb..a5149a384167 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 9a6d3d0c0ee4..59cb6e6e434c 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 54077549b9da..fe154216f138 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 Tue Oct 8 16:51:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 833646 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72E881E1044; Tue, 8 Oct 2024 16:52:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406322; cv=none; b=UTOoAnyn5AunPoQSYS/3SQ6eByHXfAz7KXdFqUAFLPWaeT6qJuew6am2iuKlI1FOS3dUmAUmagrf1xJi7XwiafyTURitDql4gS9I8SEOXxb6/ft3rlIm9EGsBSJwqlONabGiFk/GoH//fSZZ2iVigEKm9KuAYtziYUgqDg262y8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406322; c=relaxed/simple; bh=B5YYlbLRQVvY4Y4SHyj4dqgnNnzgmNJ7eDkXD5DwF8Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cuzl5vqckLQSBi6q5dZsrLM2cZQUtz/Pkl9zp160uAmS19NJvdyDhS82VWar8L3SuCdGDwY+dCR0cXTC42+Y6BURCfgMqmMXdnS4JFdWM2xgaVP2U6Uv9U7THDKhsul+lQZE1ch2hbHJitQJSAihd80AfZYNoywSDLrf0ST4kWc= 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=OkJ4QJWC; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OkJ4QJWC" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5398cc2fcb7so6710821e87.1; Tue, 08 Oct 2024 09:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406318; x=1729011118; 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=uTn01V40/JZpsbLizMmeKPolgOynGLSIEuEq+BQ6pHY=; b=OkJ4QJWCDMuKukkBLHQll8NcpppjG41GLRUGSu+V0rts71VKPRbw9MhbtiqI8N2e9q HrqJdk6eVR+HyK2nhyJ1D69b0stVoZrFEjNcLro9+UHbr1SZMLPsWL65iug47BPvkBTT vABnBWVDOj1D4Cm0kjyZwTyg/HvBOObNbCyHdV36fZsJd5Xxq0e7YVpoVtdC1BekiSQg W+wH5NUZfjiJNqH/yl/bjkwZsFnP/ZtrN5RYpkqP7T/AKIUPppLHjpdFaSCRTemXGj2t XLjLZEQmfIsPYl+/timGvGaL8bt7sP/SaQctq2bQJV5qjw2YcD+7M1IrDKSwK864Hil8 rriw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406318; x=1729011118; 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=uTn01V40/JZpsbLizMmeKPolgOynGLSIEuEq+BQ6pHY=; b=dc9LmwUaMbD8dMQSlR81dryKjKLTD7O9KNHqI/Bz8/VOJoEpBTp2kUPVACwIC1MHo1 2XnoH/6KfcY72/w5vC4JQtixW8t7mWP2CXukUELrRP6Z+ltSBx3kSxTX59qvHW01A/oq xojKGMczSM9aQgzE1yTcqIWH/mtpXExvp1kXc6UY7G54nO4+oBSYTi+HFVOzPjakGUU/ GDxvnZhAFscs4qumPQubUMRs66sUsTrAmbVOMrAu6kCKlXGmMJr2bbfY46P/VZQ4uKKm 3ZIzfyZRjxcRAqfLcIwqFQauY9/T3pNU2YkDYJv2L7h98j2R1R3f5AZcR/gBIxXwYT4M qskg== X-Forwarded-Encrypted: i=1; AJvYcCVuZK2wRSaP0tIgLZVpc3U+C/dWNVUEmWb/odDJvOJT19UHWPek0He4ngFII1bVFi5pEVc6V+xRX5zx@vger.kernel.org, AJvYcCXkrnf/WK8WvX4KkCu9ujChRnvccxl/Y/26z0iRBpZgPaEVP3gzgSp3q6mP01RtboPElA4KoLoWRLezoga3@vger.kernel.org X-Gm-Message-State: AOJu0YxFcvTKoczHVpMOwZquZ1rMxEnqdc0wKrVbBSVko2SKYmuDRKoD 9C07jgrbfDady6lV0BQUmZOcgaa9QCZQ3d6rO+QkU9G7rn11rwpL X-Google-Smtp-Source: AGHT+IEXCQtdHE6tbZ2Fcg77ZohP6v4X9OR48Zr8pyQWokLBg9pPrcaJh94n+JgEna532muWhIMjrA== X-Received: by 2002:a05:6512:12c3:b0:530:ab86:3 with SMTP id 2adb3069b0e04-539ab84a49bmr7463315e87.1.1728406318165; Tue, 08 Oct 2024 09:51:58 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:51:56 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:39 +0300 Subject: [PATCH v6 02/12] arm64: dts: qcom: sdm845-starqltechn: remove wifi Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-2-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski , Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=1185; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=B5YYlbLRQVvY4Y4SHyj4dqgnNnzgmNJ7eDkXD5DwF8Q=; b=Q6rCtE8+1KP5UI9UzsAALJQhlLg2TJcJrXZE2rgB1W7GBFvjPlSqULRPr8eZKgLtVRQqqDlaP aQmEPmQZxVtD1H0VbuNLux34RliWDKrHHJYJcSqho9SkzaqrKPA2CK/ 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 Tue Oct 8 16:51:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 834077 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 6C9011E1302; Tue, 8 Oct 2024 16:52:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406324; cv=none; b=NUSOX0vS9triqO3IMBnRux+GmAeiQQRNiB4ITNPUPs8vP1FxOpNzxeZIxeWJmYawfNDHksdmTObWCUd1I4+eEQS2VurjYP1X5hWF2i+N08E5Mfe4G0vOX8vP+wLgOC897GXDYK31QE7+RaW2dIXVFuTNkzOb+xdTooSlz2wDe3k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406324; c=relaxed/simple; bh=SniebBaSk+bOJMgXB6Nt6ebdbarI8u/jgveLDRokb34=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iGUpeJC+j/OVwyrjAoVPuIrUKh5wVwaJfnoZwKFE9lfWif13vYacWqpuOKAbbAi3Dvv8f+xVHV5Hpja4146/kIOMrG0WxHE9Tg3zpSb4A12w6pkELAYOSa4EixSUkcTFIIDo3E9a/i8vao+WQj4mbqcrg7iRq+XbGfDmWO1a45E= 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=fph94xou; arc=none smtp.client-ip=209.85.208.180 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="fph94xou" Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2fad100dd9fso84351531fa.3; Tue, 08 Oct 2024 09:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406320; x=1729011120; 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=/E5MmioPvGOfE+bH12kRnA1ooUgXRMxvhJzzUMo72qU=; b=fph94xouqBZqNHf8MCYZCvtHRpEa9F60DjIkA2wG4Z2C5ZLwUmTptVkcaUlLnTJ6Vv PMr/sZamXaQ35YtwzBuyJKo/K2dc2ji9PHiB1ke/lmuLNWJh6yZfgoJk/1g2B7QXfsun z4eg1b+OVzp3nXi6PKDlURf2JATRzQbzGqWQhR1duUakELF+GhlSfh+LeeKn0P3GLxBi Xab2mP6Tqn+p18rmWTtVDoXJ4aeJQurEwrKLJUiaLXB7uqrjf1jvSf98f8Ww3iNDqAVZ VHzPfSl5OXQmIDp7b/Fp8ibEK6gFh46kHDLoTCdP1kh7llP3aSOVWr9YMBsWOj+tb5Ic huZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406320; x=1729011120; 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=/E5MmioPvGOfE+bH12kRnA1ooUgXRMxvhJzzUMo72qU=; b=JpskczLILBo3H+qEjowO6LayWg4iw7g/oplTDiYx4mh02ISRkPSrzjdKad8rv+MWDx j8SWZGGuSExQchLZZXcVyIvA/auez3hrtZQPpwH0MaInW/odEAUtO7hI3zphKl876DKg c6KK3KqU+c2Y9EfiL+atm1RbFh/O5/lga/aNGCerXMpZjlT6BJN2zCd2dPx7SJgmMi4I xz+qaNuj3JxcOe8KqkT1FpWpTXaIpg769ULSjQCCeNhKfD0jofdY8qEFjUhbXnrewCM8 i2VaktD8ro66K9/OWMvVM2oLqro1yaYdQ6Uc9a8QOphS57+aVnPG97MJpgIlaIgZWUYv gjnw== X-Forwarded-Encrypted: i=1; AJvYcCW5XOUvftykyzhouDNibzUmsZqwQT2Aq58wh6h7Hl8voXfmgk9kZ/xirqB1O2s7cIuDpd66FXh+wr83@vger.kernel.org, AJvYcCXIebZwh4R/KR0R1k/83cQl16rJ6eVoXWPfgbrSH+ZvnD0jxNhqnCW52wlmt2xXD2tSI+qcLdoihd2pVBA1@vger.kernel.org X-Gm-Message-State: AOJu0Yxi7JT8hyzsY27NuQCdWfCQpHd9sAb4d9CNSHAXmmdZfhHm6qD6 KNHLPZopyVkYKvHdHoyCROOJnWcWYFDSpTF9JfH3HD2HiPhOUJ3nO5iWsA== X-Google-Smtp-Source: AGHT+IHhQfOqSd9xkFJH4XcIqa0DkHurgnWJ9uLPpIfWJTIt4cq0PqeCN8QMT0Npp7Eqebv4M21qYA== X-Received: by 2002:a05:6512:1382:b0:539:959e:f0d0 with SMTP id 2adb3069b0e04-539ab8689eemr11688463e87.21.1728406320237; Tue, 08 Oct 2024 09:52:00 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:51:59 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:40 +0300 Subject: [PATCH v6 03/12] arm64: dts: qcom: sdm845-starqltechn: fix usb regulator mistake Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-3-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=1272; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=SniebBaSk+bOJMgXB6Nt6ebdbarI8u/jgveLDRokb34=; b=IgJzbW2Vc0AVJud4xdX6RWmkAmJsLcsILT0FxjeRbFIazpIUKYyR3wtXzBk9QHppeNb4QGN5K tJkEc22Q0pNCdRQBUzumUTfq3/Q/mKwuSPj2HWSqBnURtso0ku3wGUh X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Usb regulator was wrongly pointed to vreg_l1a_0p875. However, on starqltechn it's powered from vreg_l5a_0p8. Fixes: d711b22eee55 ("arm64: dts: qcom: starqltechn: add initial device tree for starqltechn") Signed-off-by: Dzmitry Sankouski --- 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 Tue Oct 8 16:51:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 833645 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C7331E1325; Tue, 8 Oct 2024 16:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406327; cv=none; b=dUtu0ymt/yQ+wJVnrxDmIr7Tc1Dqh2STkWKma2QtUhBD2l3WMsmcwQP8rduarYNHEpwWxGMJYZGEtsrPWn1GGrpOAG+EnsDGu6PygHDuFmdLcLYSt71j0iQQXjEaTSB8ubKAuE7IANY3Kid6gpPmYLj7DZ7PywZwhM0Fn00gC8M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406327; c=relaxed/simple; bh=MNFja6W380cwQsBchet1ML0lpqm/tvbaxl8U848Ww/4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TTG3Er3Jf0vtYdvIu+ewhDqjNDhKb5bCK2e0tjEbQjnAaROaZcm5+VqGvNE+BJABl7aNGK0AU9iAF1YXds3xlLKAozXwRxteVm9XeY7JPUwDabcEuFEaHLthrq3YA5nr6ValzbDy1vI4T6Eat8sfRGZp0CZ1kPvZXN2whyvhuDo= 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=aSzVkWTQ; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aSzVkWTQ" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5398fb1a871so5824051e87.3; Tue, 08 Oct 2024 09:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406324; x=1729011124; 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=vAB8XHmiE8ZYuOnqpUEx7UlvnEeWEHhpQdnsw/C+4Og=; b=aSzVkWTQn/DvamuARLeRmRyuqRkkLWHqODpRnUURG6lanOngROnMccve7gdiYKFDHO X7kv0hgli9RdCcXihcXA8UgdMsatl7rw/nxUCswt2oUb1XtMvllawrxFfD+XGlz5u1Tw 7lrtC25E+rzBfRfUB1C3p85301Dp+bX5N7dZ14b0wIdMtXmucvEjBH6X7+w8MrUZbx+7 a+eMMZqdqpDmMBNLHQyHDbwxKjPgCd7h9TvH6ZCKFqeJhRZ1UdG6o/BUNvGECmzPdObt 5q0OPpozdkbFFI9StSsMqEGdMsP501WpK2FzKOUX87P6HivAAzoppcaW4vZo27yZ4j1C fnhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406324; x=1729011124; 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=vAB8XHmiE8ZYuOnqpUEx7UlvnEeWEHhpQdnsw/C+4Og=; b=EbXFwL5PDPXoTjFNgIi4Hfr6/ssQLpFYQVCxUexv4ourLv7hVDQnfZ/cKBKS7Qleqz QnVgf0b88MKufUGVPubmjPe5A94nPEqQ68tc5oWJtewEmf/wQQnAaaCzsmbjl1YZSsyM jjfJ7L5rXi1BKwTbjOgGROulftP6z2MpdW/LzwNQDnSZeE4R7ucAxMp7y1N2QarzG55b FUJHIUur77h25STDFzhnWxGT66yap2pZjnITZHOOHpBKD3A3NbS11nVEY1qlDXb0r3il bHpPaGt1/L/6nhR+YLHocK60X/Zmso/E/70ZgFT1ImBqfpycPJXnKWbvx8UO7F0GsSJG 42vA== X-Forwarded-Encrypted: i=1; AJvYcCUmSuDePKHehp+M1BtgtJ63f9rYm5Of4BS4dlNO+BdhGXMW6ACpB60Tdu9QF4+lQAhSHZJE9DX/yrPx@vger.kernel.org, AJvYcCW7qlyQIpbx8fEklNsbSGxI1fBaTEpRztnDlp9vWu7TBJopqnTc+iRqOVk8XU5i/gyAB0m1rZZAFsLA0EyR@vger.kernel.org X-Gm-Message-State: AOJu0Yz3fjRDGYrbmmbAS/g2FpYA8Q422O+VE8/LT92IzlD6HFbfxAWq Tu+X6L5JU/IHKeeAYtyqbMFmmmIv2DbQDyUp1idPTw4xYqnF3JMn X-Google-Smtp-Source: AGHT+IFO7B5nlrMVJbn30TfVdbjC+rnHecA+X/U/u5tldvhXsBZGN0a3xgGAgpg56K3oA1N/zJvDfg== X-Received: by 2002:a05:6512:318d:b0:52f:cdb0:11c0 with SMTP id 2adb3069b0e04-539ab85883fmr7975944e87.21.1728406323380; Tue, 08 Oct 2024 09:52:03 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:02 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:41 +0300 Subject: [PATCH v6 04/12] arm64: dts: qcom: sdm845-starqltechn: refactor node order Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-4-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=1030; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=MNFja6W380cwQsBchet1ML0lpqm/tvbaxl8U848Ww/4=; b=iT0ceDU2eXRU/TmnKwHoN2kmaxtDGGyClXfVICkq9B/OouXtJqnbg4F2rG0sNvUOjf2RLTm3r o0i92BDGQYQDHd7ER907wcbQCU8vTDX9BObu0R+7yQwgVJEkTs8NOIF 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 Tue Oct 8 16:51:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 834076 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.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 AFA441E1A36; Tue, 8 Oct 2024 16:52:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406329; cv=none; b=SJDO8bRVp5QuQgJEbXFDshtFSdhGzg36u/GSpdjeRfklh+rQmWSF+qKRfcEkNej5ddI04nT9HhkRI74fPUyD3wnQkENmpH1lznMIv9+SZa7SAM+mpHKuoJrYRXrPO7XaFkBaAFtDArjVAdOrGiAEyxXu51Ikb9QI6z/qDNyGSzk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406329; c=relaxed/simple; bh=QspNxFKhs3wh9P/eiJFzCac/MvF862oX/Xvib2SoieY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lzWslv7/dIJlxetg4c1S8WyHQ1Q92yog8MFRJPtljULGf7xVQkV6Ufq865VV4NehOu6p9PTwYY7w5DAKL2oPO48dAmbrN1JLoFT/Hzo2IMdTKRax5MVAIyzdyLaJKp/+TIeJSqTb061kSl0I9qhbxWmtL3zmss0LaM3JqDKKaQQ= 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=Tf6lRP25; arc=none smtp.client-ip=209.85.167.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="Tf6lRP25" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5366fd6fdf1so8064658e87.0; Tue, 08 Oct 2024 09:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406326; x=1729011126; 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=zgUeOHnXS9kdchOpVvbBkF3RE/puVjbRIilUeIKwUxY=; b=Tf6lRP25h5a2c9DRXvCNFzcKZdfA1vwo4XJ9jMwJ/gtYLELMfCpTcFtzLs7sqElOpG 3EOPGJUcgsdie5+WeJf4XfZFqr6rfC1g2UjzqnabKNkWaHXTeBUNFo1V01Rn1Lj3oWXL 5QJzeWlRU+ByJB8iXF414HfKb5jZ5ocQexKtlBObhMKjCVWp0P6+kC+6CBr6JZ14Xw8T wvKhccEuHz+FZtkWDegrw5vwouUtJ84X3Zl4Q4smVnWEzVKYmOnCjiSzp/IbsUuGu/u4 7yphlSQmoRQjtzEKXkLMRvWk/XXyzQGZKls3hGDu54SAy7kPTKFTsY8KkZBGJnS+6I15 x70w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406326; x=1729011126; 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=zgUeOHnXS9kdchOpVvbBkF3RE/puVjbRIilUeIKwUxY=; b=nzGGvPv6a1Rz7pnbQrVpoSpNzgXvrg2wO+9ncedx9w566WhDDRT7BFl6Ba2l28wsQ9 FLzM4bDYW9w4CeKd+MFejpjvJmO4lg2i0vGdJl+ysS1coZ7tPQxVidR5eL1ZXyLgpE4x qDIN6WZ0z1Yrl14dUBdGiI0t3cmr0WVvDHiLW5+KDJmnwn+QyzsnMY+kV28O2EkJZ3rS DtwFiml9QWjqAF6iMyDXa1W8czGgn8CzevLUbUSaqesu96nDb99jel9vwWmIB8aAsfcY jOXrSl7iFb+DIOyWMO2/RJojNIfGx3bk7YN/4e6SQBV6jkoN9U7N8K+ba1eQMdKhw501 g6Gg== X-Forwarded-Encrypted: i=1; AJvYcCUCxGXtl+zq4Hr9yPbuj9y/3rFBzZtfZGPMnMLr1LAIC4p6bcnCSJ03zIlcb7Wfb5Gqc8LKEc+iKrkJjQ1Q@vger.kernel.org, AJvYcCWdC2Pfo4cQxaUG5dBD0MrcQxm/uh0bpZav6o+KOfCO+tJdgdMcatBWV/d6fNyt/BkVjQaUpgEiIf5m@vger.kernel.org X-Gm-Message-State: AOJu0YwLjj7093hW92bBPol5z16wfwhCiHmMV93FwujhsAQduyFX01Jb 6IiBsyzeowB1C5dMhlCYH0suDRwucj8j064kPZVp9YBBz3/5TuaO X-Google-Smtp-Source: AGHT+IEsWA6+xbZqV9tHKTiBgOZiWaUd9khqrU6dXJusSeH/Ytdwx3/HvXsZlvw3tB1wKkrpcMcxwA== X-Received: by 2002:a05:6512:138f:b0:535:d4e9:28c1 with SMTP id 2adb3069b0e04-539ab85897amr8045567e87.20.1728406325643; Tue, 08 Oct 2024 09:52:05 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:04 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:42 +0300 Subject: [PATCH v6 05/12] arm64: dts: qcom: sdm845-starqltechn: remove excess reserved gpios Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-5-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=1199; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=QspNxFKhs3wh9P/eiJFzCac/MvF862oX/Xvib2SoieY=; b=F+/fizlJR7MYMg62pVmNW0cNK3kaAepPGveIsgLA0/oFc2gpZRt0I3JUJaSVtdnwNqbncB0fl iDDSGG0EHVxC+y03LYnsvjnRPgUgsPHitZgAhAhGtYck6vnVHjovZW2 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") 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 Tue Oct 8 16:51:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 833644 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.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 DAC161E1C1C; Tue, 8 Oct 2024 16:52:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406331; cv=none; b=nbLu67sEkTHY8B5t71vHC6C+a0xoYbdjesju3AiRrRhcLQJLr+ZijfHCdHRDLxEZx8CXk7QNp6BR77u6I7Lx7sulHeyrc9ur2Y5vtHD2t59ucL/jR641wvZf9r/wjDIF3ev8sa0M4vGHV+WYyrpBf0y+cBABb1iO7RtVMPVcGKU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406331; c=relaxed/simple; bh=EyvxYgmd+WlVODzcYuBQPU4RuBQO8y3BQCMsMeHqzBY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CIN09LTmzOjUVc+mSVBVcAiIZc+kUQrACYJKEJW0jFofrmCJTPuauTBlu7OWd7SDmUaOTpkTicIdXtcR3UBH1ao4FVEQYGAm5tjRlyhnkHwZJxWrYyQH6kLSZNev9FmfYPkvMXMUQT3sF22At1ew+Pbgrpx+ho4T+tJNB8/BN9o= 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=iEHFXJ47; arc=none smtp.client-ip=209.85.167.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="iEHFXJ47" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-53959a88668so7386141e87.2; Tue, 08 Oct 2024 09:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406328; x=1729011128; 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=moZlQ1Ms1cEUAdorR6NqtqJIQ081uxz/faO2ZLvLXrE=; b=iEHFXJ47p/PVCwsYyN3kf0X///oImy2Y03As7LaUZtpJADn6Ee+nfeXkAptaPoxXSj IP/Rq3X9nVBHQQ/W1UvqiinuxGYLcsjkHFPTk6bXB+B8vbttCYZV6041hC8z2GU3pBC/ fzobcCXMEsWz1WoA/QUB+yu0sIAbnPLURPSB1kqHtBxZPyJuAtTpoNrBuwKJWB7C9+zb cDWi5FOLAEiGHlkT78z6IhSKQZvb6UqUJLy7uX3G+RPcM3mUlkUANdLKts0IcPcZMoPB 9cm+6yD1uog/jX0elq6jsZ19XZORq9Y4iXcCYau9mOiJj5N4/W7CZj/+UD7KfXHpSndZ fp2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406328; x=1729011128; 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=moZlQ1Ms1cEUAdorR6NqtqJIQ081uxz/faO2ZLvLXrE=; b=lZ3f67qp3AmB1fPto/V2AxuSNqXABAk5JEP8SoyF97LPUIr+FnM/uv9k0Xv9KgNfMq BgrxEPr7OG2y7ucQSqK/O8wG1EEjQI7mHcrOVOA0d6zQ2vv6iUXzWQCt1umm/fupHlCS ngjE+MB9cFiFN6FElbGsjESGJcDRNufF2nt+MIAiQxe8WkmnYUpUwlCXtm3INhcU8TeX oqTVnmTjEWy8z70zlEw3R+evHGui+i2H5SN5/4iK6n09Lxfz5+ukpX50vOvOfEr5o3wa HtjH5Evj4NGoGBUCkr1wpBzzb0neqZE4DIhFMTz2uiQCm4r6qzvxcfwYvZin9xG8XmWF Adsg== X-Forwarded-Encrypted: i=1; AJvYcCU7qWDiKOmwoMBv7PJrmSMMdeIMLK6fB0An6MBYZajNrbr5sqVMQS0hQIpX9VpXSKAHBnAsvJfivYx9fLhS@vger.kernel.org, AJvYcCXUw6xfV582G/nAtRYNWgaW7OQtfQ4FrSAM/VTSaa60DxqDdkSx2iGEK9WcLqUYxl/rFn/+1jBWFTFy@vger.kernel.org X-Gm-Message-State: AOJu0Yz9MJJ973bak2FjxgYRgNPIFN1HoPTsYfV0Fv5kdP3qnDyg99zp 4yPY7gmisB5vhFMDRPaRIRVqhzfQxZ/nqq/9f043lIOvVL5Qhs9micsNwQ== X-Google-Smtp-Source: AGHT+IGUYycy+d6O4ecEpPZjbIc6a1uVjG5ooRd+slnWU7zOMiVsdqqO/Cc6nJkDn3HtrmSed5mC6g== X-Received: by 2002:a05:6512:2398:b0:52f:1ef:bafe with SMTP id 2adb3069b0e04-539ab877af4mr10250473e87.22.1728406327837; Tue, 08 Oct 2024 09:52:07 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:06 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:43 +0300 Subject: [PATCH v6 06/12] arm64: dts: qcom: sdm845-starqltechn: add gpio keys Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-6-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=1845; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=EyvxYgmd+WlVODzcYuBQPU4RuBQO8y3BQCMsMeHqzBY=; b=JWqDp7M2+ZYC5WYL41gywdCaHFnqtWeryQYgONbro5uF5Y9gQI73Xj6siquUEi0yL0qDhzmRs M+ohI4R2sk4A0raP1aI4S8lItz+3+SOqc0DqmUWcHFADkn0JbW3x/0h X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for phone buttons. Signed-off-by: Dzmitry Sankouski --- Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..a3bd5231569d 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 = "key_wink"; + gpios = <&pm8998_gpios 19 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + }; }; @@ -417,6 +438,21 @@ &usb_1_qmpphy { status = "okay"; }; +&pm8998_resin { + linux,code = ; + status = "okay"; +}; + +&pm8998_gpios { + chg_int_default: chg-int-default-state { + pins = "gpio11"; + function = "normal"; + input-enable; + bias-disable; + power-source = <0>; + }; +}; + &tlmm { gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */ <85 4>; /* SPI (fingerprint reader) */ From patchwork Tue Oct 8 16:51:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 834075 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FF341E1C2C; Tue, 8 Oct 2024 16:52:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406333; cv=none; b=DszyPqdRT6iVCDx6iTVffc28jCkdgWaU/DlV4oLMj7ZOO0zyjjF8v6sTI7QoC/vZmyPIEyIH3Yr2AVm/fWVPdVfvGw3lpUwOg5jBkyRchLv0I3RVh4gSk9A9erNckUMyhzmgX0HzTVwMp62ESGBLcdaxSchu9KKsg3ZE7Q1SJFU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406333; c=relaxed/simple; bh=NqCQWLggrQIjnF5xOmH7+34dA1dVfMw9uR64fLM6aMM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=llw3PjP+mJnAv8NcbD5J3ZFb4Ibph/+hvINdSc4LfCtexUYgIuUlyltLf5+gRUEwWfruYTpKU+0KK7GDb4cWo710xhR8yzEz+KOQVj39SCG0F9AaoxtQLSAIu6D8vT+rk0gOB1JjJi+4x6gj45JJJTrztBgSWd+8KjPGx0DjHXw= 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=FqAFsXWx; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FqAFsXWx" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5389e24a4d1so7252508e87.3; Tue, 08 Oct 2024 09:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406329; x=1729011129; 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=AKESfSYrQ7Ve/4e2rVvyOg4YJptWBqaLBaB6huUwNz8=; b=FqAFsXWx3OYiVTH93giB6MchA5MxpVdhDoXUg3UST2m4KPkFsHEN3uTEtdR6xxHo8c vk06x252pghBe1J/Dce72wQpOW8T224fGWn2wav1410yl5qk7KO8R6A1sUMx5WKA7UWB 3obEMp+hNKU3qg2pkKxg9MX720g9wrKqQLCu26+tZT5Z8FcLdnIUrhqELhQe17kHACMh KNNc/CIFn8IJv7P3cUfVPkUbb1XUoncbXyoD68ihwtbElMRk5h2D/2LLtzMxAHlqbgcB xOQlfvqPNOAQ4TkxdTElpBAPkQn09Kp0qLZ0FsbAIWG2Ttwk7aEB4USQtJws1HyfCbyx LAww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406329; x=1729011129; 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=AKESfSYrQ7Ve/4e2rVvyOg4YJptWBqaLBaB6huUwNz8=; b=nUWzY1e5cPV5+4EfHhkomFaBNC1kuR2prL9IpnwAgqQgcp2Uh148vhF+RwtQteJILH kTn4P/ntFiW9NZez5N6fSj88frupZVwnmpyBjN+ccMWUjKKNkjB8aF/MrRjDuDhWYS1d C02hzET2Nnz1h2T1/RKAhUYkXOgkAUT6HPqTtJbLBDsy3Urqe0q1DxRE/pdJNOHVqBtT YAMsg1KIuV3b3aoMCLnUGhUEJlQMcI+HKrW39X5deDa1QXscNH/sd4ozSQ5RPK/CmpME yhp3Br5ybYY6JZjkffCpWfkhkUOcHZ3Nl7CYMK0fLjk+m+b4VtnrEHc6/kgoS6kBgUFs sgWQ== X-Forwarded-Encrypted: i=1; AJvYcCUGPV89w2XwdnQVcLE+ejc6xmoMSThGU9CnQaIhuef55RxwbwqW30rsHQoRikLoiaX8yph4MhIfO2r6@vger.kernel.org, AJvYcCUV/aU9R5zY6FMu15VTLEpN+7LhUQ7me9Cg0NJbDqLXXniX4E3fvqx/XQuNQybsOKm/ZitqIRLLYnMn1ryo@vger.kernel.org X-Gm-Message-State: AOJu0YypbWlY5F5kKRKLMeC/Hqt0SJeSY9AXgInykNzItKiTY8hNyLp3 gyK778db50ZnafrE0IWk52lnH+aY1rXLBWYAQuuw/nX7joufx2BZ X-Google-Smtp-Source: AGHT+IHzHuCKrE/GYG+/n1LZNg5C1sg99PXkpAVYsU0V5JQE5eXOKAKz8Y+VFTzmaub4bdPYS3lFhA== X-Received: by 2002:a05:6512:3b1e:b0:533:47b5:c023 with SMTP id 2adb3069b0e04-539ab8577a5mr8436746e87.13.1728406329085; Tue, 08 Oct 2024 09:52:09 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:08 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:44 +0300 Subject: [PATCH v6 07/12] arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-7-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=3954; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=NqCQWLggrQIjnF5xOmH7+34dA1dVfMw9uR64fLM6aMM=; b=NgoMpvP2GeGALJHFuf0oQPmlCBGqhkV3vMDQcA6GpN6IBnPLSHDpbj6QLsea8KNxGUeidhgJT bzmPxwjCkkXCveMKlkvpAOIkxtLE5iwOsVCfTYJ05utfckUj77XeqBP X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for max77705 MFD device. Supported sub-devices: charger, fuelgauge, haptic, led Signed-off-by: Dzmitry Sankouski --- Changes in 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 | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index a3bd5231569d..7d1d57f41024 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -18,6 +18,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>; @@ -90,6 +100,27 @@ key-wink { debounce-interval = <15>; }; }; + + vib_regulator: gpio-regulator { + compatible = "regulator-fixed"; + regulator-name = "haptic"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + enable-active-high; + gpio = <&pm8998_gpios 18 GPIO_ACTIVE_HIGH>; + }; + + 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 +416,66 @@ &qupv3_id_1 { status = "okay"; }; +&gpi_dma1 { + status = "okay"; +}; + &uart9 { status = "okay"; }; +&i2c14 { + status = "okay"; + + pmic@66 { + compatible = "maxim,max77705"; + reg = <0x66>; + interrupt-parent = <&pm8998_gpios>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&chg_int_default>; + pinctrl-names = "default"; + + leds { + compatible = "maxim,max77705-led"; + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + label = "red:usr1"; + }; + + led@2 { + reg = <2>; + label = "green:usr2"; + }; + + led@3 { + reg = <3>; + label = "blue:usr3"; + }; + }; + + max77705_charger: charger { + compatible = "maxim,max77705-charger"; + monitored-battery = <&battery>; + }; + + fuel-gauge { + compatible = "maxim,max77705-fuel-gauge"; + monitored-battery = <&battery>; + power-supplies = <&max77705_charger>; + shunt-resistor-micro-ohms = <5000>; + }; + + 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>; @@ -457,6 +544,22 @@ &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 Tue Oct 8 16:51:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 833643 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.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 B71801E22F9; Tue, 8 Oct 2024 16:52:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406336; cv=none; b=S3xWSGFhKxNINB6dgFPoH2FA6SrcY5LEKn1T9X04kha0jfzOkxUJr/CGM6LzyjBvH1v2UotDVqqik1zCbxyMSB61VtbdCWT4Wmed5Ngi6eev1eXIMFpQNttSrpdI5/94SG16OZGclcV8+yd4fBuCHJszufaTT5S8ztGhdzYmOAY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406336; c=relaxed/simple; bh=wpnib+1Grz9objorNZJkWtA+40DP54d7IOIrdVTRUqw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VIqog3RiQrxZxJQaANgKoTg6ICWlEXhxWPEqewdDOo4xSWrYt040jystalWdJDxyPgekxcUhLKRG1WYVrquEUNWZ4k3LwL7m9aADBetuQiDm9zkMHunLRGxYlu1IGapLe9LAHF3z9tW5d2j4vxXLjusI1tGaSr9cro6fu0A+11Y= 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=gTwgHOwx; arc=none smtp.client-ip=209.85.167.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="gTwgHOwx" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-53992157528so6303520e87.2; Tue, 08 Oct 2024 09:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406333; x=1729011133; 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=FKy3d95DyP3xtBh1w588dnVQnCmF6HjBrF0HUIaj8fQ=; b=gTwgHOwxEXm2iLtY2TZc+dt/tuXH6kNS6OCeh9C9531iSz4UQ9llzwVqMGlKkJRtWA BxRrvTaRI52DXacqypU0xzJJOTJi18w1SSkUFN/Mqm0gUU8ozHVH2VA43Kw3szoVpTQ2 6BI2K86KCLriR+hNOxtcWBPV51IUAuURC6DMogX57t/ZnC572zZwjmYnkmgCTKRypR3B 0/G8I3qKuZyznELiEb0AKUyaxIgpH9u48IwF87SpU4wfSMzTwDZmO8TfJ7cGtJYTx/N5 BO0R4kAIDZd4s1Y8xvQq+V/OpZFoW0bClPV5pvTnMlesh3ELfHpwf/YZ//NeW1ztTivN EPpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406333; x=1729011133; 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=FKy3d95DyP3xtBh1w588dnVQnCmF6HjBrF0HUIaj8fQ=; b=I3fq/MjaSlJ9yIF6hwlnRnPMggoDIAqNIUrHxxKgtDrx02VuB7a4mwkH8I50e1j3kS 3iD9ZxGO9i76ZoGuvmZpGc1bV7nuDYA/QgnLrZvJc76jxPbZUFvE7a0nrDx6OsSJEC5t m5ZlirWdBnXQcn0s9/xC05jwDwm8TyeBmm1KB152QBN6qEVrwV5WvLzwgjNj2Ki/b9JQ sGZ6nRgJjhcup50SdCQSId0cgmzgjfu1tiyeuhm8BtFfcGAarzsTCs4WOJTO/K3Ofx5U KF8vcFai/9m7uXGhTqzaz2gcWtqx9qJO6ctfL86PvdvUF2+CjduKq/HkhlS+kp1Ie/HY c07A== X-Forwarded-Encrypted: i=1; AJvYcCUkcmUKWu36gH/OAdJKMaLArozaOEuXPtTbrZQnplgtTuYUWLhGeqpgVYQat5Z5Wd67hA+md3ZScMMDumZn@vger.kernel.org, AJvYcCWMn3tBGQLh3N6qW7sAayMc8AXXvSPmNEQ/yHoCLMwRwBR9GXwMu5ECl43RpVhKYDCQnKiPdxsInvuR@vger.kernel.org X-Gm-Message-State: AOJu0YygbyeaDI0dQ6u7QYssZREjgHCH3xc92hZRjZAPfI5WGC9OZO1C TT9dMS7MKaMqELQoXMNzKHNdYwWHNyO9beW4ke4L4zHXlQh2rJoXjcx/aA== X-Google-Smtp-Source: AGHT+IEAkGCt0mp4e4PRDTwjRUPlbvAZKwYLTbRPEt6EfcXZ4TNJfv9TGMNtONAypuSCm8agjeIukw== X-Received: by 2002:a05:6512:398d:b0:539:9f52:9ea with SMTP id 2adb3069b0e04-539ab9eb09fmr6857680e87.53.1728406332658; Tue, 08 Oct 2024 09:52:12 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:11 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:45 +0300 Subject: [PATCH v6 08/12] arm64: dts: qcom: sdm845-starqltechn: add display PMIC Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-8-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=3442; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=wpnib+1Grz9objorNZJkWtA+40DP54d7IOIrdVTRUqw=; b=C03p85AO5+oO0PqJsfAskqQXM82LXlFflDBNUjj/UyJrurVaRHY192OkXFYUmFkMz5+USfBvi V2GRSPwpXmeAPYUmTgKLuoYrPkjjqOVFnLN4IkvLIlSuJ3iiy0sVXW4 X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for s2dos05 display / touchscreen PMIC Signed-off-by: Dzmitry Sankouski --- Changes in 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 7d1d57f41024..5635f3b088cf 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -39,6 +39,9 @@ framebuffer: framebuffer@9d400000 { height = <2960>; stride = <(1440 * 4)>; format = "a8r8g8b8"; + vci-supply = <&s2dos05_ldo4>; + vddr-supply = <&s2dos05_buck>; + vdd3-supply = <&s2dos05_ldo1>; }; }; @@ -101,6 +104,66 @@ key-wink { }; }; + 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"; + }; + }; + }; + }; + vib_regulator: gpio-regulator { compatible = "regulator-fixed"; regulator-name = "haptic"; @@ -544,6 +607,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 Tue Oct 8 16:51:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 834074 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 E81071E2314; Tue, 8 Oct 2024 16:52:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406339; cv=none; b=HSvr4TKSRHydMSILc526qbe2cmepjF8rUC/eV1Q3lZ9Lqz5JXQcs6fR4G6+5XZpRFVJJnWraKd8swjiLDl0XSZQYBjdUc0PqTDFNiGxJL6A36PbMgYH1MdIxu7AuvInho/NjhcQNz17/OANCuCHW9cWA8M51NqNz8oMIvVFI5ug= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406339; c=relaxed/simple; bh=8kPyplfx7x37JVDroPmWayLQ3fm9wa9IxcjlIN4yQpo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=G0gqbwupo1Eu5INVyrfsUhMF/Ivfr9IiJH0dNtkoLVuUr616k864W9yzjohZvBdn2LQaGcXhCUBNr/9zVEGOgEo+gWLUgmVB8TXxQ/SNa0eP2Pf4ooOQEQgQf1DKF0ssCRhcF71TPVsyPKVYQjsBXCck1qwDfI6+SPBrCVcn4Mg= 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=ipdSVXh9; arc=none smtp.client-ip=209.85.208.178 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="ipdSVXh9" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2f75c56f16aso61206581fa.0; Tue, 08 Oct 2024 09:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406336; x=1729011136; 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=aUIhXPOAyDpWUNw2bJL6q86xbPtd/630RooihSDfsyo=; b=ipdSVXh9rcjpV+jzhVtN3Q9qXsnpX1mP42uxcGeLhFks6pT72RBQPWRLqYeXhu7uzr hitInNkHreHrSUWsFdbNItDDQYPb5rgsZKL/pYNqyNzNQ3EfBtin3VMqnIXQ6hT+gIBB GC5rU3bZZd961AdpHn01njhN/TaLVCBZJj0csqrgwqcHR9UWz+wkynDDG17DgkKdWdWn PiSr1hLw3MAJpOL/ZHTkopy+9lHTelMaaF0gS8eHxCjT57JEQrK8TQx9yTR8Sql6W+iw 0PsWhTUCT/FSfZ4ybTHx4gIeUf/UrODGVFbw+KbInUYwB+obk2sRLjyeZrErpNKP+r4g 03RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406336; x=1729011136; 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=aUIhXPOAyDpWUNw2bJL6q86xbPtd/630RooihSDfsyo=; b=DGDMxVZoC81FFN6lGmSEIIBPQQcwadYSnoYTO86bs42iPcSNx11CYy/+UCddTWr+tJ IRpNKYOTEOVLvo0gAkKhjz4eeYAojO5fFXwolCeL3/++9b/8Ykr7+LSGTx5j8xUnmjdN ekHa1mw+teLaw85VcSTt4o7qFp7qnK0W6bxobU2VQ7lFtfVl7yc7F2RdG2iMMaZ/v5ed XT7Jj7noNIu7epWqJj/017XPFPLT40n5FZRSmVSCaU96YvmUT0aSEu4bqkE8IhhSqTjy dw3TBcza9auxM637IcvZ0qQF4yJUN3gfKBxD3DKT06j9IHwdMRFc2b9UpbWL/lb8x4vp aiWg== X-Forwarded-Encrypted: i=1; AJvYcCUfjcUjmwbuufNLOSkHvI6OVzxfjT7IdDis7/Jfbbotx+SAIg5Cw+lFUHG3kG5HxxT2Csi8Dh8npe+c@vger.kernel.org, AJvYcCX9zzuiEz2Yh1vXQUQNFr7MUmH5xpbodMBaB1PriqO6Eek4vY7Msaz/obd+HgRyd+EEffPuujtdVgJYgkoc@vger.kernel.org X-Gm-Message-State: AOJu0Yz5YyV2QLkn7v48YRAT2zqUgJGM+MzHM1Y2j7xxFUe6hZhxOu1D 5f0tRDvf8lqJP/fefmeiplU6MGzdbl0wL5zVmuatw6m6Pga+VKiQ X-Google-Smtp-Source: AGHT+IHw6Tx7J9X5Df2I+Qfmt9z7SaUopOjY7Xw5DF9CPgcN2OBevhxYBq2X+MlB+4Wre0CuA+K3wg== X-Received: by 2002:a05:6512:3c9b:b0:52c:c032:538d with SMTP id 2adb3069b0e04-539ab88a08dmr7485689e87.27.1728406335935; Tue, 08 Oct 2024 09:52:15 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:14 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:46 +0300 Subject: [PATCH v6 09/12] arm64: dts: qcom: sdm845-starqltechn: add touchscreen support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-9-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=1393; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=8kPyplfx7x37JVDroPmWayLQ3fm9wa9IxcjlIN4yQpo=; b=/G7A95QN5hxeN8V6M6LlVq3SnR3dKVOvs4m1PGRd86hto7chKW27hEzznRPGQFiaER51Y6qRR hObRT5Vid2hDsK3ZezeuWHHDUxz+wSACjBSC8Q4t6VnOkFVgMPJXWbr X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for samsung,s6sy761 touchscreen. Signed-off-by: Dzmitry Sankouski --- 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 5635f3b088cf..2a367625d591 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -561,6 +561,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"; }; @@ -665,4 +682,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 Tue Oct 8 16:51:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 833642 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.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 8F63D136327; Tue, 8 Oct 2024 16:52:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406343; cv=none; b=esal/pm4mpij3vxl1hWaZSuxy+S4pACflqZbHMK+hEkXWtTLUAq8eLgOJgbMvX2uwwpH23E64o3y/UoO0EbEoM05ZuA7LhXYjerVszvDPbcMyF/sLgjRfJtoUqhRu9FpAzh9Bi5JYSoA3T3RWgdL9ZDQ/sARNaMW8XJtdXjgUmE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406343; c=relaxed/simple; bh=a+8ZZYzmMPo+J5xySH7T3E+wwwWtd4Yi6aDarm3ZQk0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NscrIfnA2EmuvX5LOpVerFmC8PEsMdXvby+Qq0UyusBrZlklngKYl4z2500vV8r3lKoQ+RqJh8a4Nbo+rZI+osfxtOcfQ/BSvE2uCAa2OqEG28jRsEbRsXvSIqJFj6FjPPZvin8pNQo0A6k5kiNPY0OdkYdp9e05pL+OR5LNj28= 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=K3lSmo0d; arc=none smtp.client-ip=209.85.167.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="K3lSmo0d" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-5398e53ca28so6531486e87.3; Tue, 08 Oct 2024 09:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406340; x=1729011140; 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=e/crTbP2euxVMPYT2tqlSTPbcBcn1gCJOoaOnz8gXO8=; b=K3lSmo0dX32kvjPtFcdKWOkbX2ESDGesN9eshKgByc1Is9fQ8kamZlBI+cd2crBlqp IBBuI4+ga4KU8+R1HNketLfqiiGq6u5STHSjAu4yKgsYyxsgvq4C0OodDzjYl00KjcSl ZJyCZsa2JtbjYfMIRKPGcw8lFy+xRGRFgxpEDqiivAtsT5BE3CvUu6uOIdDJSU50XMhb i92ER2ZAIWJE/HWGsbOASglDr7qe13qEmmYS8KVrRgaNOIypocIlxYNQah/xxKYlL2IN C/spIbJZ8vLEio8tuisYAkmBR+dX8N1wznA0mTqwbQIP8gC+kGd+qHw3RnIiro8S4m3P aV5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406340; x=1729011140; 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=e/crTbP2euxVMPYT2tqlSTPbcBcn1gCJOoaOnz8gXO8=; b=AXw2ZZDMKk6u4PFect8t1F1/KOwf6IrjYwX8GbgEKroSYTE32NzIXKkSlfP+BpYprJ 8yziRPiMSJNqKjFpQAdkv+3sh87ltiN/cXw7oj3ag8DYAMJ2f9Q4FlsGlVdTCTWic1bb LUvOi8dIwMJ56VJw970AnumG2xUcl87KrB7cYGjNZSXDdj0gsmRAOaKxxw8Xujm7AhGW V5GY8FOBMYxaAWdG0eibaoqBkM+KJXyaMIqzcN14U6JDOkZBFU+qOqqQWbhKgpLWHOSi pBlgLc0IXH51F0xGc8fSjJ/zHVV0UqFlS8OUMXT5JkbPw2FOHp4qNlwJJh8c5UEzYIlN +S2A== X-Forwarded-Encrypted: i=1; AJvYcCVfvsXB331iFirGs/utCXd9dmSzlZktF5c9TdTXPncdHsaUh5MBer/3wct0Aej4CA4w0261cxeQ1QxEkmqm@vger.kernel.org, AJvYcCXpDQhbiVw8hXT4Gzftk/7a2s6c7EQeTEg0OsKm0HWPzs6tcEdwGqWW7vkbKMtbuzivuYUoqxFu9NIw@vger.kernel.org X-Gm-Message-State: AOJu0YyL2hIXr12WizJA/FZvQASycq2vnZe/JGRpkqnO8MxqiZ6e0bkZ zfscqk1thJHMWyZezW1Th5GSMUdDJ0NM987O3cTX7SBDTTo9DtqLTiritw== X-Google-Smtp-Source: AGHT+IG08hQKUvstlXrGqV0tctCcyaacBHua2YuZJY9sU1nUAL3PqSRsFkngr4xt3TM9FzufTDNQpg== X-Received: by 2002:a05:6512:4026:b0:539:8b49:893e with SMTP id 2adb3069b0e04-539ab9de307mr8451176e87.38.1728406339485; Tue, 08 Oct 2024 09:52:19 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:17 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:47 +0300 Subject: [PATCH v6 10/12] arm64: dts: qcom: sdm845-starqltechn: add initial sound support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-10-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=5269; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=a+8ZZYzmMPo+J5xySH7T3E+wwwWtd4Yi6aDarm3ZQk0=; b=KSwDBb6rOo1aNU0+oWqPeTWf5uEK8sFqSfNFZZ6bC+6V28uh1ZpxobXeSLxnxBIQQguWfEgUP 7sq4OBnGGZtCWWCDvUALzMT6Uyx7czeER3+liusCJv846VwlAPb/TTG 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 v6: - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 213 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 213 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 2a367625d591..4d459fb85782 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -10,8 +10,15 @@ #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"; @@ -83,6 +90,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; + }; }; gpio_keys { @@ -578,6 +595,202 @@ touchscreen@48 { }; }; +&adsp_pas { + firmware-name = "qcom/sdm845/starqltechn/adsp.mbn"; + status = "okay"; +}; + +&lpasscc { + status = "okay"; +}; + +&wcd9340 { + reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; + vdd-buck-supply = <&vreg_s4a_1p8>; + vdd-buck-sido-supply = <&vreg_s4a_1p8>; + vdd-tx-supply = <&vreg_s4a_1p8>; + vdd-rx-supply = <&vreg_s4a_1p8>; + vdd-io-supply = <&vreg_s4a_1p8>; + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <2700000>; + qcom,micbias3-microvolt = <1800000>; + qcom,micbias4-microvolt = <1800000>; +}; + +&sound { + compatible = "qcom,sdm845-sndcard"; + model = "Samsung Galaxy S9"; + pinctrl-0 = <&quat_mi2s_active &quat_mi2s_sd0_active &quat_mi2s_sd1_active>; + pinctrl-names = "default"; + status = "okay"; + + audio-routing = "RX_BIAS", "MCLK", + "AMIC2", "MIC BIAS2", /* Headset Mic */ + "AMIC3", "MIC BIAS2", /* FMLeft Tx */ + "AMIC4", "MIC BIAS2", /* FMRight Tx */ + "DMIC0", "MIC BIAS1", /* Digital Mic0 */ + "DMIC5", "MIC BIAS4", /* Digital Mic1 */ + "DMIC4", "MIC BIAS4", /* Digital Mic2 */ + "DMIC3", "MIC BIAS3", /* Digital Mic3 */ + "DMIC2", "MIC BIAS3", /* Digital Mic4 */ + "DMIC1", "MIC BIAS1"; /* Digital Mic5 */ + + 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 0>; + }; + }; + + slimcap-dai-link { + link-name = "SLIM Capture 1"; + cpu { + sound-dai = <&q6afedai SLIMBUS_0_TX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 1>; + }; + }; + + slim2-dai-link { + link-name = "SLIM Playback 2"; + cpu { + sound-dai = <&q6afedai SLIMBUS_1_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 2>; /* 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 3>; /* 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 5>; /* 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 Tue Oct 8 16:51:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 834073 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A23A51E1051; Tue, 8 Oct 2024 16:52:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406346; cv=none; b=JhQKeX66C3sY7WTAbDZa+wXWczLxwVJjpvpgC+dcKm5kZTPaW2VcdnwKUw1LGza2Vm2cOv/ruEJd48IzdlSu0TDi8YfTmMqM2zupzkW9G+rX080oX36HwEFLGJIBZaVW11tyVoLM4lmAM5/Mp3kkDDQRkLbin6ySK4Wca4Ldn+8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406346; c=relaxed/simple; bh=rcE2/GmrbbYrMkpcfScPpgvsQj4SBqxIMfT54Ac5TRU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Rj0vM5k8cVdhuNX5H88o0w4hxYeJKEXVvR8JRsGRz2UpF5gtq1eLgxZ0FKTexuUl/SlfsOHoTGkOFcqUviKekkcwRfD1h/nc0uaRzkXY+LspNi0jqB21Jq+hfV8nUJSuEb9HrZC9EHv4xNscnClv2+ZWCXVLCLnepmtob6nai6Q= 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=BoTNoUBw; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BoTNoUBw" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-537a399e06dso6169390e87.1; Tue, 08 Oct 2024 09:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406343; x=1729011143; 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=9SnNDfwNKoG43QWQYWXWnF2oe/+JuCEPR6mrRjTttHk=; b=BoTNoUBw8Yy80Za5bs8tLHWbjws60mLjMJpaZ0uf9nr/aZ+5nsjOLIG1d2AilVGhcW g/TY7QUbo3vdK4TBbAqweq2tVg+cMjnn8YiONH/3n3NBxBTwtq71XjKPNgplZkEYcE8J sARuu1Pxg3hrZ3CaxcQHIKXQQLODluC/0TmryPnTA4LPoBcaIW2ZBJOGEO6dbN6X2N2A FkJLjJh/CZ82bbg42/da9Fn+Y1CLKl70o8PyDw+K2f2LfQDdwUF38yoE4Hc5+qCK9E7q I1y4qNipfTLi394AX8quMPYXV97cRk06WTfZooOuAKMsIL6PIgYOwTYhNTqJweXup43I sBzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406343; x=1729011143; 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=9SnNDfwNKoG43QWQYWXWnF2oe/+JuCEPR6mrRjTttHk=; b=TKf9e/W/w2FTfEC5ChGop9dK2tc8F1uY9Y9XNn0wI0u6UbQLuusSkjSIMj9XjAXyJa AS61IUmtg+bMjUG1ce0jHB9wbwRZXQdGAvmrcNfKSgzBzl3cLoSrCMmxM7ROjeA6sxgE NmjS5e7MOu5OKOOVjYATwK4WjceKVRw4cPKZyBvhKDy58KI9Ry+0CyUI8OHmHmPy2z4s Zg7bfZxMlgwO406scL+AMp4wrjQ621TmY3FjMquIAExDUtwBY7ARQkbAw1+pDtsFUnuq ji/jNbqqsDPpqUHT+0aMw4kb6NFg7dNKxd+Q4rjRPDRRx/FdYikAJF/21RkYM7TGVlbq Sh0A== X-Forwarded-Encrypted: i=1; AJvYcCW/IhjdvVehWB487KaSZDaozufPYvEASPkhgBAlunG5KzwALnk4Wkh4sADwnKgPHQ8dA4FF2i2YzwuQ@vger.kernel.org, AJvYcCXS7wnmoBRXBUyeIPH235JoGoiCojBk5wdtpUYS3NNDrJZJQUZLhUZP+FFPXbaSD954JUQLKUmIyny8sNW5@vger.kernel.org X-Gm-Message-State: AOJu0Yy9kvcbhhDrLXu7M9vYf3zWWn++LdrOrjoaoAqxD0pCRqgFBnQQ ztQ7QlVCLV9aLFF7cf0qm9Du1VP035fMGroWPUiCjLjJIeNV2jeB X-Google-Smtp-Source: AGHT+IGX8at7Sa48XGDDEvkkyu+3ml39dlyfdzrZDG7wuxQNzY0S3IzPo12EYbiyiX8aaHhlQKYiPw== X-Received: by 2002:a05:6512:1596:b0:530:ea2b:1a92 with SMTP id 2adb3069b0e04-539ab9dc72dmr7738583e87.43.1728406342542; Tue, 08 Oct 2024 09:52:22 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:21 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:48 +0300 Subject: [PATCH v6 11/12] arm64: dts: qcom: sdm845-starqltechn: add graphics support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-11-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=2444; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=rcE2/GmrbbYrMkpcfScPpgvsQj4SBqxIMfT54Ac5TRU=; b=RQjjwwzpAnt6mMr0VGJE1lXZ72BO5OPLb7515E5kLs3rWfqwgrpzELj2xIUOMIERifufvdKXl Bx+G1GShtGiBTWo9ReIoWYiheae+yPzkDIk6OJYKk++1lR3vDy9o+vF X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for gpu and panel. Signed-off-by: Dzmitry Sankouski --- Changes for v6: - refactor: s/starqltechn/sdm845-starqltechn in subject - refactor: remove 'sde' prefix in tlmm dsi nodes - refactor: place tlmm dsi nodes alphabetically Changes for v5: - fix label names --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 4d459fb85782..043ae14c4fa9 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -203,6 +203,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 { @@ -837,6 +883,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 Tue Oct 8 16:51:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 833641 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C620A1E2833; Tue, 8 Oct 2024 16:52:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406349; cv=none; b=rw0kgHm15QhzquHnscKorsqvIgceh4jcjb0OgKgzhkkpp8fzUM4XLalXDy1qnima+rgNqeSsKdvZigstC9otX4LCc+63/CEzn7uDmCD/22J2bdOzdtloZlX5HEuDQGSJc+akuDQOVFxvMYqhqKSvkewyIEs80hTv3JDkLabVvHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728406349; c=relaxed/simple; bh=/BvAmVblOpHYb2aTkXowqFQ02GBnGaeeHMCyDt71li8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=A7WKQw6//hySZTjrt2PxXgQm0+ea1IpX1nivAgLNOdiZVcblWJRH3kzRBQw+oMoskkM0pDD2cCYuBx+XHUl4vSVw9u8GS4hkIbeS0ihFJ3GJZpyBjsJNDwuKTrX1MzUGuRDB/rljqyj7GR+iXh7O6MQBsDNqGtaCo2uI+a+ON7Y= 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=ZkmIOS6d; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZkmIOS6d" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5398f3be400so6718815e87.0; Tue, 08 Oct 2024 09:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728406346; x=1729011146; 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=A8t9qQVUsbWkU5n6pD1arXLdocmReAsGppwKB5aKWDk=; b=ZkmIOS6dULfe4jEYmLi11VHtyXjlJ1sO1YC6Mw7z5OXTVqadZfg1C58DwfO0m6DbH5 ZSoMkSZyVEjxLGF0y4YrgQfI4pCdm3KpnUewCYgUgn41Y9OdGIperTGSBD6xDcOFzZq0 aYtpMdCRbxg3VNeAf4njLW3OhKpi2VbzlqZC7o06uFRhmnf3Gdym7mQsT12VT1tK/AiA 5RJc3KbO04G9tdMe4aoxe1FmAuHr5uPTI3cvJ6AGKZenQ47PBYdgvOwvYjV19hDW9oXu ScgqhWJDm6BperFXdLnEko84P5r19VrZUWz9BWopwLnfG+6pAwvf5p6ObR2ze9DeA/uc ZqYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406346; x=1729011146; 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=A8t9qQVUsbWkU5n6pD1arXLdocmReAsGppwKB5aKWDk=; b=D6KnWRgT4KsxA3KavbFPpV4hLiOuW5+/+yA7gZt2Yonzop1k5Wov07054mjLeYkyco TbU4wMi7gjthUq/OhKYi6mwc/irCpvtVmzXviChjLh03+ws/Qn6mGcj4odQSNxQTvJMp A2sGa18mmuaAOv80jEDJNSZeyMDicdHcSJqTFQXXbFP5O3ljq+S8tg8/Uc5bGuPmrpCH 0tTxjYGPs8qDw3nVqNYy3D6QoEOosyyZHA/nMGlZ8QFyf42QxgijRKxmYQhLCg3dYc8y dGwxMs/ur9P1vLlh32R7In9KIviLaru8w33Slklo3P/MDmBtwSt8J2vIi9aOZkC23EGD 7lZQ== X-Forwarded-Encrypted: i=1; AJvYcCUFTGqoFkPEDdtJzDjnahww5ALM7lteJ4FMjI1cl+ip5X37pRfwllK7PL247OhnwQ8dfTLTkzxSWeYo@vger.kernel.org, AJvYcCXLTd0BFv9GA3y634KXAym1kT5g37b6+QFZ76Sc0UeWn69YCP637ucddp4n2gUKeuVU7clPSkgdeM97sPQp@vger.kernel.org X-Gm-Message-State: AOJu0Yw7kcTFVUgyaw/fOPEa7051MsiTq3dgUPuEDjqkKpENlxRfqvJC /cx4iZqFUdKyoDoQWVEKfQyH379xJad+Z7OIxntHxL4li13NFITbkbksXg== X-Google-Smtp-Source: AGHT+IGjzzpu8k00Hfaw9O7YXOPKIhMEqW7WUnyfgw3rmv/lvEBNO4fIGak31k8vlWm1/kmwjnXooQ== X-Received: by 2002:a05:6512:68d:b0:535:63a9:9d8c with SMTP id 2adb3069b0e04-539ab87482emr7480170e87.17.1728406345622; Tue, 08 Oct 2024 09:52:25 -0700 (PDT) Received: from [127.0.1.1] (nat6-minsk-pool-46-53-210-75.telecom.by. [46.53.210.75]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-539aff23e5fsm1260736e87.235.2024.10.08.09.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:52:24 -0700 (PDT) From: Dzmitry Sankouski Date: Tue, 08 Oct 2024 19:51:49 +0300 Subject: [PATCH v6 12/12] arm64: dts: qcom: sdm845-starqltechn: add modem support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241008-starqltechn_integration_upstream-v6-12-5445365d3052@gmail.com> References: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> In-Reply-To: <20241008-starqltechn_integration_upstream-v6-0-5445365d3052@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728406308; l=2133; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=/BvAmVblOpHYb2aTkXowqFQ02GBnGaeeHMCyDt71li8=; b=Uxo1drgaL78ZNLUbhb3s96yVBQJIYn2/0Mt1T6HyYPqkj9oWs7+7xbUIATLTNqEFt2B2Z22WQ Xd391M3pqetA4gzlyQuLXkJJQBURowCT3n7w+RuFwDNRupSCHLFd41O 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. 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 043ae14c4fa9..a10db080e483 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -17,6 +17,8 @@ #include "pm8998.dtsi" #include "sdm845-wcd9340.dtsi" +/delete-node/ &rmtfs_mem; +/delete-node/ &spss_mem; /delete-node/ &adsp_mem; /delete-node/ &slpi_mem; @@ -91,15 +93,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 = ; + }; }; gpio_keys { @@ -837,6 +863,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"; };