From patchwork Thu Sep 26 14:22:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13813400 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 6A9732AF1C; Thu, 26 Sep 2024 14:22:19 +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=1727360541; cv=none; b=jf40bLdaAmNMV+lgzNMIFxRF4EW1ifhJ5Jamyu5aDs1tKKfCA60FgX3MGYhtAIDaUxTkAYZI9V1u5Kx60bQJ1vl9A7nBF6GSk8lukYJT1VSM4YsOtU1aQFm6nJ5H5xn5lfZNqcZcyXgtG6JvUMs1RHXadm+ofh/9T27blEAoH+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360541; c=relaxed/simple; bh=/iktY1Qr4cDbg+smVKPbu2YLVIRiCzs0v9OPFLn1NXQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=L3/9PrIWb7YcfXc/B0WzbkQTcwn0bWM9kRvBuU1tNhMqdTL96rmj8PtWYavDR9zPKC9CYfEH7VyRLO75bYmfFmgeZ6WCS9emwBJifOxb0sVOS0Vw3stO9W97onOZnRqO4Ngi4H/eght4ybA8Zo/cxz0/qVyDCpflrLWUQbgaf7Q= 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=gVeoHFkW; 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="gVeoHFkW" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-536a2759f0eso1751494e87.3; Thu, 26 Sep 2024 07:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360537; x=1727965337; 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=gVeoHFkWFBDQcUjvlZCGgvxGHQVihMUWv/QsgQVGSJ0roqDlv9dvTuAVIwA9jzBeNF EloKG8gncfkmQSXn6tleudjIqGMALL7nlbhIgjOdnfaWEnhsAOqRIw8JHmAYAUm9Kf35 Xj6zSCL0uoQv7DLYwX763H8RBrTvrHpKED1pTrxxD8uIOmaD/ryvcq5c9a8oA+M3fIHQ 8/M5wwvXPeQejAN7YD4QGLA32O/CoFLp90k178ZHGy25U5YDU4GgbVp8utrNuP0S5yvs sshkE/OUUYgNh1ob22+lwB62/2GNjtYNKgegxoMshJ/AF4tIVQL//0B8Ks89FIZcTSXa f9iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360537; x=1727965337; 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=jBZ4s7qVys9hh/2lfBcAsWKxyGAmYe1hmt+hPhYHFH2TsE7qtxr1W8vLsVo7hnfHPl Q/Z5y7Oe9AfzLaH+AMXxsh+7cKnWsTF6BadTFEvK0F0llL7yAwB7BDVvavBswZtDUJ4c 3/bNbO4Bwb+Tv3ZKUyUEMmp6qChz3ywuDW+4yNUvkZoTvEHpUoS2bO4++IMUewL2E0Dq OvBvH0dZ0k8PI0RVv+da0eS4IuVo3kCtFE5f1Ld++crACRdaUFlRUdkb46r+q0MUcW/C +PyISsO02/jb0YHmZNhKM2rk8YIhB14sjsdkJ3fJcqq512SQB5j1pFbpu55REACgOJS0 9AbA== X-Forwarded-Encrypted: i=1; AJvYcCUcGTYzTpz4BM2dKmAj0LFXruA+HP2vucrJCeqSfHPKXpHZwteME30Ugz5r7QCuyuL+onMud2CEe1Sb@vger.kernel.org, AJvYcCVMV/tMfXisHGIAaKAcyLtcqbirEtrB560Z1mgsv8oOYuGKGEoGeG5bWhYAYDbEhuBJQSxySQrtMI7+0Bhr@vger.kernel.org X-Gm-Message-State: AOJu0YxxMzzQWpT/tV50kIvm9qARSJXqOioo0EfE+hUpYSYwgdQ2eTYG JEiq84+hYsAZd/0nChiVUsRgrVlaox3K42IrtW6JEQBRW+C6zmgw X-Google-Smtp-Source: AGHT+IGys/TsaHmlbV0gR+/yFy3KblVKshS5yh8AJAzMCzcwfJrPmbrK8ioskesF9VvtW/XrNWSL9g== X-Received: by 2002:a05:6512:33d1:b0:52e:f9f1:c13a with SMTP id 2adb3069b0e04-5387048ba47mr4170843e87.12.1727360537223; Thu, 26 Sep 2024 07:22:17 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:16 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:01 +0300 Subject: [PATCH v5 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: <20240926-starqltechn_integration_upstream-v5-1-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=5083; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=/iktY1Qr4cDbg+smVKPbu2YLVIRiCzs0v9OPFLn1NXQ=; b=IWVAFMWo3R2rtJmGOKj1Dz15r+dEz9o+djariTnp8LwRa19B6V4jSNJADDkBCHRVzKgc/ZmmW QT7/YHSxDAAAY1azlzfDPzl4+qh1hM7tuohzbNTcgNZwwL+siXzjtLi 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 Thu Sep 26 14:22:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13813401 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 170761384BF; Thu, 26 Sep 2024 14:22:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360542; cv=none; b=drP+MV1gig8pbSSjtJKaE21xZjs9UWzY7xfJCTy8+tazWiofAvgxXWazwUZ+8RAxuMTxwqKbve4f3BeArDUENpkiC2lKDaMwZQIau+jf8NOZKEi9iLkV75QW3ildVXxfLZfFce0c2/j9YV1HoyGVv6sKs3MLwlizria0qU1dgr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360542; c=relaxed/simple; bh=Eph7e0S45r0MTRyCXF3ejlfGwAhuMntaPM1lDGhJahM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZQ2JkowN0v3CSFc/UxX/W43Oh4CP9IxM+r5yNJLa/2/Mgg92t5XFMbIJqrHI/uJub8il7bHL7RlOV7cc5jUUbN6uA/L61b/IhEV9AYbN667x0DcWOIL1mdYiknq50Em5usJXYOcb30sI1VC9fxI9mcfJ4awAtXlXul/1huYT1s8= 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=Q5G2bG7v; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Q5G2bG7v" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-5365c512b00so1341560e87.3; Thu, 26 Sep 2024 07:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360539; x=1727965339; 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=+MogS/GsWGussElbxSTITWgB14U3ovrKNCk5uQtTkgQ=; b=Q5G2bG7va3EBH2E1p/xmtJTPMxMaAYn0sWdZmzyX+Q6S1mxfsTU4OIJHlJJlApn0RI HTE/TfljzqaK8WjxCnet0wsZ7RaCANcbLAAh1/+hMY/QiC5VM3e12JscWSdHxG1DMnR8 Br9xhxgc06L4qE7zqBMnbhigfiLPDTVbwV8t3xSR0Y/J9cG1AS9+4ZoJlYL0/ZRi+XmS KcVz9HH9OdbjWZI2U7qHjp/LzZDedvxC3e2fz+Rc0CCTglaRtIjQmhCTItV0cfF4q/mE rdXAHscf4Pw8RKoVuv9pURZ6ChFF9qNZrjOtordkqqV+2q/XfqwUMKcYXamyJ0RDGhiz d5jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360539; x=1727965339; 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=+MogS/GsWGussElbxSTITWgB14U3ovrKNCk5uQtTkgQ=; b=A/M3stVhbWIJW4s2rzo5m6fn0iR8opvJXVs+O6SplDlah18+0erp2KWnHa5+vjNeND 04F2K0D4bQjcEuaJLrSWq6SHydTc72ixiBCst7lwHiMwdIXIRZwQwV/m4BkyWCXrUUwd gpYPJky9fSzqSu7eNWlWYCLbn/dOik3G/TNmzqxK/2P+wioynetz2JRRFTLKsVZzOVmr 96hWVPIM9hT2mGQ/De3cxOtH6qA8w8UnXfG+wnSp6AjfS0IAuAT1Vq/wCir6epS0gV4J 8SgRHYZozfGnACqEdzhzwwbFmHKZHq1Mgnr3lBk0cllHeVlU4hQsel0pWow9CEdDplzl s7Tw== X-Forwarded-Encrypted: i=1; AJvYcCUjABasNxLrjywP7lJtBKAhzdbqh2+wuUfrGg3gImdKxrZ/r8qp6Wo9mKeoWLJPrUq+BKJi6KfwZ0zX@vger.kernel.org, AJvYcCXHjMZXKwB0oWHAJStH5KXxqV0M0Kmis476hlux291EM71tmm5f1cxGBGZ/E+bjzwFBzMRi7rxvPbJOAeLU@vger.kernel.org X-Gm-Message-State: AOJu0YyVAGnriBDcAuyC9ytpjVGe+cr0Z+uJiAWxhdURL0oslUP0nQbx +2OmESDkeC9Em3dOEhN3hjNpn/c9YPf6wimO5iUOD+45fm3bmf7SYLvcDQ== X-Google-Smtp-Source: AGHT+IElh+ojn9FjecdDs6pGcAGUkEUN9uoxCDM4SFE8F9339UwpBtTIqwqYk7OOstoGQY81Q+k9qQ== X-Received: by 2002:a05:6512:3e08:b0:535:6400:1da2 with SMTP id 2adb3069b0e04-53877538007mr4364616e87.18.1727360539093; Thu, 26 Sep 2024 07:22:19 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:18 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:02 +0300 Subject: [PATCH v5 02/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-2-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=1053; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=Eph7e0S45r0MTRyCXF3ejlfGwAhuMntaPM1lDGhJahM=; b=7frEZSbrKk5v12/5ybFYaDB/HI8rMe+o9vbifNDSsNKPVezLtpB3GmP6yKGOtMmZ/GnhLEuwW 7+plMaKXF+XAPs9at8426uVSADAUE9TRiqOYu6Gk3CF4hMjUKeeWwMI 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 --- 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 Thu Sep 26 14:22:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13813402 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 4273E14BFBF; Thu, 26 Sep 2024 14:22:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360544; cv=none; b=FOzPL1FA8EpnAdIAV4Yi9h/XH037+P9aOiXa6z8ghpbjckEnKdW5DudR7m4BzgmctskzRFhgjkVAv9BMiElUz5tW5bS//HK8Et/y4UQYQJD4a9L+OJ7A0shcuMbM69FgBm06DoW8UR+hR8fAEMF335yOPkHtMsdVR3gyxPuLr54= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360544; c=relaxed/simple; bh=HSWoKU+U+LciT4YeTMc8x2BUj723ugWiGdsGsQ5TSgI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RxywJ3LLiaitNcev6OASz4F9jhYmN1VGXxC12Kp9FdlOTbZMTst+moa/+heaiTRNRXcONchZtGTZsqSl5qy4/RDR9yT38LqVvIHizcunv8bOY9e4AE7NXaGJAckZfwLu71+qvW+hRaV/RytbdPcoQDEIUIpkVSeYgHafRD+AHXg= 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=N1jv5mQC; arc=none smtp.client-ip=209.85.208.170 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="N1jv5mQC" Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2f7528f4658so10062991fa.3; Thu, 26 Sep 2024 07:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360541; x=1727965341; 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=BXU7Bk7WbuxNrJusNNOpHMNB9jnyfgFFtQVMoYQpR+c=; b=N1jv5mQC0qapquJs5bUtRz2d4g4mb8rPUcHSPETPzhJF3qBEi72RwSa5IJZJyeIjT/ Vcs+KK+gliDeKlouxaABEobXYc/4mosN1BEBeCU7bMQV7npYnMLRUER/2/vM3knorx2h SSZEBMI9RudfCVO9YVTWaKSG/LCM+Y1BqpryxkaJWvpVl9469m53ZQ0816y+lfcnqtj3 FMapWZ/G/h0cnTQuSOxnz56EgybcUBnqBpj8j0XasJ15GkntH+4XLAYzrJDlzGicaIdV Oeon26n7OETI0dvuCo4jVRaCqKZeMyMFUAPqWGSRgKky1acwYvVYzv1wrupugj2c20dw dZeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360541; x=1727965341; 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=BXU7Bk7WbuxNrJusNNOpHMNB9jnyfgFFtQVMoYQpR+c=; b=nweMFes9/88BFhTZeGOvq/Ifw9QMELzPaQXpboQ9QC5fwOHxHVvuUUoNDtRYky3K1C pkgJa+ABYi1QLzxKUXF5ogdJtDl3Ds5Pt6D/JYxSSTWwSDQemum9hhEr7gvgFP2r7F6h Z37wok35eiMFLLimTskBKyeCacns9J8QvjBfKqfO5wVvMCMMDsjcLeMeSSitUz9vB4Vc fyr5WLu+aCIbypuzNvEpJgWDdeWvYECASZIx/dBBFyo5zvHLhmzJOTag0Yzlg65i9Ypi dO9VSv4G3Q7JZ0USPZUZwi21Rt4VDwuDMxrhr4AK1WENT6L1ljvOAdlXmfBPQ85rOFDP CHTA== X-Forwarded-Encrypted: i=1; AJvYcCVoUUh1Dj7eo2JS/f1KcBSzbGv1mBBFozF1HMpv+/0Wg2NnOc0JKh5Zzvorozy0XGx/U8AgDKHQqN/f@vger.kernel.org, AJvYcCXsa6H34zDpiz5KyxdnsrPBf1HmGiyuit9dbPTYX4kpxcrSS8OEbwAivVfHzn6kaJ/He8KjFEprOZn6aUdE@vger.kernel.org X-Gm-Message-State: AOJu0Yxi1t0yHnsh3ust00jsy+clpx16GgisKssIGtNcQcq0pHskLpwZ ncya3r4DfyRe6tyrsAdEI7sJq8kJ43ySAIe0UwUiW09Q+IOJaFCerC1kFA== X-Google-Smtp-Source: AGHT+IHucf7WvGIQzkMya8V1JPR5e94Nbo0B7frD0noBAwNjxHMlxrjbJINWvNwQZX/AeUblMZHEhQ== X-Received: by 2002:a05:6512:138a:b0:52e:98f6:c21f with SMTP id 2adb3069b0e04-53870499a40mr4466933e87.16.1727360541042; Thu, 26 Sep 2024 07:22:21 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:20 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:03 +0300 Subject: [PATCH v5 03/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-3-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=1140; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=HSWoKU+U+LciT4YeTMc8x2BUj723ugWiGdsGsQ5TSgI=; b=7sHiyK6yWWGVS2zG0v6ClRA0gKFTcGFypDguj626XhrwLZawWPLYQzSdfCa+nYRjdvPAcmcvf tugHJ9kh4t6AuAai0fXsjlfhshm4TlE+FiFJxuPdZCVnvaceS16mEVC 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 --- 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 Thu Sep 26 14:22:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 13813403 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCA9215380A; Thu, 26 Sep 2024 14:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360547; cv=none; b=eRf4pmviLs428d7mVM5YChNuY/+WF/BY5HRDglEs7R90EMlW7t+gZQvf9sFSb2DdVUS3G0yUOgu7PSI1ZnOA0HyRuCEDjx0OcWqmkVW6p7YeQ2fnagnzXZk93GD/naKBurRzJIM7jFgIAlGDdJInUGTzrpd/JtJ1qpfpdYqXk5A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360547; c=relaxed/simple; bh=LXgqSMJKPpptWHRjG5sGV+9Z8Lxj5jA8H20WF+m2cbs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DZsPy2LvRzBH4zZIq1TaFlWl26jbijZt/c0YdR1wVB2Ujhl+irx2JA9htd4vZ98/JoX/kphcgRkad9Meimw5oYClYevxrpKjblPHSfBJYmtpfDbROnz4fSmpIuEp5uLsIy37EGYLJze0pt1sk1RoG3ozRPnnyHyzxDsimjbYx7M= 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=ce10lAtr; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ce10lAtr" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-5365d3f9d34so1311085e87.3; Thu, 26 Sep 2024 07:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360544; x=1727965344; 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=hxV+xEnMJ80gLhFAUliu5RFc0rPgxSLDZdSiAt5SbDY=; b=ce10lAtrSgxmLrioRZb63t5Rq1tpXJu3Zi2aAnsa8oBIpZ79XFF0WhDUwHqAe859+L PTzY1k0YmSHSUB1R+ij8yuos3OkIRrC13rKOshbF3viH8gWDPJ7bInTvqoUI4dKNXAmN XUGm7IQkG5uBtgq67qbIAICTNqYM+NcjhAeiyQ5CDIC9OpIwmpQySAMmTX0aMdmZe+Re 6dTjO0TUIbEAT9Y/D5NGgK7H1p7wmpVgMYbyRvIYujHgEtuGsCGu9SveeUi1q8RmTlps U8ssYiht0DltZxNpBPm8u7ESSXfxfr5+w4fcUtJglPgQf95+DiW7yvfd4SmwQv9TWrdz H6sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360544; x=1727965344; 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=hxV+xEnMJ80gLhFAUliu5RFc0rPgxSLDZdSiAt5SbDY=; b=wQAr/D5TKQci9cYKDpg/lWOViohQ3Q/VEeosBJUT3HTTm6egZBy3zZ6xiAegZMzNCE zx2bL8q6CqllGiJScHb9C68ltmlX2c78tbLZCciSeuIeD9xK27aDzFs8RvmRBvruMkXq laYngfW3Z8LoFqzblRPezJAjct7LL0f8ZQSwUdJeCOt2iKg+wG1Gpyf8Flo8bDI4JZ+J lnLX0nLVzh/FXSicEJxMjENn/sR6UklKXF2AAHoxKzSJWFyFRK6KjWhATqI1cjgNrDQF g4Neaq9IKaxoIhKhTVhx/wvTUGsoODEOMgotVgX2XJ7v+OYqADF9QUCIn08LtLfeoChE i7Rw== X-Forwarded-Encrypted: i=1; AJvYcCVlD5VQGZtrY51QGM9Gm/0JJAjmKrUAN7c9NgBGV7TEJ3wpvPC3nyf12VpzFGZ33XZPfXirhJp/8nbUJQUO@vger.kernel.org, AJvYcCXN19tPWGdsQi44BG9PzX+QyfXNU5DyTOOdFWTLJZ7GvFs3cnYCG6TDuRmCHzP6TZfZHReIhfhLqbIY@vger.kernel.org X-Gm-Message-State: AOJu0YzGhBUfUWTXJIL74DWANRvNJGlyNSu/XCFod5tlSpBJI56phmu2 l0oC7/Ezrl337SnbK5iHBXOtVZCqaO8O6wLKvblLrdiXaCHVktTB X-Google-Smtp-Source: AGHT+IHo2CqRjGCt7AS/PS2S+eLZZlyl9h0o91nijvmPiuMm5NOWDfFnxaPm9jZdCiv955t8VBNfKg== X-Received: by 2002:a05:6512:3d8f:b0:536:54d6:e6e3 with SMTP id 2adb3069b0e04-538800b273emr3675734e87.61.1727360543729; Thu, 26 Sep 2024 07:22:23 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:22 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:04 +0300 Subject: [PATCH v5 04/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-4-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=898; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=LXgqSMJKPpptWHRjG5sGV+9Z8Lxj5jA8H20WF+m2cbs=; b=FkKXXAfRScrdQGItDXKX2n3lV87d9TD7RpkCGv3JkPwxv53eVMCyh/1Fg+0biSUHXWaJ60yUe AxV7VK/i4b9CYfSYlkfCbd1ljV8wsVDq1Mx05Jeu53sohLb+1dqdFsC 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 --- 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 Thu Sep 26 14:22: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: 13813404 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 910E1155A4D; Thu, 26 Sep 2024 14:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360549; cv=none; b=HO89b8Nzg9ia2P9imizZjSJUC5IIaa9eFo1VmMbfJ1eLHUPqenn9ZVum/v04gcRpcrOIe+V+xuHHfJAc4xkemaxvtMU2x4Sq128FVTM6ny9m88OtZQi2xApZp+ztE9O0HPg8DnmiB5lpqUAWT4wo2Cjz7xl/eadeMqVGbpJJ3+g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360549; c=relaxed/simple; bh=v2ECB5b4RvqZNQX0iHQLIiWI4r9KcdLBWF4yxk3AOSQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lJkm+A8voSH0JPJYNwu/5h5Q/+acOdhQfhCFDlIiNQUs4bTBAVYLFMlEJqOcl6NWdNO8AEB3220zTXj11VKQI4Fu1fXlc5g7FX2pdT+kgcFl/OWS++ksTndVxSD63WIDkxDlm+HIxFSj4ivJLCOg3QbDA3MWO9ahCSiN0G2L/e0= 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=Hbntdpl6; arc=none smtp.client-ip=209.85.167.50 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="Hbntdpl6" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5365cf5de24so1424443e87.1; Thu, 26 Sep 2024 07:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360546; x=1727965346; 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=55ASwlpj93CUVgS/uPubEqfpV10Z+LfDh1X/v5EhTrc=; b=Hbntdpl6sArpVeO06/LAqx0HR+Xah2iAusY774jNTmkO3/XMdiOIHMfppaFgyu21JI hJJFaQCFutih9giyshyCimpzlCwdqB9Trq+jN1TiL7KsN0VIxkVOqaKwfEKi3iokQCuv SFziTx0NVpEV0aZGJHPgsZaeymOGkiEXUehuvFd6AVu8/Dg17Dfb1F3FsbP7U7K416wJ f2pYLCbDQSKIqZCpr/C2QnRK4JO/xMrO9rygyRbGtIWihfjLH6ZhGavMEgCCARul436C EUljWEIa1iH3aQEb1zrT61PlossfTR+OTJ1OBZ6VsAwKzVr+Rizx9TcCoXO8OteLgYye 0hrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360546; x=1727965346; 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=55ASwlpj93CUVgS/uPubEqfpV10Z+LfDh1X/v5EhTrc=; b=NhIn6/P/w5WZl+RjNwqGfbvRIhu9GmtA2oUKPOCDmqEIm0hHpl2LnLRyO1MMj2lXaB LcVS10bMTk+imIoi98MdgXOburbIwhVmR9ZbqZg8BTvP2FwdcNXNK7BNDeDQSI9kQx12 EII+E2FyT7JKCDHgdAl8Nv4iZ1BjheQORMQ7ux6uKlpipEcbJTNLntmcOp8VwY53fboS hh+rVxuWJbHcR4GQ4k5/Q01YfSrhhmjblxnjLhJzvfeK5HrPZGec1/zmhupYRM1ubsL6 rZ/UeITDrYhxN6GtgqT6ovR6wOq+vmrWqeJIll0QA6ONH8Y/FQ5C3nDIIdvf/E404nqo oPGw== X-Forwarded-Encrypted: i=1; AJvYcCUHrMzlkU/PEkpYhc2kWpYPoqCsha9PAcd7t9V68yyLDktTpK8me2k3b35SAn5KbwBLRKYJDc8mHvohxU+b@vger.kernel.org, AJvYcCWj9yVA/VzAjJ7FN0umwb1UtvIHhwArqTznNTEuzpoZTQNED3p/4B2oQ4R6h10wo/9xxDZE2JstsFGf@vger.kernel.org X-Gm-Message-State: AOJu0YyYz9JdIbWRyzhTnK6CBELPTBDRTQTnDuo7gyi3Ia6m8TMDyrKY 7OHPdLtgfqueWtD1QQvEG/YVMMJo2xcVAinn6D3b1R+4tHoRINTk X-Google-Smtp-Source: AGHT+IFWgEE+sHasYvrDYK21b+BRY6sJawXWG5Cz+w/iDC2pSqxYFTfD8uCFk2clFlQFKrCesQdrMw== X-Received: by 2002:a05:6512:39cd:b0:52f:413:7e8c with SMTP id 2adb3069b0e04-53870496a4dmr4506242e87.14.1727360545541; Thu, 26 Sep 2024 07:22:25 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:24 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:05 +0300 Subject: [PATCH v5 05/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-5-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=1067; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=v2ECB5b4RvqZNQX0iHQLIiWI4r9KcdLBWF4yxk3AOSQ=; b=QS5iR5ozAkiboBPxqq5OTA7VxxvhDKmsx9xy30oT0iTLPj4Oa5ju3I5KMgW5rSMBwFy2gfB4U QfFiQENjzGYBZOXU0FSQGaHoRumIN3WATqKc0Y+UYe6XsdO4q5t6omX 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 --- 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 Thu Sep 26 14:22: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: 13813405 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.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 957D3156F39; Thu, 26 Sep 2024 14:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360551; cv=none; b=hFYWdUdrx+wFtuP2vK28467jpAezJxWPKwLvkAJIN3EksrZul870hvNiaKQ6nbaW2KqbX6+Wab4CxGG5yp/+oCVgZtNR6RLq8C8JBETt/xxEUKbFEGyJKLy1J/gkn73pn3eKsL1eMTrJOTu6byLDcbTWp4hyzUfvt44JbQSMkSA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360551; c=relaxed/simple; bh=2XWuNrMgiDoaK/13xnD5IYq7rMSto2oE6ATIp4tUISo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OGkfMg8TNOAA/r52ks/AA06MDeTC2Jsu8d7+ADTFNXUpMcUJ6KwCnSyPP7XpPjjOTWMcMIh6pQaFAziIErUEkLoZLL4ecImMY44fGHRoDRqM9+tGjaCQWTpqcfGqqw5/wZl2rfqA4BPXMb01YRIKKPqwx5U97CcvAgn5gdGuOMc= 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=b5Q1nm37; arc=none smtp.client-ip=209.85.167.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="b5Q1nm37" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-535be093a43so1323879e87.3; Thu, 26 Sep 2024 07:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360548; x=1727965348; 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=0jSznaHt4B2DkTGoeNg0QL5oUuPd8Pgnz8pC3eRlRiM=; b=b5Q1nm37aEtAJ4WZXHwfgU6bdmMXxnl0W/rNjrPDP5lMFDAd/wMS1hoVP7TsaYTkAD MI/76UZTofuRfYXmpI8jTpIRfU4T8XnnJ1wTOwdhB7QzeafkjD0w0vXXCBO7ftGo9m04 Tq7EQAX7vRyZKsmT0pfopOOwTIIks/Bc2y6dgaDznk4h8OcRPTnpQVOllowxn9LBIYOw SeWOtm7eLpK01R6y61rnnWlq/C1w4NJOSW8gElA6Q+fjyrYGCc9oBPnObyqJlwJ1hSJC kXyoY5jy1Cb75Y2u1V4p6faznMo2wquyPriEuGDXeibH7zJ1nvafXxkxmBDjLZCSX3gA u0KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360548; x=1727965348; 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=0jSznaHt4B2DkTGoeNg0QL5oUuPd8Pgnz8pC3eRlRiM=; b=utRNSqtM8CksIxUMQYGoaiAQC96EPIY39yM+jQuW82M1VB8fNKemZLEeWGu89KJXUy 4QdJLpoPERiBL0PtooxTmvyka24IJ4dyRl8kxy9c8TfBon+gcbzsW3s0KqlXBf17iCl9 hr1HqSzi62mAEjteRTahr43ZnAGDFTp/vV1mFzvnpEy6UaSFmXfGl5a7Jjamn6HOG/OP B5IWMqaDV41+lf8polUq+B0oJ/Tv3e5Jp20lM2FGK/oQdvLZ6KCHFzmpW1ZCaRGA7mKa 2+yYZKkLqyrQ7CsFUVjwTtCey5Pmdv7ySLS57Y6gweKsq3yoVGrUNLQapaWeVszfCzED Uguw== X-Forwarded-Encrypted: i=1; AJvYcCVU6rXhqRRXxwVeSc+GDYRRIxAM8jKpw1UW9rPh2m5funzB7K9zybXLdZ7q/M/jP74xgrY/4EMhBvdqaS0v@vger.kernel.org, AJvYcCXOXM0gLiRxZpvr3YxhgZgPcQvhT3xOcOzfSrlA/abA6WZ8SKCQOWxqrDJrTbWdy2M0ukR7a1OSLAgC@vger.kernel.org X-Gm-Message-State: AOJu0YxtLrBjyWrGSiOchsdCtbVIsSIIdgH8Sj/X3/ncqf7hJpEEdafQ OZIquqEQdPdNuT8OouJ1683RIPBeokTrW0OI1Vv6ZFT/PXUrYk/EHjqiwA== X-Google-Smtp-Source: AGHT+IHjjLi8HzXBEZXpOFHrVuBTcDWap54Xh57wkDSPqVNme2afqHghBb39IGzaCF7tV/1ctA3ukA== X-Received: by 2002:a05:6512:3f03:b0:536:56d8:24b4 with SMTP id 2adb3069b0e04-5387048bd3fmr4470282e87.5.1727360547386; Thu, 26 Sep 2024 07:22:27 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:27 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:06 +0300 Subject: [PATCH v5 06/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-6-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=1764; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=2XWuNrMgiDoaK/13xnD5IYq7rMSto2oE6ATIp4tUISo=; b=uxzXiVCEICd68B8zmMaaPKsR5sunigobHL3KN6ljQgpy500LRzDJ2QDTbfIoPEhxHNJT6lVxS xDJJEWHA/liB5MV9VrkTzoI0Q02T3xAvv0Mgwgc0uW9GpUAWgqWe9Dt X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for phone buttons. Signed-off-by: Dzmitry Sankouski --- 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 Thu Sep 26 14:22: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: 13813406 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 6221A158205; Thu, 26 Sep 2024 14:22:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360554; cv=none; b=HBWFcR8OG15vP4V0jO2ngMJ60THFuIkwxag2VJzLzTuaImlbXQ/PqA6CiSFTkXxcE7kPElUp0rn3bvQLyOgWEvkPLcjl+hCW0FI4oF9ZnfJIMN8Z7q8y+rvnSwYULamkTdSdJ+IJ388LaLR2h/HWTClNVOAgfS4Yz399JVcU1eI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360554; c=relaxed/simple; bh=LBuvyZ2Sa1b0qO6et3xaAY8J3SZbm4P6xa33HuSbK7k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jFlyjmzMCB5GPDAsgu5KOcvM3AJ1+Np4BhgmpA0dcRXMEaM7fbsuInzEWK+Vr59y/OdV9UHkPO0uD0wrK8EO8gYHt7Nn/aIjpk4mGEoXcj2dSOqCtRxRYt61DE0521PsVozVNp8apKnPr8JOGyTr/P0MEDMByzmO5LlerDXoOCU= 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=NXHEpFX9; arc=none smtp.client-ip=209.85.208.175 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="NXHEpFX9" Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2f763e9e759so12571081fa.3; Thu, 26 Sep 2024 07:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360549; x=1727965349; 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=zJrP9CEo0oFtx6B2uv41R/vJvZqOqIZSWKIn4ncOsuo=; b=NXHEpFX9EUW9qh17c/3vqVeQeo0gsvL47rKnQuf00dY0dEdWsDJdi8jkzL0jzbOsao p2duL+kfcNH5piR0OMXpVbxMKaNs2jC65eQGRuokN5egy9+ikvhGkSjbdWlxIK/2oala VEy9NlZJvrI/x0autPse2BUnwqmicCIZPn0GDXMKJNGdjbIwQdZJ+mrXmcM4urVygGtN kIE5qWAH6JDfLEkmTl/HCnlACKULERFjNBKOSetIq7LXub6E3pzSsTr2HJolNMlwLxPJ HIBKRxnRN7i8cJ9kRHzsgdx+CnFMn950tIEnBU5UjLh3JWcE/XNL0HqZS3s1TEl32asG ZHOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360549; x=1727965349; 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=zJrP9CEo0oFtx6B2uv41R/vJvZqOqIZSWKIn4ncOsuo=; b=C36/tVbYwNoyqgAeRxxZvYP70T1ZnhQNEt/nJe365oAoZfqP81kDLB1poPyDOcLngn On1BKMcrvgzuKhePVVkRcH4OTKAnK9LnaGgdpyxKL/KrjFdlRaAcmH3Un5K3zAmiTf29 c4F+ejF6EnRJmVMAhiT9vh2J59mWzlM/nIXQcyZjXIFrdX57XyRrzQ9yncqtpOL5hMKl z5INB0YyKgiNId9lnsTfk1avadXb+hfsEbHj+1+QTiLqOrE5L9OztOUPvpLByTa7zLH9 OuI2QRTqqjDCnbVhzZ4Nq8ULCynatkc9MEvjfG04+pYXBQ59VoUUtHZxy8A6R0vU9z08 qXag== X-Forwarded-Encrypted: i=1; AJvYcCVHPE+h4AudPBtr5rHVGz+Ln2VKzSwgDrjmW1UPilJvPAUSQpWO974HlqvwnTArQCmttWeGZPr8bNoB@vger.kernel.org, AJvYcCXtiRRdpjuBf6zKED6QTgF9RkXyTACsNxgE8bro1YVGOHnkxb1Ck/rj7xG+Io5i7RZIy4+LIc1+9W0U/z3U@vger.kernel.org X-Gm-Message-State: AOJu0YzhryKVhQyXoV7Fz/PwS7u+Y6tFNF69c+A1B8ri/F53eTb1fJhx NlwqG6rA66HhLfp9UiZQybTZ2w37AmCAoamfENxMuibecGndB+mA X-Google-Smtp-Source: AGHT+IEqCkeZr2UbIXa9vba+b3DMTmgtLrc+Swh3B7BkjtRSmzeF+gRXLlcVNWJxBxcEqlrfYHi9YA== X-Received: by 2002:a05:6512:640e:b0:538:9e40:94a with SMTP id 2adb3069b0e04-5389e400b94mr216789e87.20.1727360549328; Thu, 26 Sep 2024 07:22:29 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:29 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:07 +0300 Subject: [PATCH v5 07/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-7-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=3668; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=LBuvyZ2Sa1b0qO6et3xaAY8J3SZbm4P6xa33HuSbK7k=; b=M7VA0EwNXUUBGkQVy8ES1lWhy7ZR359ulj1ip+Gqr5KyedutPUAMSPcDkxcgeqoqs6JTo1oSU eY2TaVS0GfOA168ZjEH4R5qvIpPLHgxsJDp6sh/6UMepPn9PgM3+wvx 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 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..ebe19c941d75 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>; @@ -485,4 +572,20 @@ sd_card_det_n_state: sd-card-det-n-state { function = "gpio"; bias-pull-up; }; + + 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; + }; }; From patchwork Thu Sep 26 14:22: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: 13813407 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 61D7E1386DA; Thu, 26 Sep 2024 14:22:33 +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=1727360555; cv=none; b=H9aR8AumtxihcwnkLyWCAg3K87nTL9kk1YM+/b2WZEE0W9oPdNiN07/Ybol21ihxHyy11A6+TB1T/yRQId33RbisSikMJGe4yeN3gKIkkiG4GobmrqDljECe549eHelY5yZ7j+Beg/UabBWn+P1Hqb25ppjHQLL8JmI2wwq7boA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360555; c=relaxed/simple; bh=uzb/pMRRXrbNMZ1B4EBUMQFrU2IEuix8IJPclrqpDjE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s4LQWFQiasZTvoF21C3CuVvKEWjKrfIrUBASkhJ9j/0mPJOboqtXTN3ogQK2MV1fOvIQNiG47HZLgfmXPjLLBx9s4pfnBLsuQ5tCHtRwExee051xB8cSLKO5X7ZeGcTILAU4t6XwmvOq9R4UjFOvZjg+PTiyIeDwfuq11oM9Ro0= 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=LtJnhTOo; 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="LtJnhTOo" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-5365a9574b6so1778198e87.1; Thu, 26 Sep 2024 07:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360551; x=1727965351; 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=Hq6yhJwbrSG9d7XomrwqijVRgleK2cUzjMIno+hWkT4=; b=LtJnhTOoi9bCBaQUg4s2x629AWTplpCUDXw1bn+BHET3/rIl3KJg5LLUTgRykPs4hA Uovhoc+By5zD26NX6DHanOj8ROQ8rL2yh1ShzhAzAc9+kg7I1Gh1zf42Lrl3sTsPSqye pqkwYK/wPOFP0Uheqs1sNOeJjWRjkE7b1dvS5vq3/t+6jJSkbbgvtTauYmnOnd9xVS7m n/0dNqNR5vhgPohWCbebNiQ/MTAHzrSSBGhD/n4zfv72Wce/Rgyzh+jxjKJWyMkp8rxl 5wPvBt81KhAMjQQTelZOxUh3sURoKlhOEYSWTgAnrWpO/OTzUpha2Db+GH1FYdUxGnmu xdAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360551; x=1727965351; 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=Hq6yhJwbrSG9d7XomrwqijVRgleK2cUzjMIno+hWkT4=; b=VO9j+wI7Pfgh+OZKU9COKulsT8jVq+JsY95+o7+2RBldIJ9Aehx+EW14efqKiSP/YF mO50kvDnAlStJDqQm5wyAcmbI1bz5qIH/4SKWNJEr0lz0HPECdnf9sgYlRqJdPqIRJuO TWs5UQJREbL1olTBqBIhRZHAud+xPXkqCQdCG1NICtssu5FF6Y9LcU76bP7lbAtNPh8g jI1f3N9A1NSroO84y/bmbPwrjsRiKGoOWmYJOmVvDdf2lhanhF8u1OzX019zsYGT7rag cUVLNCeWFopRKp7t6ybCwhrPjFzujB5fHVQI9gRfPWQW5AJ+Cx9GbQtKOTPLuiPH2i0e 98Sw== X-Forwarded-Encrypted: i=1; AJvYcCU89OME1rVsVb2UyUhuphpsiPRZbx0RuUHdrpPwzylnOKo2fFukcjh9s13nnPIwr9LL/CzN4VlR+d9h@vger.kernel.org, AJvYcCXo0ntjuQ0bbzJ0zSLdfX6ycafd5erbWNBQRzCoLcrFEUC+wrPBsSVze+3VGb+wsSXwN983ojwMGfCSZ3M8@vger.kernel.org X-Gm-Message-State: AOJu0Yyk+FCrOCsOOp0vaLxg79YHGjNBtjt0YZi3xjciY6MsEc2LIggY tmhBYyQjxoakgqcvf8XJvNajt/ROyLlIsclpyhvPK3ufi74ndujU X-Google-Smtp-Source: AGHT+IFquhGLyGjl/hIXjADJI9aq4YGsSfT/nuTzPY3hUb6bD12xvZZFK2Qkxj/zcOIqE7m5CtjAlg== X-Received: by 2002:a05:6512:b95:b0:535:681d:34b0 with SMTP id 2adb3069b0e04-5387755cdcbmr6362986e87.47.1727360551124; Thu, 26 Sep 2024 07:22:31 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:29 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:08 +0300 Subject: [PATCH v5 08/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-8-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=3160; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=uzb/pMRRXrbNMZ1B4EBUMQFrU2IEuix8IJPclrqpDjE=; b=xquLi1AfUo9cnMZbXSscz0InHNdb4I/jS3CLsyTHSRbJ4MgrSkCTtJbTX36iBp3fhDRhZ/6kl q+00qVupzLGA90PGpws+GVwdJ0Bt8ozFf6tqPytigNlRV9DpNsi0E+X 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 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 ebe19c941d75..53b9a7d71f1d 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"; @@ -588,4 +651,18 @@ motor_pwm_suspend_state: motor-pwm-suspend-state { bias-disable; output-low; }; + + 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; + }; }; From patchwork Thu Sep 26 14:22: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: 13813408 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 5D4E515ADAB; Thu, 26 Sep 2024 14:22:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360556; cv=none; b=QBuehgsRHoO8FeuB4hOZ65F88rSvuF9GNt07ZcQbzYWNfeGlerXqAV7Qfr8y7WKClXglkwe4dqmS5RLvcEgmDl3UOEAzhDXRYjotVw76cLtRiECPSdNpLB+kG5UbinHeK6ECRHDnO/fG79e8cQHYPn28ilycLr/cxSItxTfWWRY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360556; c=relaxed/simple; bh=y8oKXOplOXcw2ED9I11CdP0ecfiUGWbTr1J6Z6avwpI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m5fa2Oudtog9QH1uVLPYx9k2NF7R+wJzGNsuWyToQcJ0iYVLYbclubNOnfw6RM+zt8YMD5jsnJNn/zjAqPx2A4fqrGV+Dg1H+Z+rIEAt3aPcI+IXSNdDCIC+XQDzxCcWHwdV93MN9lH57wvNxcG/h3oHJMXyodcyGdMBMosQAco= 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=IkrdnxvV; arc=none smtp.client-ip=209.85.167.50 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="IkrdnxvV" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5365d3f9d34so1311377e87.3; Thu, 26 Sep 2024 07:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360552; x=1727965352; 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=WeDHrMYfGI+t+jChe0ejVP50XEXF6uESTKCRfajUFgc=; b=IkrdnxvVCBuxI3shZnxbnVjc2poL2Ez/6Byy/hm9LHUxJNk0jD1mQdZlw+FLvV/mSQ Z5jmjJLQiL1Cer6UgPlD1M5rwuDfIJxr89PCFjBpECiNfJQ3jYnXEaSd0l+zMl9pMBDh Yh2ZoPV81kT2J/e2yFO0J6nsYvTZSCHywEE5EV2akzfae7yMz3IC9BeqGsdXjY482D7N N3ZRDOa39PClHBa7nuU66Bd6YvoZRlXAE/jmeDbebPEA9JoI1kvBfTg4tRj5EbQpwaGA aoF5PQ1nOr0oY8qdfumljqbPqt1+f717Y8rcC9oEiE+WXIdcxkMghFXarPao+GRoMnQ9 3EEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360552; x=1727965352; 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=WeDHrMYfGI+t+jChe0ejVP50XEXF6uESTKCRfajUFgc=; b=tk5TeneHURFf8nC+3/wFwlpK6JCA7G6qawDpABK7eSZm+A+tSx340qZMbFTwf+qU9R kpAQtncNO3G+p7VP7xv5V+0N8pkPqAP7StmAseKaWMwGkepinj+VzL2tu3HXzgxrjrlH tb/VXS0+7iJ8MbbIfkgqU0N2EwcuNjPsBDgEGimxECikG7zIOrRPZ+TDs9r/xEVPpUvI JhQNjkH8dMzYoIbEurPeUUAkWo7eT6D9YbPPcE7MwPPdhhADf2/jimEm/O2/XWtcj11D ZzbtZRxb/CwjryYtflQhGD3U0E5ExlnI3EqiAqyE2iDnUmq5BFByDQMBCt1M+/kRJ+IY YkjQ== X-Forwarded-Encrypted: i=1; AJvYcCUfdC/6OGLaF7oJWQEkQ9d5GCAwJFeoaVkci0qWdhU3unr3N6OhtW3JkRMe1y93T3jjhRvxJsYvhYcR@vger.kernel.org, AJvYcCXii/JkZx1TCsXRtN0GUfv3YWZPjgkPtz4RX32uD6eIrVHIC/XDwq/dqBlcBV0U+WdXo++tWZWzaRAxmIAA@vger.kernel.org X-Gm-Message-State: AOJu0YzNZ4ETi+8l2fptFJoSx8AxU+KmaVuw6t5I+V2Z5LFeoJ31+u/m wY3xA+fMEfELwcnJPVPaP+7Aez+EZqwfInPOd9sT2vvVE0fx8sDV X-Google-Smtp-Source: AGHT+IEW4W+46XoivriXLVjE4+8JysyrF2fqRlflyhqbMLmBiszkZTv0NQlUAMwSOgjRTNxjbob4oQ== X-Received: by 2002:a05:6512:2304:b0:535:82eb:21d1 with SMTP id 2adb3069b0e04-5387756626cmr4468717e87.57.1727360552245; Thu, 26 Sep 2024 07:22:32 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:31 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:09 +0300 Subject: [PATCH v5 09/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-9-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=1308; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=y8oKXOplOXcw2ED9I11CdP0ecfiUGWbTr1J6Z6avwpI=; b=GTD2R7OtHFjkiDNcMWZPCYCFDSH9rJnM8YWX7KQt/NE0M3iKw0gV5htIJ41DUmkL8Sp+hdhzG 0RRNNKrBBaiAk0QO5YmawToYLY8138aw6NOrLGSfkRULaYOS5iTf6Sr X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for samsung,s6sy761 touchscreen. Signed-off-by: Dzmitry Sankouski --- 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 53b9a7d71f1d..00f67d1299b2 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 @@ i2c21_scl_state: i2c21-scl-state { drive-strength = <2>; bias-disable; }; + + touch_irq_state: touch-irq-state { + pins = "gpio120"; + function = "gpio"; + bias-disable; + }; +}; + +&qup_i2c11_default { + drive-strength = <2>; + bias-disable; }; From patchwork Thu Sep 26 14:22: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: 13813409 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 2619015CD7A; Thu, 26 Sep 2024 14:22:36 +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=1727360559; cv=none; b=sz8ppJp8NOspwBCceN3OK4D+8cm5GPwI0l8iDqbqVuIsIpbyhOnaBkbNybhINZLLDBqSu9As8qgVCVsgbrOBVJDGCV9ZClhizLt8poyCSnuQv5CbkueTUObCzgsVVWZnaQ4+tFnc2im4jYFTwfoFk4YCNZLVe4kV0f3cN2YFcwA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360559; c=relaxed/simple; bh=zxA32SQxJHWkbMPlmZG/NoaCkikBVWLlnv+xwcrdsnc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p2LaYXbt+MgN929I1vQwIQSDRk3PcUh5X58xZr2OyPgvq05jlooo0I+m6pFn5xXZUQwVol6/yIp2H5jYyEG7/P92MaYWx1K8thhPIEbCljkd2YZltRAkVNaMq1Ci7/+s9dFZKRgpdVrJU6NYTYaGjN2drdJeqJdre8cBkf4GUQ0= 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=Dmya00Fp; 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="Dmya00Fp" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-5389917ef34so1093651e87.2; Thu, 26 Sep 2024 07:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360555; x=1727965355; 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=vkYiezvXSNRtMLs2Or8bNlS3DRLHFJOdOzKBurCPuQk=; b=Dmya00FpPmXJcLLdkSctZEypJYFRrK4NNfYJgWrART/t1Cvvy0xLfCuU09EGWBerxN MNEl/mwiq+eUX8h6ocy0IcamwCV0Mc6bJ/gl0LnmAGfrlwmbZeRVNHBnGnEQ44+gKY46 hqLQ4M8CGx8nNByb1b0LtaDy1c/t/WCwDnaTfm99Fxsr3nKFOjYN/r+g5pSZJz8fV+mi Jx0HDVvwKMIQesYrhlo37YOEH5XpNrV17B9aFV4kq10FEgfyaa73NtLN/YpGnQ542zqL 1huM4zXXjru36sQ7d4VduckKbH639KwK/0077WaEYP/j2LgxgJCylHsMP/PSxdCdmYEj +/QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360555; x=1727965355; 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=vkYiezvXSNRtMLs2Or8bNlS3DRLHFJOdOzKBurCPuQk=; b=Op6QfGmSSYCvfZr7of4D+i9uvnA+SnGJ/DbwXhNUUuJMRAlGt07X5b+adYMKBO20yB 0I5hrU01XZcEJTjx3sB6HMjmGfOAb04Fh73Cf+HIk8poFAnUZAorm4dKaKrO5y3BjcUo vdTOjSIGR4NOeZkZRbj8qppcD4tmc5K1He37AuJt4stUdubFp5DQgHB+TRtxtQMWXdYE BBBOkF8y5uTe4dimtBMgm7ty1ML+awWPqV4TqLep5y+6pF0J4rDO568s7+/JX8JEiCpR MC5mHLRTOPyAS22XQSMRz1AKt46M+OBGEtkCMiCm0F/jDOIO9FyqwfG2TtTb8JnZnv6V r8yg== X-Forwarded-Encrypted: i=1; AJvYcCVUyc8eCR0QsSFeVpuELv7ib1+GGlHjUM7apTSwCIdGV4NLVBjTbTmzDZk3EqOsUw1VmzOAYPtlCB8/8tOp@vger.kernel.org, AJvYcCXE2VUo0ZOR4ggQXfqd2RLvW1GRzcKU/ZlUSrt8Sftbw3vGdQ1jq8t0W5Q4jAOqBjsb5GZyUIhXWkEl@vger.kernel.org X-Gm-Message-State: AOJu0YyI+jnbvSDlqm9jG3sRJwcg8QyUH8zKdkjrkNhhnGf5gNcWW/nH 6rOjriOWPTWYZ0G1gJ86eOblLvc9RGpJQgbp5JXg9OJTsojac5jS X-Google-Smtp-Source: AGHT+IGrtITrxEcW/+ijnKz/x5cAhF35xqPt8sz7W9Yg126EM52ugIf/NW/2IhaXHpcvGRiEZ3KZmg== X-Received: by 2002:a05:6512:158f:b0:536:5515:e9bc with SMTP id 2adb3069b0e04-5387755eee8mr4256661e87.46.1727360554852; Thu, 26 Sep 2024 07:22:34 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:33 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:10 +0300 Subject: [PATCH v5 10/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-10-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=5151; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=zxA32SQxJHWkbMPlmZG/NoaCkikBVWLlnv+xwcrdsnc=; b=iZrca6S9Y8ds5+cspPE2GV10lM0+7awvvWzLz+c4/GqDf7OCxyYVZ3SvZ8kGDIh8IyjAJLuq/ RfD6wzZqwkKAUmXY+NoRCDWnNQyVKSsGwrEx9N6CK0FmivmA6oEeZt1 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 --- 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 00f67d1299b2..230e984b5ba3 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 Thu Sep 26 14:22: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: 13813410 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 BF12B15ECD5; Thu, 26 Sep 2024 14:22:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360560; cv=none; b=kq3PmGmHgmoq0UAr/2rkWUSpy55/5CYriWSo+bnSkbcikTjsOPaezwhE/71cyM3rrv8gJK1Et59qYjtMo9MHIvYY+UJOkgki8HoO2WQTuKR1TDTzi/d5JyDu/wdGa+aII76+lL6rVnuD4zUA/SWeysojDZadFFCoGr01d/1Xm9Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360560; c=relaxed/simple; bh=m6OV06yvZTly78RIXWubPCmTFCgJ5xL7zcSsivhUMzs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YOFGErJFJFXYu40cGqK8jvrhbZTxaQGRI3NGoc8VWei4MlhtJ7WDB7xLSK5gJVIxnozWWFrFXO7NQWNaCkEF+ygSzrS68F+Cm3Q3Yksh1lZbkH3rMFL55MyuSwJoYgJpXrd8xW3179NsulAFxRm9qhdR0aRxmqzzVAfVVhy9eXs= 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=TDonNHOY; arc=none smtp.client-ip=209.85.167.50 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="TDonNHOY" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-53653ee23adso1025336e87.3; Thu, 26 Sep 2024 07:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360557; x=1727965357; 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=vEk6IbxyIRQciHxTowW56NnLoG79bbByuzI78rGWJC8=; b=TDonNHOY/gjCsnkF1oXXUsqWoyHt1PauGrY7ranxRJFCGvl1KAjY1hngg0iXrNe7Yh CzrChXh6//Zi8C1mxDVTX4MsFsZEklxUKOPHxubk3kKOyxMKHEtP6IsoZIx+IJjpI+SK cMqOn32Ond1WfnXb9T3SGNa4VXxKG09N5vtpQ65OBwgCnFQcH7tz8Wm4OiZm3/01Xcw4 kbVpo402iCB0etbYP0lk01+qBSSr9XSEqSvEzTIsgmCHjVvYC667k+Qpmk2s7q5GJFus 1vRxfk/xMKrsixKHEg81jJjB0FlzDfCdaVKUOm7VmVRpfwhs0k8aVTzipt2xafBW2YQJ SjWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360557; x=1727965357; 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=vEk6IbxyIRQciHxTowW56NnLoG79bbByuzI78rGWJC8=; b=J/OYlaDByv8StVrDiwrX6okd8SVoTTjAPGEEK78R4bPAGk+1n2STeCFwql6Bl2A2G4 +aV24I+YAn2682SET3IPlvhWWKHL+r8Xy+Df/xIhxLFTKgUIGQJi1GAogQnuRPbuV4jT E3AICkPgSg1f2sk7uMAZEaVPOMjdWhpeCXwjqOyws5g61pPxlZShplRuUcBI1fS55SJJ 2fPhMfcq5IOnTnv3+Bw45EPpUIpZRubXLanE5xiBZN2RsmcrM/7YV8IHg3QVEZTuIKYA OkTBFV1uMVKDCJ+K/p7Ncg4O8bwWXwfKdkNjC4hyCmdTh7DYGXJVKEA4xBkaK42Peb1Y E1+Q== X-Forwarded-Encrypted: i=1; AJvYcCWlqc4y/AwM5hL3GR6yrSQkka0+5D/RnDKpkWaxfWtikSnf43A1CqveI8LqM8059PtGzR2/2FeZJPWf@vger.kernel.org, AJvYcCXxrMhy5XD4j5MTCvk2ClWni2z9Lr44Z6vchnWb60QfzyQo1iMNYxFYAfzq+qqfiRswL8vDJK4+xWss5Py+@vger.kernel.org X-Gm-Message-State: AOJu0Yy3+PYQ5/avdxHdfnmJui3nNGCdnyQCFmVSGL2huVXdSiLTS1eN Fao/B9K4GUzg/9aZpib7P/VJKrwnM1IuG6wxyLyLmOQhV1BcDZNj X-Google-Smtp-Source: AGHT+IGLQoMOmf+PSm7/vA80PuVVDXP9OAskSmiV8zl9W69dwKVJH5YyZH1N3zXRe7QIalkZeSNwEQ== X-Received: by 2002:a05:6512:3d12:b0:52c:e1cd:39b7 with SMTP id 2adb3069b0e04-5387048ab69mr4211288e87.5.1727360556624; Thu, 26 Sep 2024 07:22:36 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:35 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:11 +0300 Subject: [PATCH v5 11/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-11-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=2286; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=m6OV06yvZTly78RIXWubPCmTFCgJ5xL7zcSsivhUMzs=; b=9BTuRJ/+7XoneTgNY0DsKlb6cJRydLdALlIi+UOU8HXtAqKEw2pMn/QBJzvLMhubLNwAHHRNi XQVQpQDBEQNDTntm0GwitVpZB3GaiU6reU3+KUwkYnGgNp9FJB4c8Cv 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 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 230e984b5ba3..f7cb09734d2f 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 = <&sde_dsi_default &sde_te>; + pinctrl-1 = <&sde_dsi_suspend &sde_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) */ + sde_dsi_default: sde-dsi-default-state { + pins = "gpio6"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + sde_dsi_suspend: sde-dsi-suspend-state { + pins = "gpio6"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + sde_te: sde-te-state { + pins = "gpio10"; + function = "mdp_vsync"; + drive-strength = <2>; + bias-pull-down; + }; + sdc2_clk_state: sdc2-clk-state { pins = "sdc2_clk"; bias-disable; From patchwork Thu Sep 26 14:22: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: 13813411 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62AE81607B4; Thu, 26 Sep 2024 14:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360561; cv=none; b=pk3i85i2sKAbWYIQBSBDnmAhHZxVPP6S/CCOzpM7mhapyCVnHQ/Yc8fiWkB/z1LP/BFO5SaHTcal+qpeMMghtTKDCTyUUnsC3cxe1MOkaEfkz7mo9DTAK08ZFoJhlvddl7f2ckzDSc4RnHKHKXIl9Zv/2kamENK6V5Eg02kzzMc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727360561; c=relaxed/simple; bh=ir13QocNhYd+dhLn3EnuWkM1Qmu0ZEM2VLHnjiH3yQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JvpMkbnsuvV2XWMr1Kt0uEj5zOdcLTNjN9Yte+P5SuwayvRvxXY83niroAAMaCrGXpbR+qlxrlasLjkkmZHxtpD8BF5uV57M3FAxuG97ON8YqcJWU4dzhTHEccGF8+/hvNp5Cp/KZZ/YTPqD17aaaLtUzlRN+cFqz6n5rrCtZfE= 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=NE+Sgq9s; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NE+Sgq9s" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-5356bb55224so1443026e87.0; Thu, 26 Sep 2024 07:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727360559; x=1727965359; 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=mvySoi/ghyixyWjU8Kt/wXCcix2cx/dAsfKUKyMxVic=; b=NE+Sgq9sg0wPxpqXim21WoduwMyAA1QMsimQ+q4jtmwEuorAGDuND8fGgXWwbH7mLX BsiyxMmt9gNL/ES2BsuMkeHnSUkZ1aKe0tMSOHDi58+KCdROvgcjVshyUMK3zjA0wqwS fISkcVJRvDW5i9pXo5Vl6+S2gavZ8cAxtlVbcL6NotqpCIs7l6e6G5EK9X0p/ePi8Dz2 uu9CImciBASoxrw+tjA8frgYaVpeSG3cYqsMjczwnTliSkBBMQwTmxzL4UT7gKfy8ClK 2U68JeX+RRGfW0jtRHRSEFrWqndIW67WGg6smud3sCre3OhicH880N3FU3J+SHTvr9aG 4ZPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727360559; x=1727965359; 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=mvySoi/ghyixyWjU8Kt/wXCcix2cx/dAsfKUKyMxVic=; b=F876Pw4MMNS9Q8CIdIHYMQ6ZRSJ2mYmwSqF79/j2nbXCuw57MwcJR+fiR6tzmqL+Hz paBvqU0mvA6MhxkC/XSljBqF+/x9X4X/Cl9EaBy0MXf6a6iGJW46GPG87MLH6D4d04Nk TMS0WdqcV9LIlRMhwpznipbuK8B2tn7i/OTu2eJckZFj3lBI8C8a5J6D0aO9oGtQIZoj GxYu425gBLIimc5ogIqEEVCIzIe58oGHx+t7jtr7OuxQ6zVyn0s793ooB1CSSzmi82d+ FY98jacPuZjYXhuChr3TxzICrmEeSPe7Ob6G67Lwuvi+sfWt19Jnt6/vmpxfWdEbCC1O 7JZw== X-Forwarded-Encrypted: i=1; AJvYcCV0F8kDYRllR4BxwkcR53VHYZSlnzy34oJm2zE1UYZkTigYKXWSn0qY2gJK0jclR8bin9ojCub8HJ8exKeQ@vger.kernel.org, AJvYcCXoAkzkYf+ZqyXMA4sMjaqEm5/8p9HXrc360lcy0Jj5h7wIu3YzQxvWRGzwv8GmwcdoiukcCdUoudN2@vger.kernel.org X-Gm-Message-State: AOJu0YxqU4gLVWUbO4sJTKsb+moiXMuWxYdWCMalx8WiEc5mdiiEmRvy y0YU2Mb6+DyWTFDMyxqIoj2R4cze4crEc6rO6VJHn8DgtABYqU+n X-Google-Smtp-Source: AGHT+IFjFpkYJtDlsaqYWrniHFrgIgENrRffE//ZKPHAlbRLrM3iqa1Io8iVHs0TgVNR+oGhvGRxRQ== X-Received: by 2002:a05:6512:ac7:b0:530:e323:b1cd with SMTP id 2adb3069b0e04-5387755cbccmr4493488e87.40.1727360558375; Thu, 26 Sep 2024 07:22:38 -0700 (PDT) Received: from [127.0.1.1] (mm-20-1-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.1.20]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-537a864db1bsm815803e87.267.2024.09.26.07.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 07:22:37 -0700 (PDT) From: Dzmitry Sankouski Date: Thu, 26 Sep 2024 17:22:12 +0300 Subject: [PATCH v5 12/12] arm64: dts: qcom: 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: <20240926-starqltechn_integration_upstream-v5-12-d2084672ff2f@gmail.com> References: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@gmail.com> In-Reply-To: <20240926-starqltechn_integration_upstream-v5-0-d2084672ff2f@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=1727360533; l=2052; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=ir13QocNhYd+dhLn3EnuWkM1Qmu0ZEM2VLHnjiH3yQk=; b=bEETRA30IoUzTR2gDYXWVHNr5nJGA7MFNAi36GprdUBVIrQU5Ivmm0NVQDxDqAum8EeJ7Ewv+ q6IHjlwa1TgDTGNqN21yz2wL9Eid+j1GSqt9MFJK6EZ/H3h45eZA81/ 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 --- 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 f7cb09734d2f..0f2db2cfb1e7 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"; };