Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp1033942lqh; Fri, 29 Mar 2024 05:27:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJZJ4FqQjPUX4l1t/mFCIyiCeBx6N9GKl3krzve71B6Cj7a8URQTVlK3sNvFvHqXzB9gaYpgpFnfk0aMDp3fTcZqdxPLDu0tb5ucvMgA== X-Google-Smtp-Source: AGHT+IEFX9vqGlKW3AWAFlG4yKWFnv9Dku8DMEWQ+6YfHSHUSagiXB4r8bD4cBvybDAJnXYrWy4z X-Received: by 2002:a05:6870:41d1:b0:220:8cc7:253e with SMTP id z17-20020a05687041d100b002208cc7253emr1834030oac.22.1711715228202; Fri, 29 Mar 2024 05:27:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711715228; cv=pass; d=google.com; s=arc-20160816; b=H6L3eVO1ZvXj2gH/7GQ6NCVSfQ+J7HsQwRyEoswj5Dvlx4XZ51WkYvkhhSSWkfb2Hk 1Kn0RdrfNimioDlEi1dl+AOA+DAVv/dWBtLpT0FNPQvFi5kYcuY6z9AglWVKrCwi4H3n dngIvuqb4Ksd7NGTwqpYKwrwluW05as5wAoW2tM7fi4OiQuob8Gpuj2lKZd6DbH9RQZ6 jAnNRE2tuE79suhKqHjLiCaRLIvnBiQWrQHBwvH8+LUyrRDqv3WU1vT1uY+CjgRUXiX8 AI8bxY1Ipy64IkPExOjJm/t7bsqdMhCs/5n2fbw6lz0tlngz1QZvKRr88M8jW0ldfsSo WAaA== 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=hGKBeVO2nyh3+Ap/hXwBhTTxhIwQlZ0U8hKP2bY+0Ow=; fh=5W7BDilWgDRJLqkvFojMWlXZc2pEvWbZ89kurnJ6hlU=; b=Yu3Wp3iIfgLloYqw5H4YaGvF0jruhgNYjLY2wB6pfeQSdTxI6aGeeoCqhoJ6YfTNFV Wnlp9t3gjbgt4PD2/XUMdDiee95Khq0GhcK8StT6P1pvSRsLcDnMjduIMTsexQ/YhkDP 2GTJTmopENckvYuC9ZIQabq86LSnJ9qHWSvJZrcCSc/agaW+XBrfSjqv9/dHSMc4bYJ4 mimRvKl7JyUmy9m7LulCCl62Hj9I7BXSj8UYlaaWu0PHcNcJa2SWOGKiJp+UUdJyYEoG Kg1kxEIps+Z6fngvkuD1pKH5kwpRDZR3Xfh3aCY5DFPKh7qMIwK+KFiXIpegG5IIQSCY w+GA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="Rh/5OMKY"; 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-124480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124480-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 j9-20020a634a49000000b005dc422f07easi3314626pgl.902.2024.03.29.05.27.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 05:27:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124480-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="Rh/5OMKY"; 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-124480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124480-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 D11C12867B9 for ; Fri, 29 Mar 2024 12:27:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E239412FF81; Fri, 29 Mar 2024 12:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="Rh/5OMKY" 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 4C6288613A for ; Fri, 29 Mar 2024 12:26:25 +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=1711715189; cv=none; b=GAb5BA3eC5GIrg2UdJDKbjjqylwwl5RZ87Cc5qNXb0cPLk0ozfskPVk0w9KI7p+ylZVQkX4aK7p6NGplG/yDqPkUhHrmIyop84m8YkSPl/8zn7N9BuOoLEwU9k+I9iwg3sg4cn/D6O2u6WXpCgjKIY2vk1bJFNVdWlMWoiaTU+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711715189; c=relaxed/simple; bh=CO7iFRLXuNJN0ODjWE1Sca9kd08SmHPibAbkSnnLPTQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lKvlnHiRuL/RHW0Yq6CPxuSuRGMAbSqPDl6Q/zTm2/dpAquD3ABIw+Ytb3n/QK3aWyXvFY7+Jaml4pjdtmZEqrUp/c4/8iKgM2x97vb7eNvXDBGuca1Bhsi5JpaBRRoZCWqxDn82hTvcy0npKRyFeZO3/Ww7JQ+3iqbQVm63VA8= 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=Rh/5OMKY; 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 Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56ca3e11006so375858a12.3 for ; Fri, 29 Mar 2024 05:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1711715183; x=1712319983; 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=hGKBeVO2nyh3+Ap/hXwBhTTxhIwQlZ0U8hKP2bY+0Ow=; b=Rh/5OMKYCskGZ5bgNV8TMBntxJ2mdjdnuSMqJnZZduPj7mPJCoVeDA0SKHI4q0LCol FSxcGXoM/OqQhu22clDxUXdCI0NeTfaAov83DPKZjdVU191NIX27J9+1wv6oihFu6WNd EMPoe7tECok+YsI0Cm7EVwdvDdKGYWONSEPbMnO2Y2RQviAbF5o/As4JvDmMvh+YHKWh /ex/qxegFIPoy065J+PVKCgJHjF0t/P1b96M/jSV5IBKP3QB7TpuVZ4dKmttQP6qgSC3 5qPbdMhdXeIz4kPwriU5T1NgGgGFrFoG62/1UM96fxpwGtsRfwyQROi3LKjGQ6sQjetC oWNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711715183; x=1712319983; 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=hGKBeVO2nyh3+Ap/hXwBhTTxhIwQlZ0U8hKP2bY+0Ow=; b=GYN0mipjqfQAnRYiZBnYHvj0gpGHQV/1UGCcAn55sKUW24qUaSl0HsAnXfL8HQKVWQ iWvt18uLg7rlXbynCNgOF/+954MJbkhTkQWWkulR+GTgAcj3LTFBg40bfjfk2ASdOm0G xdFr5ReCRTBTd7cXGo4hHnrHuVHqUsNX1AhC2nzZMdLEWqQTKAooJ6vm3l/eiE/Apant pstfIfomMnwij5s/Cib0URtOuQZV+7j+zBOU3RoHRxsJSCEo6tJkB3Ye3II/K89WLLS4 heoGEMh0St6u6RUJhQMiTK5bvNxm9o2k8iPkBMORrpKjWEdOal9YQmCZAN0dM094Cs1m JMTQ== X-Forwarded-Encrypted: i=1; AJvYcCXXPuFGlfCvIFJ0VXLuA1DFL7Kz0Vd7M6IYq8SknYwWLMwvl/IX5LG1QP78N7j3fsFg7hygOAmUFmMwMHUVCKsCjrCpSMf968S3v2GN X-Gm-Message-State: AOJu0Yzn60RsPyzcGjWzNliK3AZJnF+BBy6k3y4d+s2NGKvLJdTTrnye cyBq2LogRWxmwWq8POE9SMgHyOoz82bc8LwIONhAZB8tsCQV35cljKPv7FjyJH1O+jrpL0BaPZz Y X-Received: by 2002:a05:6402:2349:b0:56b:ee71:9660 with SMTP id r9-20020a056402234900b0056bee719660mr1501118eda.27.1711715183177; Fri, 29 Mar 2024 05:26:23 -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 m7-20020aa7c487000000b0056bf2e2c898sm1961925edq.1.2024.03.29.05.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 05:26:22 -0700 (PDT) From: Luca Weiss Date: Fri, 29 Mar 2024 13:26:20 +0100 Subject: [PATCH v2 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: <20240329-fp4-tcpm-v2-2-d7f8cd165355@fairphone.com> References: <20240329-fp4-tcpm-v2-0-d7f8cd165355@fairphone.com> In-Reply-To: <20240329-fp4-tcpm-v2-0-d7f8cd165355@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 | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi index 4faed25a787f..0205c2669093 100644 --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi @@ -51,6 +51,45 @@ 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>; + }; + pm7250b_temp: temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400>; -- 2.44.0