From nobody Tue Oct 7 15:22:56 2025 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 541D92D4B71 for ; Wed, 9 Jul 2025 11:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752060165; cv=none; b=Xz5IJdJA04euSfwGCe1Jj+I5k01IzRzZgqCuZHky4Vj4SjuH+VI5qFH7U/gAQ03FPjgNgCS5V2PY92vZgB57hcwYjPdTY93ytMjTh5MsK4OtlikjKLqNanF70M0JGVboSYFuN3Wv+yH9X1fQn+Ek/RiCPSgUyZ8+/k9ZEWtYlEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752060165; c=relaxed/simple; bh=BJ8xB4hb+tykRRjusqg1Tz73bBRJQquK/5arYt0BGeo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HqpTAEVh6o0DMQLCaSx4ZLIz3r5+vKmGQGeDkenv2Hv9hvRSEuuXdHczpwGAEOb3ZE2f5+Y1eMMgG6vms4/+kAbPPnI86eaaIIOIum/NMP+YAd267m5NVAq6AUycykjqKqaLehav1kVwBxjg0gwD/dFhsJNXXpo4S1UEqYO0xY0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=I0s71cy4; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="I0s71cy4" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-60c79bedc19so8484126a12.3 for ; Wed, 09 Jul 2025 04:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1752060160; x=1752664960; 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=g5w5k+HV8sFNIt4Z8WUuVtI/36kvxiu7k+wZWXpkHCE=; b=I0s71cy4G9Ejk+Z7lA4QbqusERLNd2Cu5aLmY6EYT/OQk5d+k7MXJlRzeP/qBneo4B yoxZpPwLCkZwM4ami1e22WlYoIY4t5q7Mup+Gzg0vzNmSstUTIMpk5hMvrI51L/efRmm cplHi1hI55WivQE1hSLN1L1/941/OWFRcGJCJDffZTOSr8hYUrG9e8YNhiUoNoDz38PK 1nwJAscHR/Q3dlXpt96TrJXkfBusL0lkWqc0exJD9WyTFHpij8SK6pLIerONwOqXHpT+ O5s18OmnqoXXDh9JCG7FdcbrP+rF4yu8OYCILjuZ+jh3KdGRfhHzbmv4NinRnWJ95rl1 +X3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752060160; x=1752664960; 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=g5w5k+HV8sFNIt4Z8WUuVtI/36kvxiu7k+wZWXpkHCE=; b=C9HTZvKRfUwoeVrYIKtQhdw381sFu/to2wcVb1RoCHpD/+ey0k3f8rLyn650Foybrd UQnVO2xJ0UNwv+/18vHptOrSAN/pNxtbGdlDk5ff6/4pcrHp/N197+cGk6QtTpTVfK4c k193yKIfWE9/rmrbzV2jckmq65BmPAOmxWgRXH8RYy4nYqi3f7e+EgOCnw8jxWU0pSsm POhxthAv0V3TB7ZG4uARZsmkQ9IsTuGBC84yLs8jPq7890b//WVeVrtw/eDk2avvdIPQ X7S9kWBsBNDlcBXwIr5ujharH9a4w8kZLj/uaZBEO3pbSAfLvKUvua/GUcbYQryvrWNu +Gzw== X-Forwarded-Encrypted: i=1; AJvYcCU/ZHF5JBIHO3x+12umz++x2xaueCYRHS1UYp5EsBzEYwZxmKADLF5aw/kIADAN0S1vY34ATtTYTEUeBrM=@vger.kernel.org X-Gm-Message-State: AOJu0YzMqZG0RZEOncvmU0QQIcFa6/NzRHgcTn+5Gq8d/JiiKVqvKXvW HTqcvJp12Pb9FWPdGxnxxemQKWPzF6edO/IwMmVfvqC67pYYiLFUjKhUMxW5N8zPgio= X-Gm-Gg: ASbGncut/B966Ci1tzJBBGQFt2+awyM0oqrz5b5IL82xIT3f9LRqy0i4lrhSmk99aHw At7iWE0CYZHCjzVq7jxD2XSfqGkcyw7Y/b8pAQi5Tsgq9COwj15dUCz1WUuXlnSIVNzOKQpBAyb XPmXb9OkTVercy9BYxy44SjFHapLjuv4HYUYDyV9u2MGTo/wnUeY4C9GFOthvRzDWjiAaBnPMO2 gK9Uoxl5ls8cONAayJgj+kcdFImc4gHIU+wyyetwYSdkuMXpeSCtHtq93LC9V/dyxoBg/qbLwGh l34OAJJAuO1XfB+A0tuQzth8SCuLLPU1mvmfUWUqd9jCe45I0FXoi3BpdVA1zFzWfki/ftqsEzv 8Lr2LgcK7SBJ8CGi1NKUFOY0d00BSvw+M X-Google-Smtp-Source: AGHT+IE/cYuqI4vT6pQgasChnZtvTh9J7UXPtPCMD7zDsylvBEkqznTwLOLiwtQ6YL0FyhhxPxWwWg== X-Received: by 2002:a17:907:97c5:b0:ae3:5d36:aa6b with SMTP id a640c23a62f3a-ae6cf76d14amr222432666b.36.1752060160435; Wed, 09 Jul 2025 04:22:40 -0700 (PDT) Received: from otso.local (144-178-202-139.static.ef-service.nl. [144.178.202.139]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f66d93basm1079861066b.4.2025.07.09.04.22.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jul 2025 04:22:40 -0700 (PDT) From: Luca Weiss Date: Wed, 09 Jul 2025 13:22:29 +0200 Subject: [PATCH v2 4/4] arm64: dts: qcom: Add PMIV0104 PMIC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250709-sm7635-pmiv0104-v2-4-ebf18895edd6@fairphone.com> References: <20250709-sm7635-pmiv0104-v2-0-ebf18895edd6@fairphone.com> In-Reply-To: <20250709-sm7635-pmiv0104-v2-0-ebf18895edd6@fairphone.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Bjorn Andersson , Linus Walleij , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Luca Weiss , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752060155; l=2260; i=luca.weiss@fairphone.com; s=20250611; h=from:subject:message-id; bh=BJ8xB4hb+tykRRjusqg1Tz73bBRJQquK/5arYt0BGeo=; b=sOru2oGeILUyEs8AZfZlxdJBi6QurntuA+Qc9mtV5d8zfpnOFfQBawp3ZrLfZDQ13dZpOZUdj mn8scrOcHD2BZpAYui9TkwB+yt50J7Dqf7h8lcLqA1M2ccd+PZHk8HE X-Developer-Key: i=luca.weiss@fairphone.com; a=ed25519; pk=O1aw+AAust5lEmgrNJ1Bs7PTY0fEsJm+mdkjExA69q8= Add a dts for the PMIC used e.g. on devices with the Milos SoC. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pmiv0104.dtsi | 73 ++++++++++++++++++++++++++++++= ++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmiv0104.dtsi b/arch/arm64/boot/dts/q= com/pmiv0104.dtsi new file mode 100644 index 0000000000000000000000000000000000000000..85ee8911d93eae5fce512146a8e= 2c56d79dee398 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmiv0104.dtsi @@ -0,0 +1,73 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2025, Luca Weiss + */ + +#include +#include + +/ { + thermal-zones { + pmiv0104-thermal { + polling-delay-passive =3D <100>; + + thermal-sensors =3D <&pmiv0104_temp_alarm>; + + trips { + trip0 { + temperature =3D <95000>; + hysteresis =3D <0>; + type =3D "passive"; + }; + + trip1 { + temperature =3D <115000>; + hysteresis =3D <0>; + type =3D "hot"; + }; + + trip2 { + /* + * Current Linux driver currently only supports up to + * 125=C2=B0C, should be updated to 145=C2=B0C once available. + */ + temperature =3D <125000>; + hysteresis =3D <0>; + type =3D "critical"; + }; + }; + }; + }; +}; + +&spmi_bus { + pmic@PMIV0104_SID { + compatible =3D "qcom,pmiv0104", "qcom,spmi-pmic"; + reg =3D ; + #address-cells =3D <1>; + #size-cells =3D <0>; + + pmiv0104_temp_alarm: temp-alarm@a00 { + compatible =3D "qcom,spmi-temp-alarm"; + reg =3D <0xa00>; + interrupts =3D ; + #thermal-sensor-cells =3D <0>; + }; + + pmiv0104_gpios: gpio@8800 { + compatible =3D "qcom,pmiv0104-gpio", "qcom,spmi-gpio"; + reg =3D <0x8800>; + gpio-controller; + gpio-ranges =3D <&pmiv0104_gpios 0 0 10>; + #gpio-cells =3D <2>; + interrupt-controller; + #interrupt-cells =3D <2>; + }; + + pmiv0104_eusb2_repeater: phy@fd00 { + compatible =3D "qcom,pmiv0104-eusb2-repeater"; + reg =3D <0xfd00>; + #phy-cells =3D <0>; + }; + }; +}; --=20 2.50.0