From patchwork Thu Jul 11 10:58:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13730352 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3461015A86B for ; Thu, 11 Jul 2024 10:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720695544; cv=none; b=N5FPIiy0qj0vg02wE8kCGh83VZglq8zijqL//jox9PNm/4Ae1jJ1qqFpfZ+BUT2gORCRZ58YuPfLG2dD6zb3kzaufjz5rvTo3raH3mR17ajxZjDkaH4kbiEpbUa6g9Lsg/8s8ZRWzIdFsTxGZGL4/M5TfH9z1AuUVi36gXgLarc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720695544; c=relaxed/simple; bh=qd4l+1zLIfKPyejVC5a86QPcVgnizG//KpLwQhuGEPE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WeEi1tI/tMC53u4hYcIGBR2ckXFcR+FD1gtjciPEstCtJh0GBlLsP05pA12r1huogfvsPdW7LTt76I6ftcNxre3NPON8rBA1fubztXgs65F8JIYwsnpUGsLeyAoFoBkaj0NNNKW1D7ZKwZXAUViyzlLQWH6SnOYgpUdQEkQ0SPc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=SP/sSE1b; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SP/sSE1b" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a77e85cb9b4so103276766b.0 for ; Thu, 11 Jul 2024 03:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720695539; x=1721300339; 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=yNYgTmSSdNoKuplswpKP8hOzb826ZcABJ6Vp53iyqy8=; b=SP/sSE1bsiACHrc0Puv8a7l3zvGg02Cngql8JpD+kfSaJ7J/BempowwQJaJAZ6nGHX LqvrQcGrKptiFVDZ7jtC2prJYAq8HSobyk+sfCNoGTnZCf7ZEBtX3geyMkkuOLW+qvhZ g0kInLEI0eWZgRPaQc0/pljH3Omyhfx+fuprXIOphBU90xvJAQ6m/7gvtt0I3ijMoqrd Yi0W35OVbTI/fgIMYMG7czez98qG9Un3ovcKWH7jBrKzDNHpjv1o4+ZhyqXwNtkjklkd YbCc2jwczjGc8vVgK4quLPgv6w+vcZCEK/o0KUhIpn26qGuYgxVk8Pv2x9Lkq3wn4+qv zbDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720695539; x=1721300339; 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=yNYgTmSSdNoKuplswpKP8hOzb826ZcABJ6Vp53iyqy8=; b=r70tju3W7zXu91ikJxKF0C0oaByG5GzZvNrwmRVO9+pUUJkv6JqZfg3amZHcutLFVV VaSF4ezEppJNKsJ4CSyIqX23tLrS2yDVBBf0eIAbzisJ8VRoYWU2viAvBwGbzh++F2Nw AWKL0vs7OdtLMy51Zjb2xtJzV5tikQ9VWUT8CPyvCQ0b1/yqK4+uow2LHkOySrZmaQBG 0qjjMV7K01BDfxFkJeDwT7vub8ObXNZO8sLTZBy+2PzMSBo2R4Eb6m+XyeUuV5o7aTXH 9sBPBvfMiHjHiPjQKoASLNQVnCEiFaqFdpNSkaTEq0EI98xDW6Xvo5QZkmuxMUpEBFZZ 0kDQ== X-Forwarded-Encrypted: i=1; AJvYcCWPo0RNcJREOf8AhU9FFCO3CCNec7gW927NrE9g5mGv8x3xfcxPE6gvLeYhKOAnuqsp0BOjuX/Np5GXT1cSyDuzdEm8Pn7+G22h7uTvkg== X-Gm-Message-State: AOJu0YxExFkyQzBp6EDW88RAfxKaunY3TS0MrMesLS2meTvBv0cdh95k 2o+W7OcuDtc7PN4FQUqTFPzPO8q7WLSgTIREKqYOCNAchifviwADJavI6K3b5kU= X-Google-Smtp-Source: AGHT+IEcuNhgMukDyP03M0BmgINaqQouk44TmnI3HD6cVsvz8p3rUpUo1RaLhKUYXiVChuzSTWu49A== X-Received: by 2002:a17:906:f0d4:b0:a77:cbe5:4135 with SMTP id a640c23a62f3a-a780b6b1ce4mr476482466b.20.1720695539419; Thu, 11 Jul 2024 03:58:59 -0700 (PDT) Received: from [192.168.105.194] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a871f2fsm244209966b.202.2024.07.11.03.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 03:58:59 -0700 (PDT) From: Konrad Dybcio Date: Thu, 11 Jul 2024 12:58:47 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: x1e80100: Disable SMB2360_2 by default Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240711-topic-hhh-v1-2-a1b6b716685f@linaro.org> References: <20240711-topic-hhh-v1-0-a1b6b716685f@linaro.org> In-Reply-To: <20240711-topic-hhh-v1-0-a1b6b716685f@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1720695535; l=3525; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=qd4l+1zLIfKPyejVC5a86QPcVgnizG//KpLwQhuGEPE=; b=Sjq8cqwOgiLjvCLlOXnQNPFpaOZMBKuKUdbY1aNQaeHRhLjU/28zu9OVhTiNFhoE+FOpPLsUu dyHKwnsf7SeDGc5y8X8Ia9o5CQW6cuEzSzqzvER1dR90vfgcnA3hxqS X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= It's absent on (most?) laptops that only have 2 type-C ports (of which there are quite a few, and coming upstream too). Keep it disabled by default and re-enable it on actual users. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 4 ---- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 4 ++++ arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 4 ++++ arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi | 2 ++ arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 12 ++++++++---- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index 7fb980fcb307..ce2b12afb749 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -488,10 +488,6 @@ &smb2360_1_eusb2_repeater { vdd3-supply = <&vreg_l14b_3p0>; }; -&smb2360_2 { - status = "disabled"; -}; - &tlmm { gpio-reserved-ranges = <34 2>, /* Unused */ <44 4>, /* SPI (TPM) */ diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts index 6152bcd0bc1f..7b90c9e40e37 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -821,6 +821,10 @@ &smb2360_1_eusb2_repeater { vdd3-supply = <&vreg_l14b_3p0>; }; +&smb2360_2 { + status = "okay"; +}; + &smb2360_2_eusb2_repeater { vdd18-supply = <&vreg_l3d_1p8>; vdd3-supply = <&vreg_l8b_3p0>; diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts index fbff558f5b07..8d6222dd80e7 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts @@ -689,6 +689,10 @@ &smb2360_1_eusb2_repeater { vdd3-supply = <&vreg_l14b_3p0>; }; +&smb2360_2 { + status = "okay"; +}; + &smb2360_2_eusb2_repeater { vdd18-supply = <&vreg_l3d_1p8>; vdd3-supply = <&vreg_l8b_3p0>; diff --git a/arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi b/arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi index e34e70922cd3..a5ca0fa4e5ae 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi @@ -509,6 +509,8 @@ smb2360_2: pmic@b { #address-cells = <1>; #size-cells = <0>; + status = "disabled"; + smb2360_2_eusb2_repeater: phy@fd00 { compatible = "qcom,smb2360-eusb2-repeater"; reg = <0xfd00>; diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index 72a4f4138616..544c9cd72f2c 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -715,10 +715,6 @@ &remoteproc_cdsp { status = "okay"; }; -&smb2360_3 { - status = "okay"; -}; - &smb2360_0_eusb2_repeater { vdd18-supply = <&vreg_l3d_1p8>; vdd3-supply = <&vreg_l2b_3p0>; @@ -729,11 +725,19 @@ &smb2360_1_eusb2_repeater { vdd3-supply = <&vreg_l14b_3p0>; }; +&smb2360_2 { + status = "okay"; +}; + &smb2360_2_eusb2_repeater { vdd18-supply = <&vreg_l3d_1p8>; vdd3-supply = <&vreg_l8b_3p0>; }; +&smb2360_3 { + status = "okay"; +}; + &swr0 { pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>; pinctrl-names = "default";