Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1362197lqb; Thu, 30 May 2024 08:06:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm31eACnrzEGP4jrJNwahsB4UAqSS1wCrHJCo/+MY9NAHo0R3rEdH0hDDd4e4Zn5mCvIQhcyON2cT1Yn65X36r7PUoVL9awY9lxNOc6A== X-Google-Smtp-Source: AGHT+IE8t+qQZN8ThAUbTc/VcILuUaE+6Qg5soJw//E0QQXGTVBuGVGa/3sdgVyu7W3AA9vdDFFH X-Received: by 2002:a05:6a20:840b:b0:1ad:ab1:9a03 with SMTP id adf61e73a8af0-1b2645b5a69mr2654153637.25.1717081606587; Thu, 30 May 2024 08:06:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717081606; cv=pass; d=google.com; s=arc-20160816; b=XhzPaGGq0xboknb+PWKFWv1Q86qa7vxLn/lddDUoSggQ3qyfwviirENAzhXSVMVlr1 nmrEGwDrmKcKYuY3HCyjbbH6P2+MxpgZC/HjYi6bKv5J+pGjGT6X12eNY/ZZSReLNHQG CDUUtisJVKM3sJuI5XsPrp0GNcULnEq13dBbHGDPzXRgBXmvdLYXk8iplpfFrUWBxri+ F71TYUboWVR1MPJmLdGjzwPhlN1mztApANudIUF7EuZDpB4fAkksv9VYwMtNvLg5mIxl 8TEiu21HxLNC9bqu8XGF/czYmKw7NJ22B/Fv2Ql11WWdaB1ueYzwRtNUXgAePe7DoiMG 9iJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=MnQFmGhNvzydRfpbiP3XVw/UozOoI6Olw9DBXg7NZ5A=; fh=EKGN4g2JlsgW19Jb2zZBVX+iWNRmTQz97rEmSkzxSzA=; b=QLrsaKhWx1pCzxrtEjkns0f+0oxGRU801lQkppl57qep4MQYBAIl6QZjRNiUq4RO15 ShwMEzZsADk6rAzFH/ceEwL/58DG8P+3GQK1ToCaB8MhCM/IhPqB1WvPQ+HuDiQKOmcN puV1dIwD9lCoPEm5UnHANVryQRRU4fDu+iMZ1l57wZv6CGnjEquCTD8lF2iXzvDLSBc2 YszvilaK7d6lqQJ29e+rcniZS34plCP5deFoRou9cwMJnJjyHMJLq7KddMSPPu4iyLOA luc1MskKgbxwFvUqgyVAmo0PWuhqBKaHHToQWhSwyg6aKIhFAMO0QWmBtusMthsGkz+6 epzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=TTrKwOxm; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-195565-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-701cb685e6esi2070597b3a.69.2024.05.30.08.06.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 08:06:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195565-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=TTrKwOxm; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-195565-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3D2F2285A71 for ; Thu, 30 May 2024 15:06:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA312183088; Thu, 30 May 2024 15:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="TTrKwOxm" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.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 286B217D8AB for ; Thu, 30 May 2024 15:06:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081577; cv=none; b=r7+OUcvLeJjqqGNo5YfPwfPgxCOBgYNPyTMc6ae4Dc2WDgdMSGo2bpSVIxvYMRp1hleQdyUACiQ8GfnB7g8m+CxUoZ1PIOZu/lC5BH3GrO1t/+etCxemw/+YkeHerMd7EWw5AazrPYFF1SouDpj0EIkW4/KVR+CrYrZ2qw+85e4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081577; c=relaxed/simple; bh=GO53uI6GUbwjaW8cPhjYVSZiLvFTBXg7wMm8WUSxda8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qQyJkYpgKz85sW8Y0qZn/ejX4FRD6IqBOavFdjAujySVUwoICkCOake44jcqyLncag9It/i5odlLRN6x551qpvrPWd85VdgozQkQ5AePMkmB9inozIa8uRH4hlM5sx0N6fC9KNVqBW7AmaYjBDD5e5X8BkOebUe2hhN8NXTxJjQ= 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=TTrKwOxm; arc=none smtp.client-ip=209.85.218.48 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 Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a635a74e0deso103493266b.0 for ; Thu, 30 May 2024 08:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1717081574; x=1717686374; 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=MnQFmGhNvzydRfpbiP3XVw/UozOoI6Olw9DBXg7NZ5A=; b=TTrKwOxmURNZzYH3HkB4KqSz5ZwxVPpo7N0uQj7xd+158WKeaQvi4zgsH2PySr0LZP dmIwhYAUswTkG238xxZPj/ri71Obw2+juK8THL3K+h8Yn1pkfXT7QiTIwrCHfo9PXSFr gzHbwbsvgRy2vi2aQBY1hwxqlOu6nA3qex9SzYaky4Iv5DjMNIL9xynelCqDpe1Ntdg9 oSC5R3LoHhUVJO8pt84A7g9G4xtXi5LMLA0XskEuNYXff73SI52EpQOuyST5zp88mJO0 ws/wEPP1WIYsDumgMDjZ/JXorGGpTTjvCSxbui9Ss2fdJCXDG+5oeERA6CvVzbIwZYnv t9ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717081574; x=1717686374; 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=MnQFmGhNvzydRfpbiP3XVw/UozOoI6Olw9DBXg7NZ5A=; b=BNZ5Ft6vbz9wsVX9ClfWbAAS2unORtb24UtlLJjh4QtT/R+5QM8AKOv+oa+zzb0Yd1 3VFZ9XcBycASJTm0eIqsG+Cd6b9ojBGWhfGiDf3Kk6U9Ev1SCOGvTzf8JOvMfRnsPyTF HGMYAdjV5IxroppgxMC2tz8IA8RR0lc5YaENk9mMawLd6LPSZ2SGoKex67E9ub1PB+SG Ke7D+iRU1iB0K/eelmN9lankPIeiZXDnNwVczkDS9BZL696RLleRWbim0SwudFGkXgx1 TcrWcCGr5OKItonRd9hFHXciQILoJEmLeYirjEreQl377yL38YZkFYLcIHmc71PtC0v6 5uyw== X-Forwarded-Encrypted: i=1; AJvYcCW3q9gRN4vxG8I9TbJDhQ6imCO/Hk8sqsBDtYKbYS5sTKi1WSZ8tfy4p7LTLBVsbEecIySy7WqeKO6ebdx9xqAy/JUat+SOBWAbseYe X-Gm-Message-State: AOJu0YyUxZXdi4pJRUmZxGHjkKLFJB53/fnjrCt0frmjnYuCZTb6Q8Vm ooUIVTKyE6fbUtkFpj84Qr1SsuL2HKxHdDbCSJdP8Q5Z6FeSIUwRNRqGmo1ThBQ= X-Received: by 2002:a17:906:4913:b0:a67:403a:4bf0 with SMTP id a640c23a62f3a-a67403a4d73mr30681166b.3.1717081574410; Thu, 30 May 2024 08:06:14 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a67430f8457sm13531066b.122.2024.05.30.08.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 08:06:14 -0700 (PDT) From: Luca Weiss Date: Thu, 30 May 2024 17:05:48 +0200 Subject: [PATCH v3 2/3] arm64: dts: qcom: pm7250b: Add a TCPM description 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: 7bit Message-Id: <20240530-fp4-tcpm-v3-2-612d4bbd5e09@fairphone.com> References: <20240530-fp4-tcpm-v3-0-612d4bbd5e09@fairphone.com> In-Reply-To: <20240530-fp4-tcpm-v3-0-612d4bbd5e09@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley 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, Luca Weiss , Bryan O'Donoghue X-Mailer: b4 0.13.0 Type-C port management functionality lives inside of the PMIC block on pm7250b. The Type-C port management logic controls orientation detection, vbus/vconn sense and to send/receive Type-C Power Domain messages. Reviewed-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi index 4faed25a787f..7dc7262f1537 100644 --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi @@ -51,6 +51,46 @@ pm7250b_vbus: usb-vbus-regulator@1100 { status = "disabled"; }; + pm7250b_typec: typec@1500 { + compatible = "qcom,pm7250b-typec", "qcom,pm8150b-typec"; + reg = <0x1500>, + <0x1700>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "or-rid-detect-change", + "vpd-detect", + "cc-state-change", + "vconn-oc", + "vbus-change", + "attach-detach", + "legacy-cable-detect", + "try-snk-src-detect", + "sig-tx", + "sig-rx", + "msg-tx", + "msg-rx", + "msg-tx-failed", + "msg-tx-discarded", + "msg-rx-discarded", + "fr-swap"; + vdd-vbus-supply = <&pm7250b_vbus>; + status = "disabled"; + }; + pm7250b_temp: temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400>; -- 2.45.1